Subversion Repositories SmartDukaan

Rev

Rev 3956 | Rev 4141 | 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
     * 
31
     * @param userId
32
     * @param amount
33
     * @param gatewayId
34
     * @param txnId
35
     */
3430 rajveer 36
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException;
123 ashish 37
 
695 rajveer 38
    /**
39
     * get payment for user. If status and gateway are null, it is ignored. Same for times as well.
40
     * 
41
     * 
42
     * @param userId
43
     * @param fromTime
44
     * @param toTime
45
     * @param status
46
     * @param gatewayId
47
     */
3430 rajveer 48
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 49
 
695 rajveer 50
    /**
2060 ankur.sing 51
     * get all payments for user. If gatewayId is 0, then it is ignored while filtering.
695 rajveer 52
     * 
1855 chandransh 53
     * 
695 rajveer 54
     * @param fromTime
55
     * @param toTime
56
     * @param status
57
     * @param gatewayId
58
     */
3430 rajveer 59
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 60
 
695 rajveer 61
    /**
62
     * Get a particular gateway
63
     * 
64
     * 
65
     * @param id
66
     */
3430 rajveer 67
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 68
 
695 rajveer 69
    /**
70
     * Get a particular payment info
71
     * 
72
     * 
73
     * @param id
74
     */
3430 rajveer 75
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 76
 
695 rajveer 77
    /**
78
     * Get a particular payment for a transaction. Will raise exception.
79
     * 
80
     * 
81
     * @param txnId
82
     */
3430 rajveer 83
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
420 ashish 84
 
695 rajveer 85
    /**
86
     * mark payment successful and store parameters
87
     * 
88
     * 
89
     * @param id
90
     * @param gatewayPaymentId
91
     * @param sessionId
92
     * @param gatewayTxnStatus
93
     * @param description
94
     * @param gatewayTxnId
95
     * @param authCode
96
     * @param referenceCode
97
     * @param errorCode
98
     * @param status
1119 rajveer 99
     * @param gatewayTxnDate
695 rajveer 100
     * @param attributes
101
     */
3430 rajveer 102
    public boolean updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes) throws PaymentException, org.apache.thrift.TException;
695 rajveer 103
 
1629 ankur.sing 104
    /**
1731 ankur.sing 105
     * Returns the minimum and maximum amounts among successful payments.
106
     * List contains two double values, first minimum and second maximum amount.
1629 ankur.sing 107
     */
3430 rajveer 108
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
1629 ankur.sing 109
 
2462 chandransh 110
    /**
111
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
112
     * In case of any processing error, an exception is raised.
113
     * 
114
     * @param merchantPaymentId
115
     */
3430 rajveer 116
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
2462 chandransh 117
 
2690 chandransh 118
    /**
3616 chandransh 119
     * Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
120
     * In case of any processing error, an exception is raised.
121
     * 
122
     * @param merchantPaymentId
123
     */
124
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
125
 
126
    /**
2690 chandransh 127
     * Create a refund of the given amount corresponding to the given order to be processed through the same
128
     * payment gateway which processed the payment for the corresponding transaction.
129
     * Returns the id of the newly created Refund.
130
     * 
131
     * @param orderId
132
     * @param merchantTxnId
133
     * @param amount
134
     */
3430 rajveer 135
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
2690 chandransh 136
 
3010 chandransh 137
    /**
138
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
139
     * transaction. If the capture attempt failed, the payment is marked as failed.
140
     * 
141
     * @param merchantTxnId
142
     */
3430 rajveer 143
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
3010 chandransh 144
 
3956 chandransh 145
    /**
146
     * Adds the given amount to the captured amount of a COD payment.
147
     * Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
148
     * If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
149
     * Also sets the name of the entity which transferred the money, the date on which it was transferred
150
     * and the corresponding transaction id.
151
     * 
152
     * Returns false if the payment couldn't be captured.
153
     * Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
154
     * 
155
     * @param merchantTxnId
156
     * @param amount
157
     * @param xferBy
158
     * @param xferTxnId
159
     * @param xferDate
160
     */
161
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException;
162
 
4008 mandeep.dh 163
    /**
164
     * Returns the list of payments that require some extra processing and
165
     * which belong to a particular category. This is currently used by CRM
166
     * application.
167
     * 
168
     * @param category
169
     */
170
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
171
 
172
    /**
173
     * Marks a particular payment as processed for a particular cateogory.
174
     * It essentially deletes the payment if it is processed for a particular
175
     * category. This is currently used by CRM application.
176
     * 
177
     * @param paymentId
178
     * @param category
179
     */
180
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
181
 
123 ashish 182
  }
183
 
3430 rajveer 184
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
185
 
186
    public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
187
 
188
    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;
189
 
190
    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;
191
 
192
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
193
 
194
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
195
 
196
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
197
 
198
    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;
199
 
200
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
201
 
202
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
203
 
3616 chandransh 204
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
205
 
3430 rajveer 206
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
207
 
208
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
209
 
3956 chandransh 210
    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;
211
 
4008 mandeep.dh 212
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
213
 
214
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
215
 
3430 rajveer 216
  }
217
 
3374 rajveer 218
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 219
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
220
      public Factory() {}
221
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
222
        return new Client(prot);
223
      }
224
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
225
        return new Client(iprot, oprot);
226
      }
227
    }
228
 
229
    public Client(org.apache.thrift.protocol.TProtocol prot)
123 ashish 230
    {
3430 rajveer 231
      super(prot, prot);
123 ashish 232
    }
233
 
3430 rajveer 234
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 235
      super(iprot, oprot);
123 ashish 236
    }
237
 
3430 rajveer 238
    public long createPayment(long userId, double amount, long gatewayId, long txnId) throws PaymentException, org.apache.thrift.TException
123 ashish 239
    {
695 rajveer 240
      send_createPayment(userId, amount, gatewayId, txnId);
123 ashish 241
      return recv_createPayment();
242
    }
243
 
3430 rajveer 244
    public void send_createPayment(long userId, double amount, long gatewayId, long txnId) throws org.apache.thrift.TException
123 ashish 245
    {
246
      createPayment_args args = new createPayment_args();
3430 rajveer 247
      args.setUserId(userId);
248
      args.setAmount(amount);
249
      args.setGatewayId(gatewayId);
250
      args.setTxnId(txnId);
251
      sendBase("createPayment", args);
123 ashish 252
    }
253
 
3430 rajveer 254
    public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
123 ashish 255
    {
256
      createPayment_result result = new createPayment_result();
3430 rajveer 257
      receiveBase(result, "createPayment");
123 ashish 258
      if (result.isSetSuccess()) {
259
        return result.success;
260
      }
261
      if (result.pe != null) {
262
        throw result.pe;
263
      }
3430 rajveer 264
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
123 ashish 265
    }
266
 
3430 rajveer 267
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 268
    {
695 rajveer 269
      send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
123 ashish 270
      return recv_getPaymentsForUser();
271
    }
272
 
3430 rajveer 273
    public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 274
    {
275
      getPaymentsForUser_args args = new getPaymentsForUser_args();
3430 rajveer 276
      args.setUserId(userId);
277
      args.setFromTime(fromTime);
278
      args.setToTime(toTime);
279
      args.setStatus(status);
280
      args.setGatewayId(gatewayId);
281
      sendBase("getPaymentsForUser", args);
123 ashish 282
    }
283
 
3430 rajveer 284
    public List<Payment> recv_getPaymentsForUser() throws PaymentException, org.apache.thrift.TException
123 ashish 285
    {
286
      getPaymentsForUser_result result = new getPaymentsForUser_result();
3430 rajveer 287
      receiveBase(result, "getPaymentsForUser");
123 ashish 288
      if (result.isSetSuccess()) {
289
        return result.success;
290
      }
291
      if (result.pe != null) {
292
        throw result.pe;
293
      }
3430 rajveer 294
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
123 ashish 295
    }
296
 
3430 rajveer 297
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 298
    {
695 rajveer 299
      send_getPayments(fromTime, toTime, status, gatewayId);
123 ashish 300
      return recv_getPayments();
301
    }
302
 
3430 rajveer 303
    public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 304
    {
305
      getPayments_args args = new getPayments_args();
3430 rajveer 306
      args.setFromTime(fromTime);
307
      args.setToTime(toTime);
308
      args.setStatus(status);
309
      args.setGatewayId(gatewayId);
310
      sendBase("getPayments", args);
123 ashish 311
    }
312
 
3430 rajveer 313
    public List<Payment> recv_getPayments() throws PaymentException, org.apache.thrift.TException
123 ashish 314
    {
315
      getPayments_result result = new getPayments_result();
3430 rajveer 316
      receiveBase(result, "getPayments");
123 ashish 317
      if (result.isSetSuccess()) {
318
        return result.success;
319
      }
320
      if (result.pe != null) {
321
        throw result.pe;
322
      }
3430 rajveer 323
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
123 ashish 324
    }
325
 
3430 rajveer 326
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 327
    {
328
      send_getPaymentGateway(id);
329
      return recv_getPaymentGateway();
330
    }
331
 
3430 rajveer 332
    public void send_getPaymentGateway(long id) throws org.apache.thrift.TException
420 ashish 333
    {
334
      getPaymentGateway_args args = new getPaymentGateway_args();
3430 rajveer 335
      args.setId(id);
336
      sendBase("getPaymentGateway", args);
420 ashish 337
    }
338
 
3430 rajveer 339
    public PaymentGateway recv_getPaymentGateway() throws PaymentException, org.apache.thrift.TException
420 ashish 340
    {
341
      getPaymentGateway_result result = new getPaymentGateway_result();
3430 rajveer 342
      receiveBase(result, "getPaymentGateway");
420 ashish 343
      if (result.isSetSuccess()) {
344
        return result.success;
345
      }
346
      if (result.pe != null) {
347
        throw result.pe;
348
      }
3430 rajveer 349
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
420 ashish 350
    }
351
 
3430 rajveer 352
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 353
    {
695 rajveer 354
      send_getPayment(id);
355
      return recv_getPayment();
420 ashish 356
    }
357
 
3430 rajveer 358
    public void send_getPayment(long id) throws org.apache.thrift.TException
420 ashish 359
    {
695 rajveer 360
      getPayment_args args = new getPayment_args();
3430 rajveer 361
      args.setId(id);
362
      sendBase("getPayment", args);
420 ashish 363
    }
364
 
3430 rajveer 365
    public Payment recv_getPayment() throws PaymentException, org.apache.thrift.TException
420 ashish 366
    {
695 rajveer 367
      getPayment_result result = new getPayment_result();
3430 rajveer 368
      receiveBase(result, "getPayment");
695 rajveer 369
      if (result.isSetSuccess()) {
370
        return result.success;
371
      }
420 ashish 372
      if (result.pe != null) {
373
        throw result.pe;
374
      }
3430 rajveer 375
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
420 ashish 376
    }
377
 
3430 rajveer 378
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
420 ashish 379
    {
695 rajveer 380
      send_getPaymentForTxnId(txnId);
381
      return recv_getPaymentForTxnId();
420 ashish 382
    }
383
 
3430 rajveer 384
    public void send_getPaymentForTxnId(long txnId) throws org.apache.thrift.TException
420 ashish 385
    {
695 rajveer 386
      getPaymentForTxnId_args args = new getPaymentForTxnId_args();
3430 rajveer 387
      args.setTxnId(txnId);
388
      sendBase("getPaymentForTxnId", args);
420 ashish 389
    }
390
 
3430 rajveer 391
    public List<Payment> recv_getPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
420 ashish 392
    {
695 rajveer 393
      getPaymentForTxnId_result result = new getPaymentForTxnId_result();
3430 rajveer 394
      receiveBase(result, "getPaymentForTxnId");
420 ashish 395
      if (result.isSetSuccess()) {
396
        return result.success;
397
      }
398
      if (result.pe != null) {
399
        throw result.pe;
400
      }
3430 rajveer 401
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
420 ashish 402
    }
403
 
3430 rajveer 404
    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 405
    {
1119 rajveer 406
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
695 rajveer 407
      return recv_updatePaymentDetails();
420 ashish 408
    }
409
 
3430 rajveer 410
    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 411
    {
695 rajveer 412
      updatePaymentDetails_args args = new updatePaymentDetails_args();
3430 rajveer 413
      args.setId(id);
414
      args.setGatewayPaymentId(gatewayPaymentId);
415
      args.setSessionId(sessionId);
416
      args.setGatewayTxnStatus(gatewayTxnStatus);
417
      args.setDescription(description);
418
      args.setGatewayTxnId(gatewayTxnId);
419
      args.setAuthCode(authCode);
420
      args.setReferenceCode(referenceCode);
421
      args.setErrorCode(errorCode);
422
      args.setStatus(status);
423
      args.setGatewayTxnDate(gatewayTxnDate);
424
      args.setAttributes(attributes);
425
      sendBase("updatePaymentDetails", args);
420 ashish 426
    }
427
 
3430 rajveer 428
    public boolean recv_updatePaymentDetails() throws PaymentException, org.apache.thrift.TException
420 ashish 429
    {
695 rajveer 430
      updatePaymentDetails_result result = new updatePaymentDetails_result();
3430 rajveer 431
      receiveBase(result, "updatePaymentDetails");
695 rajveer 432
      if (result.isSetSuccess()) {
433
        return result.success;
434
      }
420 ashish 435
      if (result.pe != null) {
436
        throw result.pe;
437
      }
3430 rajveer 438
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
420 ashish 439
    }
440
 
3430 rajveer 441
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 442
    {
1731 ankur.sing 443
      send_getSuccessfulPaymentsAmountRange();
444
      return recv_getSuccessfulPaymentsAmountRange();
1629 ankur.sing 445
    }
446
 
3430 rajveer 447
    public void send_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 448
    {
1731 ankur.sing 449
      getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
3430 rajveer 450
      sendBase("getSuccessfulPaymentsAmountRange", args);
1629 ankur.sing 451
    }
452
 
3430 rajveer 453
    public List<Double> recv_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 454
    {
1731 ankur.sing 455
      getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 456
      receiveBase(result, "getSuccessfulPaymentsAmountRange");
1629 ankur.sing 457
      if (result.isSetSuccess()) {
458
        return result.success;
459
      }
3430 rajveer 460
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
1629 ankur.sing 461
    }
462
 
3430 rajveer 463
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
2462 chandransh 464
    {
465
      send_initializeHdfcPayment(merchantPaymentId);
466
      return recv_initializeHdfcPayment();
467
    }
468
 
3430 rajveer 469
    public void send_initializeHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
2462 chandransh 470
    {
471
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
3430 rajveer 472
      args.setMerchantPaymentId(merchantPaymentId);
473
      sendBase("initializeHdfcPayment", args);
2462 chandransh 474
    }
475
 
3430 rajveer 476
    public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
2462 chandransh 477
    {
478
      initializeHdfcPayment_result result = new initializeHdfcPayment_result();
3430 rajveer 479
      receiveBase(result, "initializeHdfcPayment");
2462 chandransh 480
      if (result.isSetSuccess()) {
481
        return result.success;
482
      }
483
      if (result.pe != null) {
484
        throw result.pe;
485
      }
3430 rajveer 486
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
2462 chandransh 487
    }
488
 
3616 chandransh 489
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
490
    {
491
      send_initializeHdfcEmiPayment(merchantPaymentId);
492
      return recv_initializeHdfcEmiPayment();
493
    }
494
 
495
    public void send_initializeHdfcEmiPayment(long merchantPaymentId) throws org.apache.thrift.TException
496
    {
497
      initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
498
      args.setMerchantPaymentId(merchantPaymentId);
499
      sendBase("initializeHdfcEmiPayment", args);
500
    }
501
 
502
    public String recv_initializeHdfcEmiPayment() throws PaymentException, org.apache.thrift.TException
503
    {
504
      initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
505
      receiveBase(result, "initializeHdfcEmiPayment");
506
      if (result.isSetSuccess()) {
507
        return result.success;
508
      }
509
      if (result.pe != null) {
510
        throw result.pe;
511
      }
512
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
513
    }
514
 
3430 rajveer 515
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException
2690 chandransh 516
    {
517
      send_createRefund(orderId, merchantTxnId, amount);
518
      return recv_createRefund();
519
    }
520
 
3430 rajveer 521
    public void send_createRefund(long orderId, long merchantTxnId, double amount) throws org.apache.thrift.TException
2690 chandransh 522
    {
523
      createRefund_args args = new createRefund_args();
3430 rajveer 524
      args.setOrderId(orderId);
525
      args.setMerchantTxnId(merchantTxnId);
526
      args.setAmount(amount);
527
      sendBase("createRefund", args);
2690 chandransh 528
    }
529
 
3430 rajveer 530
    public long recv_createRefund() throws PaymentException, org.apache.thrift.TException
2690 chandransh 531
    {
532
      createRefund_result result = new createRefund_result();
3430 rajveer 533
      receiveBase(result, "createRefund");
2690 chandransh 534
      if (result.isSetSuccess()) {
535
        return result.success;
536
      }
537
      if (result.pe != null) {
538
        throw result.pe;
539
      }
3430 rajveer 540
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
2690 chandransh 541
    }
542
 
3430 rajveer 543
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException
3010 chandransh 544
    {
545
      send_capturePayment(merchantTxnId);
546
      return recv_capturePayment();
547
    }
548
 
3430 rajveer 549
    public void send_capturePayment(long merchantTxnId) throws org.apache.thrift.TException
3010 chandransh 550
    {
551
      capturePayment_args args = new capturePayment_args();
3430 rajveer 552
      args.setMerchantTxnId(merchantTxnId);
553
      sendBase("capturePayment", args);
3010 chandransh 554
    }
555
 
3430 rajveer 556
    public boolean recv_capturePayment() throws PaymentException, org.apache.thrift.TException
3010 chandransh 557
    {
558
      capturePayment_result result = new capturePayment_result();
3430 rajveer 559
      receiveBase(result, "capturePayment");
3010 chandransh 560
      if (result.isSetSuccess()) {
561
        return result.success;
562
      }
563
      if (result.pe != null) {
564
        throw result.pe;
565
      }
3430 rajveer 566
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
3010 chandransh 567
    }
568
 
3956 chandransh 569
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException
570
    {
571
      send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate);
572
      return recv_partiallyCapturePayment();
573
    }
574
 
575
    public void send_partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
576
    {
577
      partiallyCapturePayment_args args = new partiallyCapturePayment_args();
578
      args.setMerchantTxnId(merchantTxnId);
579
      args.setAmount(amount);
580
      args.setXferBy(xferBy);
581
      args.setXferTxnId(xferTxnId);
582
      args.setXferDate(xferDate);
583
      sendBase("partiallyCapturePayment", args);
584
    }
585
 
586
    public boolean recv_partiallyCapturePayment() throws PaymentException, org.apache.thrift.TException
587
    {
588
      partiallyCapturePayment_result result = new partiallyCapturePayment_result();
589
      receiveBase(result, "partiallyCapturePayment");
590
      if (result.isSetSuccess()) {
591
        return result.success;
592
      }
593
      if (result.pe != null) {
594
        throw result.pe;
595
      }
596
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
597
    }
598
 
4008 mandeep.dh 599
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
600
    {
601
      send_getPaymentsRequiringExtraProcessing(category);
602
      return recv_getPaymentsRequiringExtraProcessing();
603
    }
604
 
605
    public void send_getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
606
    {
607
      getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
608
      args.setCategory(category);
609
      sendBase("getPaymentsRequiringExtraProcessing", args);
610
    }
611
 
612
    public List<Long> recv_getPaymentsRequiringExtraProcessing() throws org.apache.thrift.TException
613
    {
614
      getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
615
      receiveBase(result, "getPaymentsRequiringExtraProcessing");
616
      if (result.isSetSuccess()) {
617
        return result.success;
618
      }
619
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
620
    }
621
 
622
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
623
    {
624
      send_markPaymentAsProcessed(paymentId, category);
625
      recv_markPaymentAsProcessed();
626
    }
627
 
628
    public void send_markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
629
    {
630
      markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
631
      args.setPaymentId(paymentId);
632
      args.setCategory(category);
633
      sendBase("markPaymentAsProcessed", args);
634
    }
635
 
636
    public void recv_markPaymentAsProcessed() throws org.apache.thrift.TException
637
    {
638
      markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
639
      receiveBase(result, "markPaymentAsProcessed");
640
      return;
641
    }
642
 
123 ashish 643
  }
3430 rajveer 644
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
645
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
646
      private org.apache.thrift.async.TAsyncClientManager clientManager;
647
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
648
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
649
        this.clientManager = clientManager;
650
        this.protocolFactory = protocolFactory;
651
      }
652
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
653
        return new AsyncClient(protocolFactory, clientManager, transport);
654
      }
123 ashish 655
    }
656
 
3430 rajveer 657
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
658
      super(protocolFactory, clientManager, transport);
659
    }
123 ashish 660
 
3430 rajveer 661
    public void createPayment(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
662
      checkReady();
663
      createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, resultHandler, this, ___protocolFactory, ___transport);
664
      this.___currentMethod = method_call;
665
      ___manager.call(method_call);
666
    }
667
 
668
    public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
669
      private long userId;
670
      private double amount;
671
      private long gatewayId;
672
      private long txnId;
673
      public createPayment_call(long userId, double amount, long gatewayId, long txnId, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
674
        super(client, protocolFactory, transport, resultHandler, false);
675
        this.userId = userId;
676
        this.amount = amount;
677
        this.gatewayId = gatewayId;
678
        this.txnId = txnId;
123 ashish 679
      }
3430 rajveer 680
 
681
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
682
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
683
        createPayment_args args = new createPayment_args();
684
        args.setUserId(userId);
685
        args.setAmount(amount);
686
        args.setGatewayId(gatewayId);
687
        args.setTxnId(txnId);
688
        args.write(prot);
689
        prot.writeMessageEnd();
690
      }
691
 
692
      public long getResult() throws PaymentException, org.apache.thrift.TException {
693
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
694
          throw new IllegalStateException("Method call not finished!");
695
        }
696
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
697
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
698
        return (new Client(prot)).recv_createPayment();
699
      }
123 ashish 700
    }
701
 
3430 rajveer 702
    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 {
703
      checkReady();
704
      getPaymentsForUser_call method_call = new getPaymentsForUser_call(userId, fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
705
      this.___currentMethod = method_call;
706
      ___manager.call(method_call);
707
    }
708
 
709
    public static class getPaymentsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
710
      private long userId;
711
      private long fromTime;
712
      private long toTime;
713
      private PaymentStatus status;
714
      private long gatewayId;
715
      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 {
716
        super(client, protocolFactory, transport, resultHandler, false);
717
        this.userId = userId;
718
        this.fromTime = fromTime;
719
        this.toTime = toTime;
720
        this.status = status;
721
        this.gatewayId = gatewayId;
722
      }
723
 
724
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
725
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
726
        getPaymentsForUser_args args = new getPaymentsForUser_args();
727
        args.setUserId(userId);
728
        args.setFromTime(fromTime);
729
        args.setToTime(toTime);
730
        args.setStatus(status);
731
        args.setGatewayId(gatewayId);
732
        args.write(prot);
733
        prot.writeMessageEnd();
734
      }
735
 
736
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
737
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
738
          throw new IllegalStateException("Method call not finished!");
739
        }
740
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
741
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
742
        return (new Client(prot)).recv_getPaymentsForUser();
743
      }
744
    }
745
 
746
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_call> resultHandler) throws org.apache.thrift.TException {
747
      checkReady();
748
      getPayments_call method_call = new getPayments_call(fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
749
      this.___currentMethod = method_call;
750
      ___manager.call(method_call);
751
    }
752
 
753
    public static class getPayments_call extends org.apache.thrift.async.TAsyncMethodCall {
754
      private long fromTime;
755
      private long toTime;
756
      private PaymentStatus status;
757
      private long gatewayId;
758
      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 {
759
        super(client, protocolFactory, transport, resultHandler, false);
760
        this.fromTime = fromTime;
761
        this.toTime = toTime;
762
        this.status = status;
763
        this.gatewayId = gatewayId;
764
      }
765
 
766
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
767
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayments", org.apache.thrift.protocol.TMessageType.CALL, 0));
768
        getPayments_args args = new getPayments_args();
769
        args.setFromTime(fromTime);
770
        args.setToTime(toTime);
771
        args.setStatus(status);
772
        args.setGatewayId(gatewayId);
773
        args.write(prot);
774
        prot.writeMessageEnd();
775
      }
776
 
777
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
779
          throw new IllegalStateException("Method call not finished!");
780
        }
781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
783
        return (new Client(prot)).recv_getPayments();
784
      }
785
    }
786
 
787
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
788
      checkReady();
789
      getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
790
      this.___currentMethod = method_call;
791
      ___manager.call(method_call);
792
    }
793
 
794
    public static class getPaymentGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
795
      private long id;
796
      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 {
797
        super(client, protocolFactory, transport, resultHandler, false);
798
        this.id = id;
799
      }
800
 
801
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
802
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
803
        getPaymentGateway_args args = new getPaymentGateway_args();
804
        args.setId(id);
805
        args.write(prot);
806
        prot.writeMessageEnd();
807
      }
808
 
809
      public PaymentGateway getResult() throws PaymentException, org.apache.thrift.TException {
810
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
811
          throw new IllegalStateException("Method call not finished!");
812
        }
813
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
814
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
815
        return (new Client(prot)).recv_getPaymentGateway();
816
      }
817
    }
818
 
819
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
820
      checkReady();
821
      getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
822
      this.___currentMethod = method_call;
823
      ___manager.call(method_call);
824
    }
825
 
826
    public static class getPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
827
      private long id;
828
      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 {
829
        super(client, protocolFactory, transport, resultHandler, false);
830
        this.id = id;
831
      }
832
 
833
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
834
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
835
        getPayment_args args = new getPayment_args();
836
        args.setId(id);
837
        args.write(prot);
838
        prot.writeMessageEnd();
839
      }
840
 
841
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
842
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
843
          throw new IllegalStateException("Method call not finished!");
844
        }
845
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
846
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
847
        return (new Client(prot)).recv_getPayment();
848
      }
849
    }
850
 
851
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
852
      checkReady();
853
      getPaymentForTxnId_call method_call = new getPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
854
      this.___currentMethod = method_call;
855
      ___manager.call(method_call);
856
    }
857
 
858
    public static class getPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
859
      private long txnId;
860
      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 {
861
        super(client, protocolFactory, transport, resultHandler, false);
862
        this.txnId = txnId;
863
      }
864
 
865
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
866
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
867
        getPaymentForTxnId_args args = new getPaymentForTxnId_args();
868
        args.setTxnId(txnId);
869
        args.write(prot);
870
        prot.writeMessageEnd();
871
      }
872
 
873
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
874
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
875
          throw new IllegalStateException("Method call not finished!");
876
        }
877
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
878
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
879
        return (new Client(prot)).recv_getPaymentForTxnId();
880
      }
881
    }
882
 
883
    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 {
884
      checkReady();
885
      updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
886
      this.___currentMethod = method_call;
887
      ___manager.call(method_call);
888
    }
889
 
890
    public static class updatePaymentDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
891
      private long id;
892
      private String gatewayPaymentId;
893
      private String sessionId;
894
      private String gatewayTxnStatus;
895
      private String description;
896
      private String gatewayTxnId;
897
      private String authCode;
898
      private String referenceCode;
899
      private String errorCode;
900
      private PaymentStatus status;
901
      private String gatewayTxnDate;
902
      private List<Attribute> attributes;
903
      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 {
904
        super(client, protocolFactory, transport, resultHandler, false);
905
        this.id = id;
906
        this.gatewayPaymentId = gatewayPaymentId;
907
        this.sessionId = sessionId;
908
        this.gatewayTxnStatus = gatewayTxnStatus;
909
        this.description = description;
910
        this.gatewayTxnId = gatewayTxnId;
911
        this.authCode = authCode;
912
        this.referenceCode = referenceCode;
913
        this.errorCode = errorCode;
914
        this.status = status;
915
        this.gatewayTxnDate = gatewayTxnDate;
916
        this.attributes = attributes;
917
      }
918
 
919
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
920
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePaymentDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
921
        updatePaymentDetails_args args = new updatePaymentDetails_args();
922
        args.setId(id);
923
        args.setGatewayPaymentId(gatewayPaymentId);
924
        args.setSessionId(sessionId);
925
        args.setGatewayTxnStatus(gatewayTxnStatus);
926
        args.setDescription(description);
927
        args.setGatewayTxnId(gatewayTxnId);
928
        args.setAuthCode(authCode);
929
        args.setReferenceCode(referenceCode);
930
        args.setErrorCode(errorCode);
931
        args.setStatus(status);
932
        args.setGatewayTxnDate(gatewayTxnDate);
933
        args.setAttributes(attributes);
934
        args.write(prot);
935
        prot.writeMessageEnd();
936
      }
937
 
938
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
939
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
940
          throw new IllegalStateException("Method call not finished!");
941
        }
942
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
943
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
944
        return (new Client(prot)).recv_updatePaymentDetails();
945
      }
946
    }
947
 
948
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException {
949
      checkReady();
950
      getSuccessfulPaymentsAmountRange_call method_call = new getSuccessfulPaymentsAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
951
      this.___currentMethod = method_call;
952
      ___manager.call(method_call);
953
    }
954
 
955
    public static class getSuccessfulPaymentsAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
956
      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 {
957
        super(client, protocolFactory, transport, resultHandler, false);
958
      }
959
 
960
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
961
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentsAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
962
        getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
963
        args.write(prot);
964
        prot.writeMessageEnd();
965
      }
966
 
967
      public List<Double> getResult() throws org.apache.thrift.TException {
968
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
969
          throw new IllegalStateException("Method call not finished!");
970
        }
971
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
972
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
973
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
974
      }
975
    }
976
 
977
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
978
      checkReady();
979
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
980
      this.___currentMethod = method_call;
981
      ___manager.call(method_call);
982
    }
983
 
984
    public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
985
      private long merchantPaymentId;
986
      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 {
987
        super(client, protocolFactory, transport, resultHandler, false);
988
        this.merchantPaymentId = merchantPaymentId;
989
      }
990
 
991
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
992
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
993
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
994
        args.setMerchantPaymentId(merchantPaymentId);
995
        args.write(prot);
996
        prot.writeMessageEnd();
997
      }
998
 
999
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1000
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1001
          throw new IllegalStateException("Method call not finished!");
1002
        }
1003
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1004
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1005
        return (new Client(prot)).recv_initializeHdfcPayment();
1006
      }
1007
    }
1008
 
3616 chandransh 1009
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
1010
      checkReady();
1011
      initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1012
      this.___currentMethod = method_call;
1013
      ___manager.call(method_call);
1014
    }
1015
 
1016
    public static class initializeHdfcEmiPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1017
      private long merchantPaymentId;
1018
      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 {
1019
        super(client, protocolFactory, transport, resultHandler, false);
1020
        this.merchantPaymentId = merchantPaymentId;
1021
      }
1022
 
1023
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1024
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcEmiPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1025
        initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
1026
        args.setMerchantPaymentId(merchantPaymentId);
1027
        args.write(prot);
1028
        prot.writeMessageEnd();
1029
      }
1030
 
1031
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1032
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1033
          throw new IllegalStateException("Method call not finished!");
1034
        }
1035
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1036
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1037
        return (new Client(prot)).recv_initializeHdfcEmiPayment();
1038
      }
1039
    }
1040
 
3430 rajveer 1041
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_call> resultHandler) throws org.apache.thrift.TException {
1042
      checkReady();
1043
      createRefund_call method_call = new createRefund_call(orderId, merchantTxnId, amount, resultHandler, this, ___protocolFactory, ___transport);
1044
      this.___currentMethod = method_call;
1045
      ___manager.call(method_call);
1046
    }
1047
 
1048
    public static class createRefund_call extends org.apache.thrift.async.TAsyncMethodCall {
1049
      private long orderId;
1050
      private long merchantTxnId;
1051
      private double amount;
1052
      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 {
1053
        super(client, protocolFactory, transport, resultHandler, false);
1054
        this.orderId = orderId;
1055
        this.merchantTxnId = merchantTxnId;
1056
        this.amount = amount;
1057
      }
1058
 
1059
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1060
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRefund", org.apache.thrift.protocol.TMessageType.CALL, 0));
1061
        createRefund_args args = new createRefund_args();
1062
        args.setOrderId(orderId);
1063
        args.setMerchantTxnId(merchantTxnId);
1064
        args.setAmount(amount);
1065
        args.write(prot);
1066
        prot.writeMessageEnd();
1067
      }
1068
 
1069
      public long getResult() throws PaymentException, org.apache.thrift.TException {
1070
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1071
          throw new IllegalStateException("Method call not finished!");
1072
        }
1073
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1074
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1075
        return (new Client(prot)).recv_createRefund();
1076
      }
1077
    }
1078
 
1079
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler) throws org.apache.thrift.TException {
1080
      checkReady();
1081
      capturePayment_call method_call = new capturePayment_call(merchantTxnId, resultHandler, this, ___protocolFactory, ___transport);
1082
      this.___currentMethod = method_call;
1083
      ___manager.call(method_call);
1084
    }
1085
 
1086
    public static class capturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1087
      private long merchantTxnId;
1088
      public capturePayment_call(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1089
        super(client, protocolFactory, transport, resultHandler, false);
1090
        this.merchantTxnId = merchantTxnId;
1091
      }
1092
 
1093
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1094
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("capturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1095
        capturePayment_args args = new capturePayment_args();
1096
        args.setMerchantTxnId(merchantTxnId);
1097
        args.write(prot);
1098
        prot.writeMessageEnd();
1099
      }
1100
 
1101
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1102
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1103
          throw new IllegalStateException("Method call not finished!");
1104
        }
1105
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1106
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1107
        return (new Client(prot)).recv_capturePayment();
1108
      }
1109
    }
1110
 
3956 chandransh 1111
    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 {
1112
      checkReady();
1113
      partiallyCapturePayment_call method_call = new partiallyCapturePayment_call(merchantTxnId, amount, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
1114
      this.___currentMethod = method_call;
1115
      ___manager.call(method_call);
1116
    }
1117
 
1118
    public static class partiallyCapturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1119
      private long merchantTxnId;
1120
      private double amount;
1121
      private String xferBy;
1122
      private String xferTxnId;
1123
      private long xferDate;
1124
      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 {
1125
        super(client, protocolFactory, transport, resultHandler, false);
1126
        this.merchantTxnId = merchantTxnId;
1127
        this.amount = amount;
1128
        this.xferBy = xferBy;
1129
        this.xferTxnId = xferTxnId;
1130
        this.xferDate = xferDate;
1131
      }
1132
 
1133
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1134
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("partiallyCapturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1135
        partiallyCapturePayment_args args = new partiallyCapturePayment_args();
1136
        args.setMerchantTxnId(merchantTxnId);
1137
        args.setAmount(amount);
1138
        args.setXferBy(xferBy);
1139
        args.setXferTxnId(xferTxnId);
1140
        args.setXferDate(xferDate);
1141
        args.write(prot);
1142
        prot.writeMessageEnd();
1143
      }
1144
 
1145
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1146
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1147
          throw new IllegalStateException("Method call not finished!");
1148
        }
1149
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1150
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1151
        return (new Client(prot)).recv_partiallyCapturePayment();
1152
      }
1153
    }
1154
 
4008 mandeep.dh 1155
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {
1156
      checkReady();
1157
      getPaymentsRequiringExtraProcessing_call method_call = new getPaymentsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);
1158
      this.___currentMethod = method_call;
1159
      ___manager.call(method_call);
1160
    }
1161
 
1162
    public static class getPaymentsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {
1163
      private ExtraPaymentProcessingType category;
1164
      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 {
1165
        super(client, protocolFactory, transport, resultHandler, false);
1166
        this.category = category;
1167
      }
1168
 
1169
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1170
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1171
        getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
1172
        args.setCategory(category);
1173
        args.write(prot);
1174
        prot.writeMessageEnd();
1175
      }
1176
 
1177
      public List<Long> getResult() throws org.apache.thrift.TException {
1178
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1179
          throw new IllegalStateException("Method call not finished!");
1180
        }
1181
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1182
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1183
        return (new Client(prot)).recv_getPaymentsRequiringExtraProcessing();
1184
      }
1185
    }
1186
 
1187
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
1188
      checkReady();
1189
      markPaymentAsProcessed_call method_call = new markPaymentAsProcessed_call(paymentId, category, resultHandler, this, ___protocolFactory, ___transport);
1190
      this.___currentMethod = method_call;
1191
      ___manager.call(method_call);
1192
    }
1193
 
1194
    public static class markPaymentAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
1195
      private long paymentId;
1196
      private ExtraPaymentProcessingType category;
1197
      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 {
1198
        super(client, protocolFactory, transport, resultHandler, false);
1199
        this.paymentId = paymentId;
1200
        this.category = category;
1201
      }
1202
 
1203
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1204
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPaymentAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
1205
        markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
1206
        args.setPaymentId(paymentId);
1207
        args.setCategory(category);
1208
        args.write(prot);
1209
        prot.writeMessageEnd();
1210
      }
1211
 
1212
      public void getResult() throws org.apache.thrift.TException {
1213
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1214
          throw new IllegalStateException("Method call not finished!");
1215
        }
1216
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1217
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1218
        (new Client(prot)).recv_markPaymentAsProcessed();
1219
      }
1220
    }
1221
 
3430 rajveer 1222
  }
1223
 
1224
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1225
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1226
    public Processor(I iface) {
1227
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1228
    }
1229
 
1230
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1231
      super(iface, getProcessMap(processMap));
1232
    }
1233
 
1234
    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) {
1235
      processMap.put("createPayment", new createPayment());
1236
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
1237
      processMap.put("getPayments", new getPayments());
1238
      processMap.put("getPaymentGateway", new getPaymentGateway());
1239
      processMap.put("getPayment", new getPayment());
1240
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
1241
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1242
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1243
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
3616 chandransh 1244
      processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
3430 rajveer 1245
      processMap.put("createRefund", new createRefund());
1246
      processMap.put("capturePayment", new capturePayment());
3956 chandransh 1247
      processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
4008 mandeep.dh 1248
      processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
1249
      processMap.put("markPaymentAsProcessed", new markPaymentAsProcessed());
3430 rajveer 1250
      return processMap;
1251
    }
1252
 
1253
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
1254
      public createPayment() {
1255
        super("createPayment");
1256
      }
1257
 
1258
      protected createPayment_args getEmptyArgsInstance() {
1259
        return new createPayment_args();
1260
      }
1261
 
1262
      protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
123 ashish 1263
        createPayment_result result = new createPayment_result();
1264
        try {
3430 rajveer 1265
          result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId);
420 ashish 1266
          result.setSuccessIsSet(true);
123 ashish 1267
        } catch (PaymentException pe) {
1268
          result.pe = pe;
1269
        }
3430 rajveer 1270
        return result;
123 ashish 1271
      }
1272
    }
1273
 
3430 rajveer 1274
    private static class getPaymentsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsForUser_args> {
1275
      public getPaymentsForUser() {
1276
        super("getPaymentsForUser");
1277
      }
1278
 
1279
      protected getPaymentsForUser_args getEmptyArgsInstance() {
1280
        return new getPaymentsForUser_args();
1281
      }
1282
 
1283
      protected getPaymentsForUser_result getResult(I iface, getPaymentsForUser_args args) throws org.apache.thrift.TException {
123 ashish 1284
        getPaymentsForUser_result result = new getPaymentsForUser_result();
1285
        try {
3430 rajveer 1286
          result.success = iface.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1287
        } catch (PaymentException pe) {
1288
          result.pe = pe;
1289
        }
3430 rajveer 1290
        return result;
123 ashish 1291
      }
1292
    }
1293
 
3430 rajveer 1294
    private static class getPayments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayments_args> {
1295
      public getPayments() {
1296
        super("getPayments");
1297
      }
1298
 
1299
      protected getPayments_args getEmptyArgsInstance() {
1300
        return new getPayments_args();
1301
      }
1302
 
1303
      protected getPayments_result getResult(I iface, getPayments_args args) throws org.apache.thrift.TException {
123 ashish 1304
        getPayments_result result = new getPayments_result();
1305
        try {
3430 rajveer 1306
          result.success = iface.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 1307
        } catch (PaymentException pe) {
1308
          result.pe = pe;
1309
        }
3430 rajveer 1310
        return result;
123 ashish 1311
      }
1312
    }
1313
 
3430 rajveer 1314
    private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
1315
      public getPaymentGateway() {
1316
        super("getPaymentGateway");
1317
      }
1318
 
1319
      protected getPaymentGateway_args getEmptyArgsInstance() {
1320
        return new getPaymentGateway_args();
1321
      }
1322
 
1323
      protected getPaymentGateway_result getResult(I iface, getPaymentGateway_args args) throws org.apache.thrift.TException {
420 ashish 1324
        getPaymentGateway_result result = new getPaymentGateway_result();
1325
        try {
3430 rajveer 1326
          result.success = iface.getPaymentGateway(args.id);
420 ashish 1327
        } catch (PaymentException pe) {
1328
          result.pe = pe;
1329
        }
3430 rajveer 1330
        return result;
420 ashish 1331
      }
1332
    }
1333
 
3430 rajveer 1334
    private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
1335
      public getPayment() {
1336
        super("getPayment");
1337
      }
1338
 
1339
      protected getPayment_args getEmptyArgsInstance() {
1340
        return new getPayment_args();
1341
      }
1342
 
1343
      protected getPayment_result getResult(I iface, getPayment_args args) throws org.apache.thrift.TException {
695 rajveer 1344
        getPayment_result result = new getPayment_result();
420 ashish 1345
        try {
3430 rajveer 1346
          result.success = iface.getPayment(args.id);
420 ashish 1347
        } catch (PaymentException pe) {
1348
          result.pe = pe;
1349
        }
3430 rajveer 1350
        return result;
420 ashish 1351
      }
1352
    }
1353
 
3430 rajveer 1354
    private static class getPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForTxnId_args> {
1355
      public getPaymentForTxnId() {
1356
        super("getPaymentForTxnId");
1357
      }
1358
 
1359
      protected getPaymentForTxnId_args getEmptyArgsInstance() {
1360
        return new getPaymentForTxnId_args();
1361
      }
1362
 
1363
      protected getPaymentForTxnId_result getResult(I iface, getPaymentForTxnId_args args) throws org.apache.thrift.TException {
695 rajveer 1364
        getPaymentForTxnId_result result = new getPaymentForTxnId_result();
420 ashish 1365
        try {
3430 rajveer 1366
          result.success = iface.getPaymentForTxnId(args.txnId);
420 ashish 1367
        } catch (PaymentException pe) {
1368
          result.pe = pe;
1369
        }
3430 rajveer 1370
        return result;
420 ashish 1371
      }
1372
    }
1373
 
3430 rajveer 1374
    private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
1375
      public updatePaymentDetails() {
1376
        super("updatePaymentDetails");
1377
      }
1378
 
1379
      protected updatePaymentDetails_args getEmptyArgsInstance() {
1380
        return new updatePaymentDetails_args();
1381
      }
1382
 
1383
      protected updatePaymentDetails_result getResult(I iface, updatePaymentDetails_args args) throws org.apache.thrift.TException {
695 rajveer 1384
        updatePaymentDetails_result result = new updatePaymentDetails_result();
420 ashish 1385
        try {
3430 rajveer 1386
          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 1387
          result.setSuccessIsSet(true);
420 ashish 1388
        } catch (PaymentException pe) {
1389
          result.pe = pe;
1390
        }
3430 rajveer 1391
        return result;
420 ashish 1392
      }
1393
    }
1394
 
3430 rajveer 1395
    private static class getSuccessfulPaymentsAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentsAmountRange_args> {
1396
      public getSuccessfulPaymentsAmountRange() {
1397
        super("getSuccessfulPaymentsAmountRange");
1398
      }
1399
 
1400
      protected getSuccessfulPaymentsAmountRange_args getEmptyArgsInstance() {
1401
        return new getSuccessfulPaymentsAmountRange_args();
1402
      }
1403
 
1404
      protected getSuccessfulPaymentsAmountRange_result getResult(I iface, getSuccessfulPaymentsAmountRange_args args) throws org.apache.thrift.TException {
1731 ankur.sing 1405
        getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 1406
        result.success = iface.getSuccessfulPaymentsAmountRange();
1407
        return result;
1629 ankur.sing 1408
      }
1409
    }
1410
 
3430 rajveer 1411
    private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
1412
      public initializeHdfcPayment() {
1413
        super("initializeHdfcPayment");
1414
      }
1415
 
1416
      protected initializeHdfcPayment_args getEmptyArgsInstance() {
1417
        return new initializeHdfcPayment_args();
1418
      }
1419
 
1420
      protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
2462 chandransh 1421
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
1422
        try {
3430 rajveer 1423
          result.success = iface.initializeHdfcPayment(args.merchantPaymentId);
2462 chandransh 1424
        } catch (PaymentException pe) {
1425
          result.pe = pe;
1426
        }
3430 rajveer 1427
        return result;
2462 chandransh 1428
      }
1429
    }
1430
 
3616 chandransh 1431
    private static class initializeHdfcEmiPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcEmiPayment_args> {
1432
      public initializeHdfcEmiPayment() {
1433
        super("initializeHdfcEmiPayment");
1434
      }
1435
 
1436
      protected initializeHdfcEmiPayment_args getEmptyArgsInstance() {
1437
        return new initializeHdfcEmiPayment_args();
1438
      }
1439
 
1440
      protected initializeHdfcEmiPayment_result getResult(I iface, initializeHdfcEmiPayment_args args) throws org.apache.thrift.TException {
1441
        initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
1442
        try {
1443
          result.success = iface.initializeHdfcEmiPayment(args.merchantPaymentId);
1444
        } catch (PaymentException pe) {
1445
          result.pe = pe;
1446
        }
1447
        return result;
1448
      }
1449
    }
1450
 
3430 rajveer 1451
    private static class createRefund<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRefund_args> {
1452
      public createRefund() {
1453
        super("createRefund");
1454
      }
1455
 
1456
      protected createRefund_args getEmptyArgsInstance() {
1457
        return new createRefund_args();
1458
      }
1459
 
1460
      protected createRefund_result getResult(I iface, createRefund_args args) throws org.apache.thrift.TException {
2690 chandransh 1461
        createRefund_result result = new createRefund_result();
1462
        try {
3430 rajveer 1463
          result.success = iface.createRefund(args.orderId, args.merchantTxnId, args.amount);
2690 chandransh 1464
          result.setSuccessIsSet(true);
1465
        } catch (PaymentException pe) {
1466
          result.pe = pe;
1467
        }
3430 rajveer 1468
        return result;
2690 chandransh 1469
      }
1470
    }
1471
 
3430 rajveer 1472
    private static class capturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, capturePayment_args> {
1473
      public capturePayment() {
1474
        super("capturePayment");
1475
      }
1476
 
1477
      protected capturePayment_args getEmptyArgsInstance() {
1478
        return new capturePayment_args();
1479
      }
1480
 
1481
      protected capturePayment_result getResult(I iface, capturePayment_args args) throws org.apache.thrift.TException {
3010 chandransh 1482
        capturePayment_result result = new capturePayment_result();
1483
        try {
3430 rajveer 1484
          result.success = iface.capturePayment(args.merchantTxnId);
3010 chandransh 1485
          result.setSuccessIsSet(true);
1486
        } catch (PaymentException pe) {
1487
          result.pe = pe;
1488
        }
3430 rajveer 1489
        return result;
3010 chandransh 1490
      }
1491
    }
1492
 
3956 chandransh 1493
    private static class partiallyCapturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, partiallyCapturePayment_args> {
1494
      public partiallyCapturePayment() {
1495
        super("partiallyCapturePayment");
1496
      }
1497
 
1498
      protected partiallyCapturePayment_args getEmptyArgsInstance() {
1499
        return new partiallyCapturePayment_args();
1500
      }
1501
 
1502
      protected partiallyCapturePayment_result getResult(I iface, partiallyCapturePayment_args args) throws org.apache.thrift.TException {
1503
        partiallyCapturePayment_result result = new partiallyCapturePayment_result();
1504
        try {
1505
          result.success = iface.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate);
1506
          result.setSuccessIsSet(true);
1507
        } catch (PaymentException pe) {
1508
          result.pe = pe;
1509
        }
1510
        return result;
1511
      }
1512
    }
1513
 
4008 mandeep.dh 1514
    private static class getPaymentsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsRequiringExtraProcessing_args> {
1515
      public getPaymentsRequiringExtraProcessing() {
1516
        super("getPaymentsRequiringExtraProcessing");
1517
      }
1518
 
1519
      protected getPaymentsRequiringExtraProcessing_args getEmptyArgsInstance() {
1520
        return new getPaymentsRequiringExtraProcessing_args();
1521
      }
1522
 
1523
      protected getPaymentsRequiringExtraProcessing_result getResult(I iface, getPaymentsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {
1524
        getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
1525
        result.success = iface.getPaymentsRequiringExtraProcessing(args.category);
1526
        return result;
1527
      }
1528
    }
1529
 
1530
    private static class markPaymentAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markPaymentAsProcessed_args> {
1531
      public markPaymentAsProcessed() {
1532
        super("markPaymentAsProcessed");
1533
      }
1534
 
1535
      protected markPaymentAsProcessed_args getEmptyArgsInstance() {
1536
        return new markPaymentAsProcessed_args();
1537
      }
1538
 
1539
      protected markPaymentAsProcessed_result getResult(I iface, markPaymentAsProcessed_args args) throws org.apache.thrift.TException {
1540
        markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
1541
        iface.markPaymentAsProcessed(args.paymentId, args.category);
1542
        return result;
1543
      }
1544
    }
1545
 
123 ashish 1546
  }
1547
 
3430 rajveer 1548
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
1549
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
123 ashish 1550
 
3430 rajveer 1551
    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);
1552
    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);
1553
    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);
1554
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)4);
123 ashish 1555
 
3430 rajveer 1556
    private long userId; // required
1557
    private double amount; // required
1558
    private long gatewayId; // required
1559
    private long txnId; // required
123 ashish 1560
 
1561
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1562
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 1563
      USER_ID((short)1, "userId"),
1564
      AMOUNT((short)2, "amount"),
1565
      GATEWAY_ID((short)3, "gatewayId"),
1566
      TXN_ID((short)4, "txnId");
123 ashish 1567
 
1568
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1569
 
1570
      static {
1571
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1572
          byName.put(field.getFieldName(), field);
1573
        }
1574
      }
1575
 
1576
      /**
1577
       * Find the _Fields constant that matches fieldId, or null if its not found.
1578
       */
1579
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1580
        switch(fieldId) {
1581
          case 1: // USER_ID
1582
            return USER_ID;
1583
          case 2: // AMOUNT
1584
            return AMOUNT;
1585
          case 3: // GATEWAY_ID
1586
            return GATEWAY_ID;
1587
          case 4: // TXN_ID
1588
            return TXN_ID;
1589
          default:
1590
            return null;
1591
        }
123 ashish 1592
      }
1593
 
1594
      /**
1595
       * Find the _Fields constant that matches fieldId, throwing an exception
1596
       * if it is not found.
1597
       */
1598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1599
        _Fields fields = findByThriftId(fieldId);
1600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1601
        return fields;
1602
      }
1603
 
1604
      /**
1605
       * Find the _Fields constant that matches name, or null if its not found.
1606
       */
1607
      public static _Fields findByName(String name) {
1608
        return byName.get(name);
1609
      }
1610
 
1611
      private final short _thriftId;
1612
      private final String _fieldName;
1613
 
1614
      _Fields(short thriftId, String fieldName) {
1615
        _thriftId = thriftId;
1616
        _fieldName = fieldName;
1617
      }
1618
 
1619
      public short getThriftFieldId() {
1620
        return _thriftId;
1621
      }
1622
 
1623
      public String getFieldName() {
1624
        return _fieldName;
1625
      }
1626
    }
1627
 
1628
    // isset id assignments
695 rajveer 1629
    private static final int __USERID_ISSET_ID = 0;
1630
    private static final int __AMOUNT_ISSET_ID = 1;
1631
    private static final int __GATEWAYID_ISSET_ID = 2;
1632
    private static final int __TXNID_ISSET_ID = 3;
420 ashish 1633
    private BitSet __isset_bit_vector = new BitSet(4);
123 ashish 1634
 
3430 rajveer 1635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 1636
    static {
3430 rajveer 1637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1638
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1640
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1641
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
1642
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1643
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1644
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1645
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
1646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
123 ashish 1648
    }
1649
 
1650
    public createPayment_args() {
1651
    }
1652
 
1653
    public createPayment_args(
695 rajveer 1654
      long userId,
123 ashish 1655
      double amount,
695 rajveer 1656
      long gatewayId,
1657
      long txnId)
123 ashish 1658
    {
1659
      this();
695 rajveer 1660
      this.userId = userId;
1661
      setUserIdIsSet(true);
123 ashish 1662
      this.amount = amount;
1663
      setAmountIsSet(true);
695 rajveer 1664
      this.gatewayId = gatewayId;
1665
      setGatewayIdIsSet(true);
1666
      this.txnId = txnId;
1667
      setTxnIdIsSet(true);
123 ashish 1668
    }
1669
 
1670
    /**
1671
     * Performs a deep copy on <i>other</i>.
1672
     */
1673
    public createPayment_args(createPayment_args other) {
1674
      __isset_bit_vector.clear();
1675
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 1676
      this.userId = other.userId;
123 ashish 1677
      this.amount = other.amount;
695 rajveer 1678
      this.gatewayId = other.gatewayId;
1679
      this.txnId = other.txnId;
123 ashish 1680
    }
1681
 
1682
    public createPayment_args deepCopy() {
1683
      return new createPayment_args(this);
1684
    }
1685
 
3430 rajveer 1686
    @Override
1687
    public void clear() {
1688
      setUserIdIsSet(false);
1689
      this.userId = 0;
1690
      setAmountIsSet(false);
1691
      this.amount = 0.0;
1692
      setGatewayIdIsSet(false);
1693
      this.gatewayId = 0;
1694
      setTxnIdIsSet(false);
1695
      this.txnId = 0;
123 ashish 1696
    }
1697
 
695 rajveer 1698
    public long getUserId() {
1699
      return this.userId;
123 ashish 1700
    }
1701
 
3430 rajveer 1702
    public void setUserId(long userId) {
695 rajveer 1703
      this.userId = userId;
1704
      setUserIdIsSet(true);
123 ashish 1705
    }
1706
 
695 rajveer 1707
    public void unsetUserId() {
1708
      __isset_bit_vector.clear(__USERID_ISSET_ID);
123 ashish 1709
    }
1710
 
3430 rajveer 1711
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
695 rajveer 1712
    public boolean isSetUserId() {
1713
      return __isset_bit_vector.get(__USERID_ISSET_ID);
123 ashish 1714
    }
1715
 
695 rajveer 1716
    public void setUserIdIsSet(boolean value) {
1717
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
123 ashish 1718
    }
1719
 
1720
    public double getAmount() {
1721
      return this.amount;
1722
    }
1723
 
3430 rajveer 1724
    public void setAmount(double amount) {
123 ashish 1725
      this.amount = amount;
1726
      setAmountIsSet(true);
1727
    }
1728
 
1729
    public void unsetAmount() {
1730
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
1731
    }
1732
 
3430 rajveer 1733
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
123 ashish 1734
    public boolean isSetAmount() {
1735
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
1736
    }
1737
 
1738
    public void setAmountIsSet(boolean value) {
1739
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
1740
    }
1741
 
695 rajveer 1742
    public long getGatewayId() {
1743
      return this.gatewayId;
123 ashish 1744
    }
1745
 
3430 rajveer 1746
    public void setGatewayId(long gatewayId) {
695 rajveer 1747
      this.gatewayId = gatewayId;
1748
      setGatewayIdIsSet(true);
123 ashish 1749
    }
1750
 
695 rajveer 1751
    public void unsetGatewayId() {
1752
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 1753
    }
1754
 
3430 rajveer 1755
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 1756
    public boolean isSetGatewayId() {
1757
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 1758
    }
1759
 
695 rajveer 1760
    public void setGatewayIdIsSet(boolean value) {
1761
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 1762
    }
1763
 
695 rajveer 1764
    public long getTxnId() {
1765
      return this.txnId;
1766
    }
1767
 
3430 rajveer 1768
    public void setTxnId(long txnId) {
695 rajveer 1769
      this.txnId = txnId;
1770
      setTxnIdIsSet(true);
1771
    }
1772
 
1773
    public void unsetTxnId() {
1774
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
1775
    }
1776
 
3430 rajveer 1777
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 1778
    public boolean isSetTxnId() {
1779
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
1780
    }
1781
 
1782
    public void setTxnIdIsSet(boolean value) {
1783
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
1784
    }
1785
 
123 ashish 1786
    public void setFieldValue(_Fields field, Object value) {
1787
      switch (field) {
1788
      case USER_ID:
1789
        if (value == null) {
695 rajveer 1790
          unsetUserId();
123 ashish 1791
        } else {
695 rajveer 1792
          setUserId((Long)value);
123 ashish 1793
        }
1794
        break;
1795
 
695 rajveer 1796
      case AMOUNT:
123 ashish 1797
        if (value == null) {
695 rajveer 1798
          unsetAmount();
123 ashish 1799
        } else {
695 rajveer 1800
          setAmount((Double)value);
123 ashish 1801
        }
1802
        break;
1803
 
695 rajveer 1804
      case GATEWAY_ID:
123 ashish 1805
        if (value == null) {
695 rajveer 1806
          unsetGatewayId();
123 ashish 1807
        } else {
695 rajveer 1808
          setGatewayId((Long)value);
123 ashish 1809
        }
1810
        break;
1811
 
695 rajveer 1812
      case TXN_ID:
123 ashish 1813
        if (value == null) {
695 rajveer 1814
          unsetTxnId();
123 ashish 1815
        } else {
695 rajveer 1816
          setTxnId((Long)value);
123 ashish 1817
        }
1818
        break;
1819
 
1820
      }
1821
    }
1822
 
1823
    public Object getFieldValue(_Fields field) {
1824
      switch (field) {
1825
      case USER_ID:
3430 rajveer 1826
        return Long.valueOf(getUserId());
123 ashish 1827
 
1828
      case AMOUNT:
3430 rajveer 1829
        return Double.valueOf(getAmount());
123 ashish 1830
 
420 ashish 1831
      case GATEWAY_ID:
3430 rajveer 1832
        return Long.valueOf(getGatewayId());
123 ashish 1833
 
695 rajveer 1834
      case TXN_ID:
3430 rajveer 1835
        return Long.valueOf(getTxnId());
695 rajveer 1836
 
123 ashish 1837
      }
1838
      throw new IllegalStateException();
1839
    }
1840
 
3430 rajveer 1841
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1842
    public boolean isSet(_Fields field) {
1843
      if (field == null) {
1844
        throw new IllegalArgumentException();
1845
      }
123 ashish 1846
 
1847
      switch (field) {
1848
      case USER_ID:
695 rajveer 1849
        return isSetUserId();
123 ashish 1850
      case AMOUNT:
1851
        return isSetAmount();
420 ashish 1852
      case GATEWAY_ID:
695 rajveer 1853
        return isSetGatewayId();
1854
      case TXN_ID:
1855
        return isSetTxnId();
123 ashish 1856
      }
1857
      throw new IllegalStateException();
1858
    }
1859
 
1860
    @Override
1861
    public boolean equals(Object that) {
1862
      if (that == null)
1863
        return false;
1864
      if (that instanceof createPayment_args)
1865
        return this.equals((createPayment_args)that);
1866
      return false;
1867
    }
1868
 
1869
    public boolean equals(createPayment_args that) {
1870
      if (that == null)
1871
        return false;
1872
 
695 rajveer 1873
      boolean this_present_userId = true;
1874
      boolean that_present_userId = true;
1875
      if (this_present_userId || that_present_userId) {
1876
        if (!(this_present_userId && that_present_userId))
123 ashish 1877
          return false;
695 rajveer 1878
        if (this.userId != that.userId)
123 ashish 1879
          return false;
1880
      }
1881
 
1882
      boolean this_present_amount = true;
1883
      boolean that_present_amount = true;
1884
      if (this_present_amount || that_present_amount) {
1885
        if (!(this_present_amount && that_present_amount))
1886
          return false;
1887
        if (this.amount != that.amount)
1888
          return false;
1889
      }
1890
 
695 rajveer 1891
      boolean this_present_gatewayId = true;
1892
      boolean that_present_gatewayId = true;
1893
      if (this_present_gatewayId || that_present_gatewayId) {
1894
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 1895
          return false;
695 rajveer 1896
        if (this.gatewayId != that.gatewayId)
123 ashish 1897
          return false;
1898
      }
1899
 
695 rajveer 1900
      boolean this_present_txnId = true;
1901
      boolean that_present_txnId = true;
1902
      if (this_present_txnId || that_present_txnId) {
1903
        if (!(this_present_txnId && that_present_txnId))
1904
          return false;
1905
        if (this.txnId != that.txnId)
1906
          return false;
1907
      }
1908
 
123 ashish 1909
      return true;
1910
    }
1911
 
1912
    @Override
1913
    public int hashCode() {
1914
      return 0;
1915
    }
1916
 
1917
    public int compareTo(createPayment_args other) {
1918
      if (!getClass().equals(other.getClass())) {
1919
        return getClass().getName().compareTo(other.getClass().getName());
1920
      }
1921
 
1922
      int lastComparison = 0;
1923
      createPayment_args typedOther = (createPayment_args)other;
1924
 
3430 rajveer 1925
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 1926
      if (lastComparison != 0) {
1927
        return lastComparison;
1928
      }
3430 rajveer 1929
      if (isSetUserId()) {
1930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
1931
        if (lastComparison != 0) {
1932
          return lastComparison;
1933
        }
123 ashish 1934
      }
3430 rajveer 1935
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
123 ashish 1936
      if (lastComparison != 0) {
1937
        return lastComparison;
1938
      }
3430 rajveer 1939
      if (isSetAmount()) {
1940
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
1941
        if (lastComparison != 0) {
1942
          return lastComparison;
1943
        }
123 ashish 1944
      }
3430 rajveer 1945
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 1946
      if (lastComparison != 0) {
1947
        return lastComparison;
1948
      }
3430 rajveer 1949
      if (isSetGatewayId()) {
1950
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
1951
        if (lastComparison != 0) {
1952
          return lastComparison;
1953
        }
123 ashish 1954
      }
3430 rajveer 1955
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
123 ashish 1956
      if (lastComparison != 0) {
1957
        return lastComparison;
1958
      }
3430 rajveer 1959
      if (isSetTxnId()) {
1960
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
1961
        if (lastComparison != 0) {
1962
          return lastComparison;
1963
        }
123 ashish 1964
      }
1965
      return 0;
1966
    }
1967
 
3430 rajveer 1968
    public _Fields fieldForId(int fieldId) {
1969
      return _Fields.findByThriftId(fieldId);
1970
    }
1971
 
1972
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1973
      org.apache.thrift.protocol.TField field;
123 ashish 1974
      iprot.readStructBegin();
1975
      while (true)
1976
      {
1977
        field = iprot.readFieldBegin();
3430 rajveer 1978
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 1979
          break;
1980
        }
3430 rajveer 1981
        switch (field.id) {
1982
          case 1: // USER_ID
1983
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1984
              this.userId = iprot.readI64();
1985
              setUserIdIsSet(true);
1986
            } else { 
1987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1988
            }
1989
            break;
1990
          case 2: // AMOUNT
1991
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
1992
              this.amount = iprot.readDouble();
1993
              setAmountIsSet(true);
1994
            } else { 
1995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1996
            }
1997
            break;
1998
          case 3: // GATEWAY_ID
1999
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2000
              this.gatewayId = iprot.readI64();
2001
              setGatewayIdIsSet(true);
2002
            } else { 
2003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2004
            }
2005
            break;
2006
          case 4: // TXN_ID
2007
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2008
              this.txnId = iprot.readI64();
2009
              setTxnIdIsSet(true);
2010
            } else { 
2011
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2012
            }
2013
            break;
2014
          default:
2015
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 2016
        }
3430 rajveer 2017
        iprot.readFieldEnd();
123 ashish 2018
      }
2019
      iprot.readStructEnd();
2020
      validate();
2021
    }
2022
 
3430 rajveer 2023
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 2024
      validate();
2025
 
2026
      oprot.writeStructBegin(STRUCT_DESC);
2027
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
695 rajveer 2028
      oprot.writeI64(this.userId);
123 ashish 2029
      oprot.writeFieldEnd();
2030
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
2031
      oprot.writeDouble(this.amount);
2032
      oprot.writeFieldEnd();
420 ashish 2033
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 2034
      oprot.writeI64(this.gatewayId);
420 ashish 2035
      oprot.writeFieldEnd();
695 rajveer 2036
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
2037
      oprot.writeI64(this.txnId);
2038
      oprot.writeFieldEnd();
123 ashish 2039
      oprot.writeFieldStop();
2040
      oprot.writeStructEnd();
2041
    }
2042
 
2043
    @Override
2044
    public String toString() {
2045
      StringBuilder sb = new StringBuilder("createPayment_args(");
2046
      boolean first = true;
2047
 
695 rajveer 2048
      sb.append("userId:");
2049
      sb.append(this.userId);
123 ashish 2050
      first = false;
2051
      if (!first) sb.append(", ");
2052
      sb.append("amount:");
2053
      sb.append(this.amount);
2054
      first = false;
2055
      if (!first) sb.append(", ");
695 rajveer 2056
      sb.append("gatewayId:");
2057
      sb.append(this.gatewayId);
123 ashish 2058
      first = false;
695 rajveer 2059
      if (!first) sb.append(", ");
2060
      sb.append("txnId:");
2061
      sb.append(this.txnId);
2062
      first = false;
123 ashish 2063
      sb.append(")");
2064
      return sb.toString();
2065
    }
2066
 
3430 rajveer 2067
    public void validate() throws org.apache.thrift.TException {
123 ashish 2068
      // check for required fields
2069
    }
2070
 
3430 rajveer 2071
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2072
      try {
2073
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2074
      } catch (org.apache.thrift.TException te) {
2075
        throw new java.io.IOException(te);
2076
      }
2077
    }
2078
 
2079
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2080
      try {
2081
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2082
      } catch (org.apache.thrift.TException te) {
2083
        throw new java.io.IOException(te);
2084
      }
2085
    }
2086
 
123 ashish 2087
  }
2088
 
3430 rajveer 2089
  public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable   {
2090
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
123 ashish 2091
 
3430 rajveer 2092
    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);
2093
    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 2094
 
3430 rajveer 2095
    private long success; // required
2096
    private PaymentException pe; // required
123 ashish 2097
 
2098
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2099
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 2100
      SUCCESS((short)0, "success"),
2101
      PE((short)1, "pe");
2102
 
2103
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2104
 
2105
      static {
2106
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2107
          byName.put(field.getFieldName(), field);
2108
        }
2109
      }
2110
 
2111
      /**
2112
       * Find the _Fields constant that matches fieldId, or null if its not found.
2113
       */
2114
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2115
        switch(fieldId) {
2116
          case 0: // SUCCESS
2117
            return SUCCESS;
2118
          case 1: // PE
2119
            return PE;
2120
          default:
2121
            return null;
2122
        }
123 ashish 2123
      }
2124
 
2125
      /**
2126
       * Find the _Fields constant that matches fieldId, throwing an exception
2127
       * if it is not found.
2128
       */
2129
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2130
        _Fields fields = findByThriftId(fieldId);
2131
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2132
        return fields;
2133
      }
2134
 
2135
      /**
2136
       * Find the _Fields constant that matches name, or null if its not found.
2137
       */
2138
      public static _Fields findByName(String name) {
2139
        return byName.get(name);
2140
      }
2141
 
2142
      private final short _thriftId;
2143
      private final String _fieldName;
2144
 
2145
      _Fields(short thriftId, String fieldName) {
2146
        _thriftId = thriftId;
2147
        _fieldName = fieldName;
2148
      }
2149
 
2150
      public short getThriftFieldId() {
2151
        return _thriftId;
2152
      }
2153
 
2154
      public String getFieldName() {
2155
        return _fieldName;
2156
      }
2157
    }
2158
 
2159
    // isset id assignments
420 ashish 2160
    private static final int __SUCCESS_ISSET_ID = 0;
2161
    private BitSet __isset_bit_vector = new BitSet(1);
123 ashish 2162
 
3430 rajveer 2163
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2164
    static {
3430 rajveer 2165
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2166
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2167
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2168
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2169
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2170
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2171
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
123 ashish 2172
    }
2173
 
2174
    public createPayment_result() {
2175
    }
2176
 
2177
    public createPayment_result(
420 ashish 2178
      long success,
123 ashish 2179
      PaymentException pe)
2180
    {
2181
      this();
2182
      this.success = success;
420 ashish 2183
      setSuccessIsSet(true);
123 ashish 2184
      this.pe = pe;
2185
    }
2186
 
2187
    /**
2188
     * Performs a deep copy on <i>other</i>.
2189
     */
2190
    public createPayment_result(createPayment_result other) {
420 ashish 2191
      __isset_bit_vector.clear();
2192
      __isset_bit_vector.or(other.__isset_bit_vector);
2193
      this.success = other.success;
123 ashish 2194
      if (other.isSetPe()) {
2195
        this.pe = new PaymentException(other.pe);
2196
      }
2197
    }
2198
 
2199
    public createPayment_result deepCopy() {
2200
      return new createPayment_result(this);
2201
    }
2202
 
3430 rajveer 2203
    @Override
2204
    public void clear() {
2205
      setSuccessIsSet(false);
2206
      this.success = 0;
2207
      this.pe = null;
123 ashish 2208
    }
2209
 
420 ashish 2210
    public long getSuccess() {
123 ashish 2211
      return this.success;
2212
    }
2213
 
3430 rajveer 2214
    public void setSuccess(long success) {
123 ashish 2215
      this.success = success;
420 ashish 2216
      setSuccessIsSet(true);
123 ashish 2217
    }
2218
 
2219
    public void unsetSuccess() {
420 ashish 2220
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
123 ashish 2221
    }
2222
 
3430 rajveer 2223
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 2224
    public boolean isSetSuccess() {
420 ashish 2225
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
123 ashish 2226
    }
2227
 
2228
    public void setSuccessIsSet(boolean value) {
420 ashish 2229
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
123 ashish 2230
    }
2231
 
2232
    public PaymentException getPe() {
2233
      return this.pe;
2234
    }
2235
 
3430 rajveer 2236
    public void setPe(PaymentException pe) {
123 ashish 2237
      this.pe = pe;
2238
    }
2239
 
2240
    public void unsetPe() {
2241
      this.pe = null;
2242
    }
2243
 
3430 rajveer 2244
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 2245
    public boolean isSetPe() {
2246
      return this.pe != null;
2247
    }
2248
 
2249
    public void setPeIsSet(boolean value) {
2250
      if (!value) {
2251
        this.pe = null;
2252
      }
2253
    }
2254
 
2255
    public void setFieldValue(_Fields field, Object value) {
2256
      switch (field) {
2257
      case SUCCESS:
2258
        if (value == null) {
2259
          unsetSuccess();
2260
        } else {
420 ashish 2261
          setSuccess((Long)value);
123 ashish 2262
        }
2263
        break;
2264
 
2265
      case PE:
2266
        if (value == null) {
2267
          unsetPe();
2268
        } else {
2269
          setPe((PaymentException)value);
2270
        }
2271
        break;
2272
 
2273
      }
2274
    }
2275
 
2276
    public Object getFieldValue(_Fields field) {
2277
      switch (field) {
2278
      case SUCCESS:
3430 rajveer 2279
        return Long.valueOf(getSuccess());
123 ashish 2280
 
2281
      case PE:
2282
        return getPe();
2283
 
2284
      }
2285
      throw new IllegalStateException();
2286
    }
2287
 
3430 rajveer 2288
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2289
    public boolean isSet(_Fields field) {
2290
      if (field == null) {
2291
        throw new IllegalArgumentException();
2292
      }
123 ashish 2293
 
2294
      switch (field) {
2295
      case SUCCESS:
2296
        return isSetSuccess();
2297
      case PE:
2298
        return isSetPe();
2299
      }
2300
      throw new IllegalStateException();
2301
    }
2302
 
2303
    @Override
2304
    public boolean equals(Object that) {
2305
      if (that == null)
2306
        return false;
2307
      if (that instanceof createPayment_result)
2308
        return this.equals((createPayment_result)that);
2309
      return false;
2310
    }
2311
 
2312
    public boolean equals(createPayment_result that) {
2313
      if (that == null)
2314
        return false;
2315
 
420 ashish 2316
      boolean this_present_success = true;
2317
      boolean that_present_success = true;
123 ashish 2318
      if (this_present_success || that_present_success) {
2319
        if (!(this_present_success && that_present_success))
2320
          return false;
420 ashish 2321
        if (this.success != that.success)
123 ashish 2322
          return false;
2323
      }
2324
 
2325
      boolean this_present_pe = true && this.isSetPe();
2326
      boolean that_present_pe = true && that.isSetPe();
2327
      if (this_present_pe || that_present_pe) {
2328
        if (!(this_present_pe && that_present_pe))
2329
          return false;
2330
        if (!this.pe.equals(that.pe))
2331
          return false;
2332
      }
2333
 
2334
      return true;
2335
    }
2336
 
2337
    @Override
2338
    public int hashCode() {
2339
      return 0;
2340
    }
2341
 
420 ashish 2342
    public int compareTo(createPayment_result other) {
2343
      if (!getClass().equals(other.getClass())) {
2344
        return getClass().getName().compareTo(other.getClass().getName());
2345
      }
2346
 
2347
      int lastComparison = 0;
2348
      createPayment_result typedOther = (createPayment_result)other;
2349
 
3430 rajveer 2350
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 2351
      if (lastComparison != 0) {
2352
        return lastComparison;
2353
      }
3430 rajveer 2354
      if (isSetSuccess()) {
2355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2356
        if (lastComparison != 0) {
2357
          return lastComparison;
2358
        }
420 ashish 2359
      }
3430 rajveer 2360
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 2361
      if (lastComparison != 0) {
2362
        return lastComparison;
2363
      }
3430 rajveer 2364
      if (isSetPe()) {
2365
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
2366
        if (lastComparison != 0) {
2367
          return lastComparison;
2368
        }
420 ashish 2369
      }
2370
      return 0;
2371
    }
2372
 
3430 rajveer 2373
    public _Fields fieldForId(int fieldId) {
2374
      return _Fields.findByThriftId(fieldId);
2375
    }
2376
 
2377
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2378
      org.apache.thrift.protocol.TField field;
123 ashish 2379
      iprot.readStructBegin();
2380
      while (true)
2381
      {
2382
        field = iprot.readFieldBegin();
3430 rajveer 2383
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 2384
          break;
2385
        }
3430 rajveer 2386
        switch (field.id) {
2387
          case 0: // SUCCESS
2388
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2389
              this.success = iprot.readI64();
2390
              setSuccessIsSet(true);
2391
            } else { 
2392
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2393
            }
2394
            break;
2395
          case 1: // PE
2396
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2397
              this.pe = new PaymentException();
2398
              this.pe.read(iprot);
2399
            } else { 
2400
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2401
            }
2402
            break;
2403
          default:
2404
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 2405
        }
3430 rajveer 2406
        iprot.readFieldEnd();
123 ashish 2407
      }
2408
      iprot.readStructEnd();
2409
      validate();
2410
    }
2411
 
3430 rajveer 2412
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 2413
      oprot.writeStructBegin(STRUCT_DESC);
2414
 
2415
      if (this.isSetSuccess()) {
2416
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 2417
        oprot.writeI64(this.success);
123 ashish 2418
        oprot.writeFieldEnd();
2419
      } else if (this.isSetPe()) {
2420
        oprot.writeFieldBegin(PE_FIELD_DESC);
2421
        this.pe.write(oprot);
2422
        oprot.writeFieldEnd();
2423
      }
2424
      oprot.writeFieldStop();
2425
      oprot.writeStructEnd();
2426
    }
2427
 
2428
    @Override
2429
    public String toString() {
2430
      StringBuilder sb = new StringBuilder("createPayment_result(");
2431
      boolean first = true;
2432
 
2433
      sb.append("success:");
420 ashish 2434
      sb.append(this.success);
123 ashish 2435
      first = false;
2436
      if (!first) sb.append(", ");
2437
      sb.append("pe:");
2438
      if (this.pe == null) {
2439
        sb.append("null");
2440
      } else {
2441
        sb.append(this.pe);
2442
      }
2443
      first = false;
2444
      sb.append(")");
2445
      return sb.toString();
2446
    }
2447
 
3430 rajveer 2448
    public void validate() throws org.apache.thrift.TException {
123 ashish 2449
      // check for required fields
2450
    }
2451
 
3430 rajveer 2452
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2453
      try {
2454
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2455
      } catch (org.apache.thrift.TException te) {
2456
        throw new java.io.IOException(te);
2457
      }
2458
    }
2459
 
2460
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2461
      try {
2462
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2463
      } catch (org.apache.thrift.TException te) {
2464
        throw new java.io.IOException(te);
2465
      }
2466
    }
2467
 
123 ashish 2468
  }
2469
 
3430 rajveer 2470
  public static class getPaymentsForUser_args implements org.apache.thrift.TBase<getPaymentsForUser_args, getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable   {
2471
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_args");
123 ashish 2472
 
3430 rajveer 2473
    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);
2474
    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);
2475
    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);
2476
    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);
2477
    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 2478
 
3430 rajveer 2479
    private long userId; // required
2480
    private long fromTime; // required
2481
    private long toTime; // required
2482
    private PaymentStatus status; // required
2483
    private long gatewayId; // required
123 ashish 2484
 
2485
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2486
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 2487
      USER_ID((short)1, "userId"),
695 rajveer 2488
      FROM_TIME((short)2, "fromTime"),
2489
      TO_TIME((short)3, "toTime"),
123 ashish 2490
      /**
2491
       * 
2492
       * @see PaymentStatus
2493
       */
2494
      STATUS((short)4, "status"),
695 rajveer 2495
      GATEWAY_ID((short)5, "gatewayId");
123 ashish 2496
 
2497
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2498
 
2499
      static {
2500
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2501
          byName.put(field.getFieldName(), field);
2502
        }
2503
      }
2504
 
2505
      /**
2506
       * Find the _Fields constant that matches fieldId, or null if its not found.
2507
       */
2508
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2509
        switch(fieldId) {
2510
          case 1: // USER_ID
2511
            return USER_ID;
2512
          case 2: // FROM_TIME
2513
            return FROM_TIME;
2514
          case 3: // TO_TIME
2515
            return TO_TIME;
2516
          case 4: // STATUS
2517
            return STATUS;
2518
          case 5: // GATEWAY_ID
2519
            return GATEWAY_ID;
2520
          default:
2521
            return null;
2522
        }
123 ashish 2523
      }
2524
 
2525
      /**
2526
       * Find the _Fields constant that matches fieldId, throwing an exception
2527
       * if it is not found.
2528
       */
2529
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2530
        _Fields fields = findByThriftId(fieldId);
2531
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2532
        return fields;
2533
      }
2534
 
2535
      /**
2536
       * Find the _Fields constant that matches name, or null if its not found.
2537
       */
2538
      public static _Fields findByName(String name) {
2539
        return byName.get(name);
2540
      }
2541
 
2542
      private final short _thriftId;
2543
      private final String _fieldName;
2544
 
2545
      _Fields(short thriftId, String fieldName) {
2546
        _thriftId = thriftId;
2547
        _fieldName = fieldName;
2548
      }
2549
 
2550
      public short getThriftFieldId() {
2551
        return _thriftId;
2552
      }
2553
 
2554
      public String getFieldName() {
2555
        return _fieldName;
2556
      }
2557
    }
2558
 
2559
    // isset id assignments
2560
    private static final int __USERID_ISSET_ID = 0;
695 rajveer 2561
    private static final int __FROMTIME_ISSET_ID = 1;
2562
    private static final int __TOTIME_ISSET_ID = 2;
2563
    private static final int __GATEWAYID_ISSET_ID = 3;
420 ashish 2564
    private BitSet __isset_bit_vector = new BitSet(4);
123 ashish 2565
 
3430 rajveer 2566
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 2567
    static {
3430 rajveer 2568
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2569
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2570
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2571
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2572
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2573
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2574
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2575
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2576
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
2577
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2578
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2579
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2580
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
123 ashish 2581
    }
2582
 
2583
    public getPaymentsForUser_args() {
2584
    }
2585
 
2586
    public getPaymentsForUser_args(
2587
      long userId,
695 rajveer 2588
      long fromTime,
2589
      long toTime,
123 ashish 2590
      PaymentStatus status,
695 rajveer 2591
      long gatewayId)
123 ashish 2592
    {
2593
      this();
2594
      this.userId = userId;
2595
      setUserIdIsSet(true);
695 rajveer 2596
      this.fromTime = fromTime;
2597
      setFromTimeIsSet(true);
2598
      this.toTime = toTime;
2599
      setToTimeIsSet(true);
123 ashish 2600
      this.status = status;
695 rajveer 2601
      this.gatewayId = gatewayId;
2602
      setGatewayIdIsSet(true);
123 ashish 2603
    }
2604
 
2605
    /**
2606
     * Performs a deep copy on <i>other</i>.
2607
     */
2608
    public getPaymentsForUser_args(getPaymentsForUser_args other) {
2609
      __isset_bit_vector.clear();
2610
      __isset_bit_vector.or(other.__isset_bit_vector);
2611
      this.userId = other.userId;
695 rajveer 2612
      this.fromTime = other.fromTime;
2613
      this.toTime = other.toTime;
123 ashish 2614
      if (other.isSetStatus()) {
2615
        this.status = other.status;
2616
      }
695 rajveer 2617
      this.gatewayId = other.gatewayId;
123 ashish 2618
    }
2619
 
2620
    public getPaymentsForUser_args deepCopy() {
2621
      return new getPaymentsForUser_args(this);
2622
    }
2623
 
3430 rajveer 2624
    @Override
2625
    public void clear() {
2626
      setUserIdIsSet(false);
2627
      this.userId = 0;
2628
      setFromTimeIsSet(false);
2629
      this.fromTime = 0;
2630
      setToTimeIsSet(false);
2631
      this.toTime = 0;
2632
      this.status = null;
2633
      setGatewayIdIsSet(false);
2634
      this.gatewayId = 0;
123 ashish 2635
    }
2636
 
2637
    public long getUserId() {
2638
      return this.userId;
2639
    }
2640
 
3430 rajveer 2641
    public void setUserId(long userId) {
123 ashish 2642
      this.userId = userId;
2643
      setUserIdIsSet(true);
2644
    }
2645
 
2646
    public void unsetUserId() {
2647
      __isset_bit_vector.clear(__USERID_ISSET_ID);
2648
    }
2649
 
3430 rajveer 2650
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
123 ashish 2651
    public boolean isSetUserId() {
2652
      return __isset_bit_vector.get(__USERID_ISSET_ID);
2653
    }
2654
 
2655
    public void setUserIdIsSet(boolean value) {
2656
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
2657
    }
2658
 
695 rajveer 2659
    public long getFromTime() {
2660
      return this.fromTime;
123 ashish 2661
    }
2662
 
3430 rajveer 2663
    public void setFromTime(long fromTime) {
695 rajveer 2664
      this.fromTime = fromTime;
2665
      setFromTimeIsSet(true);
123 ashish 2666
    }
2667
 
695 rajveer 2668
    public void unsetFromTime() {
2669
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 2670
    }
2671
 
3430 rajveer 2672
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 2673
    public boolean isSetFromTime() {
2674
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 2675
    }
2676
 
695 rajveer 2677
    public void setFromTimeIsSet(boolean value) {
2678
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 2679
    }
2680
 
695 rajveer 2681
    public long getToTime() {
2682
      return this.toTime;
123 ashish 2683
    }
2684
 
3430 rajveer 2685
    public void setToTime(long toTime) {
695 rajveer 2686
      this.toTime = toTime;
2687
      setToTimeIsSet(true);
123 ashish 2688
    }
2689
 
695 rajveer 2690
    public void unsetToTime() {
2691
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 2692
    }
2693
 
3430 rajveer 2694
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 2695
    public boolean isSetToTime() {
2696
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 2697
    }
2698
 
695 rajveer 2699
    public void setToTimeIsSet(boolean value) {
2700
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 2701
    }
2702
 
2703
    /**
2704
     * 
2705
     * @see PaymentStatus
2706
     */
2707
    public PaymentStatus getStatus() {
2708
      return this.status;
2709
    }
2710
 
2711
    /**
2712
     * 
2713
     * @see PaymentStatus
2714
     */
3430 rajveer 2715
    public void setStatus(PaymentStatus status) {
123 ashish 2716
      this.status = status;
2717
    }
2718
 
2719
    public void unsetStatus() {
2720
      this.status = null;
2721
    }
2722
 
3430 rajveer 2723
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 2724
    public boolean isSetStatus() {
2725
      return this.status != null;
2726
    }
2727
 
2728
    public void setStatusIsSet(boolean value) {
2729
      if (!value) {
2730
        this.status = null;
2731
      }
2732
    }
2733
 
695 rajveer 2734
    public long getGatewayId() {
2735
      return this.gatewayId;
123 ashish 2736
    }
2737
 
3430 rajveer 2738
    public void setGatewayId(long gatewayId) {
695 rajveer 2739
      this.gatewayId = gatewayId;
2740
      setGatewayIdIsSet(true);
123 ashish 2741
    }
2742
 
695 rajveer 2743
    public void unsetGatewayId() {
2744
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 2745
    }
2746
 
3430 rajveer 2747
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 2748
    public boolean isSetGatewayId() {
2749
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 2750
    }
2751
 
695 rajveer 2752
    public void setGatewayIdIsSet(boolean value) {
2753
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 2754
    }
2755
 
2756
    public void setFieldValue(_Fields field, Object value) {
2757
      switch (field) {
2758
      case USER_ID:
2759
        if (value == null) {
2760
          unsetUserId();
2761
        } else {
2762
          setUserId((Long)value);
2763
        }
2764
        break;
2765
 
2766
      case FROM_TIME:
2767
        if (value == null) {
695 rajveer 2768
          unsetFromTime();
123 ashish 2769
        } else {
695 rajveer 2770
          setFromTime((Long)value);
123 ashish 2771
        }
2772
        break;
2773
 
2774
      case TO_TIME:
2775
        if (value == null) {
695 rajveer 2776
          unsetToTime();
123 ashish 2777
        } else {
695 rajveer 2778
          setToTime((Long)value);
123 ashish 2779
        }
2780
        break;
2781
 
2782
      case STATUS:
2783
        if (value == null) {
2784
          unsetStatus();
2785
        } else {
2786
          setStatus((PaymentStatus)value);
2787
        }
2788
        break;
2789
 
420 ashish 2790
      case GATEWAY_ID:
123 ashish 2791
        if (value == null) {
695 rajveer 2792
          unsetGatewayId();
123 ashish 2793
        } else {
695 rajveer 2794
          setGatewayId((Long)value);
123 ashish 2795
        }
2796
        break;
2797
 
2798
      }
2799
    }
2800
 
2801
    public Object getFieldValue(_Fields field) {
2802
      switch (field) {
2803
      case USER_ID:
3430 rajveer 2804
        return Long.valueOf(getUserId());
123 ashish 2805
 
2806
      case FROM_TIME:
3430 rajveer 2807
        return Long.valueOf(getFromTime());
123 ashish 2808
 
2809
      case TO_TIME:
3430 rajveer 2810
        return Long.valueOf(getToTime());
123 ashish 2811
 
2812
      case STATUS:
2813
        return getStatus();
2814
 
420 ashish 2815
      case GATEWAY_ID:
3430 rajveer 2816
        return Long.valueOf(getGatewayId());
123 ashish 2817
 
2818
      }
2819
      throw new IllegalStateException();
2820
    }
2821
 
3430 rajveer 2822
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2823
    public boolean isSet(_Fields field) {
2824
      if (field == null) {
2825
        throw new IllegalArgumentException();
2826
      }
123 ashish 2827
 
2828
      switch (field) {
2829
      case USER_ID:
2830
        return isSetUserId();
2831
      case FROM_TIME:
695 rajveer 2832
        return isSetFromTime();
123 ashish 2833
      case TO_TIME:
695 rajveer 2834
        return isSetToTime();
123 ashish 2835
      case STATUS:
2836
        return isSetStatus();
420 ashish 2837
      case GATEWAY_ID:
695 rajveer 2838
        return isSetGatewayId();
123 ashish 2839
      }
2840
      throw new IllegalStateException();
2841
    }
2842
 
2843
    @Override
2844
    public boolean equals(Object that) {
2845
      if (that == null)
2846
        return false;
2847
      if (that instanceof getPaymentsForUser_args)
2848
        return this.equals((getPaymentsForUser_args)that);
2849
      return false;
2850
    }
2851
 
2852
    public boolean equals(getPaymentsForUser_args that) {
2853
      if (that == null)
2854
        return false;
2855
 
2856
      boolean this_present_userId = true;
2857
      boolean that_present_userId = true;
2858
      if (this_present_userId || that_present_userId) {
2859
        if (!(this_present_userId && that_present_userId))
2860
          return false;
2861
        if (this.userId != that.userId)
2862
          return false;
2863
      }
2864
 
695 rajveer 2865
      boolean this_present_fromTime = true;
2866
      boolean that_present_fromTime = true;
2867
      if (this_present_fromTime || that_present_fromTime) {
2868
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 2869
          return false;
695 rajveer 2870
        if (this.fromTime != that.fromTime)
123 ashish 2871
          return false;
2872
      }
2873
 
695 rajveer 2874
      boolean this_present_toTime = true;
2875
      boolean that_present_toTime = true;
2876
      if (this_present_toTime || that_present_toTime) {
2877
        if (!(this_present_toTime && that_present_toTime))
123 ashish 2878
          return false;
695 rajveer 2879
        if (this.toTime != that.toTime)
123 ashish 2880
          return false;
2881
      }
2882
 
2883
      boolean this_present_status = true && this.isSetStatus();
2884
      boolean that_present_status = true && that.isSetStatus();
2885
      if (this_present_status || that_present_status) {
2886
        if (!(this_present_status && that_present_status))
2887
          return false;
2888
        if (!this.status.equals(that.status))
2889
          return false;
2890
      }
2891
 
695 rajveer 2892
      boolean this_present_gatewayId = true;
2893
      boolean that_present_gatewayId = true;
2894
      if (this_present_gatewayId || that_present_gatewayId) {
2895
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 2896
          return false;
695 rajveer 2897
        if (this.gatewayId != that.gatewayId)
123 ashish 2898
          return false;
2899
      }
2900
 
2901
      return true;
2902
    }
2903
 
2904
    @Override
2905
    public int hashCode() {
2906
      return 0;
2907
    }
2908
 
2909
    public int compareTo(getPaymentsForUser_args other) {
2910
      if (!getClass().equals(other.getClass())) {
2911
        return getClass().getName().compareTo(other.getClass().getName());
2912
      }
2913
 
2914
      int lastComparison = 0;
2915
      getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
2916
 
3430 rajveer 2917
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 2918
      if (lastComparison != 0) {
2919
        return lastComparison;
2920
      }
3430 rajveer 2921
      if (isSetUserId()) {
2922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
2923
        if (lastComparison != 0) {
2924
          return lastComparison;
2925
        }
123 ashish 2926
      }
3430 rajveer 2927
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 2928
      if (lastComparison != 0) {
2929
        return lastComparison;
2930
      }
3430 rajveer 2931
      if (isSetFromTime()) {
2932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
2933
        if (lastComparison != 0) {
2934
          return lastComparison;
2935
        }
123 ashish 2936
      }
3430 rajveer 2937
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 2938
      if (lastComparison != 0) {
2939
        return lastComparison;
2940
      }
3430 rajveer 2941
      if (isSetToTime()) {
2942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
2943
        if (lastComparison != 0) {
2944
          return lastComparison;
2945
        }
123 ashish 2946
      }
3430 rajveer 2947
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 2948
      if (lastComparison != 0) {
2949
        return lastComparison;
2950
      }
3430 rajveer 2951
      if (isSetStatus()) {
2952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
2953
        if (lastComparison != 0) {
2954
          return lastComparison;
2955
        }
123 ashish 2956
      }
3430 rajveer 2957
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 2958
      if (lastComparison != 0) {
2959
        return lastComparison;
2960
      }
3430 rajveer 2961
      if (isSetGatewayId()) {
2962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
2963
        if (lastComparison != 0) {
2964
          return lastComparison;
2965
        }
123 ashish 2966
      }
2967
      return 0;
2968
    }
2969
 
3430 rajveer 2970
    public _Fields fieldForId(int fieldId) {
2971
      return _Fields.findByThriftId(fieldId);
2972
    }
2973
 
2974
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2975
      org.apache.thrift.protocol.TField field;
123 ashish 2976
      iprot.readStructBegin();
2977
      while (true)
2978
      {
2979
        field = iprot.readFieldBegin();
3430 rajveer 2980
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 2981
          break;
2982
        }
3430 rajveer 2983
        switch (field.id) {
2984
          case 1: // USER_ID
2985
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2986
              this.userId = iprot.readI64();
2987
              setUserIdIsSet(true);
2988
            } else { 
2989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2990
            }
2991
            break;
2992
          case 2: // FROM_TIME
2993
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2994
              this.fromTime = iprot.readI64();
2995
              setFromTimeIsSet(true);
2996
            } else { 
2997
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2998
            }
2999
            break;
3000
          case 3: // TO_TIME
3001
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3002
              this.toTime = iprot.readI64();
3003
              setToTimeIsSet(true);
3004
            } else { 
3005
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3006
            }
3007
            break;
3008
          case 4: // STATUS
3009
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3010
              this.status = PaymentStatus.findByValue(iprot.readI32());
3011
            } else { 
3012
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3013
            }
3014
            break;
3015
          case 5: // GATEWAY_ID
3016
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3017
              this.gatewayId = iprot.readI64();
3018
              setGatewayIdIsSet(true);
3019
            } else { 
3020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3021
            }
3022
            break;
3023
          default:
3024
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3025
        }
3430 rajveer 3026
        iprot.readFieldEnd();
123 ashish 3027
      }
3028
      iprot.readStructEnd();
3029
      validate();
3030
    }
3031
 
3430 rajveer 3032
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3033
      validate();
3034
 
3035
      oprot.writeStructBegin(STRUCT_DESC);
3036
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
3037
      oprot.writeI64(this.userId);
3038
      oprot.writeFieldEnd();
3039
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 3040
      oprot.writeI64(this.fromTime);
123 ashish 3041
      oprot.writeFieldEnd();
3042
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 3043
      oprot.writeI64(this.toTime);
123 ashish 3044
      oprot.writeFieldEnd();
3045
      if (this.status != null) {
3046
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
3047
        oprot.writeI32(this.status.getValue());
3048
        oprot.writeFieldEnd();
3049
      }
420 ashish 3050
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 3051
      oprot.writeI64(this.gatewayId);
420 ashish 3052
      oprot.writeFieldEnd();
123 ashish 3053
      oprot.writeFieldStop();
3054
      oprot.writeStructEnd();
3055
    }
3056
 
3057
    @Override
3058
    public String toString() {
3059
      StringBuilder sb = new StringBuilder("getPaymentsForUser_args(");
3060
      boolean first = true;
3061
 
3062
      sb.append("userId:");
3063
      sb.append(this.userId);
3064
      first = false;
3065
      if (!first) sb.append(", ");
695 rajveer 3066
      sb.append("fromTime:");
3067
      sb.append(this.fromTime);
123 ashish 3068
      first = false;
3069
      if (!first) sb.append(", ");
695 rajveer 3070
      sb.append("toTime:");
3071
      sb.append(this.toTime);
123 ashish 3072
      first = false;
3073
      if (!first) sb.append(", ");
3074
      sb.append("status:");
3075
      if (this.status == null) {
3076
        sb.append("null");
3077
      } else {
3078
        sb.append(this.status);
3079
      }
3080
      first = false;
3081
      if (!first) sb.append(", ");
695 rajveer 3082
      sb.append("gatewayId:");
3083
      sb.append(this.gatewayId);
123 ashish 3084
      first = false;
3085
      sb.append(")");
3086
      return sb.toString();
3087
    }
3088
 
3430 rajveer 3089
    public void validate() throws org.apache.thrift.TException {
123 ashish 3090
      // check for required fields
3091
    }
3092
 
3430 rajveer 3093
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3094
      try {
3095
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3096
      } catch (org.apache.thrift.TException te) {
3097
        throw new java.io.IOException(te);
3098
      }
3099
    }
3100
 
3101
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3102
      try {
3103
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3104
      } catch (org.apache.thrift.TException te) {
3105
        throw new java.io.IOException(te);
3106
      }
3107
    }
3108
 
123 ashish 3109
  }
3110
 
3430 rajveer 3111
  public static class getPaymentsForUser_result implements org.apache.thrift.TBase<getPaymentsForUser_result, getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable   {
3112
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_result");
123 ashish 3113
 
3430 rajveer 3114
    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);
3115
    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 3116
 
3430 rajveer 3117
    private List<Payment> success; // required
3118
    private PaymentException pe; // required
123 ashish 3119
 
3120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 3122
      SUCCESS((short)0, "success"),
3123
      PE((short)1, "pe");
3124
 
3125
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3126
 
3127
      static {
3128
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3129
          byName.put(field.getFieldName(), field);
3130
        }
3131
      }
3132
 
3133
      /**
3134
       * Find the _Fields constant that matches fieldId, or null if its not found.
3135
       */
3136
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3137
        switch(fieldId) {
3138
          case 0: // SUCCESS
3139
            return SUCCESS;
3140
          case 1: // PE
3141
            return PE;
3142
          default:
3143
            return null;
3144
        }
123 ashish 3145
      }
3146
 
3147
      /**
3148
       * Find the _Fields constant that matches fieldId, throwing an exception
3149
       * if it is not found.
3150
       */
3151
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3152
        _Fields fields = findByThriftId(fieldId);
3153
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3154
        return fields;
3155
      }
3156
 
3157
      /**
3158
       * Find the _Fields constant that matches name, or null if its not found.
3159
       */
3160
      public static _Fields findByName(String name) {
3161
        return byName.get(name);
3162
      }
3163
 
3164
      private final short _thriftId;
3165
      private final String _fieldName;
3166
 
3167
      _Fields(short thriftId, String fieldName) {
3168
        _thriftId = thriftId;
3169
        _fieldName = fieldName;
3170
      }
3171
 
3172
      public short getThriftFieldId() {
3173
        return _thriftId;
3174
      }
3175
 
3176
      public String getFieldName() {
3177
        return _fieldName;
3178
      }
3179
    }
3180
 
3181
    // isset id assignments
3182
 
3430 rajveer 3183
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3184
    static {
3430 rajveer 3185
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3186
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3187
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3188
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
3189
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3190
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3191
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3192
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
123 ashish 3193
    }
3194
 
3195
    public getPaymentsForUser_result() {
3196
    }
3197
 
3198
    public getPaymentsForUser_result(
3199
      List<Payment> success,
3200
      PaymentException pe)
3201
    {
3202
      this();
3203
      this.success = success;
3204
      this.pe = pe;
3205
    }
3206
 
3207
    /**
3208
     * Performs a deep copy on <i>other</i>.
3209
     */
3210
    public getPaymentsForUser_result(getPaymentsForUser_result other) {
3211
      if (other.isSetSuccess()) {
3212
        List<Payment> __this__success = new ArrayList<Payment>();
3213
        for (Payment other_element : other.success) {
3214
          __this__success.add(new Payment(other_element));
3215
        }
3216
        this.success = __this__success;
3217
      }
3218
      if (other.isSetPe()) {
3219
        this.pe = new PaymentException(other.pe);
3220
      }
3221
    }
3222
 
3223
    public getPaymentsForUser_result deepCopy() {
3224
      return new getPaymentsForUser_result(this);
3225
    }
3226
 
3430 rajveer 3227
    @Override
3228
    public void clear() {
3229
      this.success = null;
3230
      this.pe = null;
123 ashish 3231
    }
3232
 
3233
    public int getSuccessSize() {
3234
      return (this.success == null) ? 0 : this.success.size();
3235
    }
3236
 
3237
    public java.util.Iterator<Payment> getSuccessIterator() {
3238
      return (this.success == null) ? null : this.success.iterator();
3239
    }
3240
 
3241
    public void addToSuccess(Payment elem) {
3242
      if (this.success == null) {
3243
        this.success = new ArrayList<Payment>();
3244
      }
3245
      this.success.add(elem);
3246
    }
3247
 
3248
    public List<Payment> getSuccess() {
3249
      return this.success;
3250
    }
3251
 
3430 rajveer 3252
    public void setSuccess(List<Payment> success) {
123 ashish 3253
      this.success = success;
3254
    }
3255
 
3256
    public void unsetSuccess() {
3257
      this.success = null;
3258
    }
3259
 
3430 rajveer 3260
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 3261
    public boolean isSetSuccess() {
3262
      return this.success != null;
3263
    }
3264
 
3265
    public void setSuccessIsSet(boolean value) {
3266
      if (!value) {
3267
        this.success = null;
3268
      }
3269
    }
3270
 
3271
    public PaymentException getPe() {
3272
      return this.pe;
3273
    }
3274
 
3430 rajveer 3275
    public void setPe(PaymentException pe) {
123 ashish 3276
      this.pe = pe;
3277
    }
3278
 
3279
    public void unsetPe() {
3280
      this.pe = null;
3281
    }
3282
 
3430 rajveer 3283
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 3284
    public boolean isSetPe() {
3285
      return this.pe != null;
3286
    }
3287
 
3288
    public void setPeIsSet(boolean value) {
3289
      if (!value) {
3290
        this.pe = null;
3291
      }
3292
    }
3293
 
3294
    public void setFieldValue(_Fields field, Object value) {
3295
      switch (field) {
3296
      case SUCCESS:
3297
        if (value == null) {
3298
          unsetSuccess();
3299
        } else {
3300
          setSuccess((List<Payment>)value);
3301
        }
3302
        break;
3303
 
3304
      case PE:
3305
        if (value == null) {
3306
          unsetPe();
3307
        } else {
3308
          setPe((PaymentException)value);
3309
        }
3310
        break;
3311
 
3312
      }
3313
    }
3314
 
3315
    public Object getFieldValue(_Fields field) {
3316
      switch (field) {
3317
      case SUCCESS:
3318
        return getSuccess();
3319
 
3320
      case PE:
3321
        return getPe();
3322
 
3323
      }
3324
      throw new IllegalStateException();
3325
    }
3326
 
3430 rajveer 3327
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3328
    public boolean isSet(_Fields field) {
3329
      if (field == null) {
3330
        throw new IllegalArgumentException();
3331
      }
123 ashish 3332
 
3333
      switch (field) {
3334
      case SUCCESS:
3335
        return isSetSuccess();
3336
      case PE:
3337
        return isSetPe();
3338
      }
3339
      throw new IllegalStateException();
3340
    }
3341
 
3342
    @Override
3343
    public boolean equals(Object that) {
3344
      if (that == null)
3345
        return false;
3346
      if (that instanceof getPaymentsForUser_result)
3347
        return this.equals((getPaymentsForUser_result)that);
3348
      return false;
3349
    }
3350
 
3351
    public boolean equals(getPaymentsForUser_result that) {
3352
      if (that == null)
3353
        return false;
3354
 
3355
      boolean this_present_success = true && this.isSetSuccess();
3356
      boolean that_present_success = true && that.isSetSuccess();
3357
      if (this_present_success || that_present_success) {
3358
        if (!(this_present_success && that_present_success))
3359
          return false;
3360
        if (!this.success.equals(that.success))
3361
          return false;
3362
      }
3363
 
3364
      boolean this_present_pe = true && this.isSetPe();
3365
      boolean that_present_pe = true && that.isSetPe();
3366
      if (this_present_pe || that_present_pe) {
3367
        if (!(this_present_pe && that_present_pe))
3368
          return false;
3369
        if (!this.pe.equals(that.pe))
3370
          return false;
3371
      }
3372
 
3373
      return true;
3374
    }
3375
 
3376
    @Override
3377
    public int hashCode() {
3378
      return 0;
3379
    }
3380
 
695 rajveer 3381
    public int compareTo(getPaymentsForUser_result other) {
123 ashish 3382
      if (!getClass().equals(other.getClass())) {
3383
        return getClass().getName().compareTo(other.getClass().getName());
3384
      }
3385
 
3386
      int lastComparison = 0;
695 rajveer 3387
      getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
123 ashish 3388
 
3430 rajveer 3389
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 3390
      if (lastComparison != 0) {
3391
        return lastComparison;
3392
      }
3430 rajveer 3393
      if (isSetSuccess()) {
3394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3395
        if (lastComparison != 0) {
3396
          return lastComparison;
3397
        }
123 ashish 3398
      }
3430 rajveer 3399
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
123 ashish 3400
      if (lastComparison != 0) {
3401
        return lastComparison;
3402
      }
3430 rajveer 3403
      if (isSetPe()) {
3404
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
3405
        if (lastComparison != 0) {
3406
          return lastComparison;
3407
        }
123 ashish 3408
      }
3409
      return 0;
3410
    }
3411
 
3430 rajveer 3412
    public _Fields fieldForId(int fieldId) {
3413
      return _Fields.findByThriftId(fieldId);
3414
    }
3415
 
3416
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3417
      org.apache.thrift.protocol.TField field;
123 ashish 3418
      iprot.readStructBegin();
3419
      while (true)
3420
      {
3421
        field = iprot.readFieldBegin();
3430 rajveer 3422
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3423
          break;
3424
        }
3430 rajveer 3425
        switch (field.id) {
3426
          case 0: // SUCCESS
3427
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3428
              {
3429
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
3430
                this.success = new ArrayList<Payment>(_list12.size);
3431
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
123 ashish 3432
                {
3430 rajveer 3433
                  Payment _elem14; // required
3434
                  _elem14 = new Payment();
3435
                  _elem14.read(iprot);
3436
                  this.success.add(_elem14);
123 ashish 3437
                }
3430 rajveer 3438
                iprot.readListEnd();
123 ashish 3439
              }
3430 rajveer 3440
            } else { 
3441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3442
            }
3443
            break;
3444
          case 1: // PE
3445
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3446
              this.pe = new PaymentException();
3447
              this.pe.read(iprot);
3448
            } else { 
3449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3450
            }
3451
            break;
3452
          default:
3453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3454
        }
3430 rajveer 3455
        iprot.readFieldEnd();
123 ashish 3456
      }
3457
      iprot.readStructEnd();
3458
      validate();
3459
    }
3460
 
3430 rajveer 3461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3462
      oprot.writeStructBegin(STRUCT_DESC);
3463
 
3464
      if (this.isSetSuccess()) {
3465
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3466
        {
3430 rajveer 3467
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 3468
          for (Payment _iter15 : this.success)
123 ashish 3469
          {
2747 chandransh 3470
            _iter15.write(oprot);
123 ashish 3471
          }
3472
          oprot.writeListEnd();
3473
        }
3474
        oprot.writeFieldEnd();
3475
      } else if (this.isSetPe()) {
3476
        oprot.writeFieldBegin(PE_FIELD_DESC);
3477
        this.pe.write(oprot);
3478
        oprot.writeFieldEnd();
3479
      }
3480
      oprot.writeFieldStop();
3481
      oprot.writeStructEnd();
3482
    }
3483
 
3484
    @Override
3485
    public String toString() {
695 rajveer 3486
      StringBuilder sb = new StringBuilder("getPaymentsForUser_result(");
123 ashish 3487
      boolean first = true;
3488
 
3489
      sb.append("success:");
3490
      if (this.success == null) {
3491
        sb.append("null");
3492
      } else {
3493
        sb.append(this.success);
3494
      }
3495
      first = false;
3496
      if (!first) sb.append(", ");
3497
      sb.append("pe:");
3498
      if (this.pe == null) {
3499
        sb.append("null");
3500
      } else {
3501
        sb.append(this.pe);
3502
      }
3503
      first = false;
3504
      sb.append(")");
3505
      return sb.toString();
3506
    }
3507
 
3430 rajveer 3508
    public void validate() throws org.apache.thrift.TException {
123 ashish 3509
      // check for required fields
3510
    }
3511
 
3430 rajveer 3512
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3513
      try {
3514
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3515
      } catch (org.apache.thrift.TException te) {
3516
        throw new java.io.IOException(te);
3517
      }
3518
    }
3519
 
3520
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3521
      try {
3522
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3523
      } catch (org.apache.thrift.TException te) {
3524
        throw new java.io.IOException(te);
3525
      }
3526
    }
3527
 
123 ashish 3528
  }
3529
 
3430 rajveer 3530
  public static class getPayments_args implements org.apache.thrift.TBase<getPayments_args, getPayments_args._Fields>, java.io.Serializable, Cloneable   {
3531
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_args");
123 ashish 3532
 
3430 rajveer 3533
    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);
3534
    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);
3535
    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);
3536
    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 3537
 
3430 rajveer 3538
    private long fromTime; // required
3539
    private long toTime; // required
3540
    private PaymentStatus status; // required
3541
    private long gatewayId; // required
123 ashish 3542
 
3543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 3545
      FROM_TIME((short)1, "fromTime"),
3546
      TO_TIME((short)2, "toTime"),
123 ashish 3547
      /**
3548
       * 
3549
       * @see PaymentStatus
3550
       */
3551
      STATUS((short)3, "status"),
695 rajveer 3552
      GATEWAY_ID((short)4, "gatewayId");
123 ashish 3553
 
3554
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3555
 
3556
      static {
3557
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3558
          byName.put(field.getFieldName(), field);
3559
        }
3560
      }
3561
 
3562
      /**
3563
       * Find the _Fields constant that matches fieldId, or null if its not found.
3564
       */
3565
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3566
        switch(fieldId) {
3567
          case 1: // FROM_TIME
3568
            return FROM_TIME;
3569
          case 2: // TO_TIME
3570
            return TO_TIME;
3571
          case 3: // STATUS
3572
            return STATUS;
3573
          case 4: // GATEWAY_ID
3574
            return GATEWAY_ID;
3575
          default:
3576
            return null;
3577
        }
123 ashish 3578
      }
3579
 
3580
      /**
3581
       * Find the _Fields constant that matches fieldId, throwing an exception
3582
       * if it is not found.
3583
       */
3584
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3585
        _Fields fields = findByThriftId(fieldId);
3586
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3587
        return fields;
3588
      }
3589
 
3590
      /**
3591
       * Find the _Fields constant that matches name, or null if its not found.
3592
       */
3593
      public static _Fields findByName(String name) {
3594
        return byName.get(name);
3595
      }
3596
 
3597
      private final short _thriftId;
3598
      private final String _fieldName;
3599
 
3600
      _Fields(short thriftId, String fieldName) {
3601
        _thriftId = thriftId;
3602
        _fieldName = fieldName;
3603
      }
3604
 
3605
      public short getThriftFieldId() {
3606
        return _thriftId;
3607
      }
3608
 
3609
      public String getFieldName() {
3610
        return _fieldName;
3611
      }
3612
    }
3613
 
3614
    // isset id assignments
695 rajveer 3615
    private static final int __FROMTIME_ISSET_ID = 0;
3616
    private static final int __TOTIME_ISSET_ID = 1;
3617
    private static final int __GATEWAYID_ISSET_ID = 2;
420 ashish 3618
    private BitSet __isset_bit_vector = new BitSet(3);
123 ashish 3619
 
3430 rajveer 3620
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3621
    static {
3430 rajveer 3622
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3623
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3624
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3625
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3626
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3627
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3628
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
3629
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3630
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
123 ashish 3633
    }
3634
 
3635
    public getPayments_args() {
3636
    }
3637
 
3638
    public getPayments_args(
695 rajveer 3639
      long fromTime,
3640
      long toTime,
123 ashish 3641
      PaymentStatus status,
695 rajveer 3642
      long gatewayId)
123 ashish 3643
    {
3644
      this();
695 rajveer 3645
      this.fromTime = fromTime;
3646
      setFromTimeIsSet(true);
3647
      this.toTime = toTime;
3648
      setToTimeIsSet(true);
123 ashish 3649
      this.status = status;
695 rajveer 3650
      this.gatewayId = gatewayId;
3651
      setGatewayIdIsSet(true);
123 ashish 3652
    }
3653
 
3654
    /**
3655
     * Performs a deep copy on <i>other</i>.
3656
     */
3657
    public getPayments_args(getPayments_args other) {
3658
      __isset_bit_vector.clear();
3659
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 3660
      this.fromTime = other.fromTime;
3661
      this.toTime = other.toTime;
123 ashish 3662
      if (other.isSetStatus()) {
3663
        this.status = other.status;
3664
      }
695 rajveer 3665
      this.gatewayId = other.gatewayId;
123 ashish 3666
    }
3667
 
3668
    public getPayments_args deepCopy() {
3669
      return new getPayments_args(this);
3670
    }
3671
 
3430 rajveer 3672
    @Override
3673
    public void clear() {
3674
      setFromTimeIsSet(false);
3675
      this.fromTime = 0;
3676
      setToTimeIsSet(false);
3677
      this.toTime = 0;
3678
      this.status = null;
3679
      setGatewayIdIsSet(false);
3680
      this.gatewayId = 0;
123 ashish 3681
    }
3682
 
695 rajveer 3683
    public long getFromTime() {
3684
      return this.fromTime;
123 ashish 3685
    }
3686
 
3430 rajveer 3687
    public void setFromTime(long fromTime) {
695 rajveer 3688
      this.fromTime = fromTime;
3689
      setFromTimeIsSet(true);
123 ashish 3690
    }
3691
 
695 rajveer 3692
    public void unsetFromTime() {
3693
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 3694
    }
3695
 
3430 rajveer 3696
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 3697
    public boolean isSetFromTime() {
3698
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 3699
    }
3700
 
695 rajveer 3701
    public void setFromTimeIsSet(boolean value) {
3702
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 3703
    }
3704
 
695 rajveer 3705
    public long getToTime() {
3706
      return this.toTime;
123 ashish 3707
    }
3708
 
3430 rajveer 3709
    public void setToTime(long toTime) {
695 rajveer 3710
      this.toTime = toTime;
3711
      setToTimeIsSet(true);
123 ashish 3712
    }
3713
 
695 rajveer 3714
    public void unsetToTime() {
3715
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 3716
    }
3717
 
3430 rajveer 3718
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 3719
    public boolean isSetToTime() {
3720
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 3721
    }
3722
 
695 rajveer 3723
    public void setToTimeIsSet(boolean value) {
3724
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 3725
    }
3726
 
3727
    /**
3728
     * 
3729
     * @see PaymentStatus
3730
     */
3731
    public PaymentStatus getStatus() {
3732
      return this.status;
3733
    }
3734
 
3735
    /**
3736
     * 
3737
     * @see PaymentStatus
3738
     */
3430 rajveer 3739
    public void setStatus(PaymentStatus status) {
123 ashish 3740
      this.status = status;
3741
    }
3742
 
3743
    public void unsetStatus() {
3744
      this.status = null;
3745
    }
3746
 
3430 rajveer 3747
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 3748
    public boolean isSetStatus() {
3749
      return this.status != null;
3750
    }
3751
 
3752
    public void setStatusIsSet(boolean value) {
3753
      if (!value) {
3754
        this.status = null;
3755
      }
3756
    }
3757
 
695 rajveer 3758
    public long getGatewayId() {
3759
      return this.gatewayId;
123 ashish 3760
    }
3761
 
3430 rajveer 3762
    public void setGatewayId(long gatewayId) {
695 rajveer 3763
      this.gatewayId = gatewayId;
3764
      setGatewayIdIsSet(true);
123 ashish 3765
    }
3766
 
695 rajveer 3767
    public void unsetGatewayId() {
3768
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 3769
    }
3770
 
3430 rajveer 3771
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 3772
    public boolean isSetGatewayId() {
3773
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 3774
    }
3775
 
695 rajveer 3776
    public void setGatewayIdIsSet(boolean value) {
3777
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 3778
    }
3779
 
3780
    public void setFieldValue(_Fields field, Object value) {
3781
      switch (field) {
3782
      case FROM_TIME:
3783
        if (value == null) {
695 rajveer 3784
          unsetFromTime();
123 ashish 3785
        } else {
695 rajveer 3786
          setFromTime((Long)value);
123 ashish 3787
        }
3788
        break;
3789
 
3790
      case TO_TIME:
3791
        if (value == null) {
695 rajveer 3792
          unsetToTime();
123 ashish 3793
        } else {
695 rajveer 3794
          setToTime((Long)value);
123 ashish 3795
        }
3796
        break;
3797
 
3798
      case STATUS:
3799
        if (value == null) {
3800
          unsetStatus();
3801
        } else {
3802
          setStatus((PaymentStatus)value);
3803
        }
3804
        break;
3805
 
420 ashish 3806
      case GATEWAY_ID:
123 ashish 3807
        if (value == null) {
695 rajveer 3808
          unsetGatewayId();
123 ashish 3809
        } else {
695 rajveer 3810
          setGatewayId((Long)value);
123 ashish 3811
        }
3812
        break;
3813
 
3814
      }
3815
    }
3816
 
3817
    public Object getFieldValue(_Fields field) {
3818
      switch (field) {
3819
      case FROM_TIME:
3430 rajveer 3820
        return Long.valueOf(getFromTime());
123 ashish 3821
 
3822
      case TO_TIME:
3430 rajveer 3823
        return Long.valueOf(getToTime());
123 ashish 3824
 
3825
      case STATUS:
3826
        return getStatus();
3827
 
420 ashish 3828
      case GATEWAY_ID:
3430 rajveer 3829
        return Long.valueOf(getGatewayId());
123 ashish 3830
 
3831
      }
3832
      throw new IllegalStateException();
3833
    }
3834
 
3430 rajveer 3835
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3836
    public boolean isSet(_Fields field) {
3837
      if (field == null) {
3838
        throw new IllegalArgumentException();
3839
      }
123 ashish 3840
 
3841
      switch (field) {
3842
      case FROM_TIME:
695 rajveer 3843
        return isSetFromTime();
123 ashish 3844
      case TO_TIME:
695 rajveer 3845
        return isSetToTime();
123 ashish 3846
      case STATUS:
3847
        return isSetStatus();
420 ashish 3848
      case GATEWAY_ID:
695 rajveer 3849
        return isSetGatewayId();
123 ashish 3850
      }
3851
      throw new IllegalStateException();
3852
    }
3853
 
3854
    @Override
3855
    public boolean equals(Object that) {
3856
      if (that == null)
3857
        return false;
3858
      if (that instanceof getPayments_args)
3859
        return this.equals((getPayments_args)that);
3860
      return false;
3861
    }
3862
 
3863
    public boolean equals(getPayments_args that) {
3864
      if (that == null)
3865
        return false;
3866
 
695 rajveer 3867
      boolean this_present_fromTime = true;
3868
      boolean that_present_fromTime = true;
3869
      if (this_present_fromTime || that_present_fromTime) {
3870
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 3871
          return false;
695 rajveer 3872
        if (this.fromTime != that.fromTime)
123 ashish 3873
          return false;
3874
      }
3875
 
695 rajveer 3876
      boolean this_present_toTime = true;
3877
      boolean that_present_toTime = true;
3878
      if (this_present_toTime || that_present_toTime) {
3879
        if (!(this_present_toTime && that_present_toTime))
123 ashish 3880
          return false;
695 rajveer 3881
        if (this.toTime != that.toTime)
123 ashish 3882
          return false;
3883
      }
3884
 
3885
      boolean this_present_status = true && this.isSetStatus();
3886
      boolean that_present_status = true && that.isSetStatus();
3887
      if (this_present_status || that_present_status) {
3888
        if (!(this_present_status && that_present_status))
3889
          return false;
3890
        if (!this.status.equals(that.status))
3891
          return false;
3892
      }
3893
 
695 rajveer 3894
      boolean this_present_gatewayId = true;
3895
      boolean that_present_gatewayId = true;
3896
      if (this_present_gatewayId || that_present_gatewayId) {
3897
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 3898
          return false;
695 rajveer 3899
        if (this.gatewayId != that.gatewayId)
123 ashish 3900
          return false;
3901
      }
3902
 
3903
      return true;
3904
    }
3905
 
3906
    @Override
3907
    public int hashCode() {
3908
      return 0;
3909
    }
3910
 
3911
    public int compareTo(getPayments_args other) {
3912
      if (!getClass().equals(other.getClass())) {
3913
        return getClass().getName().compareTo(other.getClass().getName());
3914
      }
3915
 
3916
      int lastComparison = 0;
3917
      getPayments_args typedOther = (getPayments_args)other;
3918
 
3430 rajveer 3919
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 3920
      if (lastComparison != 0) {
3921
        return lastComparison;
3922
      }
3430 rajveer 3923
      if (isSetFromTime()) {
3924
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
3925
        if (lastComparison != 0) {
3926
          return lastComparison;
3927
        }
123 ashish 3928
      }
3430 rajveer 3929
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 3930
      if (lastComparison != 0) {
3931
        return lastComparison;
3932
      }
3430 rajveer 3933
      if (isSetToTime()) {
3934
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
3935
        if (lastComparison != 0) {
3936
          return lastComparison;
3937
        }
123 ashish 3938
      }
3430 rajveer 3939
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 3940
      if (lastComparison != 0) {
3941
        return lastComparison;
3942
      }
3430 rajveer 3943
      if (isSetStatus()) {
3944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
3945
        if (lastComparison != 0) {
3946
          return lastComparison;
3947
        }
123 ashish 3948
      }
3430 rajveer 3949
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 3950
      if (lastComparison != 0) {
3951
        return lastComparison;
3952
      }
3430 rajveer 3953
      if (isSetGatewayId()) {
3954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
3955
        if (lastComparison != 0) {
3956
          return lastComparison;
3957
        }
123 ashish 3958
      }
3959
      return 0;
3960
    }
3961
 
3430 rajveer 3962
    public _Fields fieldForId(int fieldId) {
3963
      return _Fields.findByThriftId(fieldId);
3964
    }
3965
 
3966
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3967
      org.apache.thrift.protocol.TField field;
123 ashish 3968
      iprot.readStructBegin();
3969
      while (true)
3970
      {
3971
        field = iprot.readFieldBegin();
3430 rajveer 3972
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3973
          break;
3974
        }
3430 rajveer 3975
        switch (field.id) {
3976
          case 1: // FROM_TIME
3977
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3978
              this.fromTime = iprot.readI64();
3979
              setFromTimeIsSet(true);
3980
            } else { 
3981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3982
            }
3983
            break;
3984
          case 2: // TO_TIME
3985
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3986
              this.toTime = iprot.readI64();
3987
              setToTimeIsSet(true);
3988
            } else { 
3989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3990
            }
3991
            break;
3992
          case 3: // STATUS
3993
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3994
              this.status = PaymentStatus.findByValue(iprot.readI32());
3995
            } else { 
3996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3997
            }
3998
            break;
3999
          case 4: // GATEWAY_ID
4000
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4001
              this.gatewayId = iprot.readI64();
4002
              setGatewayIdIsSet(true);
4003
            } else { 
4004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4005
            }
4006
            break;
4007
          default:
4008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4009
        }
3430 rajveer 4010
        iprot.readFieldEnd();
123 ashish 4011
      }
4012
      iprot.readStructEnd();
4013
      validate();
4014
    }
4015
 
3430 rajveer 4016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4017
      validate();
4018
 
4019
      oprot.writeStructBegin(STRUCT_DESC);
4020
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 4021
      oprot.writeI64(this.fromTime);
123 ashish 4022
      oprot.writeFieldEnd();
4023
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 4024
      oprot.writeI64(this.toTime);
123 ashish 4025
      oprot.writeFieldEnd();
4026
      if (this.status != null) {
4027
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
4028
        oprot.writeI32(this.status.getValue());
4029
        oprot.writeFieldEnd();
4030
      }
420 ashish 4031
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 4032
      oprot.writeI64(this.gatewayId);
420 ashish 4033
      oprot.writeFieldEnd();
123 ashish 4034
      oprot.writeFieldStop();
4035
      oprot.writeStructEnd();
4036
    }
4037
 
4038
    @Override
4039
    public String toString() {
4040
      StringBuilder sb = new StringBuilder("getPayments_args(");
4041
      boolean first = true;
4042
 
695 rajveer 4043
      sb.append("fromTime:");
4044
      sb.append(this.fromTime);
123 ashish 4045
      first = false;
4046
      if (!first) sb.append(", ");
695 rajveer 4047
      sb.append("toTime:");
4048
      sb.append(this.toTime);
123 ashish 4049
      first = false;
4050
      if (!first) sb.append(", ");
4051
      sb.append("status:");
4052
      if (this.status == null) {
4053
        sb.append("null");
4054
      } else {
4055
        sb.append(this.status);
4056
      }
4057
      first = false;
4058
      if (!first) sb.append(", ");
695 rajveer 4059
      sb.append("gatewayId:");
4060
      sb.append(this.gatewayId);
123 ashish 4061
      first = false;
4062
      sb.append(")");
4063
      return sb.toString();
4064
    }
4065
 
3430 rajveer 4066
    public void validate() throws org.apache.thrift.TException {
123 ashish 4067
      // check for required fields
4068
    }
4069
 
3430 rajveer 4070
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4071
      try {
4072
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4073
      } catch (org.apache.thrift.TException te) {
4074
        throw new java.io.IOException(te);
4075
      }
4076
    }
4077
 
4078
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4079
      try {
4080
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4081
      } catch (org.apache.thrift.TException te) {
4082
        throw new java.io.IOException(te);
4083
      }
4084
    }
4085
 
123 ashish 4086
  }
4087
 
3430 rajveer 4088
  public static class getPayments_result implements org.apache.thrift.TBase<getPayments_result, getPayments_result._Fields>, java.io.Serializable, Cloneable   {
4089
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_result");
123 ashish 4090
 
3430 rajveer 4091
    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);
4092
    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 4093
 
3430 rajveer 4094
    private List<Payment> success; // required
4095
    private PaymentException pe; // required
123 ashish 4096
 
4097
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4098
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 4099
      SUCCESS((short)0, "success"),
4100
      PE((short)1, "pe");
4101
 
4102
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4103
 
4104
      static {
4105
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4106
          byName.put(field.getFieldName(), field);
4107
        }
4108
      }
4109
 
4110
      /**
4111
       * Find the _Fields constant that matches fieldId, or null if its not found.
4112
       */
4113
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4114
        switch(fieldId) {
4115
          case 0: // SUCCESS
4116
            return SUCCESS;
4117
          case 1: // PE
4118
            return PE;
4119
          default:
4120
            return null;
4121
        }
123 ashish 4122
      }
4123
 
4124
      /**
4125
       * Find the _Fields constant that matches fieldId, throwing an exception
4126
       * if it is not found.
4127
       */
4128
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4129
        _Fields fields = findByThriftId(fieldId);
4130
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4131
        return fields;
4132
      }
4133
 
4134
      /**
4135
       * Find the _Fields constant that matches name, or null if its not found.
4136
       */
4137
      public static _Fields findByName(String name) {
4138
        return byName.get(name);
4139
      }
4140
 
4141
      private final short _thriftId;
4142
      private final String _fieldName;
4143
 
4144
      _Fields(short thriftId, String fieldName) {
4145
        _thriftId = thriftId;
4146
        _fieldName = fieldName;
4147
      }
4148
 
4149
      public short getThriftFieldId() {
4150
        return _thriftId;
4151
      }
4152
 
4153
      public String getFieldName() {
4154
        return _fieldName;
4155
      }
4156
    }
4157
 
4158
    // isset id assignments
4159
 
3430 rajveer 4160
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4161
    static {
3430 rajveer 4162
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4163
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4164
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4165
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
4166
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4167
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4168
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4169
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
123 ashish 4170
    }
4171
 
4172
    public getPayments_result() {
4173
    }
4174
 
4175
    public getPayments_result(
4176
      List<Payment> success,
4177
      PaymentException pe)
4178
    {
4179
      this();
4180
      this.success = success;
4181
      this.pe = pe;
4182
    }
4183
 
4184
    /**
4185
     * Performs a deep copy on <i>other</i>.
4186
     */
4187
    public getPayments_result(getPayments_result other) {
4188
      if (other.isSetSuccess()) {
4189
        List<Payment> __this__success = new ArrayList<Payment>();
4190
        for (Payment other_element : other.success) {
4191
          __this__success.add(new Payment(other_element));
4192
        }
4193
        this.success = __this__success;
4194
      }
4195
      if (other.isSetPe()) {
4196
        this.pe = new PaymentException(other.pe);
4197
      }
4198
    }
4199
 
4200
    public getPayments_result deepCopy() {
4201
      return new getPayments_result(this);
4202
    }
4203
 
3430 rajveer 4204
    @Override
4205
    public void clear() {
4206
      this.success = null;
4207
      this.pe = null;
123 ashish 4208
    }
4209
 
4210
    public int getSuccessSize() {
4211
      return (this.success == null) ? 0 : this.success.size();
4212
    }
4213
 
4214
    public java.util.Iterator<Payment> getSuccessIterator() {
4215
      return (this.success == null) ? null : this.success.iterator();
4216
    }
4217
 
4218
    public void addToSuccess(Payment elem) {
4219
      if (this.success == null) {
4220
        this.success = new ArrayList<Payment>();
4221
      }
4222
      this.success.add(elem);
4223
    }
4224
 
4225
    public List<Payment> getSuccess() {
4226
      return this.success;
4227
    }
4228
 
3430 rajveer 4229
    public void setSuccess(List<Payment> success) {
123 ashish 4230
      this.success = success;
4231
    }
4232
 
4233
    public void unsetSuccess() {
4234
      this.success = null;
4235
    }
4236
 
3430 rajveer 4237
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 4238
    public boolean isSetSuccess() {
4239
      return this.success != null;
4240
    }
4241
 
4242
    public void setSuccessIsSet(boolean value) {
4243
      if (!value) {
4244
        this.success = null;
4245
      }
4246
    }
4247
 
4248
    public PaymentException getPe() {
4249
      return this.pe;
4250
    }
4251
 
3430 rajveer 4252
    public void setPe(PaymentException pe) {
123 ashish 4253
      this.pe = pe;
4254
    }
4255
 
4256
    public void unsetPe() {
4257
      this.pe = null;
4258
    }
4259
 
3430 rajveer 4260
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 4261
    public boolean isSetPe() {
4262
      return this.pe != null;
4263
    }
4264
 
4265
    public void setPeIsSet(boolean value) {
4266
      if (!value) {
4267
        this.pe = null;
4268
      }
4269
    }
4270
 
4271
    public void setFieldValue(_Fields field, Object value) {
4272
      switch (field) {
4273
      case SUCCESS:
4274
        if (value == null) {
4275
          unsetSuccess();
4276
        } else {
4277
          setSuccess((List<Payment>)value);
4278
        }
4279
        break;
4280
 
4281
      case PE:
4282
        if (value == null) {
4283
          unsetPe();
4284
        } else {
4285
          setPe((PaymentException)value);
4286
        }
4287
        break;
4288
 
4289
      }
4290
    }
4291
 
4292
    public Object getFieldValue(_Fields field) {
4293
      switch (field) {
4294
      case SUCCESS:
4295
        return getSuccess();
4296
 
4297
      case PE:
4298
        return getPe();
4299
 
4300
      }
4301
      throw new IllegalStateException();
4302
    }
4303
 
3430 rajveer 4304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4305
    public boolean isSet(_Fields field) {
4306
      if (field == null) {
4307
        throw new IllegalArgumentException();
4308
      }
123 ashish 4309
 
4310
      switch (field) {
4311
      case SUCCESS:
4312
        return isSetSuccess();
4313
      case PE:
4314
        return isSetPe();
4315
      }
4316
      throw new IllegalStateException();
4317
    }
4318
 
4319
    @Override
4320
    public boolean equals(Object that) {
4321
      if (that == null)
4322
        return false;
4323
      if (that instanceof getPayments_result)
4324
        return this.equals((getPayments_result)that);
4325
      return false;
4326
    }
4327
 
4328
    public boolean equals(getPayments_result that) {
4329
      if (that == null)
4330
        return false;
4331
 
4332
      boolean this_present_success = true && this.isSetSuccess();
4333
      boolean that_present_success = true && that.isSetSuccess();
4334
      if (this_present_success || that_present_success) {
4335
        if (!(this_present_success && that_present_success))
4336
          return false;
4337
        if (!this.success.equals(that.success))
4338
          return false;
4339
      }
4340
 
4341
      boolean this_present_pe = true && this.isSetPe();
4342
      boolean that_present_pe = true && that.isSetPe();
4343
      if (this_present_pe || that_present_pe) {
4344
        if (!(this_present_pe && that_present_pe))
4345
          return false;
4346
        if (!this.pe.equals(that.pe))
4347
          return false;
4348
      }
4349
 
4350
      return true;
4351
    }
4352
 
4353
    @Override
4354
    public int hashCode() {
4355
      return 0;
4356
    }
4357
 
695 rajveer 4358
    public int compareTo(getPayments_result other) {
123 ashish 4359
      if (!getClass().equals(other.getClass())) {
4360
        return getClass().getName().compareTo(other.getClass().getName());
4361
      }
4362
 
4363
      int lastComparison = 0;
695 rajveer 4364
      getPayments_result typedOther = (getPayments_result)other;
123 ashish 4365
 
3430 rajveer 4366
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 4367
      if (lastComparison != 0) {
4368
        return lastComparison;
4369
      }
3430 rajveer 4370
      if (isSetSuccess()) {
4371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4372
        if (lastComparison != 0) {
4373
          return lastComparison;
4374
        }
123 ashish 4375
      }
3430 rajveer 4376
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 4377
      if (lastComparison != 0) {
4378
        return lastComparison;
123 ashish 4379
      }
3430 rajveer 4380
      if (isSetPe()) {
4381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
4382
        if (lastComparison != 0) {
4383
          return lastComparison;
4384
        }
123 ashish 4385
      }
4386
      return 0;
4387
    }
4388
 
3430 rajveer 4389
    public _Fields fieldForId(int fieldId) {
4390
      return _Fields.findByThriftId(fieldId);
4391
    }
4392
 
4393
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4394
      org.apache.thrift.protocol.TField field;
123 ashish 4395
      iprot.readStructBegin();
4396
      while (true)
4397
      {
4398
        field = iprot.readFieldBegin();
3430 rajveer 4399
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4400
          break;
4401
        }
3430 rajveer 4402
        switch (field.id) {
4403
          case 0: // SUCCESS
4404
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4405
              {
4406
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
4407
                this.success = new ArrayList<Payment>(_list16.size);
4408
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
420 ashish 4409
                {
3430 rajveer 4410
                  Payment _elem18; // required
4411
                  _elem18 = new Payment();
4412
                  _elem18.read(iprot);
4413
                  this.success.add(_elem18);
420 ashish 4414
                }
3430 rajveer 4415
                iprot.readListEnd();
123 ashish 4416
              }
3430 rajveer 4417
            } else { 
4418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4419
            }
4420
            break;
4421
          case 1: // PE
4422
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4423
              this.pe = new PaymentException();
4424
              this.pe.read(iprot);
4425
            } else { 
4426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4427
            }
4428
            break;
4429
          default:
4430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4431
        }
3430 rajveer 4432
        iprot.readFieldEnd();
123 ashish 4433
      }
4434
      iprot.readStructEnd();
4435
      validate();
4436
    }
4437
 
3430 rajveer 4438
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4439
      oprot.writeStructBegin(STRUCT_DESC);
4440
 
4441
      if (this.isSetSuccess()) {
4442
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 4443
        {
3430 rajveer 4444
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 4445
          for (Payment _iter19 : this.success)
420 ashish 4446
          {
2747 chandransh 4447
            _iter19.write(oprot);
420 ashish 4448
          }
4449
          oprot.writeListEnd();
4450
        }
123 ashish 4451
        oprot.writeFieldEnd();
4452
      } else if (this.isSetPe()) {
4453
        oprot.writeFieldBegin(PE_FIELD_DESC);
4454
        this.pe.write(oprot);
4455
        oprot.writeFieldEnd();
4456
      }
4457
      oprot.writeFieldStop();
4458
      oprot.writeStructEnd();
4459
    }
4460
 
4461
    @Override
4462
    public String toString() {
695 rajveer 4463
      StringBuilder sb = new StringBuilder("getPayments_result(");
123 ashish 4464
      boolean first = true;
4465
 
4466
      sb.append("success:");
4467
      if (this.success == null) {
4468
        sb.append("null");
4469
      } else {
4470
        sb.append(this.success);
4471
      }
4472
      first = false;
4473
      if (!first) sb.append(", ");
4474
      sb.append("pe:");
4475
      if (this.pe == null) {
4476
        sb.append("null");
4477
      } else {
4478
        sb.append(this.pe);
4479
      }
4480
      first = false;
4481
      sb.append(")");
4482
      return sb.toString();
4483
    }
4484
 
3430 rajveer 4485
    public void validate() throws org.apache.thrift.TException {
123 ashish 4486
      // check for required fields
4487
    }
4488
 
3430 rajveer 4489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4490
      try {
4491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4492
      } catch (org.apache.thrift.TException te) {
4493
        throw new java.io.IOException(te);
4494
      }
4495
    }
4496
 
4497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4498
      try {
4499
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4500
      } catch (org.apache.thrift.TException te) {
4501
        throw new java.io.IOException(te);
4502
      }
4503
    }
4504
 
123 ashish 4505
  }
4506
 
3430 rajveer 4507
  public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable   {
4508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
123 ashish 4509
 
3430 rajveer 4510
    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 4511
 
3430 rajveer 4512
    private long id; // required
123 ashish 4513
 
4514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 4516
      ID((short)1, "id");
123 ashish 4517
 
4518
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4519
 
4520
      static {
4521
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4522
          byName.put(field.getFieldName(), field);
4523
        }
4524
      }
4525
 
4526
      /**
4527
       * Find the _Fields constant that matches fieldId, or null if its not found.
4528
       */
4529
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4530
        switch(fieldId) {
4531
          case 1: // ID
4532
            return ID;
4533
          default:
4534
            return null;
4535
        }
123 ashish 4536
      }
4537
 
4538
      /**
4539
       * Find the _Fields constant that matches fieldId, throwing an exception
4540
       * if it is not found.
4541
       */
4542
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4543
        _Fields fields = findByThriftId(fieldId);
4544
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4545
        return fields;
4546
      }
4547
 
4548
      /**
4549
       * Find the _Fields constant that matches name, or null if its not found.
4550
       */
4551
      public static _Fields findByName(String name) {
4552
        return byName.get(name);
4553
      }
4554
 
4555
      private final short _thriftId;
4556
      private final String _fieldName;
4557
 
4558
      _Fields(short thriftId, String fieldName) {
4559
        _thriftId = thriftId;
4560
        _fieldName = fieldName;
4561
      }
4562
 
4563
      public short getThriftFieldId() {
4564
        return _thriftId;
4565
      }
4566
 
4567
      public String getFieldName() {
4568
        return _fieldName;
4569
      }
4570
    }
4571
 
4572
    // isset id assignments
420 ashish 4573
    private static final int __ID_ISSET_ID = 0;
123 ashish 4574
    private BitSet __isset_bit_vector = new BitSet(1);
4575
 
3430 rajveer 4576
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4577
    static {
3430 rajveer 4578
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4579
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4580
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4581
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4582
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
123 ashish 4583
    }
4584
 
695 rajveer 4585
    public getPaymentGateway_args() {
123 ashish 4586
    }
4587
 
695 rajveer 4588
    public getPaymentGateway_args(
4589
      long id)
123 ashish 4590
    {
4591
      this();
420 ashish 4592
      this.id = id;
4593
      setIdIsSet(true);
123 ashish 4594
    }
4595
 
4596
    /**
4597
     * Performs a deep copy on <i>other</i>.
4598
     */
695 rajveer 4599
    public getPaymentGateway_args(getPaymentGateway_args other) {
123 ashish 4600
      __isset_bit_vector.clear();
4601
      __isset_bit_vector.or(other.__isset_bit_vector);
420 ashish 4602
      this.id = other.id;
123 ashish 4603
    }
4604
 
695 rajveer 4605
    public getPaymentGateway_args deepCopy() {
4606
      return new getPaymentGateway_args(this);
123 ashish 4607
    }
4608
 
3430 rajveer 4609
    @Override
4610
    public void clear() {
4611
      setIdIsSet(false);
4612
      this.id = 0;
123 ashish 4613
    }
4614
 
420 ashish 4615
    public long getId() {
4616
      return this.id;
123 ashish 4617
    }
4618
 
3430 rajveer 4619
    public void setId(long id) {
420 ashish 4620
      this.id = id;
4621
      setIdIsSet(true);
123 ashish 4622
    }
4623
 
420 ashish 4624
    public void unsetId() {
4625
      __isset_bit_vector.clear(__ID_ISSET_ID);
123 ashish 4626
    }
4627
 
3430 rajveer 4628
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 4629
    public boolean isSetId() {
4630
      return __isset_bit_vector.get(__ID_ISSET_ID);
123 ashish 4631
    }
4632
 
420 ashish 4633
    public void setIdIsSet(boolean value) {
4634
      __isset_bit_vector.set(__ID_ISSET_ID, value);
123 ashish 4635
    }
4636
 
4637
    public void setFieldValue(_Fields field, Object value) {
4638
      switch (field) {
420 ashish 4639
      case ID:
123 ashish 4640
        if (value == null) {
420 ashish 4641
          unsetId();
123 ashish 4642
        } else {
420 ashish 4643
          setId((Long)value);
123 ashish 4644
        }
4645
        break;
4646
 
4647
      }
4648
    }
4649
 
4650
    public Object getFieldValue(_Fields field) {
4651
      switch (field) {
420 ashish 4652
      case ID:
3430 rajveer 4653
        return Long.valueOf(getId());
123 ashish 4654
 
4655
      }
4656
      throw new IllegalStateException();
4657
    }
4658
 
3430 rajveer 4659
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4660
    public boolean isSet(_Fields field) {
4661
      if (field == null) {
4662
        throw new IllegalArgumentException();
4663
      }
123 ashish 4664
 
4665
      switch (field) {
420 ashish 4666
      case ID:
4667
        return isSetId();
123 ashish 4668
      }
4669
      throw new IllegalStateException();
4670
    }
4671
 
4672
    @Override
4673
    public boolean equals(Object that) {
4674
      if (that == null)
4675
        return false;
695 rajveer 4676
      if (that instanceof getPaymentGateway_args)
4677
        return this.equals((getPaymentGateway_args)that);
123 ashish 4678
      return false;
4679
    }
4680
 
695 rajveer 4681
    public boolean equals(getPaymentGateway_args that) {
123 ashish 4682
      if (that == null)
4683
        return false;
4684
 
420 ashish 4685
      boolean this_present_id = true;
4686
      boolean that_present_id = true;
4687
      if (this_present_id || that_present_id) {
4688
        if (!(this_present_id && that_present_id))
123 ashish 4689
          return false;
420 ashish 4690
        if (this.id != that.id)
123 ashish 4691
          return false;
4692
      }
4693
 
4694
      return true;
4695
    }
4696
 
4697
    @Override
4698
    public int hashCode() {
4699
      return 0;
4700
    }
4701
 
695 rajveer 4702
    public int compareTo(getPaymentGateway_args other) {
123 ashish 4703
      if (!getClass().equals(other.getClass())) {
4704
        return getClass().getName().compareTo(other.getClass().getName());
4705
      }
4706
 
4707
      int lastComparison = 0;
695 rajveer 4708
      getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
123 ashish 4709
 
3430 rajveer 4710
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
123 ashish 4711
      if (lastComparison != 0) {
4712
        return lastComparison;
4713
      }
3430 rajveer 4714
      if (isSetId()) {
4715
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
4716
        if (lastComparison != 0) {
4717
          return lastComparison;
4718
        }
123 ashish 4719
      }
4720
      return 0;
4721
    }
4722
 
3430 rajveer 4723
    public _Fields fieldForId(int fieldId) {
4724
      return _Fields.findByThriftId(fieldId);
4725
    }
4726
 
4727
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4728
      org.apache.thrift.protocol.TField field;
123 ashish 4729
      iprot.readStructBegin();
4730
      while (true)
4731
      {
4732
        field = iprot.readFieldBegin();
3430 rajveer 4733
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4734
          break;
4735
        }
3430 rajveer 4736
        switch (field.id) {
4737
          case 1: // ID
4738
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4739
              this.id = iprot.readI64();
4740
              setIdIsSet(true);
4741
            } else { 
4742
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4743
            }
4744
            break;
4745
          default:
4746
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4747
        }
3430 rajveer 4748
        iprot.readFieldEnd();
123 ashish 4749
      }
4750
      iprot.readStructEnd();
4751
      validate();
4752
    }
4753
 
3430 rajveer 4754
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4755
      validate();
4756
 
4757
      oprot.writeStructBegin(STRUCT_DESC);
420 ashish 4758
      oprot.writeFieldBegin(ID_FIELD_DESC);
4759
      oprot.writeI64(this.id);
123 ashish 4760
      oprot.writeFieldEnd();
4761
      oprot.writeFieldStop();
4762
      oprot.writeStructEnd();
4763
    }
4764
 
4765
    @Override
4766
    public String toString() {
695 rajveer 4767
      StringBuilder sb = new StringBuilder("getPaymentGateway_args(");
123 ashish 4768
      boolean first = true;
4769
 
420 ashish 4770
      sb.append("id:");
4771
      sb.append(this.id);
123 ashish 4772
      first = false;
4773
      sb.append(")");
4774
      return sb.toString();
4775
    }
4776
 
3430 rajveer 4777
    public void validate() throws org.apache.thrift.TException {
123 ashish 4778
      // check for required fields
4779
    }
4780
 
3430 rajveer 4781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4782
      try {
4783
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4784
      } catch (org.apache.thrift.TException te) {
4785
        throw new java.io.IOException(te);
4786
      }
4787
    }
4788
 
4789
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4790
      try {
4791
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4792
        __isset_bit_vector = new BitSet(1);
4793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4794
      } catch (org.apache.thrift.TException te) {
4795
        throw new java.io.IOException(te);
4796
      }
4797
    }
4798
 
123 ashish 4799
  }
4800
 
3430 rajveer 4801
  public static class getPaymentGateway_result implements org.apache.thrift.TBase<getPaymentGateway_result, getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable   {
4802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_result");
123 ashish 4803
 
3430 rajveer 4804
    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);
4805
    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 4806
 
3430 rajveer 4807
    private PaymentGateway success; // required
4808
    private PaymentException pe; // required
123 ashish 4809
 
4810
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4811
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 4812
      SUCCESS((short)0, "success"),
4813
      PE((short)1, "pe");
4814
 
4815
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4816
 
4817
      static {
4818
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4819
          byName.put(field.getFieldName(), field);
4820
        }
4821
      }
4822
 
4823
      /**
4824
       * Find the _Fields constant that matches fieldId, or null if its not found.
4825
       */
4826
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4827
        switch(fieldId) {
4828
          case 0: // SUCCESS
4829
            return SUCCESS;
4830
          case 1: // PE
4831
            return PE;
4832
          default:
4833
            return null;
4834
        }
420 ashish 4835
      }
4836
 
4837
      /**
4838
       * Find the _Fields constant that matches fieldId, throwing an exception
4839
       * if it is not found.
4840
       */
4841
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4842
        _Fields fields = findByThriftId(fieldId);
4843
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4844
        return fields;
4845
      }
4846
 
4847
      /**
4848
       * Find the _Fields constant that matches name, or null if its not found.
4849
       */
4850
      public static _Fields findByName(String name) {
4851
        return byName.get(name);
4852
      }
4853
 
4854
      private final short _thriftId;
4855
      private final String _fieldName;
4856
 
4857
      _Fields(short thriftId, String fieldName) {
4858
        _thriftId = thriftId;
4859
        _fieldName = fieldName;
4860
      }
4861
 
4862
      public short getThriftFieldId() {
4863
        return _thriftId;
4864
      }
4865
 
4866
      public String getFieldName() {
4867
        return _fieldName;
4868
      }
4869
    }
4870
 
4871
    // isset id assignments
4872
 
3430 rajveer 4873
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 4874
    static {
3430 rajveer 4875
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4876
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4877
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class)));
4878
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4879
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4880
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4881
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
420 ashish 4882
    }
4883
 
695 rajveer 4884
    public getPaymentGateway_result() {
420 ashish 4885
    }
4886
 
695 rajveer 4887
    public getPaymentGateway_result(
4888
      PaymentGateway success,
420 ashish 4889
      PaymentException pe)
4890
    {
4891
      this();
4892
      this.success = success;
4893
      this.pe = pe;
4894
    }
4895
 
4896
    /**
4897
     * Performs a deep copy on <i>other</i>.
4898
     */
695 rajveer 4899
    public getPaymentGateway_result(getPaymentGateway_result other) {
420 ashish 4900
      if (other.isSetSuccess()) {
695 rajveer 4901
        this.success = new PaymentGateway(other.success);
420 ashish 4902
      }
4903
      if (other.isSetPe()) {
4904
        this.pe = new PaymentException(other.pe);
4905
      }
4906
    }
4907
 
695 rajveer 4908
    public getPaymentGateway_result deepCopy() {
4909
      return new getPaymentGateway_result(this);
420 ashish 4910
    }
4911
 
3430 rajveer 4912
    @Override
4913
    public void clear() {
4914
      this.success = null;
4915
      this.pe = null;
420 ashish 4916
    }
4917
 
695 rajveer 4918
    public PaymentGateway getSuccess() {
420 ashish 4919
      return this.success;
4920
    }
4921
 
3430 rajveer 4922
    public void setSuccess(PaymentGateway success) {
420 ashish 4923
      this.success = success;
4924
    }
4925
 
4926
    public void unsetSuccess() {
4927
      this.success = null;
4928
    }
4929
 
3430 rajveer 4930
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 4931
    public boolean isSetSuccess() {
4932
      return this.success != null;
4933
    }
4934
 
4935
    public void setSuccessIsSet(boolean value) {
4936
      if (!value) {
4937
        this.success = null;
4938
      }
4939
    }
4940
 
4941
    public PaymentException getPe() {
4942
      return this.pe;
4943
    }
4944
 
3430 rajveer 4945
    public void setPe(PaymentException pe) {
420 ashish 4946
      this.pe = pe;
4947
    }
4948
 
4949
    public void unsetPe() {
4950
      this.pe = null;
4951
    }
4952
 
3430 rajveer 4953
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 4954
    public boolean isSetPe() {
4955
      return this.pe != null;
4956
    }
4957
 
4958
    public void setPeIsSet(boolean value) {
4959
      if (!value) {
4960
        this.pe = null;
4961
      }
4962
    }
4963
 
4964
    public void setFieldValue(_Fields field, Object value) {
4965
      switch (field) {
4966
      case SUCCESS:
4967
        if (value == null) {
4968
          unsetSuccess();
4969
        } else {
695 rajveer 4970
          setSuccess((PaymentGateway)value);
420 ashish 4971
        }
4972
        break;
4973
 
4974
      case PE:
4975
        if (value == null) {
4976
          unsetPe();
4977
        } else {
4978
          setPe((PaymentException)value);
4979
        }
4980
        break;
4981
 
4982
      }
4983
    }
4984
 
4985
    public Object getFieldValue(_Fields field) {
4986
      switch (field) {
4987
      case SUCCESS:
4988
        return getSuccess();
4989
 
4990
      case PE:
4991
        return getPe();
4992
 
4993
      }
4994
      throw new IllegalStateException();
4995
    }
4996
 
3430 rajveer 4997
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4998
    public boolean isSet(_Fields field) {
4999
      if (field == null) {
5000
        throw new IllegalArgumentException();
5001
      }
420 ashish 5002
 
5003
      switch (field) {
5004
      case SUCCESS:
5005
        return isSetSuccess();
5006
      case PE:
5007
        return isSetPe();
5008
      }
5009
      throw new IllegalStateException();
5010
    }
5011
 
5012
    @Override
5013
    public boolean equals(Object that) {
5014
      if (that == null)
5015
        return false;
695 rajveer 5016
      if (that instanceof getPaymentGateway_result)
5017
        return this.equals((getPaymentGateway_result)that);
420 ashish 5018
      return false;
5019
    }
5020
 
695 rajveer 5021
    public boolean equals(getPaymentGateway_result that) {
420 ashish 5022
      if (that == null)
5023
        return false;
5024
 
5025
      boolean this_present_success = true && this.isSetSuccess();
5026
      boolean that_present_success = true && that.isSetSuccess();
5027
      if (this_present_success || that_present_success) {
5028
        if (!(this_present_success && that_present_success))
5029
          return false;
5030
        if (!this.success.equals(that.success))
5031
          return false;
5032
      }
5033
 
5034
      boolean this_present_pe = true && this.isSetPe();
5035
      boolean that_present_pe = true && that.isSetPe();
5036
      if (this_present_pe || that_present_pe) {
5037
        if (!(this_present_pe && that_present_pe))
5038
          return false;
5039
        if (!this.pe.equals(that.pe))
5040
          return false;
5041
      }
5042
 
5043
      return true;
5044
    }
5045
 
5046
    @Override
5047
    public int hashCode() {
5048
      return 0;
5049
    }
5050
 
695 rajveer 5051
    public int compareTo(getPaymentGateway_result other) {
5052
      if (!getClass().equals(other.getClass())) {
5053
        return getClass().getName().compareTo(other.getClass().getName());
5054
      }
5055
 
5056
      int lastComparison = 0;
5057
      getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
5058
 
3430 rajveer 5059
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 5060
      if (lastComparison != 0) {
5061
        return lastComparison;
5062
      }
3430 rajveer 5063
      if (isSetSuccess()) {
5064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5065
        if (lastComparison != 0) {
5066
          return lastComparison;
5067
        }
695 rajveer 5068
      }
3430 rajveer 5069
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 5070
      if (lastComparison != 0) {
5071
        return lastComparison;
5072
      }
3430 rajveer 5073
      if (isSetPe()) {
5074
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5075
        if (lastComparison != 0) {
5076
          return lastComparison;
5077
        }
695 rajveer 5078
      }
5079
      return 0;
5080
    }
5081
 
3430 rajveer 5082
    public _Fields fieldForId(int fieldId) {
5083
      return _Fields.findByThriftId(fieldId);
5084
    }
5085
 
5086
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5087
      org.apache.thrift.protocol.TField field;
420 ashish 5088
      iprot.readStructBegin();
5089
      while (true)
5090
      {
5091
        field = iprot.readFieldBegin();
3430 rajveer 5092
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 5093
          break;
5094
        }
3430 rajveer 5095
        switch (field.id) {
5096
          case 0: // SUCCESS
5097
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5098
              this.success = new PaymentGateway();
5099
              this.success.read(iprot);
5100
            } else { 
5101
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5102
            }
5103
            break;
5104
          case 1: // PE
5105
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5106
              this.pe = new PaymentException();
5107
              this.pe.read(iprot);
5108
            } else { 
5109
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5110
            }
5111
            break;
5112
          default:
5113
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 5114
        }
3430 rajveer 5115
        iprot.readFieldEnd();
420 ashish 5116
      }
5117
      iprot.readStructEnd();
5118
      validate();
5119
    }
5120
 
3430 rajveer 5121
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 5122
      oprot.writeStructBegin(STRUCT_DESC);
5123
 
5124
      if (this.isSetSuccess()) {
5125
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 5126
        this.success.write(oprot);
420 ashish 5127
        oprot.writeFieldEnd();
5128
      } else if (this.isSetPe()) {
5129
        oprot.writeFieldBegin(PE_FIELD_DESC);
5130
        this.pe.write(oprot);
5131
        oprot.writeFieldEnd();
5132
      }
5133
      oprot.writeFieldStop();
5134
      oprot.writeStructEnd();
5135
    }
5136
 
5137
    @Override
5138
    public String toString() {
695 rajveer 5139
      StringBuilder sb = new StringBuilder("getPaymentGateway_result(");
420 ashish 5140
      boolean first = true;
5141
 
5142
      sb.append("success:");
5143
      if (this.success == null) {
5144
        sb.append("null");
5145
      } else {
5146
        sb.append(this.success);
5147
      }
5148
      first = false;
5149
      if (!first) sb.append(", ");
5150
      sb.append("pe:");
5151
      if (this.pe == null) {
5152
        sb.append("null");
5153
      } else {
5154
        sb.append(this.pe);
5155
      }
5156
      first = false;
5157
      sb.append(")");
5158
      return sb.toString();
5159
    }
5160
 
3430 rajveer 5161
    public void validate() throws org.apache.thrift.TException {
420 ashish 5162
      // check for required fields
5163
    }
5164
 
3430 rajveer 5165
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5166
      try {
5167
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5168
      } catch (org.apache.thrift.TException te) {
5169
        throw new java.io.IOException(te);
5170
      }
5171
    }
5172
 
5173
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5174
      try {
5175
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5176
      } catch (org.apache.thrift.TException te) {
5177
        throw new java.io.IOException(te);
5178
      }
5179
    }
5180
 
420 ashish 5181
  }
5182
 
3430 rajveer 5183
  public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable   {
5184
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
420 ashish 5185
 
3430 rajveer 5186
    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 5187
 
3430 rajveer 5188
    private long id; // required
420 ashish 5189
 
5190
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5191
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 5192
      ID((short)1, "id");
5193
 
5194
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5195
 
5196
      static {
5197
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5198
          byName.put(field.getFieldName(), field);
5199
        }
5200
      }
5201
 
5202
      /**
5203
       * Find the _Fields constant that matches fieldId, or null if its not found.
5204
       */
5205
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5206
        switch(fieldId) {
5207
          case 1: // ID
5208
            return ID;
5209
          default:
5210
            return null;
5211
        }
420 ashish 5212
      }
5213
 
5214
      /**
5215
       * Find the _Fields constant that matches fieldId, throwing an exception
5216
       * if it is not found.
5217
       */
5218
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5219
        _Fields fields = findByThriftId(fieldId);
5220
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5221
        return fields;
5222
      }
5223
 
5224
      /**
5225
       * Find the _Fields constant that matches name, or null if its not found.
5226
       */
5227
      public static _Fields findByName(String name) {
5228
        return byName.get(name);
5229
      }
5230
 
5231
      private final short _thriftId;
5232
      private final String _fieldName;
5233
 
5234
      _Fields(short thriftId, String fieldName) {
5235
        _thriftId = thriftId;
5236
        _fieldName = fieldName;
5237
      }
5238
 
5239
      public short getThriftFieldId() {
5240
        return _thriftId;
5241
      }
5242
 
5243
      public String getFieldName() {
5244
        return _fieldName;
5245
      }
5246
    }
5247
 
5248
    // isset id assignments
5249
    private static final int __ID_ISSET_ID = 0;
5250
    private BitSet __isset_bit_vector = new BitSet(1);
5251
 
3430 rajveer 5252
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 5253
    static {
3430 rajveer 5254
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5255
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5256
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5257
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5258
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
420 ashish 5259
    }
5260
 
695 rajveer 5261
    public getPayment_args() {
420 ashish 5262
    }
5263
 
695 rajveer 5264
    public getPayment_args(
420 ashish 5265
      long id)
5266
    {
5267
      this();
5268
      this.id = id;
5269
      setIdIsSet(true);
5270
    }
5271
 
5272
    /**
5273
     * Performs a deep copy on <i>other</i>.
5274
     */
695 rajveer 5275
    public getPayment_args(getPayment_args other) {
420 ashish 5276
      __isset_bit_vector.clear();
5277
      __isset_bit_vector.or(other.__isset_bit_vector);
5278
      this.id = other.id;
5279
    }
5280
 
695 rajveer 5281
    public getPayment_args deepCopy() {
5282
      return new getPayment_args(this);
420 ashish 5283
    }
5284
 
3430 rajveer 5285
    @Override
5286
    public void clear() {
5287
      setIdIsSet(false);
5288
      this.id = 0;
420 ashish 5289
    }
5290
 
5291
    public long getId() {
5292
      return this.id;
5293
    }
5294
 
3430 rajveer 5295
    public void setId(long id) {
420 ashish 5296
      this.id = id;
5297
      setIdIsSet(true);
5298
    }
5299
 
5300
    public void unsetId() {
5301
      __isset_bit_vector.clear(__ID_ISSET_ID);
5302
    }
5303
 
3430 rajveer 5304
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 5305
    public boolean isSetId() {
5306
      return __isset_bit_vector.get(__ID_ISSET_ID);
5307
    }
5308
 
5309
    public void setIdIsSet(boolean value) {
5310
      __isset_bit_vector.set(__ID_ISSET_ID, value);
5311
    }
5312
 
5313
    public void setFieldValue(_Fields field, Object value) {
5314
      switch (field) {
5315
      case ID:
5316
        if (value == null) {
5317
          unsetId();
5318
        } else {
5319
          setId((Long)value);
5320
        }
5321
        break;
5322
 
5323
      }
5324
    }
5325
 
5326
    public Object getFieldValue(_Fields field) {
5327
      switch (field) {
5328
      case ID:
3430 rajveer 5329
        return Long.valueOf(getId());
420 ashish 5330
 
5331
      }
5332
      throw new IllegalStateException();
5333
    }
5334
 
3430 rajveer 5335
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5336
    public boolean isSet(_Fields field) {
5337
      if (field == null) {
5338
        throw new IllegalArgumentException();
5339
      }
420 ashish 5340
 
5341
      switch (field) {
5342
      case ID:
5343
        return isSetId();
5344
      }
5345
      throw new IllegalStateException();
5346
    }
5347
 
5348
    @Override
5349
    public boolean equals(Object that) {
5350
      if (that == null)
5351
        return false;
695 rajveer 5352
      if (that instanceof getPayment_args)
5353
        return this.equals((getPayment_args)that);
420 ashish 5354
      return false;
5355
    }
5356
 
695 rajveer 5357
    public boolean equals(getPayment_args that) {
420 ashish 5358
      if (that == null)
5359
        return false;
5360
 
5361
      boolean this_present_id = true;
5362
      boolean that_present_id = true;
5363
      if (this_present_id || that_present_id) {
5364
        if (!(this_present_id && that_present_id))
5365
          return false;
5366
        if (this.id != that.id)
5367
          return false;
5368
      }
5369
 
5370
      return true;
5371
    }
5372
 
5373
    @Override
5374
    public int hashCode() {
5375
      return 0;
5376
    }
5377
 
695 rajveer 5378
    public int compareTo(getPayment_args other) {
420 ashish 5379
      if (!getClass().equals(other.getClass())) {
5380
        return getClass().getName().compareTo(other.getClass().getName());
5381
      }
5382
 
5383
      int lastComparison = 0;
695 rajveer 5384
      getPayment_args typedOther = (getPayment_args)other;
420 ashish 5385
 
3430 rajveer 5386
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 5387
      if (lastComparison != 0) {
5388
        return lastComparison;
5389
      }
3430 rajveer 5390
      if (isSetId()) {
5391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
5392
        if (lastComparison != 0) {
5393
          return lastComparison;
5394
        }
420 ashish 5395
      }
5396
      return 0;
5397
    }
5398
 
3430 rajveer 5399
    public _Fields fieldForId(int fieldId) {
5400
      return _Fields.findByThriftId(fieldId);
5401
    }
5402
 
5403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5404
      org.apache.thrift.protocol.TField field;
420 ashish 5405
      iprot.readStructBegin();
5406
      while (true)
5407
      {
5408
        field = iprot.readFieldBegin();
3430 rajveer 5409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 5410
          break;
5411
        }
3430 rajveer 5412
        switch (field.id) {
5413
          case 1: // ID
5414
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5415
              this.id = iprot.readI64();
5416
              setIdIsSet(true);
5417
            } else { 
5418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5419
            }
5420
            break;
5421
          default:
5422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 5423
        }
3430 rajveer 5424
        iprot.readFieldEnd();
420 ashish 5425
      }
5426
      iprot.readStructEnd();
5427
      validate();
5428
    }
5429
 
3430 rajveer 5430
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 5431
      validate();
5432
 
5433
      oprot.writeStructBegin(STRUCT_DESC);
5434
      oprot.writeFieldBegin(ID_FIELD_DESC);
5435
      oprot.writeI64(this.id);
5436
      oprot.writeFieldEnd();
5437
      oprot.writeFieldStop();
5438
      oprot.writeStructEnd();
5439
    }
5440
 
5441
    @Override
5442
    public String toString() {
695 rajveer 5443
      StringBuilder sb = new StringBuilder("getPayment_args(");
420 ashish 5444
      boolean first = true;
5445
 
5446
      sb.append("id:");
5447
      sb.append(this.id);
5448
      first = false;
5449
      sb.append(")");
5450
      return sb.toString();
5451
    }
5452
 
3430 rajveer 5453
    public void validate() throws org.apache.thrift.TException {
420 ashish 5454
      // check for required fields
5455
    }
5456
 
3430 rajveer 5457
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5458
      try {
5459
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5460
      } catch (org.apache.thrift.TException te) {
5461
        throw new java.io.IOException(te);
5462
      }
5463
    }
5464
 
5465
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5466
      try {
5467
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5468
        __isset_bit_vector = new BitSet(1);
5469
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5470
      } catch (org.apache.thrift.TException te) {
5471
        throw new java.io.IOException(te);
5472
      }
5473
    }
5474
 
420 ashish 5475
  }
5476
 
3430 rajveer 5477
  public static class getPayment_result implements org.apache.thrift.TBase<getPayment_result, getPayment_result._Fields>, java.io.Serializable, Cloneable   {
5478
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_result");
420 ashish 5479
 
3430 rajveer 5480
    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);
5481
    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 5482
 
3430 rajveer 5483
    private Payment success; // required
5484
    private PaymentException pe; // required
420 ashish 5485
 
5486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5487
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 5488
      SUCCESS((short)0, "success"),
5489
      PE((short)1, "pe");
5490
 
5491
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5492
 
5493
      static {
5494
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5495
          byName.put(field.getFieldName(), field);
5496
        }
5497
      }
5498
 
5499
      /**
5500
       * Find the _Fields constant that matches fieldId, or null if its not found.
5501
       */
5502
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5503
        switch(fieldId) {
5504
          case 0: // SUCCESS
5505
            return SUCCESS;
5506
          case 1: // PE
5507
            return PE;
5508
          default:
5509
            return null;
5510
        }
420 ashish 5511
      }
5512
 
5513
      /**
5514
       * Find the _Fields constant that matches fieldId, throwing an exception
5515
       * if it is not found.
5516
       */
5517
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5518
        _Fields fields = findByThriftId(fieldId);
5519
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5520
        return fields;
5521
      }
5522
 
5523
      /**
5524
       * Find the _Fields constant that matches name, or null if its not found.
5525
       */
5526
      public static _Fields findByName(String name) {
5527
        return byName.get(name);
5528
      }
5529
 
5530
      private final short _thriftId;
5531
      private final String _fieldName;
5532
 
5533
      _Fields(short thriftId, String fieldName) {
5534
        _thriftId = thriftId;
5535
        _fieldName = fieldName;
5536
      }
5537
 
5538
      public short getThriftFieldId() {
5539
        return _thriftId;
5540
      }
5541
 
5542
      public String getFieldName() {
5543
        return _fieldName;
5544
      }
5545
    }
5546
 
5547
    // isset id assignments
5548
 
3430 rajveer 5549
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 5550
    static {
3430 rajveer 5551
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5552
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5553
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
5554
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5555
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5556
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5557
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
420 ashish 5558
    }
5559
 
695 rajveer 5560
    public getPayment_result() {
420 ashish 5561
    }
5562
 
695 rajveer 5563
    public getPayment_result(
5564
      Payment success,
420 ashish 5565
      PaymentException pe)
5566
    {
5567
      this();
5568
      this.success = success;
5569
      this.pe = pe;
5570
    }
5571
 
5572
    /**
5573
     * Performs a deep copy on <i>other</i>.
5574
     */
695 rajveer 5575
    public getPayment_result(getPayment_result other) {
420 ashish 5576
      if (other.isSetSuccess()) {
695 rajveer 5577
        this.success = new Payment(other.success);
420 ashish 5578
      }
5579
      if (other.isSetPe()) {
5580
        this.pe = new PaymentException(other.pe);
5581
      }
5582
    }
5583
 
695 rajveer 5584
    public getPayment_result deepCopy() {
5585
      return new getPayment_result(this);
420 ashish 5586
    }
5587
 
3430 rajveer 5588
    @Override
5589
    public void clear() {
5590
      this.success = null;
5591
      this.pe = null;
420 ashish 5592
    }
5593
 
695 rajveer 5594
    public Payment getSuccess() {
420 ashish 5595
      return this.success;
5596
    }
5597
 
3430 rajveer 5598
    public void setSuccess(Payment success) {
420 ashish 5599
      this.success = success;
5600
    }
5601
 
5602
    public void unsetSuccess() {
5603
      this.success = null;
5604
    }
5605
 
3430 rajveer 5606
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 5607
    public boolean isSetSuccess() {
5608
      return this.success != null;
5609
    }
5610
 
5611
    public void setSuccessIsSet(boolean value) {
5612
      if (!value) {
5613
        this.success = null;
5614
      }
5615
    }
5616
 
5617
    public PaymentException getPe() {
5618
      return this.pe;
5619
    }
5620
 
3430 rajveer 5621
    public void setPe(PaymentException pe) {
420 ashish 5622
      this.pe = pe;
5623
    }
5624
 
5625
    public void unsetPe() {
5626
      this.pe = null;
5627
    }
5628
 
3430 rajveer 5629
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 5630
    public boolean isSetPe() {
5631
      return this.pe != null;
5632
    }
5633
 
5634
    public void setPeIsSet(boolean value) {
5635
      if (!value) {
5636
        this.pe = null;
5637
      }
5638
    }
5639
 
5640
    public void setFieldValue(_Fields field, Object value) {
5641
      switch (field) {
5642
      case SUCCESS:
5643
        if (value == null) {
5644
          unsetSuccess();
5645
        } else {
695 rajveer 5646
          setSuccess((Payment)value);
420 ashish 5647
        }
5648
        break;
5649
 
5650
      case PE:
5651
        if (value == null) {
5652
          unsetPe();
5653
        } else {
5654
          setPe((PaymentException)value);
5655
        }
5656
        break;
5657
 
5658
      }
5659
    }
5660
 
5661
    public Object getFieldValue(_Fields field) {
5662
      switch (field) {
5663
      case SUCCESS:
5664
        return getSuccess();
5665
 
5666
      case PE:
5667
        return getPe();
5668
 
5669
      }
5670
      throw new IllegalStateException();
5671
    }
5672
 
3430 rajveer 5673
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5674
    public boolean isSet(_Fields field) {
5675
      if (field == null) {
5676
        throw new IllegalArgumentException();
5677
      }
420 ashish 5678
 
5679
      switch (field) {
5680
      case SUCCESS:
5681
        return isSetSuccess();
5682
      case PE:
5683
        return isSetPe();
5684
      }
5685
      throw new IllegalStateException();
5686
    }
5687
 
5688
    @Override
5689
    public boolean equals(Object that) {
5690
      if (that == null)
5691
        return false;
695 rajveer 5692
      if (that instanceof getPayment_result)
5693
        return this.equals((getPayment_result)that);
420 ashish 5694
      return false;
5695
    }
5696
 
695 rajveer 5697
    public boolean equals(getPayment_result that) {
420 ashish 5698
      if (that == null)
5699
        return false;
5700
 
5701
      boolean this_present_success = true && this.isSetSuccess();
5702
      boolean that_present_success = true && that.isSetSuccess();
5703
      if (this_present_success || that_present_success) {
5704
        if (!(this_present_success && that_present_success))
5705
          return false;
5706
        if (!this.success.equals(that.success))
5707
          return false;
5708
      }
5709
 
5710
      boolean this_present_pe = true && this.isSetPe();
5711
      boolean that_present_pe = true && that.isSetPe();
5712
      if (this_present_pe || that_present_pe) {
5713
        if (!(this_present_pe && that_present_pe))
5714
          return false;
5715
        if (!this.pe.equals(that.pe))
5716
          return false;
5717
      }
5718
 
5719
      return true;
5720
    }
5721
 
5722
    @Override
5723
    public int hashCode() {
5724
      return 0;
5725
    }
5726
 
695 rajveer 5727
    public int compareTo(getPayment_result other) {
420 ashish 5728
      if (!getClass().equals(other.getClass())) {
5729
        return getClass().getName().compareTo(other.getClass().getName());
5730
      }
5731
 
5732
      int lastComparison = 0;
695 rajveer 5733
      getPayment_result typedOther = (getPayment_result)other;
420 ashish 5734
 
3430 rajveer 5735
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 5736
      if (lastComparison != 0) {
5737
        return lastComparison;
5738
      }
3430 rajveer 5739
      if (isSetSuccess()) {
5740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5741
        if (lastComparison != 0) {
5742
          return lastComparison;
5743
        }
420 ashish 5744
      }
3430 rajveer 5745
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 5746
      if (lastComparison != 0) {
5747
        return lastComparison;
5748
      }
3430 rajveer 5749
      if (isSetPe()) {
5750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5751
        if (lastComparison != 0) {
5752
          return lastComparison;
5753
        }
420 ashish 5754
      }
5755
      return 0;
5756
    }
5757
 
3430 rajveer 5758
    public _Fields fieldForId(int fieldId) {
5759
      return _Fields.findByThriftId(fieldId);
5760
    }
5761
 
5762
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5763
      org.apache.thrift.protocol.TField field;
420 ashish 5764
      iprot.readStructBegin();
5765
      while (true)
5766
      {
5767
        field = iprot.readFieldBegin();
3430 rajveer 5768
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 5769
          break;
5770
        }
3430 rajveer 5771
        switch (field.id) {
5772
          case 0: // SUCCESS
5773
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5774
              this.success = new Payment();
5775
              this.success.read(iprot);
5776
            } else { 
5777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5778
            }
5779
            break;
5780
          case 1: // PE
5781
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5782
              this.pe = new PaymentException();
5783
              this.pe.read(iprot);
5784
            } else { 
5785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5786
            }
5787
            break;
5788
          default:
5789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 5790
        }
3430 rajveer 5791
        iprot.readFieldEnd();
420 ashish 5792
      }
5793
      iprot.readStructEnd();
5794
      validate();
5795
    }
5796
 
3430 rajveer 5797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 5798
      oprot.writeStructBegin(STRUCT_DESC);
5799
 
695 rajveer 5800
      if (this.isSetSuccess()) {
5801
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5802
        this.success.write(oprot);
5803
        oprot.writeFieldEnd();
5804
      } else if (this.isSetPe()) {
420 ashish 5805
        oprot.writeFieldBegin(PE_FIELD_DESC);
5806
        this.pe.write(oprot);
5807
        oprot.writeFieldEnd();
5808
      }
5809
      oprot.writeFieldStop();
5810
      oprot.writeStructEnd();
5811
    }
5812
 
5813
    @Override
5814
    public String toString() {
695 rajveer 5815
      StringBuilder sb = new StringBuilder("getPayment_result(");
420 ashish 5816
      boolean first = true;
5817
 
695 rajveer 5818
      sb.append("success:");
5819
      if (this.success == null) {
5820
        sb.append("null");
5821
      } else {
5822
        sb.append(this.success);
5823
      }
5824
      first = false;
5825
      if (!first) sb.append(", ");
420 ashish 5826
      sb.append("pe:");
5827
      if (this.pe == null) {
5828
        sb.append("null");
5829
      } else {
5830
        sb.append(this.pe);
5831
      }
5832
      first = false;
5833
      sb.append(")");
5834
      return sb.toString();
5835
    }
5836
 
3430 rajveer 5837
    public void validate() throws org.apache.thrift.TException {
420 ashish 5838
      // check for required fields
5839
    }
5840
 
3430 rajveer 5841
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5842
      try {
5843
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5844
      } catch (org.apache.thrift.TException te) {
5845
        throw new java.io.IOException(te);
5846
      }
5847
    }
5848
 
5849
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5850
      try {
5851
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5852
      } catch (org.apache.thrift.TException te) {
5853
        throw new java.io.IOException(te);
5854
      }
5855
    }
5856
 
420 ashish 5857
  }
5858
 
3430 rajveer 5859
  public static class getPaymentForTxnId_args implements org.apache.thrift.TBase<getPaymentForTxnId_args, getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
5860
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_args");
420 ashish 5861
 
3430 rajveer 5862
    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 5863
 
3430 rajveer 5864
    private long txnId; // required
420 ashish 5865
 
5866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5867
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 5868
      TXN_ID((short)1, "txnId");
420 ashish 5869
 
5870
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5871
 
5872
      static {
5873
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5874
          byName.put(field.getFieldName(), field);
5875
        }
5876
      }
5877
 
5878
      /**
5879
       * Find the _Fields constant that matches fieldId, or null if its not found.
5880
       */
5881
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5882
        switch(fieldId) {
5883
          case 1: // TXN_ID
5884
            return TXN_ID;
5885
          default:
5886
            return null;
5887
        }
420 ashish 5888
      }
5889
 
5890
      /**
5891
       * Find the _Fields constant that matches fieldId, throwing an exception
5892
       * if it is not found.
5893
       */
5894
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5895
        _Fields fields = findByThriftId(fieldId);
5896
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5897
        return fields;
5898
      }
5899
 
5900
      /**
5901
       * Find the _Fields constant that matches name, or null if its not found.
5902
       */
5903
      public static _Fields findByName(String name) {
5904
        return byName.get(name);
5905
      }
5906
 
5907
      private final short _thriftId;
5908
      private final String _fieldName;
5909
 
5910
      _Fields(short thriftId, String fieldName) {
5911
        _thriftId = thriftId;
5912
        _fieldName = fieldName;
5913
      }
5914
 
5915
      public short getThriftFieldId() {
5916
        return _thriftId;
5917
      }
5918
 
5919
      public String getFieldName() {
5920
        return _fieldName;
5921
      }
5922
    }
5923
 
5924
    // isset id assignments
695 rajveer 5925
    private static final int __TXNID_ISSET_ID = 0;
420 ashish 5926
    private BitSet __isset_bit_vector = new BitSet(1);
5927
 
3430 rajveer 5928
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 5929
    static {
3430 rajveer 5930
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5931
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5932
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5933
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5934
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
420 ashish 5935
    }
5936
 
695 rajveer 5937
    public getPaymentForTxnId_args() {
420 ashish 5938
    }
5939
 
695 rajveer 5940
    public getPaymentForTxnId_args(
5941
      long txnId)
420 ashish 5942
    {
5943
      this();
695 rajveer 5944
      this.txnId = txnId;
5945
      setTxnIdIsSet(true);
420 ashish 5946
    }
5947
 
5948
    /**
5949
     * Performs a deep copy on <i>other</i>.
5950
     */
695 rajveer 5951
    public getPaymentForTxnId_args(getPaymentForTxnId_args other) {
420 ashish 5952
      __isset_bit_vector.clear();
5953
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 5954
      this.txnId = other.txnId;
420 ashish 5955
    }
5956
 
695 rajveer 5957
    public getPaymentForTxnId_args deepCopy() {
5958
      return new getPaymentForTxnId_args(this);
420 ashish 5959
    }
5960
 
3430 rajveer 5961
    @Override
5962
    public void clear() {
5963
      setTxnIdIsSet(false);
5964
      this.txnId = 0;
420 ashish 5965
    }
5966
 
695 rajveer 5967
    public long getTxnId() {
5968
      return this.txnId;
420 ashish 5969
    }
5970
 
3430 rajveer 5971
    public void setTxnId(long txnId) {
695 rajveer 5972
      this.txnId = txnId;
5973
      setTxnIdIsSet(true);
420 ashish 5974
    }
5975
 
695 rajveer 5976
    public void unsetTxnId() {
5977
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
420 ashish 5978
    }
5979
 
3430 rajveer 5980
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 5981
    public boolean isSetTxnId() {
5982
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
420 ashish 5983
    }
5984
 
695 rajveer 5985
    public void setTxnIdIsSet(boolean value) {
5986
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
420 ashish 5987
    }
5988
 
5989
    public void setFieldValue(_Fields field, Object value) {
5990
      switch (field) {
695 rajveer 5991
      case TXN_ID:
420 ashish 5992
        if (value == null) {
695 rajveer 5993
          unsetTxnId();
420 ashish 5994
        } else {
695 rajveer 5995
          setTxnId((Long)value);
420 ashish 5996
        }
5997
        break;
5998
 
5999
      }
6000
    }
6001
 
6002
    public Object getFieldValue(_Fields field) {
6003
      switch (field) {
695 rajveer 6004
      case TXN_ID:
3430 rajveer 6005
        return Long.valueOf(getTxnId());
420 ashish 6006
 
6007
      }
6008
      throw new IllegalStateException();
6009
    }
6010
 
3430 rajveer 6011
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6012
    public boolean isSet(_Fields field) {
6013
      if (field == null) {
6014
        throw new IllegalArgumentException();
6015
      }
420 ashish 6016
 
6017
      switch (field) {
695 rajveer 6018
      case TXN_ID:
6019
        return isSetTxnId();
420 ashish 6020
      }
6021
      throw new IllegalStateException();
6022
    }
6023
 
6024
    @Override
6025
    public boolean equals(Object that) {
6026
      if (that == null)
6027
        return false;
695 rajveer 6028
      if (that instanceof getPaymentForTxnId_args)
6029
        return this.equals((getPaymentForTxnId_args)that);
420 ashish 6030
      return false;
6031
    }
6032
 
695 rajveer 6033
    public boolean equals(getPaymentForTxnId_args that) {
420 ashish 6034
      if (that == null)
6035
        return false;
6036
 
695 rajveer 6037
      boolean this_present_txnId = true;
6038
      boolean that_present_txnId = true;
6039
      if (this_present_txnId || that_present_txnId) {
6040
        if (!(this_present_txnId && that_present_txnId))
420 ashish 6041
          return false;
695 rajveer 6042
        if (this.txnId != that.txnId)
420 ashish 6043
          return false;
6044
      }
6045
 
6046
      return true;
6047
    }
6048
 
6049
    @Override
6050
    public int hashCode() {
6051
      return 0;
6052
    }
6053
 
695 rajveer 6054
    public int compareTo(getPaymentForTxnId_args other) {
420 ashish 6055
      if (!getClass().equals(other.getClass())) {
6056
        return getClass().getName().compareTo(other.getClass().getName());
6057
      }
6058
 
6059
      int lastComparison = 0;
695 rajveer 6060
      getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
420 ashish 6061
 
3430 rajveer 6062
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
420 ashish 6063
      if (lastComparison != 0) {
6064
        return lastComparison;
6065
      }
3430 rajveer 6066
      if (isSetTxnId()) {
6067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
6068
        if (lastComparison != 0) {
6069
          return lastComparison;
6070
        }
420 ashish 6071
      }
6072
      return 0;
6073
    }
6074
 
3430 rajveer 6075
    public _Fields fieldForId(int fieldId) {
6076
      return _Fields.findByThriftId(fieldId);
6077
    }
6078
 
6079
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6080
      org.apache.thrift.protocol.TField field;
420 ashish 6081
      iprot.readStructBegin();
6082
      while (true)
6083
      {
6084
        field = iprot.readFieldBegin();
3430 rajveer 6085
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 6086
          break;
6087
        }
3430 rajveer 6088
        switch (field.id) {
6089
          case 1: // TXN_ID
6090
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6091
              this.txnId = iprot.readI64();
6092
              setTxnIdIsSet(true);
6093
            } else { 
6094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6095
            }
6096
            break;
6097
          default:
6098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 6099
        }
3430 rajveer 6100
        iprot.readFieldEnd();
420 ashish 6101
      }
6102
      iprot.readStructEnd();
6103
      validate();
6104
    }
6105
 
3430 rajveer 6106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 6107
      validate();
6108
 
6109
      oprot.writeStructBegin(STRUCT_DESC);
695 rajveer 6110
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
6111
      oprot.writeI64(this.txnId);
420 ashish 6112
      oprot.writeFieldEnd();
6113
      oprot.writeFieldStop();
6114
      oprot.writeStructEnd();
6115
    }
6116
 
6117
    @Override
6118
    public String toString() {
695 rajveer 6119
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_args(");
420 ashish 6120
      boolean first = true;
6121
 
695 rajveer 6122
      sb.append("txnId:");
6123
      sb.append(this.txnId);
420 ashish 6124
      first = false;
6125
      sb.append(")");
6126
      return sb.toString();
6127
    }
6128
 
3430 rajveer 6129
    public void validate() throws org.apache.thrift.TException {
420 ashish 6130
      // check for required fields
6131
    }
6132
 
3430 rajveer 6133
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6134
      try {
6135
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6136
      } catch (org.apache.thrift.TException te) {
6137
        throw new java.io.IOException(te);
6138
      }
6139
    }
6140
 
6141
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6142
      try {
6143
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6144
        __isset_bit_vector = new BitSet(1);
6145
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6146
      } catch (org.apache.thrift.TException te) {
6147
        throw new java.io.IOException(te);
6148
      }
6149
    }
6150
 
420 ashish 6151
  }
6152
 
3430 rajveer 6153
  public static class getPaymentForTxnId_result implements org.apache.thrift.TBase<getPaymentForTxnId_result, getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
6154
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_result");
420 ashish 6155
 
3430 rajveer 6156
    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);
6157
    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 6158
 
3430 rajveer 6159
    private List<Payment> success; // required
6160
    private PaymentException pe; // required
420 ashish 6161
 
6162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 6164
      SUCCESS((short)0, "success"),
6165
      PE((short)1, "pe");
6166
 
6167
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6168
 
6169
      static {
6170
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6171
          byName.put(field.getFieldName(), field);
6172
        }
6173
      }
6174
 
6175
      /**
6176
       * Find the _Fields constant that matches fieldId, or null if its not found.
6177
       */
6178
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6179
        switch(fieldId) {
6180
          case 0: // SUCCESS
6181
            return SUCCESS;
6182
          case 1: // PE
6183
            return PE;
6184
          default:
6185
            return null;
6186
        }
420 ashish 6187
      }
6188
 
6189
      /**
6190
       * Find the _Fields constant that matches fieldId, throwing an exception
6191
       * if it is not found.
6192
       */
6193
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6194
        _Fields fields = findByThriftId(fieldId);
6195
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6196
        return fields;
6197
      }
6198
 
6199
      /**
6200
       * Find the _Fields constant that matches name, or null if its not found.
6201
       */
6202
      public static _Fields findByName(String name) {
6203
        return byName.get(name);
6204
      }
6205
 
6206
      private final short _thriftId;
6207
      private final String _fieldName;
6208
 
6209
      _Fields(short thriftId, String fieldName) {
6210
        _thriftId = thriftId;
6211
        _fieldName = fieldName;
6212
      }
6213
 
6214
      public short getThriftFieldId() {
6215
        return _thriftId;
6216
      }
6217
 
6218
      public String getFieldName() {
6219
        return _fieldName;
6220
      }
6221
    }
6222
 
6223
    // isset id assignments
6224
 
3430 rajveer 6225
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 6226
    static {
3430 rajveer 6227
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6228
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6229
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6230
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
6231
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6233
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6234
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
420 ashish 6235
    }
6236
 
695 rajveer 6237
    public getPaymentForTxnId_result() {
420 ashish 6238
    }
6239
 
695 rajveer 6240
    public getPaymentForTxnId_result(
6241
      List<Payment> success,
420 ashish 6242
      PaymentException pe)
6243
    {
6244
      this();
6245
      this.success = success;
6246
      this.pe = pe;
6247
    }
6248
 
6249
    /**
6250
     * Performs a deep copy on <i>other</i>.
6251
     */
695 rajveer 6252
    public getPaymentForTxnId_result(getPaymentForTxnId_result other) {
420 ashish 6253
      if (other.isSetSuccess()) {
695 rajveer 6254
        List<Payment> __this__success = new ArrayList<Payment>();
6255
        for (Payment other_element : other.success) {
6256
          __this__success.add(new Payment(other_element));
6257
        }
6258
        this.success = __this__success;
420 ashish 6259
      }
6260
      if (other.isSetPe()) {
6261
        this.pe = new PaymentException(other.pe);
6262
      }
6263
    }
6264
 
695 rajveer 6265
    public getPaymentForTxnId_result deepCopy() {
6266
      return new getPaymentForTxnId_result(this);
420 ashish 6267
    }
6268
 
3430 rajveer 6269
    @Override
6270
    public void clear() {
6271
      this.success = null;
6272
      this.pe = null;
420 ashish 6273
    }
6274
 
695 rajveer 6275
    public int getSuccessSize() {
6276
      return (this.success == null) ? 0 : this.success.size();
6277
    }
6278
 
6279
    public java.util.Iterator<Payment> getSuccessIterator() {
6280
      return (this.success == null) ? null : this.success.iterator();
6281
    }
6282
 
6283
    public void addToSuccess(Payment elem) {
6284
      if (this.success == null) {
6285
        this.success = new ArrayList<Payment>();
6286
      }
6287
      this.success.add(elem);
6288
    }
6289
 
6290
    public List<Payment> getSuccess() {
420 ashish 6291
      return this.success;
6292
    }
6293
 
3430 rajveer 6294
    public void setSuccess(List<Payment> success) {
420 ashish 6295
      this.success = success;
6296
    }
6297
 
6298
    public void unsetSuccess() {
6299
      this.success = null;
6300
    }
6301
 
3430 rajveer 6302
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 6303
    public boolean isSetSuccess() {
6304
      return this.success != null;
6305
    }
6306
 
6307
    public void setSuccessIsSet(boolean value) {
6308
      if (!value) {
6309
        this.success = null;
6310
      }
6311
    }
6312
 
6313
    public PaymentException getPe() {
6314
      return this.pe;
6315
    }
6316
 
3430 rajveer 6317
    public void setPe(PaymentException pe) {
420 ashish 6318
      this.pe = pe;
6319
    }
6320
 
6321
    public void unsetPe() {
6322
      this.pe = null;
6323
    }
6324
 
3430 rajveer 6325
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 6326
    public boolean isSetPe() {
6327
      return this.pe != null;
6328
    }
6329
 
6330
    public void setPeIsSet(boolean value) {
6331
      if (!value) {
6332
        this.pe = null;
6333
      }
6334
    }
6335
 
6336
    public void setFieldValue(_Fields field, Object value) {
6337
      switch (field) {
6338
      case SUCCESS:
6339
        if (value == null) {
6340
          unsetSuccess();
6341
        } else {
695 rajveer 6342
          setSuccess((List<Payment>)value);
420 ashish 6343
        }
6344
        break;
6345
 
6346
      case PE:
6347
        if (value == null) {
6348
          unsetPe();
6349
        } else {
6350
          setPe((PaymentException)value);
6351
        }
6352
        break;
6353
 
6354
      }
6355
    }
6356
 
6357
    public Object getFieldValue(_Fields field) {
6358
      switch (field) {
6359
      case SUCCESS:
6360
        return getSuccess();
6361
 
6362
      case PE:
6363
        return getPe();
6364
 
6365
      }
6366
      throw new IllegalStateException();
6367
    }
6368
 
3430 rajveer 6369
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6370
    public boolean isSet(_Fields field) {
6371
      if (field == null) {
6372
        throw new IllegalArgumentException();
6373
      }
420 ashish 6374
 
6375
      switch (field) {
6376
      case SUCCESS:
6377
        return isSetSuccess();
6378
      case PE:
6379
        return isSetPe();
6380
      }
6381
      throw new IllegalStateException();
6382
    }
6383
 
6384
    @Override
6385
    public boolean equals(Object that) {
6386
      if (that == null)
6387
        return false;
695 rajveer 6388
      if (that instanceof getPaymentForTxnId_result)
6389
        return this.equals((getPaymentForTxnId_result)that);
420 ashish 6390
      return false;
6391
    }
6392
 
695 rajveer 6393
    public boolean equals(getPaymentForTxnId_result that) {
420 ashish 6394
      if (that == null)
6395
        return false;
6396
 
6397
      boolean this_present_success = true && this.isSetSuccess();
6398
      boolean that_present_success = true && that.isSetSuccess();
6399
      if (this_present_success || that_present_success) {
6400
        if (!(this_present_success && that_present_success))
6401
          return false;
6402
        if (!this.success.equals(that.success))
6403
          return false;
6404
      }
6405
 
6406
      boolean this_present_pe = true && this.isSetPe();
6407
      boolean that_present_pe = true && that.isSetPe();
6408
      if (this_present_pe || that_present_pe) {
6409
        if (!(this_present_pe && that_present_pe))
6410
          return false;
6411
        if (!this.pe.equals(that.pe))
6412
          return false;
6413
      }
6414
 
6415
      return true;
6416
    }
6417
 
6418
    @Override
6419
    public int hashCode() {
6420
      return 0;
6421
    }
6422
 
695 rajveer 6423
    public int compareTo(getPaymentForTxnId_result other) {
6424
      if (!getClass().equals(other.getClass())) {
6425
        return getClass().getName().compareTo(other.getClass().getName());
6426
      }
6427
 
6428
      int lastComparison = 0;
6429
      getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
6430
 
3430 rajveer 6431
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 6432
      if (lastComparison != 0) {
6433
        return lastComparison;
6434
      }
3430 rajveer 6435
      if (isSetSuccess()) {
6436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6437
        if (lastComparison != 0) {
6438
          return lastComparison;
6439
        }
695 rajveer 6440
      }
3430 rajveer 6441
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 6442
      if (lastComparison != 0) {
6443
        return lastComparison;
6444
      }
3430 rajveer 6445
      if (isSetPe()) {
6446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
6447
        if (lastComparison != 0) {
6448
          return lastComparison;
6449
        }
695 rajveer 6450
      }
6451
      return 0;
6452
    }
6453
 
3430 rajveer 6454
    public _Fields fieldForId(int fieldId) {
6455
      return _Fields.findByThriftId(fieldId);
6456
    }
6457
 
6458
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6459
      org.apache.thrift.protocol.TField field;
420 ashish 6460
      iprot.readStructBegin();
6461
      while (true)
6462
      {
6463
        field = iprot.readFieldBegin();
3430 rajveer 6464
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 6465
          break;
6466
        }
3430 rajveer 6467
        switch (field.id) {
6468
          case 0: // SUCCESS
6469
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6470
              {
6471
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
6472
                this.success = new ArrayList<Payment>(_list20.size);
6473
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
695 rajveer 6474
                {
3430 rajveer 6475
                  Payment _elem22; // required
6476
                  _elem22 = new Payment();
6477
                  _elem22.read(iprot);
6478
                  this.success.add(_elem22);
695 rajveer 6479
                }
3430 rajveer 6480
                iprot.readListEnd();
420 ashish 6481
              }
3430 rajveer 6482
            } else { 
6483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6484
            }
6485
            break;
6486
          case 1: // PE
6487
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6488
              this.pe = new PaymentException();
6489
              this.pe.read(iprot);
6490
            } else { 
6491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6492
            }
6493
            break;
6494
          default:
6495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 6496
        }
3430 rajveer 6497
        iprot.readFieldEnd();
420 ashish 6498
      }
6499
      iprot.readStructEnd();
6500
      validate();
6501
    }
6502
 
3430 rajveer 6503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 6504
      oprot.writeStructBegin(STRUCT_DESC);
6505
 
6506
      if (this.isSetSuccess()) {
6507
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 6508
        {
3430 rajveer 6509
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 6510
          for (Payment _iter23 : this.success)
695 rajveer 6511
          {
2747 chandransh 6512
            _iter23.write(oprot);
695 rajveer 6513
          }
6514
          oprot.writeListEnd();
6515
        }
420 ashish 6516
        oprot.writeFieldEnd();
6517
      } else if (this.isSetPe()) {
6518
        oprot.writeFieldBegin(PE_FIELD_DESC);
6519
        this.pe.write(oprot);
6520
        oprot.writeFieldEnd();
6521
      }
6522
      oprot.writeFieldStop();
6523
      oprot.writeStructEnd();
6524
    }
6525
 
6526
    @Override
6527
    public String toString() {
695 rajveer 6528
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_result(");
420 ashish 6529
      boolean first = true;
6530
 
6531
      sb.append("success:");
6532
      if (this.success == null) {
6533
        sb.append("null");
6534
      } else {
6535
        sb.append(this.success);
6536
      }
6537
      first = false;
6538
      if (!first) sb.append(", ");
6539
      sb.append("pe:");
6540
      if (this.pe == null) {
6541
        sb.append("null");
6542
      } else {
6543
        sb.append(this.pe);
6544
      }
6545
      first = false;
6546
      sb.append(")");
6547
      return sb.toString();
6548
    }
6549
 
3430 rajveer 6550
    public void validate() throws org.apache.thrift.TException {
420 ashish 6551
      // check for required fields
6552
    }
6553
 
3430 rajveer 6554
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6555
      try {
6556
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6557
      } catch (org.apache.thrift.TException te) {
6558
        throw new java.io.IOException(te);
6559
      }
6560
    }
6561
 
6562
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6563
      try {
6564
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6565
      } catch (org.apache.thrift.TException te) {
6566
        throw new java.io.IOException(te);
6567
      }
6568
    }
6569
 
420 ashish 6570
  }
6571
 
3430 rajveer 6572
  public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable   {
6573
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
420 ashish 6574
 
3430 rajveer 6575
    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);
6576
    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);
6577
    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);
6578
    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);
6579
    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);
6580
    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);
6581
    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);
6582
    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);
6583
    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);
6584
    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);
6585
    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);
6586
    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 6587
 
3430 rajveer 6588
    private long id; // required
6589
    private String gatewayPaymentId; // required
6590
    private String sessionId; // required
6591
    private String gatewayTxnStatus; // required
6592
    private String description; // required
6593
    private String gatewayTxnId; // required
6594
    private String authCode; // required
6595
    private String referenceCode; // required
6596
    private String errorCode; // required
6597
    private PaymentStatus status; // required
6598
    private String gatewayTxnDate; // required
6599
    private List<Attribute> attributes; // required
420 ashish 6600
 
6601
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6602
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 6603
      ID((short)1, "id"),
695 rajveer 6604
      GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
6605
      SESSION_ID((short)3, "sessionId"),
6606
      GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
6607
      DESCRIPTION((short)5, "description"),
6608
      GATEWAY_TXN_ID((short)6, "gatewayTxnId"),
6609
      AUTH_CODE((short)7, "authCode"),
6610
      REFERENCE_CODE((short)8, "referenceCode"),
6611
      ERROR_CODE((short)9, "errorCode"),
6612
      /**
6613
       * 
6614
       * @see PaymentStatus
6615
       */
6616
      STATUS((short)10, "status"),
1119 rajveer 6617
      GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
6618
      ATTRIBUTES((short)12, "attributes");
420 ashish 6619
 
6620
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6621
 
6622
      static {
6623
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6624
          byName.put(field.getFieldName(), field);
6625
        }
6626
      }
6627
 
6628
      /**
6629
       * Find the _Fields constant that matches fieldId, or null if its not found.
6630
       */
6631
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6632
        switch(fieldId) {
6633
          case 1: // ID
6634
            return ID;
6635
          case 2: // GATEWAY_PAYMENT_ID
6636
            return GATEWAY_PAYMENT_ID;
6637
          case 3: // SESSION_ID
6638
            return SESSION_ID;
6639
          case 4: // GATEWAY_TXN_STATUS
6640
            return GATEWAY_TXN_STATUS;
6641
          case 5: // DESCRIPTION
6642
            return DESCRIPTION;
6643
          case 6: // GATEWAY_TXN_ID
6644
            return GATEWAY_TXN_ID;
6645
          case 7: // AUTH_CODE
6646
            return AUTH_CODE;
6647
          case 8: // REFERENCE_CODE
6648
            return REFERENCE_CODE;
6649
          case 9: // ERROR_CODE
6650
            return ERROR_CODE;
6651
          case 10: // STATUS
6652
            return STATUS;
6653
          case 11: // GATEWAY_TXN_DATE
6654
            return GATEWAY_TXN_DATE;
6655
          case 12: // ATTRIBUTES
6656
            return ATTRIBUTES;
6657
          default:
6658
            return null;
6659
        }
420 ashish 6660
      }
6661
 
6662
      /**
6663
       * Find the _Fields constant that matches fieldId, throwing an exception
6664
       * if it is not found.
6665
       */
6666
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6667
        _Fields fields = findByThriftId(fieldId);
6668
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6669
        return fields;
6670
      }
6671
 
6672
      /**
6673
       * Find the _Fields constant that matches name, or null if its not found.
6674
       */
6675
      public static _Fields findByName(String name) {
6676
        return byName.get(name);
6677
      }
6678
 
6679
      private final short _thriftId;
6680
      private final String _fieldName;
6681
 
6682
      _Fields(short thriftId, String fieldName) {
6683
        _thriftId = thriftId;
6684
        _fieldName = fieldName;
6685
      }
6686
 
6687
      public short getThriftFieldId() {
6688
        return _thriftId;
6689
      }
6690
 
6691
      public String getFieldName() {
6692
        return _fieldName;
6693
      }
6694
    }
6695
 
6696
    // isset id assignments
6697
    private static final int __ID_ISSET_ID = 0;
6698
    private BitSet __isset_bit_vector = new BitSet(1);
6699
 
3430 rajveer 6700
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 6701
    static {
3430 rajveer 6702
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6703
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6704
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6705
      tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6706
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6707
      tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6708
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6709
      tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6710
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6711
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6712
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6713
      tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6714
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6715
      tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6716
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6717
      tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6718
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6719
      tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6720
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6721
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6722
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
6723
      tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6724
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6725
      tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6726
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6727
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
6728
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6729
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
420 ashish 6730
    }
6731
 
695 rajveer 6732
    public updatePaymentDetails_args() {
420 ashish 6733
    }
6734
 
695 rajveer 6735
    public updatePaymentDetails_args(
420 ashish 6736
      long id,
695 rajveer 6737
      String gatewayPaymentId,
6738
      String sessionId,
6739
      String gatewayTxnStatus,
6740
      String description,
6741
      String gatewayTxnId,
6742
      String authCode,
6743
      String referenceCode,
6744
      String errorCode,
6745
      PaymentStatus status,
1119 rajveer 6746
      String gatewayTxnDate,
695 rajveer 6747
      List<Attribute> attributes)
420 ashish 6748
    {
6749
      this();
6750
      this.id = id;
6751
      setIdIsSet(true);
695 rajveer 6752
      this.gatewayPaymentId = gatewayPaymentId;
6753
      this.sessionId = sessionId;
6754
      this.gatewayTxnStatus = gatewayTxnStatus;
6755
      this.description = description;
6756
      this.gatewayTxnId = gatewayTxnId;
6757
      this.authCode = authCode;
6758
      this.referenceCode = referenceCode;
6759
      this.errorCode = errorCode;
6760
      this.status = status;
1119 rajveer 6761
      this.gatewayTxnDate = gatewayTxnDate;
695 rajveer 6762
      this.attributes = attributes;
420 ashish 6763
    }
6764
 
6765
    /**
6766
     * Performs a deep copy on <i>other</i>.
6767
     */
695 rajveer 6768
    public updatePaymentDetails_args(updatePaymentDetails_args other) {
420 ashish 6769
      __isset_bit_vector.clear();
6770
      __isset_bit_vector.or(other.__isset_bit_vector);
6771
      this.id = other.id;
695 rajveer 6772
      if (other.isSetGatewayPaymentId()) {
6773
        this.gatewayPaymentId = other.gatewayPaymentId;
420 ashish 6774
      }
695 rajveer 6775
      if (other.isSetSessionId()) {
6776
        this.sessionId = other.sessionId;
420 ashish 6777
      }
695 rajveer 6778
      if (other.isSetGatewayTxnStatus()) {
6779
        this.gatewayTxnStatus = other.gatewayTxnStatus;
420 ashish 6780
      }
695 rajveer 6781
      if (other.isSetDescription()) {
6782
        this.description = other.description;
420 ashish 6783
      }
695 rajveer 6784
      if (other.isSetGatewayTxnId()) {
6785
        this.gatewayTxnId = other.gatewayTxnId;
420 ashish 6786
      }
695 rajveer 6787
      if (other.isSetAuthCode()) {
6788
        this.authCode = other.authCode;
420 ashish 6789
      }
695 rajveer 6790
      if (other.isSetReferenceCode()) {
6791
        this.referenceCode = other.referenceCode;
420 ashish 6792
      }
695 rajveer 6793
      if (other.isSetErrorCode()) {
6794
        this.errorCode = other.errorCode;
6795
      }
6796
      if (other.isSetStatus()) {
6797
        this.status = other.status;
6798
      }
1119 rajveer 6799
      if (other.isSetGatewayTxnDate()) {
6800
        this.gatewayTxnDate = other.gatewayTxnDate;
6801
      }
695 rajveer 6802
      if (other.isSetAttributes()) {
6803
        List<Attribute> __this__attributes = new ArrayList<Attribute>();
6804
        for (Attribute other_element : other.attributes) {
6805
          __this__attributes.add(new Attribute(other_element));
6806
        }
6807
        this.attributes = __this__attributes;
6808
      }
420 ashish 6809
    }
6810
 
695 rajveer 6811
    public updatePaymentDetails_args deepCopy() {
6812
      return new updatePaymentDetails_args(this);
420 ashish 6813
    }
6814
 
3430 rajveer 6815
    @Override
6816
    public void clear() {
6817
      setIdIsSet(false);
6818
      this.id = 0;
6819
      this.gatewayPaymentId = null;
6820
      this.sessionId = null;
6821
      this.gatewayTxnStatus = null;
6822
      this.description = null;
6823
      this.gatewayTxnId = null;
6824
      this.authCode = null;
6825
      this.referenceCode = null;
6826
      this.errorCode = null;
6827
      this.status = null;
6828
      this.gatewayTxnDate = null;
6829
      this.attributes = null;
420 ashish 6830
    }
6831
 
6832
    public long getId() {
6833
      return this.id;
6834
    }
6835
 
3430 rajveer 6836
    public void setId(long id) {
420 ashish 6837
      this.id = id;
6838
      setIdIsSet(true);
6839
    }
6840
 
6841
    public void unsetId() {
6842
      __isset_bit_vector.clear(__ID_ISSET_ID);
6843
    }
6844
 
3430 rajveer 6845
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 6846
    public boolean isSetId() {
6847
      return __isset_bit_vector.get(__ID_ISSET_ID);
6848
    }
6849
 
6850
    public void setIdIsSet(boolean value) {
6851
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6852
    }
6853
 
695 rajveer 6854
    public String getGatewayPaymentId() {
6855
      return this.gatewayPaymentId;
420 ashish 6856
    }
6857
 
3430 rajveer 6858
    public void setGatewayPaymentId(String gatewayPaymentId) {
695 rajveer 6859
      this.gatewayPaymentId = gatewayPaymentId;
420 ashish 6860
    }
6861
 
695 rajveer 6862
    public void unsetGatewayPaymentId() {
6863
      this.gatewayPaymentId = null;
420 ashish 6864
    }
6865
 
3430 rajveer 6866
    /** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
695 rajveer 6867
    public boolean isSetGatewayPaymentId() {
6868
      return this.gatewayPaymentId != null;
420 ashish 6869
    }
6870
 
695 rajveer 6871
    public void setGatewayPaymentIdIsSet(boolean value) {
420 ashish 6872
      if (!value) {
695 rajveer 6873
        this.gatewayPaymentId = null;
420 ashish 6874
      }
6875
    }
6876
 
695 rajveer 6877
    public String getSessionId() {
6878
      return this.sessionId;
420 ashish 6879
    }
6880
 
3430 rajveer 6881
    public void setSessionId(String sessionId) {
695 rajveer 6882
      this.sessionId = sessionId;
420 ashish 6883
    }
6884
 
695 rajveer 6885
    public void unsetSessionId() {
6886
      this.sessionId = null;
420 ashish 6887
    }
6888
 
3430 rajveer 6889
    /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
695 rajveer 6890
    public boolean isSetSessionId() {
6891
      return this.sessionId != null;
420 ashish 6892
    }
6893
 
695 rajveer 6894
    public void setSessionIdIsSet(boolean value) {
420 ashish 6895
      if (!value) {
695 rajveer 6896
        this.sessionId = null;
420 ashish 6897
      }
6898
    }
6899
 
695 rajveer 6900
    public String getGatewayTxnStatus() {
6901
      return this.gatewayTxnStatus;
420 ashish 6902
    }
6903
 
3430 rajveer 6904
    public void setGatewayTxnStatus(String gatewayTxnStatus) {
695 rajveer 6905
      this.gatewayTxnStatus = gatewayTxnStatus;
420 ashish 6906
    }
6907
 
695 rajveer 6908
    public void unsetGatewayTxnStatus() {
6909
      this.gatewayTxnStatus = null;
420 ashish 6910
    }
6911
 
3430 rajveer 6912
    /** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
695 rajveer 6913
    public boolean isSetGatewayTxnStatus() {
6914
      return this.gatewayTxnStatus != null;
420 ashish 6915
    }
6916
 
695 rajveer 6917
    public void setGatewayTxnStatusIsSet(boolean value) {
420 ashish 6918
      if (!value) {
695 rajveer 6919
        this.gatewayTxnStatus = null;
420 ashish 6920
      }
6921
    }
6922
 
695 rajveer 6923
    public String getDescription() {
6924
      return this.description;
420 ashish 6925
    }
6926
 
3430 rajveer 6927
    public void setDescription(String description) {
695 rajveer 6928
      this.description = description;
420 ashish 6929
    }
6930
 
695 rajveer 6931
    public void unsetDescription() {
6932
      this.description = null;
420 ashish 6933
    }
6934
 
3430 rajveer 6935
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
695 rajveer 6936
    public boolean isSetDescription() {
6937
      return this.description != null;
420 ashish 6938
    }
6939
 
695 rajveer 6940
    public void setDescriptionIsSet(boolean value) {
420 ashish 6941
      if (!value) {
695 rajveer 6942
        this.description = null;
420 ashish 6943
      }
6944
    }
6945
 
695 rajveer 6946
    public String getGatewayTxnId() {
6947
      return this.gatewayTxnId;
420 ashish 6948
    }
6949
 
3430 rajveer 6950
    public void setGatewayTxnId(String gatewayTxnId) {
695 rajveer 6951
      this.gatewayTxnId = gatewayTxnId;
420 ashish 6952
    }
6953
 
695 rajveer 6954
    public void unsetGatewayTxnId() {
6955
      this.gatewayTxnId = null;
420 ashish 6956
    }
6957
 
3430 rajveer 6958
    /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
695 rajveer 6959
    public boolean isSetGatewayTxnId() {
6960
      return this.gatewayTxnId != null;
420 ashish 6961
    }
6962
 
695 rajveer 6963
    public void setGatewayTxnIdIsSet(boolean value) {
420 ashish 6964
      if (!value) {
695 rajveer 6965
        this.gatewayTxnId = null;
420 ashish 6966
      }
6967
    }
6968
 
695 rajveer 6969
    public String getAuthCode() {
6970
      return this.authCode;
420 ashish 6971
    }
6972
 
3430 rajveer 6973
    public void setAuthCode(String authCode) {
695 rajveer 6974
      this.authCode = authCode;
420 ashish 6975
    }
6976
 
695 rajveer 6977
    public void unsetAuthCode() {
6978
      this.authCode = null;
420 ashish 6979
    }
6980
 
3430 rajveer 6981
    /** Returns true if field authCode is set (has been assigned a value) and false otherwise */
695 rajveer 6982
    public boolean isSetAuthCode() {
6983
      return this.authCode != null;
420 ashish 6984
    }
6985
 
695 rajveer 6986
    public void setAuthCodeIsSet(boolean value) {
420 ashish 6987
      if (!value) {
695 rajveer 6988
        this.authCode = null;
420 ashish 6989
      }
6990
    }
6991
 
695 rajveer 6992
    public String getReferenceCode() {
6993
      return this.referenceCode;
420 ashish 6994
    }
6995
 
3430 rajveer 6996
    public void setReferenceCode(String referenceCode) {
695 rajveer 6997
      this.referenceCode = referenceCode;
420 ashish 6998
    }
6999
 
695 rajveer 7000
    public void unsetReferenceCode() {
7001
      this.referenceCode = null;
420 ashish 7002
    }
7003
 
3430 rajveer 7004
    /** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
695 rajveer 7005
    public boolean isSetReferenceCode() {
7006
      return this.referenceCode != null;
420 ashish 7007
    }
7008
 
695 rajveer 7009
    public void setReferenceCodeIsSet(boolean value) {
420 ashish 7010
      if (!value) {
695 rajveer 7011
        this.referenceCode = null;
420 ashish 7012
      }
7013
    }
7014
 
695 rajveer 7015
    public String getErrorCode() {
7016
      return this.errorCode;
7017
    }
7018
 
3430 rajveer 7019
    public void setErrorCode(String errorCode) {
695 rajveer 7020
      this.errorCode = errorCode;
7021
    }
7022
 
7023
    public void unsetErrorCode() {
7024
      this.errorCode = null;
7025
    }
7026
 
3430 rajveer 7027
    /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
695 rajveer 7028
    public boolean isSetErrorCode() {
7029
      return this.errorCode != null;
7030
    }
7031
 
7032
    public void setErrorCodeIsSet(boolean value) {
7033
      if (!value) {
7034
        this.errorCode = null;
7035
      }
7036
    }
7037
 
7038
    /**
7039
     * 
7040
     * @see PaymentStatus
7041
     */
7042
    public PaymentStatus getStatus() {
7043
      return this.status;
7044
    }
7045
 
7046
    /**
7047
     * 
7048
     * @see PaymentStatus
7049
     */
3430 rajveer 7050
    public void setStatus(PaymentStatus status) {
695 rajveer 7051
      this.status = status;
7052
    }
7053
 
7054
    public void unsetStatus() {
7055
      this.status = null;
7056
    }
7057
 
3430 rajveer 7058
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
695 rajveer 7059
    public boolean isSetStatus() {
7060
      return this.status != null;
7061
    }
7062
 
7063
    public void setStatusIsSet(boolean value) {
7064
      if (!value) {
7065
        this.status = null;
7066
      }
7067
    }
7068
 
1119 rajveer 7069
    public String getGatewayTxnDate() {
7070
      return this.gatewayTxnDate;
7071
    }
7072
 
3430 rajveer 7073
    public void setGatewayTxnDate(String gatewayTxnDate) {
1119 rajveer 7074
      this.gatewayTxnDate = gatewayTxnDate;
7075
    }
7076
 
7077
    public void unsetGatewayTxnDate() {
7078
      this.gatewayTxnDate = null;
7079
    }
7080
 
3430 rajveer 7081
    /** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
1119 rajveer 7082
    public boolean isSetGatewayTxnDate() {
7083
      return this.gatewayTxnDate != null;
7084
    }
7085
 
7086
    public void setGatewayTxnDateIsSet(boolean value) {
7087
      if (!value) {
7088
        this.gatewayTxnDate = null;
7089
      }
7090
    }
7091
 
695 rajveer 7092
    public int getAttributesSize() {
7093
      return (this.attributes == null) ? 0 : this.attributes.size();
7094
    }
7095
 
7096
    public java.util.Iterator<Attribute> getAttributesIterator() {
7097
      return (this.attributes == null) ? null : this.attributes.iterator();
7098
    }
7099
 
7100
    public void addToAttributes(Attribute elem) {
7101
      if (this.attributes == null) {
7102
        this.attributes = new ArrayList<Attribute>();
7103
      }
7104
      this.attributes.add(elem);
7105
    }
7106
 
7107
    public List<Attribute> getAttributes() {
7108
      return this.attributes;
7109
    }
7110
 
3430 rajveer 7111
    public void setAttributes(List<Attribute> attributes) {
695 rajveer 7112
      this.attributes = attributes;
7113
    }
7114
 
7115
    public void unsetAttributes() {
7116
      this.attributes = null;
7117
    }
7118
 
3430 rajveer 7119
    /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
695 rajveer 7120
    public boolean isSetAttributes() {
7121
      return this.attributes != null;
7122
    }
7123
 
7124
    public void setAttributesIsSet(boolean value) {
7125
      if (!value) {
7126
        this.attributes = null;
7127
      }
7128
    }
7129
 
420 ashish 7130
    public void setFieldValue(_Fields field, Object value) {
7131
      switch (field) {
7132
      case ID:
7133
        if (value == null) {
7134
          unsetId();
7135
        } else {
7136
          setId((Long)value);
7137
        }
7138
        break;
7139
 
695 rajveer 7140
      case GATEWAY_PAYMENT_ID:
420 ashish 7141
        if (value == null) {
695 rajveer 7142
          unsetGatewayPaymentId();
420 ashish 7143
        } else {
695 rajveer 7144
          setGatewayPaymentId((String)value);
420 ashish 7145
        }
7146
        break;
7147
 
695 rajveer 7148
      case SESSION_ID:
420 ashish 7149
        if (value == null) {
695 rajveer 7150
          unsetSessionId();
420 ashish 7151
        } else {
695 rajveer 7152
          setSessionId((String)value);
420 ashish 7153
        }
7154
        break;
7155
 
695 rajveer 7156
      case GATEWAY_TXN_STATUS:
420 ashish 7157
        if (value == null) {
695 rajveer 7158
          unsetGatewayTxnStatus();
420 ashish 7159
        } else {
695 rajveer 7160
          setGatewayTxnStatus((String)value);
420 ashish 7161
        }
7162
        break;
7163
 
695 rajveer 7164
      case DESCRIPTION:
420 ashish 7165
        if (value == null) {
695 rajveer 7166
          unsetDescription();
420 ashish 7167
        } else {
695 rajveer 7168
          setDescription((String)value);
420 ashish 7169
        }
7170
        break;
7171
 
695 rajveer 7172
      case GATEWAY_TXN_ID:
420 ashish 7173
        if (value == null) {
695 rajveer 7174
          unsetGatewayTxnId();
420 ashish 7175
        } else {
695 rajveer 7176
          setGatewayTxnId((String)value);
420 ashish 7177
        }
7178
        break;
7179
 
7180
      case AUTH_CODE:
7181
        if (value == null) {
695 rajveer 7182
          unsetAuthCode();
420 ashish 7183
        } else {
695 rajveer 7184
          setAuthCode((String)value);
420 ashish 7185
        }
7186
        break;
7187
 
695 rajveer 7188
      case REFERENCE_CODE:
420 ashish 7189
        if (value == null) {
695 rajveer 7190
          unsetReferenceCode();
420 ashish 7191
        } else {
695 rajveer 7192
          setReferenceCode((String)value);
420 ashish 7193
        }
7194
        break;
7195
 
695 rajveer 7196
      case ERROR_CODE:
7197
        if (value == null) {
7198
          unsetErrorCode();
7199
        } else {
7200
          setErrorCode((String)value);
7201
        }
7202
        break;
7203
 
7204
      case STATUS:
7205
        if (value == null) {
7206
          unsetStatus();
7207
        } else {
7208
          setStatus((PaymentStatus)value);
7209
        }
7210
        break;
7211
 
1119 rajveer 7212
      case GATEWAY_TXN_DATE:
7213
        if (value == null) {
7214
          unsetGatewayTxnDate();
7215
        } else {
7216
          setGatewayTxnDate((String)value);
7217
        }
7218
        break;
7219
 
695 rajveer 7220
      case ATTRIBUTES:
7221
        if (value == null) {
7222
          unsetAttributes();
7223
        } else {
7224
          setAttributes((List<Attribute>)value);
7225
        }
7226
        break;
7227
 
420 ashish 7228
      }
7229
    }
7230
 
7231
    public Object getFieldValue(_Fields field) {
7232
      switch (field) {
7233
      case ID:
3430 rajveer 7234
        return Long.valueOf(getId());
420 ashish 7235
 
695 rajveer 7236
      case GATEWAY_PAYMENT_ID:
7237
        return getGatewayPaymentId();
420 ashish 7238
 
695 rajveer 7239
      case SESSION_ID:
7240
        return getSessionId();
420 ashish 7241
 
695 rajveer 7242
      case GATEWAY_TXN_STATUS:
7243
        return getGatewayTxnStatus();
420 ashish 7244
 
695 rajveer 7245
      case DESCRIPTION:
7246
        return getDescription();
420 ashish 7247
 
695 rajveer 7248
      case GATEWAY_TXN_ID:
7249
        return getGatewayTxnId();
420 ashish 7250
 
7251
      case AUTH_CODE:
695 rajveer 7252
        return getAuthCode();
420 ashish 7253
 
695 rajveer 7254
      case REFERENCE_CODE:
7255
        return getReferenceCode();
420 ashish 7256
 
695 rajveer 7257
      case ERROR_CODE:
7258
        return getErrorCode();
7259
 
7260
      case STATUS:
7261
        return getStatus();
7262
 
1119 rajveer 7263
      case GATEWAY_TXN_DATE:
7264
        return getGatewayTxnDate();
7265
 
695 rajveer 7266
      case ATTRIBUTES:
7267
        return getAttributes();
7268
 
420 ashish 7269
      }
7270
      throw new IllegalStateException();
7271
    }
7272
 
3430 rajveer 7273
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7274
    public boolean isSet(_Fields field) {
7275
      if (field == null) {
7276
        throw new IllegalArgumentException();
7277
      }
420 ashish 7278
 
7279
      switch (field) {
7280
      case ID:
7281
        return isSetId();
695 rajveer 7282
      case GATEWAY_PAYMENT_ID:
7283
        return isSetGatewayPaymentId();
420 ashish 7284
      case SESSION_ID:
695 rajveer 7285
        return isSetSessionId();
7286
      case GATEWAY_TXN_STATUS:
7287
        return isSetGatewayTxnStatus();
7288
      case DESCRIPTION:
7289
        return isSetDescription();
7290
      case GATEWAY_TXN_ID:
7291
        return isSetGatewayTxnId();
420 ashish 7292
      case AUTH_CODE:
695 rajveer 7293
        return isSetAuthCode();
7294
      case REFERENCE_CODE:
7295
        return isSetReferenceCode();
7296
      case ERROR_CODE:
7297
        return isSetErrorCode();
7298
      case STATUS:
7299
        return isSetStatus();
1119 rajveer 7300
      case GATEWAY_TXN_DATE:
7301
        return isSetGatewayTxnDate();
695 rajveer 7302
      case ATTRIBUTES:
7303
        return isSetAttributes();
420 ashish 7304
      }
7305
      throw new IllegalStateException();
7306
    }
7307
 
7308
    @Override
7309
    public boolean equals(Object that) {
7310
      if (that == null)
7311
        return false;
695 rajveer 7312
      if (that instanceof updatePaymentDetails_args)
7313
        return this.equals((updatePaymentDetails_args)that);
420 ashish 7314
      return false;
7315
    }
7316
 
695 rajveer 7317
    public boolean equals(updatePaymentDetails_args that) {
420 ashish 7318
      if (that == null)
7319
        return false;
7320
 
7321
      boolean this_present_id = true;
7322
      boolean that_present_id = true;
7323
      if (this_present_id || that_present_id) {
7324
        if (!(this_present_id && that_present_id))
7325
          return false;
7326
        if (this.id != that.id)
7327
          return false;
7328
      }
7329
 
695 rajveer 7330
      boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
7331
      boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
7332
      if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
7333
        if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
420 ashish 7334
          return false;
695 rajveer 7335
        if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
420 ashish 7336
          return false;
7337
      }
7338
 
695 rajveer 7339
      boolean this_present_sessionId = true && this.isSetSessionId();
7340
      boolean that_present_sessionId = true && that.isSetSessionId();
7341
      if (this_present_sessionId || that_present_sessionId) {
7342
        if (!(this_present_sessionId && that_present_sessionId))
420 ashish 7343
          return false;
695 rajveer 7344
        if (!this.sessionId.equals(that.sessionId))
420 ashish 7345
          return false;
7346
      }
7347
 
695 rajveer 7348
      boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
7349
      boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
7350
      if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
7351
        if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
420 ashish 7352
          return false;
695 rajveer 7353
        if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
420 ashish 7354
          return false;
7355
      }
7356
 
695 rajveer 7357
      boolean this_present_description = true && this.isSetDescription();
7358
      boolean that_present_description = true && that.isSetDescription();
7359
      if (this_present_description || that_present_description) {
7360
        if (!(this_present_description && that_present_description))
420 ashish 7361
          return false;
695 rajveer 7362
        if (!this.description.equals(that.description))
420 ashish 7363
          return false;
7364
      }
7365
 
695 rajveer 7366
      boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
7367
      boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
7368
      if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
7369
        if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
420 ashish 7370
          return false;
695 rajveer 7371
        if (!this.gatewayTxnId.equals(that.gatewayTxnId))
420 ashish 7372
          return false;
7373
      }
7374
 
695 rajveer 7375
      boolean this_present_authCode = true && this.isSetAuthCode();
7376
      boolean that_present_authCode = true && that.isSetAuthCode();
7377
      if (this_present_authCode || that_present_authCode) {
7378
        if (!(this_present_authCode && that_present_authCode))
420 ashish 7379
          return false;
695 rajveer 7380
        if (!this.authCode.equals(that.authCode))
420 ashish 7381
          return false;
7382
      }
7383
 
695 rajveer 7384
      boolean this_present_referenceCode = true && this.isSetReferenceCode();
7385
      boolean that_present_referenceCode = true && that.isSetReferenceCode();
7386
      if (this_present_referenceCode || that_present_referenceCode) {
7387
        if (!(this_present_referenceCode && that_present_referenceCode))
420 ashish 7388
          return false;
695 rajveer 7389
        if (!this.referenceCode.equals(that.referenceCode))
420 ashish 7390
          return false;
7391
      }
7392
 
695 rajveer 7393
      boolean this_present_errorCode = true && this.isSetErrorCode();
7394
      boolean that_present_errorCode = true && that.isSetErrorCode();
7395
      if (this_present_errorCode || that_present_errorCode) {
7396
        if (!(this_present_errorCode && that_present_errorCode))
7397
          return false;
7398
        if (!this.errorCode.equals(that.errorCode))
7399
          return false;
7400
      }
7401
 
7402
      boolean this_present_status = true && this.isSetStatus();
7403
      boolean that_present_status = true && that.isSetStatus();
7404
      if (this_present_status || that_present_status) {
7405
        if (!(this_present_status && that_present_status))
7406
          return false;
7407
        if (!this.status.equals(that.status))
7408
          return false;
7409
      }
7410
 
1119 rajveer 7411
      boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
7412
      boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
7413
      if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
7414
        if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
7415
          return false;
7416
        if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
7417
          return false;
7418
      }
7419
 
695 rajveer 7420
      boolean this_present_attributes = true && this.isSetAttributes();
7421
      boolean that_present_attributes = true && that.isSetAttributes();
7422
      if (this_present_attributes || that_present_attributes) {
7423
        if (!(this_present_attributes && that_present_attributes))
7424
          return false;
7425
        if (!this.attributes.equals(that.attributes))
7426
          return false;
7427
      }
7428
 
420 ashish 7429
      return true;
7430
    }
7431
 
7432
    @Override
7433
    public int hashCode() {
7434
      return 0;
7435
    }
7436
 
695 rajveer 7437
    public int compareTo(updatePaymentDetails_args other) {
420 ashish 7438
      if (!getClass().equals(other.getClass())) {
7439
        return getClass().getName().compareTo(other.getClass().getName());
7440
      }
7441
 
7442
      int lastComparison = 0;
695 rajveer 7443
      updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
420 ashish 7444
 
3430 rajveer 7445
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 7446
      if (lastComparison != 0) {
7447
        return lastComparison;
7448
      }
3430 rajveer 7449
      if (isSetId()) {
7450
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7451
        if (lastComparison != 0) {
7452
          return lastComparison;
7453
        }
420 ashish 7454
      }
3430 rajveer 7455
      lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
420 ashish 7456
      if (lastComparison != 0) {
7457
        return lastComparison;
7458
      }
3430 rajveer 7459
      if (isSetGatewayPaymentId()) {
7460
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
7461
        if (lastComparison != 0) {
7462
          return lastComparison;
7463
        }
420 ashish 7464
      }
3430 rajveer 7465
      lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
420 ashish 7466
      if (lastComparison != 0) {
7467
        return lastComparison;
7468
      }
3430 rajveer 7469
      if (isSetSessionId()) {
7470
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
7471
        if (lastComparison != 0) {
7472
          return lastComparison;
7473
        }
420 ashish 7474
      }
3430 rajveer 7475
      lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
420 ashish 7476
      if (lastComparison != 0) {
7477
        return lastComparison;
7478
      }
3430 rajveer 7479
      if (isSetGatewayTxnStatus()) {
7480
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
7481
        if (lastComparison != 0) {
7482
          return lastComparison;
7483
        }
420 ashish 7484
      }
3430 rajveer 7485
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
420 ashish 7486
      if (lastComparison != 0) {
7487
        return lastComparison;
7488
      }
3430 rajveer 7489
      if (isSetDescription()) {
7490
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
7491
        if (lastComparison != 0) {
7492
          return lastComparison;
7493
        }
420 ashish 7494
      }
3430 rajveer 7495
      lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
420 ashish 7496
      if (lastComparison != 0) {
7497
        return lastComparison;
7498
      }
3430 rajveer 7499
      if (isSetGatewayTxnId()) {
7500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
7501
        if (lastComparison != 0) {
7502
          return lastComparison;
7503
        }
420 ashish 7504
      }
3430 rajveer 7505
      lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
420 ashish 7506
      if (lastComparison != 0) {
7507
        return lastComparison;
7508
      }
3430 rajveer 7509
      if (isSetAuthCode()) {
7510
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
7511
        if (lastComparison != 0) {
7512
          return lastComparison;
7513
        }
420 ashish 7514
      }
3430 rajveer 7515
      lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
420 ashish 7516
      if (lastComparison != 0) {
7517
        return lastComparison;
7518
      }
3430 rajveer 7519
      if (isSetReferenceCode()) {
7520
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
7521
        if (lastComparison != 0) {
7522
          return lastComparison;
7523
        }
420 ashish 7524
      }
3430 rajveer 7525
      lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
695 rajveer 7526
      if (lastComparison != 0) {
7527
        return lastComparison;
7528
      }
3430 rajveer 7529
      if (isSetErrorCode()) {
7530
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
7531
        if (lastComparison != 0) {
7532
          return lastComparison;
7533
        }
695 rajveer 7534
      }
3430 rajveer 7535
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
695 rajveer 7536
      if (lastComparison != 0) {
7537
        return lastComparison;
7538
      }
3430 rajveer 7539
      if (isSetStatus()) {
7540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
7541
        if (lastComparison != 0) {
7542
          return lastComparison;
7543
        }
695 rajveer 7544
      }
3430 rajveer 7545
      lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
1119 rajveer 7546
      if (lastComparison != 0) {
7547
        return lastComparison;
7548
      }
3430 rajveer 7549
      if (isSetGatewayTxnDate()) {
7550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
7551
        if (lastComparison != 0) {
7552
          return lastComparison;
7553
        }
1119 rajveer 7554
      }
3430 rajveer 7555
      lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
695 rajveer 7556
      if (lastComparison != 0) {
7557
        return lastComparison;
7558
      }
3430 rajveer 7559
      if (isSetAttributes()) {
7560
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
7561
        if (lastComparison != 0) {
7562
          return lastComparison;
7563
        }
695 rajveer 7564
      }
420 ashish 7565
      return 0;
7566
    }
7567
 
3430 rajveer 7568
    public _Fields fieldForId(int fieldId) {
7569
      return _Fields.findByThriftId(fieldId);
7570
    }
7571
 
7572
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7573
      org.apache.thrift.protocol.TField field;
420 ashish 7574
      iprot.readStructBegin();
7575
      while (true)
7576
      {
7577
        field = iprot.readFieldBegin();
3430 rajveer 7578
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7579
          break;
7580
        }
3430 rajveer 7581
        switch (field.id) {
7582
          case 1: // ID
7583
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7584
              this.id = iprot.readI64();
7585
              setIdIsSet(true);
7586
            } else { 
7587
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7588
            }
7589
            break;
7590
          case 2: // GATEWAY_PAYMENT_ID
7591
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7592
              this.gatewayPaymentId = iprot.readString();
7593
            } else { 
7594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7595
            }
7596
            break;
7597
          case 3: // SESSION_ID
7598
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7599
              this.sessionId = iprot.readString();
7600
            } else { 
7601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7602
            }
7603
            break;
7604
          case 4: // GATEWAY_TXN_STATUS
7605
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7606
              this.gatewayTxnStatus = iprot.readString();
7607
            } else { 
7608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7609
            }
7610
            break;
7611
          case 5: // DESCRIPTION
7612
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7613
              this.description = iprot.readString();
7614
            } else { 
7615
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7616
            }
7617
            break;
7618
          case 6: // GATEWAY_TXN_ID
7619
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7620
              this.gatewayTxnId = iprot.readString();
7621
            } else { 
7622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7623
            }
7624
            break;
7625
          case 7: // AUTH_CODE
7626
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7627
              this.authCode = iprot.readString();
7628
            } else { 
7629
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7630
            }
7631
            break;
7632
          case 8: // REFERENCE_CODE
7633
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7634
              this.referenceCode = iprot.readString();
7635
            } else { 
7636
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7637
            }
7638
            break;
7639
          case 9: // ERROR_CODE
7640
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7641
              this.errorCode = iprot.readString();
7642
            } else { 
7643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7644
            }
7645
            break;
7646
          case 10: // STATUS
7647
            if (field.type == org.apache.thrift.protocol.TType.I32) {
7648
              this.status = PaymentStatus.findByValue(iprot.readI32());
7649
            } else { 
7650
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7651
            }
7652
            break;
7653
          case 11: // GATEWAY_TXN_DATE
7654
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7655
              this.gatewayTxnDate = iprot.readString();
7656
            } else { 
7657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7658
            }
7659
            break;
7660
          case 12: // ATTRIBUTES
7661
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7662
              {
7663
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
7664
                this.attributes = new ArrayList<Attribute>(_list24.size);
7665
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
695 rajveer 7666
                {
3430 rajveer 7667
                  Attribute _elem26; // required
7668
                  _elem26 = new Attribute();
7669
                  _elem26.read(iprot);
7670
                  this.attributes.add(_elem26);
695 rajveer 7671
                }
3430 rajveer 7672
                iprot.readListEnd();
695 rajveer 7673
              }
3430 rajveer 7674
            } else { 
7675
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7676
            }
7677
            break;
7678
          default:
7679
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7680
        }
3430 rajveer 7681
        iprot.readFieldEnd();
420 ashish 7682
      }
7683
      iprot.readStructEnd();
7684
      validate();
7685
    }
7686
 
3430 rajveer 7687
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7688
      validate();
7689
 
7690
      oprot.writeStructBegin(STRUCT_DESC);
7691
      oprot.writeFieldBegin(ID_FIELD_DESC);
7692
      oprot.writeI64(this.id);
7693
      oprot.writeFieldEnd();
695 rajveer 7694
      if (this.gatewayPaymentId != null) {
7695
        oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
7696
        oprot.writeString(this.gatewayPaymentId);
420 ashish 7697
        oprot.writeFieldEnd();
7698
      }
695 rajveer 7699
      if (this.sessionId != null) {
7700
        oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
7701
        oprot.writeString(this.sessionId);
420 ashish 7702
        oprot.writeFieldEnd();
7703
      }
695 rajveer 7704
      if (this.gatewayTxnStatus != null) {
7705
        oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
7706
        oprot.writeString(this.gatewayTxnStatus);
420 ashish 7707
        oprot.writeFieldEnd();
7708
      }
695 rajveer 7709
      if (this.description != null) {
7710
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
7711
        oprot.writeString(this.description);
420 ashish 7712
        oprot.writeFieldEnd();
7713
      }
695 rajveer 7714
      if (this.gatewayTxnId != null) {
7715
        oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
7716
        oprot.writeString(this.gatewayTxnId);
420 ashish 7717
        oprot.writeFieldEnd();
7718
      }
695 rajveer 7719
      if (this.authCode != null) {
420 ashish 7720
        oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
695 rajveer 7721
        oprot.writeString(this.authCode);
420 ashish 7722
        oprot.writeFieldEnd();
7723
      }
695 rajveer 7724
      if (this.referenceCode != null) {
7725
        oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
7726
        oprot.writeString(this.referenceCode);
420 ashish 7727
        oprot.writeFieldEnd();
7728
      }
695 rajveer 7729
      if (this.errorCode != null) {
7730
        oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
7731
        oprot.writeString(this.errorCode);
7732
        oprot.writeFieldEnd();
7733
      }
7734
      if (this.status != null) {
7735
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
7736
        oprot.writeI32(this.status.getValue());
7737
        oprot.writeFieldEnd();
7738
      }
1119 rajveer 7739
      if (this.gatewayTxnDate != null) {
7740
        oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
7741
        oprot.writeString(this.gatewayTxnDate);
7742
        oprot.writeFieldEnd();
7743
      }
695 rajveer 7744
      if (this.attributes != null) {
7745
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
7746
        {
3430 rajveer 7747
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
2747 chandransh 7748
          for (Attribute _iter27 : this.attributes)
695 rajveer 7749
          {
2747 chandransh 7750
            _iter27.write(oprot);
695 rajveer 7751
          }
7752
          oprot.writeListEnd();
7753
        }
7754
        oprot.writeFieldEnd();
7755
      }
420 ashish 7756
      oprot.writeFieldStop();
7757
      oprot.writeStructEnd();
7758
    }
7759
 
7760
    @Override
7761
    public String toString() {
695 rajveer 7762
      StringBuilder sb = new StringBuilder("updatePaymentDetails_args(");
420 ashish 7763
      boolean first = true;
7764
 
7765
      sb.append("id:");
7766
      sb.append(this.id);
7767
      first = false;
7768
      if (!first) sb.append(", ");
695 rajveer 7769
      sb.append("gatewayPaymentId:");
7770
      if (this.gatewayPaymentId == null) {
420 ashish 7771
        sb.append("null");
7772
      } else {
695 rajveer 7773
        sb.append(this.gatewayPaymentId);
420 ashish 7774
      }
7775
      first = false;
7776
      if (!first) sb.append(", ");
695 rajveer 7777
      sb.append("sessionId:");
7778
      if (this.sessionId == null) {
420 ashish 7779
        sb.append("null");
7780
      } else {
695 rajveer 7781
        sb.append(this.sessionId);
420 ashish 7782
      }
7783
      first = false;
7784
      if (!first) sb.append(", ");
695 rajveer 7785
      sb.append("gatewayTxnStatus:");
7786
      if (this.gatewayTxnStatus == null) {
420 ashish 7787
        sb.append("null");
7788
      } else {
695 rajveer 7789
        sb.append(this.gatewayTxnStatus);
420 ashish 7790
      }
7791
      first = false;
7792
      if (!first) sb.append(", ");
695 rajveer 7793
      sb.append("description:");
7794
      if (this.description == null) {
420 ashish 7795
        sb.append("null");
7796
      } else {
695 rajveer 7797
        sb.append(this.description);
420 ashish 7798
      }
7799
      first = false;
7800
      if (!first) sb.append(", ");
695 rajveer 7801
      sb.append("gatewayTxnId:");
7802
      if (this.gatewayTxnId == null) {
420 ashish 7803
        sb.append("null");
7804
      } else {
695 rajveer 7805
        sb.append(this.gatewayTxnId);
420 ashish 7806
      }
7807
      first = false;
7808
      if (!first) sb.append(", ");
695 rajveer 7809
      sb.append("authCode:");
7810
      if (this.authCode == null) {
420 ashish 7811
        sb.append("null");
7812
      } else {
695 rajveer 7813
        sb.append(this.authCode);
420 ashish 7814
      }
7815
      first = false;
7816
      if (!first) sb.append(", ");
695 rajveer 7817
      sb.append("referenceCode:");
7818
      if (this.referenceCode == null) {
420 ashish 7819
        sb.append("null");
7820
      } else {
695 rajveer 7821
        sb.append(this.referenceCode);
420 ashish 7822
      }
7823
      first = false;
695 rajveer 7824
      if (!first) sb.append(", ");
7825
      sb.append("errorCode:");
7826
      if (this.errorCode == null) {
7827
        sb.append("null");
7828
      } else {
7829
        sb.append(this.errorCode);
7830
      }
7831
      first = false;
7832
      if (!first) sb.append(", ");
7833
      sb.append("status:");
7834
      if (this.status == null) {
7835
        sb.append("null");
7836
      } else {
7837
        sb.append(this.status);
7838
      }
7839
      first = false;
7840
      if (!first) sb.append(", ");
1119 rajveer 7841
      sb.append("gatewayTxnDate:");
7842
      if (this.gatewayTxnDate == null) {
7843
        sb.append("null");
7844
      } else {
7845
        sb.append(this.gatewayTxnDate);
7846
      }
7847
      first = false;
7848
      if (!first) sb.append(", ");
695 rajveer 7849
      sb.append("attributes:");
7850
      if (this.attributes == null) {
7851
        sb.append("null");
7852
      } else {
7853
        sb.append(this.attributes);
7854
      }
7855
      first = false;
420 ashish 7856
      sb.append(")");
7857
      return sb.toString();
7858
    }
7859
 
3430 rajveer 7860
    public void validate() throws org.apache.thrift.TException {
420 ashish 7861
      // check for required fields
7862
    }
7863
 
3430 rajveer 7864
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7865
      try {
7866
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7867
      } catch (org.apache.thrift.TException te) {
7868
        throw new java.io.IOException(te);
7869
      }
7870
    }
7871
 
7872
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7873
      try {
7874
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7875
        __isset_bit_vector = new BitSet(1);
7876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7877
      } catch (org.apache.thrift.TException te) {
7878
        throw new java.io.IOException(te);
7879
      }
7880
    }
7881
 
420 ashish 7882
  }
7883
 
3430 rajveer 7884
  public static class updatePaymentDetails_result implements org.apache.thrift.TBase<updatePaymentDetails_result, updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable   {
7885
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_result");
420 ashish 7886
 
3430 rajveer 7887
    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);
7888
    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 7889
 
3430 rajveer 7890
    private boolean success; // required
7891
    private PaymentException pe; // required
420 ashish 7892
 
7893
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7894
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 7895
      SUCCESS((short)0, "success"),
420 ashish 7896
      PE((short)1, "pe");
7897
 
7898
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7899
 
7900
      static {
7901
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7902
          byName.put(field.getFieldName(), field);
7903
        }
7904
      }
7905
 
7906
      /**
7907
       * Find the _Fields constant that matches fieldId, or null if its not found.
7908
       */
7909
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7910
        switch(fieldId) {
7911
          case 0: // SUCCESS
7912
            return SUCCESS;
7913
          case 1: // PE
7914
            return PE;
7915
          default:
7916
            return null;
7917
        }
420 ashish 7918
      }
7919
 
7920
      /**
7921
       * Find the _Fields constant that matches fieldId, throwing an exception
7922
       * if it is not found.
7923
       */
7924
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7925
        _Fields fields = findByThriftId(fieldId);
7926
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7927
        return fields;
7928
      }
7929
 
7930
      /**
7931
       * Find the _Fields constant that matches name, or null if its not found.
7932
       */
7933
      public static _Fields findByName(String name) {
7934
        return byName.get(name);
7935
      }
7936
 
7937
      private final short _thriftId;
7938
      private final String _fieldName;
7939
 
7940
      _Fields(short thriftId, String fieldName) {
7941
        _thriftId = thriftId;
7942
        _fieldName = fieldName;
7943
      }
7944
 
7945
      public short getThriftFieldId() {
7946
        return _thriftId;
7947
      }
7948
 
7949
      public String getFieldName() {
7950
        return _fieldName;
7951
      }
7952
    }
7953
 
7954
    // isset id assignments
695 rajveer 7955
    private static final int __SUCCESS_ISSET_ID = 0;
7956
    private BitSet __isset_bit_vector = new BitSet(1);
420 ashish 7957
 
3430 rajveer 7958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7959
    static {
3430 rajveer 7960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7961
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
7963
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
420 ashish 7967
    }
7968
 
695 rajveer 7969
    public updatePaymentDetails_result() {
420 ashish 7970
    }
7971
 
695 rajveer 7972
    public updatePaymentDetails_result(
7973
      boolean success,
420 ashish 7974
      PaymentException pe)
7975
    {
7976
      this();
695 rajveer 7977
      this.success = success;
7978
      setSuccessIsSet(true);
420 ashish 7979
      this.pe = pe;
7980
    }
7981
 
7982
    /**
7983
     * Performs a deep copy on <i>other</i>.
7984
     */
695 rajveer 7985
    public updatePaymentDetails_result(updatePaymentDetails_result other) {
7986
      __isset_bit_vector.clear();
7987
      __isset_bit_vector.or(other.__isset_bit_vector);
7988
      this.success = other.success;
420 ashish 7989
      if (other.isSetPe()) {
7990
        this.pe = new PaymentException(other.pe);
7991
      }
7992
    }
7993
 
695 rajveer 7994
    public updatePaymentDetails_result deepCopy() {
7995
      return new updatePaymentDetails_result(this);
420 ashish 7996
    }
7997
 
3430 rajveer 7998
    @Override
7999
    public void clear() {
8000
      setSuccessIsSet(false);
8001
      this.success = false;
8002
      this.pe = null;
420 ashish 8003
    }
8004
 
695 rajveer 8005
    public boolean isSuccess() {
8006
      return this.success;
8007
    }
8008
 
3430 rajveer 8009
    public void setSuccess(boolean success) {
695 rajveer 8010
      this.success = success;
8011
      setSuccessIsSet(true);
8012
    }
8013
 
8014
    public void unsetSuccess() {
8015
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8016
    }
8017
 
3430 rajveer 8018
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
695 rajveer 8019
    public boolean isSetSuccess() {
8020
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8021
    }
8022
 
8023
    public void setSuccessIsSet(boolean value) {
8024
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8025
    }
8026
 
420 ashish 8027
    public PaymentException getPe() {
8028
      return this.pe;
8029
    }
8030
 
3430 rajveer 8031
    public void setPe(PaymentException pe) {
420 ashish 8032
      this.pe = pe;
8033
    }
8034
 
8035
    public void unsetPe() {
8036
      this.pe = null;
8037
    }
8038
 
3430 rajveer 8039
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 8040
    public boolean isSetPe() {
8041
      return this.pe != null;
8042
    }
8043
 
8044
    public void setPeIsSet(boolean value) {
8045
      if (!value) {
8046
        this.pe = null;
8047
      }
8048
    }
8049
 
8050
    public void setFieldValue(_Fields field, Object value) {
8051
      switch (field) {
695 rajveer 8052
      case SUCCESS:
8053
        if (value == null) {
8054
          unsetSuccess();
8055
        } else {
8056
          setSuccess((Boolean)value);
8057
        }
8058
        break;
8059
 
420 ashish 8060
      case PE:
8061
        if (value == null) {
8062
          unsetPe();
8063
        } else {
8064
          setPe((PaymentException)value);
8065
        }
8066
        break;
8067
 
8068
      }
8069
    }
8070
 
8071
    public Object getFieldValue(_Fields field) {
8072
      switch (field) {
695 rajveer 8073
      case SUCCESS:
3430 rajveer 8074
        return Boolean.valueOf(isSuccess());
695 rajveer 8075
 
420 ashish 8076
      case PE:
8077
        return getPe();
8078
 
8079
      }
8080
      throw new IllegalStateException();
8081
    }
8082
 
3430 rajveer 8083
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8084
    public boolean isSet(_Fields field) {
8085
      if (field == null) {
8086
        throw new IllegalArgumentException();
8087
      }
420 ashish 8088
 
8089
      switch (field) {
695 rajveer 8090
      case SUCCESS:
8091
        return isSetSuccess();
420 ashish 8092
      case PE:
8093
        return isSetPe();
8094
      }
8095
      throw new IllegalStateException();
8096
    }
8097
 
8098
    @Override
8099
    public boolean equals(Object that) {
8100
      if (that == null)
8101
        return false;
695 rajveer 8102
      if (that instanceof updatePaymentDetails_result)
8103
        return this.equals((updatePaymentDetails_result)that);
420 ashish 8104
      return false;
8105
    }
8106
 
695 rajveer 8107
    public boolean equals(updatePaymentDetails_result that) {
420 ashish 8108
      if (that == null)
8109
        return false;
8110
 
695 rajveer 8111
      boolean this_present_success = true;
8112
      boolean that_present_success = true;
8113
      if (this_present_success || that_present_success) {
8114
        if (!(this_present_success && that_present_success))
8115
          return false;
8116
        if (this.success != that.success)
8117
          return false;
8118
      }
8119
 
420 ashish 8120
      boolean this_present_pe = true && this.isSetPe();
8121
      boolean that_present_pe = true && that.isSetPe();
8122
      if (this_present_pe || that_present_pe) {
8123
        if (!(this_present_pe && that_present_pe))
8124
          return false;
8125
        if (!this.pe.equals(that.pe))
8126
          return false;
8127
      }
8128
 
8129
      return true;
8130
    }
8131
 
8132
    @Override
8133
    public int hashCode() {
8134
      return 0;
8135
    }
8136
 
695 rajveer 8137
    public int compareTo(updatePaymentDetails_result other) {
420 ashish 8138
      if (!getClass().equals(other.getClass())) {
8139
        return getClass().getName().compareTo(other.getClass().getName());
8140
      }
8141
 
8142
      int lastComparison = 0;
695 rajveer 8143
      updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
420 ashish 8144
 
3430 rajveer 8145
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 8146
      if (lastComparison != 0) {
8147
        return lastComparison;
8148
      }
3430 rajveer 8149
      if (isSetSuccess()) {
8150
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8151
        if (lastComparison != 0) {
8152
          return lastComparison;
8153
        }
695 rajveer 8154
      }
3430 rajveer 8155
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 8156
      if (lastComparison != 0) {
8157
        return lastComparison;
8158
      }
3430 rajveer 8159
      if (isSetPe()) {
8160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
8161
        if (lastComparison != 0) {
8162
          return lastComparison;
8163
        }
420 ashish 8164
      }
8165
      return 0;
8166
    }
8167
 
3430 rajveer 8168
    public _Fields fieldForId(int fieldId) {
8169
      return _Fields.findByThriftId(fieldId);
8170
    }
8171
 
8172
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8173
      org.apache.thrift.protocol.TField field;
420 ashish 8174
      iprot.readStructBegin();
8175
      while (true)
8176
      {
8177
        field = iprot.readFieldBegin();
3430 rajveer 8178
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8179
          break;
8180
        }
3430 rajveer 8181
        switch (field.id) {
8182
          case 0: // SUCCESS
8183
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
8184
              this.success = iprot.readBool();
8185
              setSuccessIsSet(true);
8186
            } else { 
8187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8188
            }
8189
            break;
8190
          case 1: // PE
8191
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8192
              this.pe = new PaymentException();
8193
              this.pe.read(iprot);
8194
            } else { 
8195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8196
            }
8197
            break;
8198
          default:
8199
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8200
        }
3430 rajveer 8201
        iprot.readFieldEnd();
420 ashish 8202
      }
8203
      iprot.readStructEnd();
8204
      validate();
8205
    }
8206
 
3430 rajveer 8207
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8208
      oprot.writeStructBegin(STRUCT_DESC);
8209
 
695 rajveer 8210
      if (this.isSetSuccess()) {
8211
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8212
        oprot.writeBool(this.success);
8213
        oprot.writeFieldEnd();
8214
      } else if (this.isSetPe()) {
420 ashish 8215
        oprot.writeFieldBegin(PE_FIELD_DESC);
8216
        this.pe.write(oprot);
8217
        oprot.writeFieldEnd();
8218
      }
8219
      oprot.writeFieldStop();
8220
      oprot.writeStructEnd();
8221
    }
8222
 
8223
    @Override
8224
    public String toString() {
695 rajveer 8225
      StringBuilder sb = new StringBuilder("updatePaymentDetails_result(");
420 ashish 8226
      boolean first = true;
8227
 
695 rajveer 8228
      sb.append("success:");
8229
      sb.append(this.success);
8230
      first = false;
8231
      if (!first) sb.append(", ");
420 ashish 8232
      sb.append("pe:");
8233
      if (this.pe == null) {
8234
        sb.append("null");
8235
      } else {
8236
        sb.append(this.pe);
8237
      }
8238
      first = false;
8239
      sb.append(")");
8240
      return sb.toString();
8241
    }
8242
 
3430 rajveer 8243
    public void validate() throws org.apache.thrift.TException {
420 ashish 8244
      // check for required fields
8245
    }
8246
 
3430 rajveer 8247
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8248
      try {
8249
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8250
      } catch (org.apache.thrift.TException te) {
8251
        throw new java.io.IOException(te);
8252
      }
8253
    }
8254
 
8255
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8256
      try {
8257
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8258
      } catch (org.apache.thrift.TException te) {
8259
        throw new java.io.IOException(te);
8260
      }
8261
    }
8262
 
420 ashish 8263
  }
8264
 
3430 rajveer 8265
  public static class getSuccessfulPaymentsAmountRange_args implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_args, getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
8266
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_args");
1629 ankur.sing 8267
 
8268
 
8269
 
8270
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8271
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 8272
;
8273
 
8274
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8275
 
8276
      static {
8277
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8278
          byName.put(field.getFieldName(), field);
8279
        }
8280
      }
8281
 
8282
      /**
8283
       * Find the _Fields constant that matches fieldId, or null if its not found.
8284
       */
8285
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8286
        switch(fieldId) {
8287
          default:
8288
            return null;
8289
        }
1629 ankur.sing 8290
      }
8291
 
8292
      /**
8293
       * Find the _Fields constant that matches fieldId, throwing an exception
8294
       * if it is not found.
8295
       */
8296
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8297
        _Fields fields = findByThriftId(fieldId);
8298
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8299
        return fields;
8300
      }
8301
 
8302
      /**
8303
       * Find the _Fields constant that matches name, or null if its not found.
8304
       */
8305
      public static _Fields findByName(String name) {
8306
        return byName.get(name);
8307
      }
8308
 
8309
      private final short _thriftId;
8310
      private final String _fieldName;
8311
 
8312
      _Fields(short thriftId, String fieldName) {
8313
        _thriftId = thriftId;
8314
        _fieldName = fieldName;
8315
      }
8316
 
8317
      public short getThriftFieldId() {
8318
        return _thriftId;
8319
      }
8320
 
8321
      public String getFieldName() {
8322
        return _fieldName;
8323
      }
8324
    }
3430 rajveer 8325
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 8326
    static {
3430 rajveer 8327
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8328
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8329
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
1629 ankur.sing 8330
    }
8331
 
1731 ankur.sing 8332
    public getSuccessfulPaymentsAmountRange_args() {
1629 ankur.sing 8333
    }
8334
 
8335
    /**
8336
     * Performs a deep copy on <i>other</i>.
8337
     */
1731 ankur.sing 8338
    public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 8339
    }
8340
 
1731 ankur.sing 8341
    public getSuccessfulPaymentsAmountRange_args deepCopy() {
8342
      return new getSuccessfulPaymentsAmountRange_args(this);
1629 ankur.sing 8343
    }
8344
 
3430 rajveer 8345
    @Override
8346
    public void clear() {
1629 ankur.sing 8347
    }
8348
 
8349
    public void setFieldValue(_Fields field, Object value) {
8350
      switch (field) {
8351
      }
8352
    }
8353
 
8354
    public Object getFieldValue(_Fields field) {
8355
      switch (field) {
8356
      }
8357
      throw new IllegalStateException();
8358
    }
8359
 
3430 rajveer 8360
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8361
    public boolean isSet(_Fields field) {
8362
      if (field == null) {
8363
        throw new IllegalArgumentException();
8364
      }
1629 ankur.sing 8365
 
8366
      switch (field) {
8367
      }
8368
      throw new IllegalStateException();
8369
    }
8370
 
8371
    @Override
8372
    public boolean equals(Object that) {
8373
      if (that == null)
8374
        return false;
1731 ankur.sing 8375
      if (that instanceof getSuccessfulPaymentsAmountRange_args)
8376
        return this.equals((getSuccessfulPaymentsAmountRange_args)that);
1629 ankur.sing 8377
      return false;
8378
    }
8379
 
1731 ankur.sing 8380
    public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
1629 ankur.sing 8381
      if (that == null)
8382
        return false;
8383
 
8384
      return true;
8385
    }
8386
 
8387
    @Override
8388
    public int hashCode() {
8389
      return 0;
8390
    }
8391
 
1731 ankur.sing 8392
    public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 8393
      if (!getClass().equals(other.getClass())) {
8394
        return getClass().getName().compareTo(other.getClass().getName());
8395
      }
8396
 
8397
      int lastComparison = 0;
1731 ankur.sing 8398
      getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
1629 ankur.sing 8399
 
8400
      return 0;
8401
    }
8402
 
3430 rajveer 8403
    public _Fields fieldForId(int fieldId) {
8404
      return _Fields.findByThriftId(fieldId);
8405
    }
8406
 
8407
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8408
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 8409
      iprot.readStructBegin();
8410
      while (true)
8411
      {
8412
        field = iprot.readFieldBegin();
3430 rajveer 8413
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 8414
          break;
8415
        }
3430 rajveer 8416
        switch (field.id) {
8417
          default:
8418
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 8419
        }
3430 rajveer 8420
        iprot.readFieldEnd();
1629 ankur.sing 8421
      }
8422
      iprot.readStructEnd();
8423
      validate();
8424
    }
8425
 
3430 rajveer 8426
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 8427
      validate();
8428
 
8429
      oprot.writeStructBegin(STRUCT_DESC);
8430
      oprot.writeFieldStop();
8431
      oprot.writeStructEnd();
8432
    }
8433
 
8434
    @Override
8435
    public String toString() {
1731 ankur.sing 8436
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
1629 ankur.sing 8437
      boolean first = true;
8438
 
8439
      sb.append(")");
8440
      return sb.toString();
8441
    }
8442
 
3430 rajveer 8443
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 8444
      // check for required fields
8445
    }
8446
 
3430 rajveer 8447
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8448
      try {
8449
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8450
      } catch (org.apache.thrift.TException te) {
8451
        throw new java.io.IOException(te);
8452
      }
8453
    }
8454
 
8455
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8456
      try {
8457
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8458
      } catch (org.apache.thrift.TException te) {
8459
        throw new java.io.IOException(te);
8460
      }
8461
    }
8462
 
1629 ankur.sing 8463
  }
8464
 
3430 rajveer 8465
  public static class getSuccessfulPaymentsAmountRange_result implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_result, getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
8466
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_result");
1629 ankur.sing 8467
 
3430 rajveer 8468
    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 8469
 
3430 rajveer 8470
    private List<Double> success; // required
1629 ankur.sing 8471
 
8472
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8473
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 8474
      SUCCESS((short)0, "success");
8475
 
8476
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8477
 
8478
      static {
8479
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8480
          byName.put(field.getFieldName(), field);
8481
        }
8482
      }
8483
 
8484
      /**
8485
       * Find the _Fields constant that matches fieldId, or null if its not found.
8486
       */
8487
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8488
        switch(fieldId) {
8489
          case 0: // SUCCESS
8490
            return SUCCESS;
8491
          default:
8492
            return null;
8493
        }
1629 ankur.sing 8494
      }
8495
 
8496
      /**
8497
       * Find the _Fields constant that matches fieldId, throwing an exception
8498
       * if it is not found.
8499
       */
8500
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8501
        _Fields fields = findByThriftId(fieldId);
8502
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8503
        return fields;
8504
      }
8505
 
8506
      /**
8507
       * Find the _Fields constant that matches name, or null if its not found.
8508
       */
8509
      public static _Fields findByName(String name) {
8510
        return byName.get(name);
8511
      }
8512
 
8513
      private final short _thriftId;
8514
      private final String _fieldName;
8515
 
8516
      _Fields(short thriftId, String fieldName) {
8517
        _thriftId = thriftId;
8518
        _fieldName = fieldName;
8519
      }
8520
 
8521
      public short getThriftFieldId() {
8522
        return _thriftId;
8523
      }
8524
 
8525
      public String getFieldName() {
8526
        return _fieldName;
8527
      }
8528
    }
8529
 
8530
    // isset id assignments
8531
 
3430 rajveer 8532
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 8533
    static {
3430 rajveer 8534
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8535
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8536
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8537
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
8538
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8539
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
1629 ankur.sing 8540
    }
8541
 
1731 ankur.sing 8542
    public getSuccessfulPaymentsAmountRange_result() {
1629 ankur.sing 8543
    }
8544
 
1731 ankur.sing 8545
    public getSuccessfulPaymentsAmountRange_result(
8546
      List<Double> success)
1629 ankur.sing 8547
    {
8548
      this();
8549
      this.success = success;
8550
    }
8551
 
8552
    /**
8553
     * Performs a deep copy on <i>other</i>.
8554
     */
1731 ankur.sing 8555
    public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
8556
      if (other.isSetSuccess()) {
8557
        List<Double> __this__success = new ArrayList<Double>();
8558
        for (Double other_element : other.success) {
8559
          __this__success.add(other_element);
1629 ankur.sing 8560
        }
1731 ankur.sing 8561
        this.success = __this__success;
1629 ankur.sing 8562
      }
8563
    }
8564
 
1731 ankur.sing 8565
    public getSuccessfulPaymentsAmountRange_result deepCopy() {
8566
      return new getSuccessfulPaymentsAmountRange_result(this);
1629 ankur.sing 8567
    }
8568
 
3430 rajveer 8569
    @Override
8570
    public void clear() {
8571
      this.success = null;
1629 ankur.sing 8572
    }
8573
 
1731 ankur.sing 8574
    public int getSuccessSize() {
8575
      return (this.success == null) ? 0 : this.success.size();
1629 ankur.sing 8576
    }
8577
 
1731 ankur.sing 8578
    public java.util.Iterator<Double> getSuccessIterator() {
8579
      return (this.success == null) ? null : this.success.iterator();
1629 ankur.sing 8580
    }
8581
 
1731 ankur.sing 8582
    public void addToSuccess(double elem) {
8583
      if (this.success == null) {
8584
        this.success = new ArrayList<Double>();
1629 ankur.sing 8585
      }
1731 ankur.sing 8586
      this.success.add(elem);
1629 ankur.sing 8587
    }
8588
 
1731 ankur.sing 8589
    public List<Double> getSuccess() {
1629 ankur.sing 8590
      return this.success;
8591
    }
8592
 
3430 rajveer 8593
    public void setSuccess(List<Double> success) {
1629 ankur.sing 8594
      this.success = success;
8595
    }
8596
 
8597
    public void unsetSuccess() {
1731 ankur.sing 8598
      this.success = null;
1629 ankur.sing 8599
    }
8600
 
3430 rajveer 8601
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1629 ankur.sing 8602
    public boolean isSetSuccess() {
1731 ankur.sing 8603
      return this.success != null;
1629 ankur.sing 8604
    }
8605
 
8606
    public void setSuccessIsSet(boolean value) {
1731 ankur.sing 8607
      if (!value) {
8608
        this.success = null;
8609
      }
1629 ankur.sing 8610
    }
8611
 
8612
    public void setFieldValue(_Fields field, Object value) {
8613
      switch (field) {
8614
      case SUCCESS:
8615
        if (value == null) {
8616
          unsetSuccess();
8617
        } else {
1731 ankur.sing 8618
          setSuccess((List<Double>)value);
1629 ankur.sing 8619
        }
8620
        break;
8621
 
8622
      }
8623
    }
8624
 
8625
    public Object getFieldValue(_Fields field) {
8626
      switch (field) {
8627
      case SUCCESS:
1731 ankur.sing 8628
        return getSuccess();
1629 ankur.sing 8629
 
8630
      }
8631
      throw new IllegalStateException();
8632
    }
8633
 
3430 rajveer 8634
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8635
    public boolean isSet(_Fields field) {
8636
      if (field == null) {
8637
        throw new IllegalArgumentException();
8638
      }
1629 ankur.sing 8639
 
8640
      switch (field) {
8641
      case SUCCESS:
8642
        return isSetSuccess();
8643
      }
8644
      throw new IllegalStateException();
8645
    }
8646
 
8647
    @Override
8648
    public boolean equals(Object that) {
8649
      if (that == null)
8650
        return false;
1731 ankur.sing 8651
      if (that instanceof getSuccessfulPaymentsAmountRange_result)
8652
        return this.equals((getSuccessfulPaymentsAmountRange_result)that);
1629 ankur.sing 8653
      return false;
8654
    }
8655
 
1731 ankur.sing 8656
    public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
1629 ankur.sing 8657
      if (that == null)
8658
        return false;
8659
 
1731 ankur.sing 8660
      boolean this_present_success = true && this.isSetSuccess();
8661
      boolean that_present_success = true && that.isSetSuccess();
1629 ankur.sing 8662
      if (this_present_success || that_present_success) {
8663
        if (!(this_present_success && that_present_success))
8664
          return false;
1731 ankur.sing 8665
        if (!this.success.equals(that.success))
1629 ankur.sing 8666
          return false;
8667
      }
8668
 
8669
      return true;
8670
    }
8671
 
8672
    @Override
8673
    public int hashCode() {
8674
      return 0;
8675
    }
8676
 
1731 ankur.sing 8677
    public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
1629 ankur.sing 8678
      if (!getClass().equals(other.getClass())) {
8679
        return getClass().getName().compareTo(other.getClass().getName());
8680
      }
8681
 
8682
      int lastComparison = 0;
1731 ankur.sing 8683
      getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
1629 ankur.sing 8684
 
3430 rajveer 8685
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1629 ankur.sing 8686
      if (lastComparison != 0) {
8687
        return lastComparison;
8688
      }
3430 rajveer 8689
      if (isSetSuccess()) {
8690
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8691
        if (lastComparison != 0) {
8692
          return lastComparison;
8693
        }
1629 ankur.sing 8694
      }
8695
      return 0;
8696
    }
8697
 
3430 rajveer 8698
    public _Fields fieldForId(int fieldId) {
8699
      return _Fields.findByThriftId(fieldId);
8700
    }
8701
 
8702
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8703
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 8704
      iprot.readStructBegin();
8705
      while (true)
8706
      {
8707
        field = iprot.readFieldBegin();
3430 rajveer 8708
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 8709
          break;
8710
        }
3430 rajveer 8711
        switch (field.id) {
8712
          case 0: // SUCCESS
8713
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8714
              {
8715
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
8716
                this.success = new ArrayList<Double>(_list28.size);
8717
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
1731 ankur.sing 8718
                {
3430 rajveer 8719
                  double _elem30; // required
8720
                  _elem30 = iprot.readDouble();
8721
                  this.success.add(_elem30);
1731 ankur.sing 8722
                }
3430 rajveer 8723
                iprot.readListEnd();
1629 ankur.sing 8724
              }
3430 rajveer 8725
            } else { 
8726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8727
            }
8728
            break;
8729
          default:
8730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 8731
        }
3430 rajveer 8732
        iprot.readFieldEnd();
1629 ankur.sing 8733
      }
8734
      iprot.readStructEnd();
8735
      validate();
8736
    }
8737
 
3430 rajveer 8738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 8739
      oprot.writeStructBegin(STRUCT_DESC);
8740
 
8741
      if (this.isSetSuccess()) {
8742
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1731 ankur.sing 8743
        {
3430 rajveer 8744
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
2747 chandransh 8745
          for (double _iter31 : this.success)
1731 ankur.sing 8746
          {
2747 chandransh 8747
            oprot.writeDouble(_iter31);
1731 ankur.sing 8748
          }
8749
          oprot.writeListEnd();
8750
        }
1629 ankur.sing 8751
        oprot.writeFieldEnd();
8752
      }
8753
      oprot.writeFieldStop();
8754
      oprot.writeStructEnd();
8755
    }
8756
 
8757
    @Override
8758
    public String toString() {
1731 ankur.sing 8759
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
1629 ankur.sing 8760
      boolean first = true;
8761
 
8762
      sb.append("success:");
1731 ankur.sing 8763
      if (this.success == null) {
8764
        sb.append("null");
8765
      } else {
8766
        sb.append(this.success);
8767
      }
1629 ankur.sing 8768
      first = false;
8769
      sb.append(")");
8770
      return sb.toString();
8771
    }
8772
 
3430 rajveer 8773
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 8774
      // check for required fields
8775
    }
8776
 
3430 rajveer 8777
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8778
      try {
8779
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8780
      } catch (org.apache.thrift.TException te) {
8781
        throw new java.io.IOException(te);
8782
      }
8783
    }
8784
 
8785
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8786
      try {
8787
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8788
      } catch (org.apache.thrift.TException te) {
8789
        throw new java.io.IOException(te);
8790
      }
8791
    }
8792
 
1629 ankur.sing 8793
  }
8794
 
3430 rajveer 8795
  public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
8796
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
2462 chandransh 8797
 
3430 rajveer 8798
    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 8799
 
3430 rajveer 8800
    private long merchantPaymentId; // required
2462 chandransh 8801
 
8802
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8803
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 8804
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
8805
 
8806
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8807
 
8808
      static {
8809
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8810
          byName.put(field.getFieldName(), field);
8811
        }
8812
      }
8813
 
8814
      /**
8815
       * Find the _Fields constant that matches fieldId, or null if its not found.
8816
       */
8817
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8818
        switch(fieldId) {
8819
          case 1: // MERCHANT_PAYMENT_ID
8820
            return MERCHANT_PAYMENT_ID;
8821
          default:
8822
            return null;
8823
        }
2462 chandransh 8824
      }
8825
 
8826
      /**
8827
       * Find the _Fields constant that matches fieldId, throwing an exception
8828
       * if it is not found.
8829
       */
8830
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8831
        _Fields fields = findByThriftId(fieldId);
8832
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8833
        return fields;
8834
      }
8835
 
8836
      /**
8837
       * Find the _Fields constant that matches name, or null if its not found.
8838
       */
8839
      public static _Fields findByName(String name) {
8840
        return byName.get(name);
8841
      }
8842
 
8843
      private final short _thriftId;
8844
      private final String _fieldName;
8845
 
8846
      _Fields(short thriftId, String fieldName) {
8847
        _thriftId = thriftId;
8848
        _fieldName = fieldName;
8849
      }
8850
 
8851
      public short getThriftFieldId() {
8852
        return _thriftId;
8853
      }
8854
 
8855
      public String getFieldName() {
8856
        return _fieldName;
8857
      }
8858
    }
8859
 
8860
    // isset id assignments
8861
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
8862
    private BitSet __isset_bit_vector = new BitSet(1);
8863
 
3430 rajveer 8864
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 8865
    static {
3430 rajveer 8866
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8867
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8868
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8869
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8870
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
2462 chandransh 8871
    }
8872
 
3010 chandransh 8873
    public initializeHdfcPayment_args() {
2462 chandransh 8874
    }
8875
 
3010 chandransh 8876
    public initializeHdfcPayment_args(
2462 chandransh 8877
      long merchantPaymentId)
8878
    {
8879
      this();
8880
      this.merchantPaymentId = merchantPaymentId;
8881
      setMerchantPaymentIdIsSet(true);
8882
    }
8883
 
8884
    /**
8885
     * Performs a deep copy on <i>other</i>.
8886
     */
3010 chandransh 8887
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
2462 chandransh 8888
      __isset_bit_vector.clear();
8889
      __isset_bit_vector.or(other.__isset_bit_vector);
8890
      this.merchantPaymentId = other.merchantPaymentId;
8891
    }
8892
 
3010 chandransh 8893
    public initializeHdfcPayment_args deepCopy() {
8894
      return new initializeHdfcPayment_args(this);
2462 chandransh 8895
    }
8896
 
3430 rajveer 8897
    @Override
8898
    public void clear() {
8899
      setMerchantPaymentIdIsSet(false);
8900
      this.merchantPaymentId = 0;
2462 chandransh 8901
    }
8902
 
8903
    public long getMerchantPaymentId() {
8904
      return this.merchantPaymentId;
8905
    }
8906
 
3430 rajveer 8907
    public void setMerchantPaymentId(long merchantPaymentId) {
2462 chandransh 8908
      this.merchantPaymentId = merchantPaymentId;
8909
      setMerchantPaymentIdIsSet(true);
8910
    }
8911
 
8912
    public void unsetMerchantPaymentId() {
8913
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
8914
    }
8915
 
3430 rajveer 8916
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
2462 chandransh 8917
    public boolean isSetMerchantPaymentId() {
8918
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
8919
    }
8920
 
8921
    public void setMerchantPaymentIdIsSet(boolean value) {
8922
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
8923
    }
8924
 
8925
    public void setFieldValue(_Fields field, Object value) {
8926
      switch (field) {
8927
      case MERCHANT_PAYMENT_ID:
8928
        if (value == null) {
8929
          unsetMerchantPaymentId();
8930
        } else {
8931
          setMerchantPaymentId((Long)value);
8932
        }
8933
        break;
8934
 
8935
      }
8936
    }
8937
 
8938
    public Object getFieldValue(_Fields field) {
8939
      switch (field) {
8940
      case MERCHANT_PAYMENT_ID:
3430 rajveer 8941
        return Long.valueOf(getMerchantPaymentId());
2462 chandransh 8942
 
8943
      }
8944
      throw new IllegalStateException();
8945
    }
8946
 
3430 rajveer 8947
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8948
    public boolean isSet(_Fields field) {
8949
      if (field == null) {
8950
        throw new IllegalArgumentException();
8951
      }
2462 chandransh 8952
 
8953
      switch (field) {
8954
      case MERCHANT_PAYMENT_ID:
8955
        return isSetMerchantPaymentId();
8956
      }
8957
      throw new IllegalStateException();
8958
    }
8959
 
8960
    @Override
8961
    public boolean equals(Object that) {
8962
      if (that == null)
8963
        return false;
3010 chandransh 8964
      if (that instanceof initializeHdfcPayment_args)
8965
        return this.equals((initializeHdfcPayment_args)that);
2462 chandransh 8966
      return false;
8967
    }
8968
 
3010 chandransh 8969
    public boolean equals(initializeHdfcPayment_args that) {
2462 chandransh 8970
      if (that == null)
8971
        return false;
8972
 
8973
      boolean this_present_merchantPaymentId = true;
8974
      boolean that_present_merchantPaymentId = true;
8975
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
8976
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
8977
          return false;
8978
        if (this.merchantPaymentId != that.merchantPaymentId)
8979
          return false;
8980
      }
8981
 
8982
      return true;
8983
    }
8984
 
8985
    @Override
8986
    public int hashCode() {
8987
      return 0;
8988
    }
8989
 
3010 chandransh 8990
    public int compareTo(initializeHdfcPayment_args other) {
2462 chandransh 8991
      if (!getClass().equals(other.getClass())) {
8992
        return getClass().getName().compareTo(other.getClass().getName());
8993
      }
8994
 
8995
      int lastComparison = 0;
3010 chandransh 8996
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
2462 chandransh 8997
 
3430 rajveer 8998
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
2462 chandransh 8999
      if (lastComparison != 0) {
9000
        return lastComparison;
9001
      }
3430 rajveer 9002
      if (isSetMerchantPaymentId()) {
9003
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
9004
        if (lastComparison != 0) {
9005
          return lastComparison;
9006
        }
2462 chandransh 9007
      }
9008
      return 0;
9009
    }
9010
 
3430 rajveer 9011
    public _Fields fieldForId(int fieldId) {
9012
      return _Fields.findByThriftId(fieldId);
9013
    }
9014
 
9015
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9016
      org.apache.thrift.protocol.TField field;
2462 chandransh 9017
      iprot.readStructBegin();
9018
      while (true)
9019
      {
9020
        field = iprot.readFieldBegin();
3430 rajveer 9021
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 9022
          break;
9023
        }
3430 rajveer 9024
        switch (field.id) {
9025
          case 1: // MERCHANT_PAYMENT_ID
9026
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9027
              this.merchantPaymentId = iprot.readI64();
9028
              setMerchantPaymentIdIsSet(true);
9029
            } else { 
9030
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9031
            }
9032
            break;
9033
          default:
9034
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 9035
        }
3430 rajveer 9036
        iprot.readFieldEnd();
2462 chandransh 9037
      }
9038
      iprot.readStructEnd();
9039
      validate();
9040
    }
9041
 
3430 rajveer 9042
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 9043
      validate();
9044
 
9045
      oprot.writeStructBegin(STRUCT_DESC);
9046
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
9047
      oprot.writeI64(this.merchantPaymentId);
9048
      oprot.writeFieldEnd();
9049
      oprot.writeFieldStop();
9050
      oprot.writeStructEnd();
9051
    }
9052
 
9053
    @Override
9054
    public String toString() {
3010 chandransh 9055
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
2462 chandransh 9056
      boolean first = true;
9057
 
9058
      sb.append("merchantPaymentId:");
9059
      sb.append(this.merchantPaymentId);
9060
      first = false;
9061
      sb.append(")");
9062
      return sb.toString();
9063
    }
9064
 
3430 rajveer 9065
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 9066
      // check for required fields
9067
    }
9068
 
3430 rajveer 9069
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9070
      try {
9071
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9072
      } catch (org.apache.thrift.TException te) {
9073
        throw new java.io.IOException(te);
9074
      }
9075
    }
9076
 
9077
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9078
      try {
9079
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9080
      } catch (org.apache.thrift.TException te) {
9081
        throw new java.io.IOException(te);
9082
      }
9083
    }
9084
 
2462 chandransh 9085
  }
9086
 
3430 rajveer 9087
  public static class initializeHdfcPayment_result implements org.apache.thrift.TBase<initializeHdfcPayment_result, initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
9088
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_result");
2462 chandransh 9089
 
3430 rajveer 9090
    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);
9091
    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 9092
 
3430 rajveer 9093
    private String success; // required
9094
    private PaymentException pe; // required
2462 chandransh 9095
 
9096
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9097
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 9098
      SUCCESS((short)0, "success"),
9099
      PE((short)1, "pe");
9100
 
9101
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9102
 
9103
      static {
9104
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9105
          byName.put(field.getFieldName(), field);
9106
        }
9107
      }
9108
 
9109
      /**
9110
       * Find the _Fields constant that matches fieldId, or null if its not found.
9111
       */
9112
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9113
        switch(fieldId) {
9114
          case 0: // SUCCESS
9115
            return SUCCESS;
9116
          case 1: // PE
9117
            return PE;
9118
          default:
9119
            return null;
9120
        }
2462 chandransh 9121
      }
9122
 
9123
      /**
9124
       * Find the _Fields constant that matches fieldId, throwing an exception
9125
       * if it is not found.
9126
       */
9127
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9128
        _Fields fields = findByThriftId(fieldId);
9129
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9130
        return fields;
9131
      }
9132
 
9133
      /**
9134
       * Find the _Fields constant that matches name, or null if its not found.
9135
       */
9136
      public static _Fields findByName(String name) {
9137
        return byName.get(name);
9138
      }
9139
 
9140
      private final short _thriftId;
9141
      private final String _fieldName;
9142
 
9143
      _Fields(short thriftId, String fieldName) {
9144
        _thriftId = thriftId;
9145
        _fieldName = fieldName;
9146
      }
9147
 
9148
      public short getThriftFieldId() {
9149
        return _thriftId;
9150
      }
9151
 
9152
      public String getFieldName() {
9153
        return _fieldName;
9154
      }
9155
    }
9156
 
9157
    // isset id assignments
9158
 
3430 rajveer 9159
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 9160
    static {
3430 rajveer 9161
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9162
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9163
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9164
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9165
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9166
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9167
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
2462 chandransh 9168
    }
9169
 
3010 chandransh 9170
    public initializeHdfcPayment_result() {
2462 chandransh 9171
    }
9172
 
3010 chandransh 9173
    public initializeHdfcPayment_result(
9174
      String success,
2462 chandransh 9175
      PaymentException pe)
9176
    {
9177
      this();
9178
      this.success = success;
9179
      this.pe = pe;
9180
    }
9181
 
9182
    /**
9183
     * Performs a deep copy on <i>other</i>.
9184
     */
3010 chandransh 9185
    public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
2462 chandransh 9186
      if (other.isSetSuccess()) {
3010 chandransh 9187
        this.success = other.success;
2462 chandransh 9188
      }
9189
      if (other.isSetPe()) {
9190
        this.pe = new PaymentException(other.pe);
9191
      }
9192
    }
9193
 
3010 chandransh 9194
    public initializeHdfcPayment_result deepCopy() {
9195
      return new initializeHdfcPayment_result(this);
2462 chandransh 9196
    }
9197
 
3430 rajveer 9198
    @Override
9199
    public void clear() {
9200
      this.success = null;
9201
      this.pe = null;
2462 chandransh 9202
    }
9203
 
3010 chandransh 9204
    public String getSuccess() {
2462 chandransh 9205
      return this.success;
9206
    }
9207
 
3430 rajveer 9208
    public void setSuccess(String success) {
2462 chandransh 9209
      this.success = success;
9210
    }
9211
 
9212
    public void unsetSuccess() {
9213
      this.success = null;
9214
    }
9215
 
3430 rajveer 9216
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 9217
    public boolean isSetSuccess() {
9218
      return this.success != null;
9219
    }
9220
 
9221
    public void setSuccessIsSet(boolean value) {
9222
      if (!value) {
9223
        this.success = null;
9224
      }
9225
    }
9226
 
9227
    public PaymentException getPe() {
9228
      return this.pe;
9229
    }
9230
 
3430 rajveer 9231
    public void setPe(PaymentException pe) {
2462 chandransh 9232
      this.pe = pe;
9233
    }
9234
 
9235
    public void unsetPe() {
9236
      this.pe = null;
9237
    }
9238
 
3430 rajveer 9239
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 9240
    public boolean isSetPe() {
9241
      return this.pe != null;
9242
    }
9243
 
9244
    public void setPeIsSet(boolean value) {
9245
      if (!value) {
9246
        this.pe = null;
9247
      }
9248
    }
9249
 
9250
    public void setFieldValue(_Fields field, Object value) {
9251
      switch (field) {
9252
      case SUCCESS:
9253
        if (value == null) {
9254
          unsetSuccess();
9255
        } else {
3010 chandransh 9256
          setSuccess((String)value);
2462 chandransh 9257
        }
9258
        break;
9259
 
9260
      case PE:
9261
        if (value == null) {
9262
          unsetPe();
9263
        } else {
9264
          setPe((PaymentException)value);
9265
        }
9266
        break;
9267
 
9268
      }
9269
    }
9270
 
9271
    public Object getFieldValue(_Fields field) {
9272
      switch (field) {
9273
      case SUCCESS:
9274
        return getSuccess();
9275
 
9276
      case PE:
9277
        return getPe();
9278
 
9279
      }
9280
      throw new IllegalStateException();
9281
    }
9282
 
3430 rajveer 9283
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9284
    public boolean isSet(_Fields field) {
9285
      if (field == null) {
9286
        throw new IllegalArgumentException();
9287
      }
2462 chandransh 9288
 
9289
      switch (field) {
9290
      case SUCCESS:
9291
        return isSetSuccess();
9292
      case PE:
9293
        return isSetPe();
9294
      }
9295
      throw new IllegalStateException();
9296
    }
9297
 
9298
    @Override
9299
    public boolean equals(Object that) {
9300
      if (that == null)
9301
        return false;
3010 chandransh 9302
      if (that instanceof initializeHdfcPayment_result)
9303
        return this.equals((initializeHdfcPayment_result)that);
2462 chandransh 9304
      return false;
9305
    }
9306
 
3010 chandransh 9307
    public boolean equals(initializeHdfcPayment_result that) {
2462 chandransh 9308
      if (that == null)
9309
        return false;
9310
 
9311
      boolean this_present_success = true && this.isSetSuccess();
9312
      boolean that_present_success = true && that.isSetSuccess();
9313
      if (this_present_success || that_present_success) {
9314
        if (!(this_present_success && that_present_success))
9315
          return false;
9316
        if (!this.success.equals(that.success))
9317
          return false;
9318
      }
9319
 
9320
      boolean this_present_pe = true && this.isSetPe();
9321
      boolean that_present_pe = true && that.isSetPe();
9322
      if (this_present_pe || that_present_pe) {
9323
        if (!(this_present_pe && that_present_pe))
9324
          return false;
9325
        if (!this.pe.equals(that.pe))
9326
          return false;
9327
      }
9328
 
9329
      return true;
9330
    }
9331
 
9332
    @Override
9333
    public int hashCode() {
9334
      return 0;
9335
    }
9336
 
3010 chandransh 9337
    public int compareTo(initializeHdfcPayment_result other) {
9338
      if (!getClass().equals(other.getClass())) {
9339
        return getClass().getName().compareTo(other.getClass().getName());
9340
      }
9341
 
9342
      int lastComparison = 0;
9343
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
9344
 
3430 rajveer 9345
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3010 chandransh 9346
      if (lastComparison != 0) {
9347
        return lastComparison;
9348
      }
3430 rajveer 9349
      if (isSetSuccess()) {
9350
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9351
        if (lastComparison != 0) {
9352
          return lastComparison;
9353
        }
3010 chandransh 9354
      }
3430 rajveer 9355
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
3010 chandransh 9356
      if (lastComparison != 0) {
9357
        return lastComparison;
9358
      }
3430 rajveer 9359
      if (isSetPe()) {
9360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
9361
        if (lastComparison != 0) {
9362
          return lastComparison;
9363
        }
3010 chandransh 9364
      }
9365
      return 0;
9366
    }
9367
 
3430 rajveer 9368
    public _Fields fieldForId(int fieldId) {
9369
      return _Fields.findByThriftId(fieldId);
9370
    }
9371
 
9372
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9373
      org.apache.thrift.protocol.TField field;
2462 chandransh 9374
      iprot.readStructBegin();
9375
      while (true)
9376
      {
9377
        field = iprot.readFieldBegin();
3430 rajveer 9378
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 9379
          break;
9380
        }
3430 rajveer 9381
        switch (field.id) {
9382
          case 0: // SUCCESS
9383
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9384
              this.success = iprot.readString();
9385
            } else { 
9386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9387
            }
9388
            break;
9389
          case 1: // PE
9390
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9391
              this.pe = new PaymentException();
9392
              this.pe.read(iprot);
9393
            } else { 
9394
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9395
            }
9396
            break;
9397
          default:
9398
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 9399
        }
3430 rajveer 9400
        iprot.readFieldEnd();
2462 chandransh 9401
      }
9402
      iprot.readStructEnd();
9403
      validate();
9404
    }
9405
 
3430 rajveer 9406
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 9407
      oprot.writeStructBegin(STRUCT_DESC);
9408
 
9409
      if (this.isSetSuccess()) {
9410
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 9411
        oprot.writeString(this.success);
2462 chandransh 9412
        oprot.writeFieldEnd();
9413
      } else if (this.isSetPe()) {
9414
        oprot.writeFieldBegin(PE_FIELD_DESC);
9415
        this.pe.write(oprot);
9416
        oprot.writeFieldEnd();
9417
      }
9418
      oprot.writeFieldStop();
9419
      oprot.writeStructEnd();
9420
    }
9421
 
9422
    @Override
9423
    public String toString() {
3010 chandransh 9424
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
2462 chandransh 9425
      boolean first = true;
9426
 
9427
      sb.append("success:");
9428
      if (this.success == null) {
9429
        sb.append("null");
9430
      } else {
9431
        sb.append(this.success);
9432
      }
9433
      first = false;
9434
      if (!first) sb.append(", ");
9435
      sb.append("pe:");
9436
      if (this.pe == null) {
9437
        sb.append("null");
9438
      } else {
9439
        sb.append(this.pe);
9440
      }
9441
      first = false;
9442
      sb.append(")");
9443
      return sb.toString();
9444
    }
9445
 
3430 rajveer 9446
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 9447
      // check for required fields
9448
    }
9449
 
3430 rajveer 9450
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9451
      try {
9452
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9453
      } catch (org.apache.thrift.TException te) {
9454
        throw new java.io.IOException(te);
9455
      }
9456
    }
9457
 
9458
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9459
      try {
9460
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9461
      } catch (org.apache.thrift.TException te) {
9462
        throw new java.io.IOException(te);
9463
      }
9464
    }
9465
 
2462 chandransh 9466
  }
9467
 
3616 chandransh 9468
  public static class initializeHdfcEmiPayment_args implements org.apache.thrift.TBase<initializeHdfcEmiPayment_args, initializeHdfcEmiPayment_args._Fields>, java.io.Serializable, Cloneable   {
9469
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_args");
9470
 
9471
    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);
9472
 
9473
    private long merchantPaymentId; // required
9474
 
9475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9477
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
9478
 
9479
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9480
 
9481
      static {
9482
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9483
          byName.put(field.getFieldName(), field);
9484
        }
9485
      }
9486
 
9487
      /**
9488
       * Find the _Fields constant that matches fieldId, or null if its not found.
9489
       */
9490
      public static _Fields findByThriftId(int fieldId) {
9491
        switch(fieldId) {
9492
          case 1: // MERCHANT_PAYMENT_ID
9493
            return MERCHANT_PAYMENT_ID;
9494
          default:
9495
            return null;
9496
        }
9497
      }
9498
 
9499
      /**
9500
       * Find the _Fields constant that matches fieldId, throwing an exception
9501
       * if it is not found.
9502
       */
9503
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9504
        _Fields fields = findByThriftId(fieldId);
9505
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9506
        return fields;
9507
      }
9508
 
9509
      /**
9510
       * Find the _Fields constant that matches name, or null if its not found.
9511
       */
9512
      public static _Fields findByName(String name) {
9513
        return byName.get(name);
9514
      }
9515
 
9516
      private final short _thriftId;
9517
      private final String _fieldName;
9518
 
9519
      _Fields(short thriftId, String fieldName) {
9520
        _thriftId = thriftId;
9521
        _fieldName = fieldName;
9522
      }
9523
 
9524
      public short getThriftFieldId() {
9525
        return _thriftId;
9526
      }
9527
 
9528
      public String getFieldName() {
9529
        return _fieldName;
9530
      }
9531
    }
9532
 
9533
    // isset id assignments
9534
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
9535
    private BitSet __isset_bit_vector = new BitSet(1);
9536
 
9537
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9538
    static {
9539
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9540
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9541
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9542
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9543
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_args.class, metaDataMap);
9544
    }
9545
 
9546
    public initializeHdfcEmiPayment_args() {
9547
    }
9548
 
9549
    public initializeHdfcEmiPayment_args(
9550
      long merchantPaymentId)
9551
    {
9552
      this();
9553
      this.merchantPaymentId = merchantPaymentId;
9554
      setMerchantPaymentIdIsSet(true);
9555
    }
9556
 
9557
    /**
9558
     * Performs a deep copy on <i>other</i>.
9559
     */
9560
    public initializeHdfcEmiPayment_args(initializeHdfcEmiPayment_args other) {
9561
      __isset_bit_vector.clear();
9562
      __isset_bit_vector.or(other.__isset_bit_vector);
9563
      this.merchantPaymentId = other.merchantPaymentId;
9564
    }
9565
 
9566
    public initializeHdfcEmiPayment_args deepCopy() {
9567
      return new initializeHdfcEmiPayment_args(this);
9568
    }
9569
 
9570
    @Override
9571
    public void clear() {
9572
      setMerchantPaymentIdIsSet(false);
9573
      this.merchantPaymentId = 0;
9574
    }
9575
 
9576
    public long getMerchantPaymentId() {
9577
      return this.merchantPaymentId;
9578
    }
9579
 
9580
    public void setMerchantPaymentId(long merchantPaymentId) {
9581
      this.merchantPaymentId = merchantPaymentId;
9582
      setMerchantPaymentIdIsSet(true);
9583
    }
9584
 
9585
    public void unsetMerchantPaymentId() {
9586
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
9587
    }
9588
 
9589
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
9590
    public boolean isSetMerchantPaymentId() {
9591
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
9592
    }
9593
 
9594
    public void setMerchantPaymentIdIsSet(boolean value) {
9595
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
9596
    }
9597
 
9598
    public void setFieldValue(_Fields field, Object value) {
9599
      switch (field) {
9600
      case MERCHANT_PAYMENT_ID:
9601
        if (value == null) {
9602
          unsetMerchantPaymentId();
9603
        } else {
9604
          setMerchantPaymentId((Long)value);
9605
        }
9606
        break;
9607
 
9608
      }
9609
    }
9610
 
9611
    public Object getFieldValue(_Fields field) {
9612
      switch (field) {
9613
      case MERCHANT_PAYMENT_ID:
9614
        return Long.valueOf(getMerchantPaymentId());
9615
 
9616
      }
9617
      throw new IllegalStateException();
9618
    }
9619
 
9620
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9621
    public boolean isSet(_Fields field) {
9622
      if (field == null) {
9623
        throw new IllegalArgumentException();
9624
      }
9625
 
9626
      switch (field) {
9627
      case MERCHANT_PAYMENT_ID:
9628
        return isSetMerchantPaymentId();
9629
      }
9630
      throw new IllegalStateException();
9631
    }
9632
 
9633
    @Override
9634
    public boolean equals(Object that) {
9635
      if (that == null)
9636
        return false;
9637
      if (that instanceof initializeHdfcEmiPayment_args)
9638
        return this.equals((initializeHdfcEmiPayment_args)that);
9639
      return false;
9640
    }
9641
 
9642
    public boolean equals(initializeHdfcEmiPayment_args that) {
9643
      if (that == null)
9644
        return false;
9645
 
9646
      boolean this_present_merchantPaymentId = true;
9647
      boolean that_present_merchantPaymentId = true;
9648
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
9649
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
9650
          return false;
9651
        if (this.merchantPaymentId != that.merchantPaymentId)
9652
          return false;
9653
      }
9654
 
9655
      return true;
9656
    }
9657
 
9658
    @Override
9659
    public int hashCode() {
9660
      return 0;
9661
    }
9662
 
9663
    public int compareTo(initializeHdfcEmiPayment_args other) {
9664
      if (!getClass().equals(other.getClass())) {
9665
        return getClass().getName().compareTo(other.getClass().getName());
9666
      }
9667
 
9668
      int lastComparison = 0;
9669
      initializeHdfcEmiPayment_args typedOther = (initializeHdfcEmiPayment_args)other;
9670
 
9671
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
9672
      if (lastComparison != 0) {
9673
        return lastComparison;
9674
      }
9675
      if (isSetMerchantPaymentId()) {
9676
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
9677
        if (lastComparison != 0) {
9678
          return lastComparison;
9679
        }
9680
      }
9681
      return 0;
9682
    }
9683
 
9684
    public _Fields fieldForId(int fieldId) {
9685
      return _Fields.findByThriftId(fieldId);
9686
    }
9687
 
9688
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9689
      org.apache.thrift.protocol.TField field;
9690
      iprot.readStructBegin();
9691
      while (true)
9692
      {
9693
        field = iprot.readFieldBegin();
9694
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9695
          break;
9696
        }
9697
        switch (field.id) {
9698
          case 1: // MERCHANT_PAYMENT_ID
9699
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9700
              this.merchantPaymentId = iprot.readI64();
9701
              setMerchantPaymentIdIsSet(true);
9702
            } else { 
9703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9704
            }
9705
            break;
9706
          default:
9707
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9708
        }
9709
        iprot.readFieldEnd();
9710
      }
9711
      iprot.readStructEnd();
9712
      validate();
9713
    }
9714
 
9715
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9716
      validate();
9717
 
9718
      oprot.writeStructBegin(STRUCT_DESC);
9719
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
9720
      oprot.writeI64(this.merchantPaymentId);
9721
      oprot.writeFieldEnd();
9722
      oprot.writeFieldStop();
9723
      oprot.writeStructEnd();
9724
    }
9725
 
9726
    @Override
9727
    public String toString() {
9728
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_args(");
9729
      boolean first = true;
9730
 
9731
      sb.append("merchantPaymentId:");
9732
      sb.append(this.merchantPaymentId);
9733
      first = false;
9734
      sb.append(")");
9735
      return sb.toString();
9736
    }
9737
 
9738
    public void validate() throws org.apache.thrift.TException {
9739
      // check for required fields
9740
    }
9741
 
9742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9743
      try {
9744
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9745
      } catch (org.apache.thrift.TException te) {
9746
        throw new java.io.IOException(te);
9747
      }
9748
    }
9749
 
9750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9751
      try {
9752
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9753
      } catch (org.apache.thrift.TException te) {
9754
        throw new java.io.IOException(te);
9755
      }
9756
    }
9757
 
9758
  }
9759
 
9760
  public static class initializeHdfcEmiPayment_result implements org.apache.thrift.TBase<initializeHdfcEmiPayment_result, initializeHdfcEmiPayment_result._Fields>, java.io.Serializable, Cloneable   {
9761
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_result");
9762
 
9763
    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);
9764
    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);
9765
 
9766
    private String success; // required
9767
    private PaymentException pe; // required
9768
 
9769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9771
      SUCCESS((short)0, "success"),
9772
      PE((short)1, "pe");
9773
 
9774
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9775
 
9776
      static {
9777
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9778
          byName.put(field.getFieldName(), field);
9779
        }
9780
      }
9781
 
9782
      /**
9783
       * Find the _Fields constant that matches fieldId, or null if its not found.
9784
       */
9785
      public static _Fields findByThriftId(int fieldId) {
9786
        switch(fieldId) {
9787
          case 0: // SUCCESS
9788
            return SUCCESS;
9789
          case 1: // PE
9790
            return PE;
9791
          default:
9792
            return null;
9793
        }
9794
      }
9795
 
9796
      /**
9797
       * Find the _Fields constant that matches fieldId, throwing an exception
9798
       * if it is not found.
9799
       */
9800
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9801
        _Fields fields = findByThriftId(fieldId);
9802
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9803
        return fields;
9804
      }
9805
 
9806
      /**
9807
       * Find the _Fields constant that matches name, or null if its not found.
9808
       */
9809
      public static _Fields findByName(String name) {
9810
        return byName.get(name);
9811
      }
9812
 
9813
      private final short _thriftId;
9814
      private final String _fieldName;
9815
 
9816
      _Fields(short thriftId, String fieldName) {
9817
        _thriftId = thriftId;
9818
        _fieldName = fieldName;
9819
      }
9820
 
9821
      public short getThriftFieldId() {
9822
        return _thriftId;
9823
      }
9824
 
9825
      public String getFieldName() {
9826
        return _fieldName;
9827
      }
9828
    }
9829
 
9830
    // isset id assignments
9831
 
9832
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9833
    static {
9834
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9835
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9836
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9837
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9839
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9840
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_result.class, metaDataMap);
9841
    }
9842
 
9843
    public initializeHdfcEmiPayment_result() {
9844
    }
9845
 
9846
    public initializeHdfcEmiPayment_result(
9847
      String success,
9848
      PaymentException pe)
9849
    {
9850
      this();
9851
      this.success = success;
9852
      this.pe = pe;
9853
    }
9854
 
9855
    /**
9856
     * Performs a deep copy on <i>other</i>.
9857
     */
9858
    public initializeHdfcEmiPayment_result(initializeHdfcEmiPayment_result other) {
9859
      if (other.isSetSuccess()) {
9860
        this.success = other.success;
9861
      }
9862
      if (other.isSetPe()) {
9863
        this.pe = new PaymentException(other.pe);
9864
      }
9865
    }
9866
 
9867
    public initializeHdfcEmiPayment_result deepCopy() {
9868
      return new initializeHdfcEmiPayment_result(this);
9869
    }
9870
 
9871
    @Override
9872
    public void clear() {
9873
      this.success = null;
9874
      this.pe = null;
9875
    }
9876
 
9877
    public String getSuccess() {
9878
      return this.success;
9879
    }
9880
 
9881
    public void setSuccess(String success) {
9882
      this.success = success;
9883
    }
9884
 
9885
    public void unsetSuccess() {
9886
      this.success = null;
9887
    }
9888
 
9889
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9890
    public boolean isSetSuccess() {
9891
      return this.success != null;
9892
    }
9893
 
9894
    public void setSuccessIsSet(boolean value) {
9895
      if (!value) {
9896
        this.success = null;
9897
      }
9898
    }
9899
 
9900
    public PaymentException getPe() {
9901
      return this.pe;
9902
    }
9903
 
9904
    public void setPe(PaymentException pe) {
9905
      this.pe = pe;
9906
    }
9907
 
9908
    public void unsetPe() {
9909
      this.pe = null;
9910
    }
9911
 
9912
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
9913
    public boolean isSetPe() {
9914
      return this.pe != null;
9915
    }
9916
 
9917
    public void setPeIsSet(boolean value) {
9918
      if (!value) {
9919
        this.pe = null;
9920
      }
9921
    }
9922
 
9923
    public void setFieldValue(_Fields field, Object value) {
9924
      switch (field) {
9925
      case SUCCESS:
9926
        if (value == null) {
9927
          unsetSuccess();
9928
        } else {
9929
          setSuccess((String)value);
9930
        }
9931
        break;
9932
 
9933
      case PE:
9934
        if (value == null) {
9935
          unsetPe();
9936
        } else {
9937
          setPe((PaymentException)value);
9938
        }
9939
        break;
9940
 
9941
      }
9942
    }
9943
 
9944
    public Object getFieldValue(_Fields field) {
9945
      switch (field) {
9946
      case SUCCESS:
9947
        return getSuccess();
9948
 
9949
      case PE:
9950
        return getPe();
9951
 
9952
      }
9953
      throw new IllegalStateException();
9954
    }
9955
 
9956
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9957
    public boolean isSet(_Fields field) {
9958
      if (field == null) {
9959
        throw new IllegalArgumentException();
9960
      }
9961
 
9962
      switch (field) {
9963
      case SUCCESS:
9964
        return isSetSuccess();
9965
      case PE:
9966
        return isSetPe();
9967
      }
9968
      throw new IllegalStateException();
9969
    }
9970
 
9971
    @Override
9972
    public boolean equals(Object that) {
9973
      if (that == null)
9974
        return false;
9975
      if (that instanceof initializeHdfcEmiPayment_result)
9976
        return this.equals((initializeHdfcEmiPayment_result)that);
9977
      return false;
9978
    }
9979
 
9980
    public boolean equals(initializeHdfcEmiPayment_result that) {
9981
      if (that == null)
9982
        return false;
9983
 
9984
      boolean this_present_success = true && this.isSetSuccess();
9985
      boolean that_present_success = true && that.isSetSuccess();
9986
      if (this_present_success || that_present_success) {
9987
        if (!(this_present_success && that_present_success))
9988
          return false;
9989
        if (!this.success.equals(that.success))
9990
          return false;
9991
      }
9992
 
9993
      boolean this_present_pe = true && this.isSetPe();
9994
      boolean that_present_pe = true && that.isSetPe();
9995
      if (this_present_pe || that_present_pe) {
9996
        if (!(this_present_pe && that_present_pe))
9997
          return false;
9998
        if (!this.pe.equals(that.pe))
9999
          return false;
10000
      }
10001
 
10002
      return true;
10003
    }
10004
 
10005
    @Override
10006
    public int hashCode() {
10007
      return 0;
10008
    }
10009
 
10010
    public int compareTo(initializeHdfcEmiPayment_result other) {
10011
      if (!getClass().equals(other.getClass())) {
10012
        return getClass().getName().compareTo(other.getClass().getName());
10013
      }
10014
 
10015
      int lastComparison = 0;
10016
      initializeHdfcEmiPayment_result typedOther = (initializeHdfcEmiPayment_result)other;
10017
 
10018
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10019
      if (lastComparison != 0) {
10020
        return lastComparison;
10021
      }
10022
      if (isSetSuccess()) {
10023
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10024
        if (lastComparison != 0) {
10025
          return lastComparison;
10026
        }
10027
      }
10028
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
10029
      if (lastComparison != 0) {
10030
        return lastComparison;
10031
      }
10032
      if (isSetPe()) {
10033
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
10034
        if (lastComparison != 0) {
10035
          return lastComparison;
10036
        }
10037
      }
10038
      return 0;
10039
    }
10040
 
10041
    public _Fields fieldForId(int fieldId) {
10042
      return _Fields.findByThriftId(fieldId);
10043
    }
10044
 
10045
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10046
      org.apache.thrift.protocol.TField field;
10047
      iprot.readStructBegin();
10048
      while (true)
10049
      {
10050
        field = iprot.readFieldBegin();
10051
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10052
          break;
10053
        }
10054
        switch (field.id) {
10055
          case 0: // SUCCESS
10056
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10057
              this.success = iprot.readString();
10058
            } else { 
10059
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10060
            }
10061
            break;
10062
          case 1: // PE
10063
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10064
              this.pe = new PaymentException();
10065
              this.pe.read(iprot);
10066
            } else { 
10067
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10068
            }
10069
            break;
10070
          default:
10071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10072
        }
10073
        iprot.readFieldEnd();
10074
      }
10075
      iprot.readStructEnd();
10076
      validate();
10077
    }
10078
 
10079
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10080
      oprot.writeStructBegin(STRUCT_DESC);
10081
 
10082
      if (this.isSetSuccess()) {
10083
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10084
        oprot.writeString(this.success);
10085
        oprot.writeFieldEnd();
10086
      } else if (this.isSetPe()) {
10087
        oprot.writeFieldBegin(PE_FIELD_DESC);
10088
        this.pe.write(oprot);
10089
        oprot.writeFieldEnd();
10090
      }
10091
      oprot.writeFieldStop();
10092
      oprot.writeStructEnd();
10093
    }
10094
 
10095
    @Override
10096
    public String toString() {
10097
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_result(");
10098
      boolean first = true;
10099
 
10100
      sb.append("success:");
10101
      if (this.success == null) {
10102
        sb.append("null");
10103
      } else {
10104
        sb.append(this.success);
10105
      }
10106
      first = false;
10107
      if (!first) sb.append(", ");
10108
      sb.append("pe:");
10109
      if (this.pe == null) {
10110
        sb.append("null");
10111
      } else {
10112
        sb.append(this.pe);
10113
      }
10114
      first = false;
10115
      sb.append(")");
10116
      return sb.toString();
10117
    }
10118
 
10119
    public void validate() throws org.apache.thrift.TException {
10120
      // check for required fields
10121
    }
10122
 
10123
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10124
      try {
10125
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10126
      } catch (org.apache.thrift.TException te) {
10127
        throw new java.io.IOException(te);
10128
      }
10129
    }
10130
 
10131
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10132
      try {
10133
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10134
      } catch (org.apache.thrift.TException te) {
10135
        throw new java.io.IOException(te);
10136
      }
10137
    }
10138
 
10139
  }
10140
 
3430 rajveer 10141
  public static class createRefund_args implements org.apache.thrift.TBase<createRefund_args, createRefund_args._Fields>, java.io.Serializable, Cloneable   {
10142
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_args");
2462 chandransh 10143
 
3430 rajveer 10144
    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);
10145
    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);
10146
    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 10147
 
3430 rajveer 10148
    private long orderId; // required
10149
    private long merchantTxnId; // required
10150
    private double amount; // required
2462 chandransh 10151
 
10152
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10153
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 10154
      ORDER_ID((short)1, "orderId"),
10155
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
10156
      AMOUNT((short)3, "amount");
2462 chandransh 10157
 
10158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10159
 
10160
      static {
10161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10162
          byName.put(field.getFieldName(), field);
10163
        }
10164
      }
10165
 
10166
      /**
10167
       * Find the _Fields constant that matches fieldId, or null if its not found.
10168
       */
10169
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10170
        switch(fieldId) {
10171
          case 1: // ORDER_ID
10172
            return ORDER_ID;
10173
          case 2: // MERCHANT_TXN_ID
10174
            return MERCHANT_TXN_ID;
10175
          case 3: // AMOUNT
10176
            return AMOUNT;
10177
          default:
10178
            return null;
10179
        }
2462 chandransh 10180
      }
10181
 
10182
      /**
10183
       * Find the _Fields constant that matches fieldId, throwing an exception
10184
       * if it is not found.
10185
       */
10186
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10187
        _Fields fields = findByThriftId(fieldId);
10188
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10189
        return fields;
10190
      }
10191
 
10192
      /**
10193
       * Find the _Fields constant that matches name, or null if its not found.
10194
       */
10195
      public static _Fields findByName(String name) {
10196
        return byName.get(name);
10197
      }
10198
 
10199
      private final short _thriftId;
10200
      private final String _fieldName;
10201
 
10202
      _Fields(short thriftId, String fieldName) {
10203
        _thriftId = thriftId;
10204
        _fieldName = fieldName;
10205
      }
10206
 
10207
      public short getThriftFieldId() {
10208
        return _thriftId;
10209
      }
10210
 
10211
      public String getFieldName() {
10212
        return _fieldName;
10213
      }
10214
    }
10215
 
10216
    // isset id assignments
3010 chandransh 10217
    private static final int __ORDERID_ISSET_ID = 0;
10218
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
10219
    private static final int __AMOUNT_ISSET_ID = 2;
10220
    private BitSet __isset_bit_vector = new BitSet(3);
2462 chandransh 10221
 
3430 rajveer 10222
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 10223
    static {
3430 rajveer 10224
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10225
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10227
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10228
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10229
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10230
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
10231
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10232
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
2462 chandransh 10233
    }
10234
 
3010 chandransh 10235
    public createRefund_args() {
2462 chandransh 10236
    }
10237
 
3010 chandransh 10238
    public createRefund_args(
10239
      long orderId,
10240
      long merchantTxnId,
10241
      double amount)
2462 chandransh 10242
    {
10243
      this();
3010 chandransh 10244
      this.orderId = orderId;
10245
      setOrderIdIsSet(true);
10246
      this.merchantTxnId = merchantTxnId;
10247
      setMerchantTxnIdIsSet(true);
10248
      this.amount = amount;
10249
      setAmountIsSet(true);
2462 chandransh 10250
    }
10251
 
10252
    /**
10253
     * Performs a deep copy on <i>other</i>.
10254
     */
3010 chandransh 10255
    public createRefund_args(createRefund_args other) {
2462 chandransh 10256
      __isset_bit_vector.clear();
10257
      __isset_bit_vector.or(other.__isset_bit_vector);
3010 chandransh 10258
      this.orderId = other.orderId;
10259
      this.merchantTxnId = other.merchantTxnId;
10260
      this.amount = other.amount;
2462 chandransh 10261
    }
10262
 
3010 chandransh 10263
    public createRefund_args deepCopy() {
10264
      return new createRefund_args(this);
2462 chandransh 10265
    }
10266
 
3430 rajveer 10267
    @Override
10268
    public void clear() {
10269
      setOrderIdIsSet(false);
10270
      this.orderId = 0;
10271
      setMerchantTxnIdIsSet(false);
10272
      this.merchantTxnId = 0;
10273
      setAmountIsSet(false);
10274
      this.amount = 0.0;
2462 chandransh 10275
    }
10276
 
3010 chandransh 10277
    public long getOrderId() {
10278
      return this.orderId;
2462 chandransh 10279
    }
10280
 
3430 rajveer 10281
    public void setOrderId(long orderId) {
3010 chandransh 10282
      this.orderId = orderId;
10283
      setOrderIdIsSet(true);
2462 chandransh 10284
    }
10285
 
3010 chandransh 10286
    public void unsetOrderId() {
10287
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2462 chandransh 10288
    }
10289
 
3430 rajveer 10290
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3010 chandransh 10291
    public boolean isSetOrderId() {
10292
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2462 chandransh 10293
    }
10294
 
3010 chandransh 10295
    public void setOrderIdIsSet(boolean value) {
10296
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2462 chandransh 10297
    }
10298
 
3010 chandransh 10299
    public long getMerchantTxnId() {
10300
      return this.merchantTxnId;
10301
    }
10302
 
3430 rajveer 10303
    public void setMerchantTxnId(long merchantTxnId) {
3010 chandransh 10304
      this.merchantTxnId = merchantTxnId;
10305
      setMerchantTxnIdIsSet(true);
10306
    }
10307
 
10308
    public void unsetMerchantTxnId() {
10309
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
10310
    }
10311
 
3430 rajveer 10312
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
3010 chandransh 10313
    public boolean isSetMerchantTxnId() {
10314
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
10315
    }
10316
 
10317
    public void setMerchantTxnIdIsSet(boolean value) {
10318
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
10319
    }
10320
 
10321
    public double getAmount() {
10322
      return this.amount;
10323
    }
10324
 
3430 rajveer 10325
    public void setAmount(double amount) {
3010 chandransh 10326
      this.amount = amount;
10327
      setAmountIsSet(true);
10328
    }
10329
 
10330
    public void unsetAmount() {
10331
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
10332
    }
10333
 
3430 rajveer 10334
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
3010 chandransh 10335
    public boolean isSetAmount() {
10336
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
10337
    }
10338
 
10339
    public void setAmountIsSet(boolean value) {
10340
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
10341
    }
10342
 
2462 chandransh 10343
    public void setFieldValue(_Fields field, Object value) {
10344
      switch (field) {
3010 chandransh 10345
      case ORDER_ID:
2462 chandransh 10346
        if (value == null) {
3010 chandransh 10347
          unsetOrderId();
2462 chandransh 10348
        } else {
3010 chandransh 10349
          setOrderId((Long)value);
2462 chandransh 10350
        }
10351
        break;
10352
 
3010 chandransh 10353
      case MERCHANT_TXN_ID:
10354
        if (value == null) {
10355
          unsetMerchantTxnId();
10356
        } else {
10357
          setMerchantTxnId((Long)value);
10358
        }
10359
        break;
10360
 
10361
      case AMOUNT:
10362
        if (value == null) {
10363
          unsetAmount();
10364
        } else {
10365
          setAmount((Double)value);
10366
        }
10367
        break;
10368
 
2462 chandransh 10369
      }
10370
    }
10371
 
10372
    public Object getFieldValue(_Fields field) {
10373
      switch (field) {
3010 chandransh 10374
      case ORDER_ID:
3430 rajveer 10375
        return Long.valueOf(getOrderId());
2462 chandransh 10376
 
3010 chandransh 10377
      case MERCHANT_TXN_ID:
3430 rajveer 10378
        return Long.valueOf(getMerchantTxnId());
3010 chandransh 10379
 
10380
      case AMOUNT:
3430 rajveer 10381
        return Double.valueOf(getAmount());
3010 chandransh 10382
 
2462 chandransh 10383
      }
10384
      throw new IllegalStateException();
10385
    }
10386
 
3430 rajveer 10387
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10388
    public boolean isSet(_Fields field) {
10389
      if (field == null) {
10390
        throw new IllegalArgumentException();
10391
      }
2462 chandransh 10392
 
10393
      switch (field) {
3010 chandransh 10394
      case ORDER_ID:
10395
        return isSetOrderId();
10396
      case MERCHANT_TXN_ID:
10397
        return isSetMerchantTxnId();
10398
      case AMOUNT:
10399
        return isSetAmount();
2462 chandransh 10400
      }
10401
      throw new IllegalStateException();
10402
    }
10403
 
10404
    @Override
10405
    public boolean equals(Object that) {
10406
      if (that == null)
10407
        return false;
3010 chandransh 10408
      if (that instanceof createRefund_args)
10409
        return this.equals((createRefund_args)that);
2462 chandransh 10410
      return false;
10411
    }
10412
 
3010 chandransh 10413
    public boolean equals(createRefund_args that) {
2462 chandransh 10414
      if (that == null)
10415
        return false;
10416
 
3010 chandransh 10417
      boolean this_present_orderId = true;
10418
      boolean that_present_orderId = true;
10419
      if (this_present_orderId || that_present_orderId) {
10420
        if (!(this_present_orderId && that_present_orderId))
2462 chandransh 10421
          return false;
3010 chandransh 10422
        if (this.orderId != that.orderId)
2462 chandransh 10423
          return false;
10424
      }
10425
 
3010 chandransh 10426
      boolean this_present_merchantTxnId = true;
10427
      boolean that_present_merchantTxnId = true;
10428
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
10429
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
10430
          return false;
10431
        if (this.merchantTxnId != that.merchantTxnId)
10432
          return false;
10433
      }
10434
 
10435
      boolean this_present_amount = true;
10436
      boolean that_present_amount = true;
10437
      if (this_present_amount || that_present_amount) {
10438
        if (!(this_present_amount && that_present_amount))
10439
          return false;
10440
        if (this.amount != that.amount)
10441
          return false;
10442
      }
10443
 
2462 chandransh 10444
      return true;
10445
    }
10446
 
10447
    @Override
10448
    public int hashCode() {
10449
      return 0;
10450
    }
10451
 
3010 chandransh 10452
    public int compareTo(createRefund_args other) {
2462 chandransh 10453
      if (!getClass().equals(other.getClass())) {
10454
        return getClass().getName().compareTo(other.getClass().getName());
10455
      }
10456
 
10457
      int lastComparison = 0;
3010 chandransh 10458
      createRefund_args typedOther = (createRefund_args)other;
2462 chandransh 10459
 
3430 rajveer 10460
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2462 chandransh 10461
      if (lastComparison != 0) {
10462
        return lastComparison;
10463
      }
3430 rajveer 10464
      if (isSetOrderId()) {
10465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
10466
        if (lastComparison != 0) {
10467
          return lastComparison;
10468
        }
2462 chandransh 10469
      }
3430 rajveer 10470
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
3010 chandransh 10471
      if (lastComparison != 0) {
10472
        return lastComparison;
10473
      }
3430 rajveer 10474
      if (isSetMerchantTxnId()) {
10475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
10476
        if (lastComparison != 0) {
10477
          return lastComparison;
10478
        }
3010 chandransh 10479
      }
3430 rajveer 10480
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
3010 chandransh 10481
      if (lastComparison != 0) {
10482
        return lastComparison;
10483
      }
3430 rajveer 10484
      if (isSetAmount()) {
10485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
10486
        if (lastComparison != 0) {
10487
          return lastComparison;
10488
        }
3010 chandransh 10489
      }
2462 chandransh 10490
      return 0;
10491
    }
10492
 
3430 rajveer 10493
    public _Fields fieldForId(int fieldId) {
10494
      return _Fields.findByThriftId(fieldId);
10495
    }
10496
 
10497
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10498
      org.apache.thrift.protocol.TField field;
2462 chandransh 10499
      iprot.readStructBegin();
10500
      while (true)
10501
      {
10502
        field = iprot.readFieldBegin();
3430 rajveer 10503
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 10504
          break;
10505
        }
3430 rajveer 10506
        switch (field.id) {
10507
          case 1: // ORDER_ID
10508
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10509
              this.orderId = iprot.readI64();
10510
              setOrderIdIsSet(true);
10511
            } else { 
10512
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10513
            }
10514
            break;
10515
          case 2: // MERCHANT_TXN_ID
10516
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10517
              this.merchantTxnId = iprot.readI64();
10518
              setMerchantTxnIdIsSet(true);
10519
            } else { 
10520
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10521
            }
10522
            break;
10523
          case 3: // AMOUNT
10524
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
10525
              this.amount = iprot.readDouble();
10526
              setAmountIsSet(true);
10527
            } else { 
10528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10529
            }
10530
            break;
10531
          default:
10532
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 10533
        }
3430 rajveer 10534
        iprot.readFieldEnd();
2462 chandransh 10535
      }
10536
      iprot.readStructEnd();
10537
      validate();
10538
    }
10539
 
3430 rajveer 10540
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 10541
      validate();
10542
 
10543
      oprot.writeStructBegin(STRUCT_DESC);
3010 chandransh 10544
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
10545
      oprot.writeI64(this.orderId);
2462 chandransh 10546
      oprot.writeFieldEnd();
3010 chandransh 10547
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
10548
      oprot.writeI64(this.merchantTxnId);
10549
      oprot.writeFieldEnd();
10550
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
10551
      oprot.writeDouble(this.amount);
10552
      oprot.writeFieldEnd();
2462 chandransh 10553
      oprot.writeFieldStop();
10554
      oprot.writeStructEnd();
10555
    }
10556
 
10557
    @Override
10558
    public String toString() {
3010 chandransh 10559
      StringBuilder sb = new StringBuilder("createRefund_args(");
2462 chandransh 10560
      boolean first = true;
10561
 
3010 chandransh 10562
      sb.append("orderId:");
10563
      sb.append(this.orderId);
2462 chandransh 10564
      first = false;
3010 chandransh 10565
      if (!first) sb.append(", ");
10566
      sb.append("merchantTxnId:");
10567
      sb.append(this.merchantTxnId);
10568
      first = false;
10569
      if (!first) sb.append(", ");
10570
      sb.append("amount:");
10571
      sb.append(this.amount);
10572
      first = false;
2462 chandransh 10573
      sb.append(")");
10574
      return sb.toString();
10575
    }
10576
 
3430 rajveer 10577
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 10578
      // check for required fields
10579
    }
10580
 
3430 rajveer 10581
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10582
      try {
10583
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10584
      } catch (org.apache.thrift.TException te) {
10585
        throw new java.io.IOException(te);
10586
      }
10587
    }
10588
 
10589
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10590
      try {
10591
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10592
      } catch (org.apache.thrift.TException te) {
10593
        throw new java.io.IOException(te);
10594
      }
10595
    }
10596
 
2462 chandransh 10597
  }
10598
 
3430 rajveer 10599
  public static class createRefund_result implements org.apache.thrift.TBase<createRefund_result, createRefund_result._Fields>, java.io.Serializable, Cloneable   {
10600
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_result");
2462 chandransh 10601
 
3430 rajveer 10602
    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);
10603
    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 10604
 
3430 rajveer 10605
    private long success; // required
10606
    private PaymentException pe; // required
2462 chandransh 10607
 
10608
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10609
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 10610
      SUCCESS((short)0, "success"),
10611
      PE((short)1, "pe");
10612
 
10613
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10614
 
10615
      static {
10616
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10617
          byName.put(field.getFieldName(), field);
10618
        }
10619
      }
10620
 
10621
      /**
10622
       * Find the _Fields constant that matches fieldId, or null if its not found.
10623
       */
10624
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10625
        switch(fieldId) {
10626
          case 0: // SUCCESS
10627
            return SUCCESS;
10628
          case 1: // PE
10629
            return PE;
10630
          default:
10631
            return null;
10632
        }
2462 chandransh 10633
      }
10634
 
10635
      /**
10636
       * Find the _Fields constant that matches fieldId, throwing an exception
10637
       * if it is not found.
10638
       */
10639
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10640
        _Fields fields = findByThriftId(fieldId);
10641
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10642
        return fields;
10643
      }
10644
 
10645
      /**
10646
       * Find the _Fields constant that matches name, or null if its not found.
10647
       */
10648
      public static _Fields findByName(String name) {
10649
        return byName.get(name);
10650
      }
10651
 
10652
      private final short _thriftId;
10653
      private final String _fieldName;
10654
 
10655
      _Fields(short thriftId, String fieldName) {
10656
        _thriftId = thriftId;
10657
        _fieldName = fieldName;
10658
      }
10659
 
10660
      public short getThriftFieldId() {
10661
        return _thriftId;
10662
      }
10663
 
10664
      public String getFieldName() {
10665
        return _fieldName;
10666
      }
10667
    }
10668
 
10669
    // isset id assignments
3010 chandransh 10670
    private static final int __SUCCESS_ISSET_ID = 0;
10671
    private BitSet __isset_bit_vector = new BitSet(1);
2462 chandransh 10672
 
3430 rajveer 10673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 10674
    static {
3430 rajveer 10675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10676
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10677
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10678
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10679
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10680
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10681
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
2462 chandransh 10682
    }
10683
 
3010 chandransh 10684
    public createRefund_result() {
2462 chandransh 10685
    }
10686
 
3010 chandransh 10687
    public createRefund_result(
10688
      long success,
2462 chandransh 10689
      PaymentException pe)
10690
    {
10691
      this();
10692
      this.success = success;
3010 chandransh 10693
      setSuccessIsSet(true);
2462 chandransh 10694
      this.pe = pe;
10695
    }
10696
 
10697
    /**
10698
     * Performs a deep copy on <i>other</i>.
10699
     */
3010 chandransh 10700
    public createRefund_result(createRefund_result other) {
10701
      __isset_bit_vector.clear();
10702
      __isset_bit_vector.or(other.__isset_bit_vector);
10703
      this.success = other.success;
2462 chandransh 10704
      if (other.isSetPe()) {
10705
        this.pe = new PaymentException(other.pe);
10706
      }
10707
    }
10708
 
3010 chandransh 10709
    public createRefund_result deepCopy() {
10710
      return new createRefund_result(this);
2462 chandransh 10711
    }
10712
 
3430 rajveer 10713
    @Override
10714
    public void clear() {
10715
      setSuccessIsSet(false);
10716
      this.success = 0;
10717
      this.pe = null;
2462 chandransh 10718
    }
10719
 
3010 chandransh 10720
    public long getSuccess() {
2462 chandransh 10721
      return this.success;
10722
    }
10723
 
3430 rajveer 10724
    public void setSuccess(long success) {
2462 chandransh 10725
      this.success = success;
3010 chandransh 10726
      setSuccessIsSet(true);
2462 chandransh 10727
    }
10728
 
10729
    public void unsetSuccess() {
3010 chandransh 10730
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2462 chandransh 10731
    }
10732
 
3430 rajveer 10733
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 10734
    public boolean isSetSuccess() {
3010 chandransh 10735
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2462 chandransh 10736
    }
10737
 
10738
    public void setSuccessIsSet(boolean value) {
3010 chandransh 10739
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2462 chandransh 10740
    }
10741
 
10742
    public PaymentException getPe() {
10743
      return this.pe;
10744
    }
10745
 
3430 rajveer 10746
    public void setPe(PaymentException pe) {
2462 chandransh 10747
      this.pe = pe;
10748
    }
10749
 
10750
    public void unsetPe() {
10751
      this.pe = null;
10752
    }
10753
 
3430 rajveer 10754
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 10755
    public boolean isSetPe() {
10756
      return this.pe != null;
10757
    }
10758
 
10759
    public void setPeIsSet(boolean value) {
10760
      if (!value) {
10761
        this.pe = null;
10762
      }
10763
    }
10764
 
10765
    public void setFieldValue(_Fields field, Object value) {
10766
      switch (field) {
10767
      case SUCCESS:
10768
        if (value == null) {
10769
          unsetSuccess();
10770
        } else {
3010 chandransh 10771
          setSuccess((Long)value);
2462 chandransh 10772
        }
10773
        break;
10774
 
10775
      case PE:
10776
        if (value == null) {
10777
          unsetPe();
10778
        } else {
10779
          setPe((PaymentException)value);
10780
        }
10781
        break;
10782
 
10783
      }
10784
    }
10785
 
10786
    public Object getFieldValue(_Fields field) {
10787
      switch (field) {
10788
      case SUCCESS:
3430 rajveer 10789
        return Long.valueOf(getSuccess());
2462 chandransh 10790
 
10791
      case PE:
10792
        return getPe();
10793
 
10794
      }
10795
      throw new IllegalStateException();
10796
    }
10797
 
3430 rajveer 10798
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10799
    public boolean isSet(_Fields field) {
10800
      if (field == null) {
10801
        throw new IllegalArgumentException();
10802
      }
2462 chandransh 10803
 
10804
      switch (field) {
10805
      case SUCCESS:
10806
        return isSetSuccess();
10807
      case PE:
10808
        return isSetPe();
10809
      }
10810
      throw new IllegalStateException();
10811
    }
10812
 
10813
    @Override
10814
    public boolean equals(Object that) {
10815
      if (that == null)
10816
        return false;
3010 chandransh 10817
      if (that instanceof createRefund_result)
10818
        return this.equals((createRefund_result)that);
2462 chandransh 10819
      return false;
10820
    }
10821
 
3010 chandransh 10822
    public boolean equals(createRefund_result that) {
2462 chandransh 10823
      if (that == null)
10824
        return false;
10825
 
3010 chandransh 10826
      boolean this_present_success = true;
10827
      boolean that_present_success = true;
2462 chandransh 10828
      if (this_present_success || that_present_success) {
10829
        if (!(this_present_success && that_present_success))
10830
          return false;
3010 chandransh 10831
        if (this.success != that.success)
2462 chandransh 10832
          return false;
10833
      }
10834
 
10835
      boolean this_present_pe = true && this.isSetPe();
10836
      boolean that_present_pe = true && that.isSetPe();
10837
      if (this_present_pe || that_present_pe) {
10838
        if (!(this_present_pe && that_present_pe))
10839
          return false;
10840
        if (!this.pe.equals(that.pe))
10841
          return false;
10842
      }
10843
 
10844
      return true;
10845
    }
10846
 
10847
    @Override
10848
    public int hashCode() {
10849
      return 0;
10850
    }
10851
 
3010 chandransh 10852
    public int compareTo(createRefund_result other) {
2462 chandransh 10853
      if (!getClass().equals(other.getClass())) {
10854
        return getClass().getName().compareTo(other.getClass().getName());
10855
      }
10856
 
10857
      int lastComparison = 0;
3010 chandransh 10858
      createRefund_result typedOther = (createRefund_result)other;
2462 chandransh 10859
 
3430 rajveer 10860
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2462 chandransh 10861
      if (lastComparison != 0) {
10862
        return lastComparison;
10863
      }
3430 rajveer 10864
      if (isSetSuccess()) {
10865
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10866
        if (lastComparison != 0) {
10867
          return lastComparison;
10868
        }
2462 chandransh 10869
      }
3430 rajveer 10870
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2462 chandransh 10871
      if (lastComparison != 0) {
10872
        return lastComparison;
10873
      }
3430 rajveer 10874
      if (isSetPe()) {
10875
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
10876
        if (lastComparison != 0) {
10877
          return lastComparison;
10878
        }
2462 chandransh 10879
      }
10880
      return 0;
10881
    }
10882
 
3430 rajveer 10883
    public _Fields fieldForId(int fieldId) {
10884
      return _Fields.findByThriftId(fieldId);
10885
    }
10886
 
10887
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10888
      org.apache.thrift.protocol.TField field;
2462 chandransh 10889
      iprot.readStructBegin();
10890
      while (true)
10891
      {
10892
        field = iprot.readFieldBegin();
3430 rajveer 10893
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 10894
          break;
10895
        }
3430 rajveer 10896
        switch (field.id) {
10897
          case 0: // SUCCESS
10898
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10899
              this.success = iprot.readI64();
10900
              setSuccessIsSet(true);
10901
            } else { 
10902
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10903
            }
10904
            break;
10905
          case 1: // PE
10906
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10907
              this.pe = new PaymentException();
10908
              this.pe.read(iprot);
10909
            } else { 
10910
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10911
            }
10912
            break;
10913
          default:
10914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 10915
        }
3430 rajveer 10916
        iprot.readFieldEnd();
2462 chandransh 10917
      }
10918
      iprot.readStructEnd();
10919
      validate();
10920
    }
10921
 
3430 rajveer 10922
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 10923
      oprot.writeStructBegin(STRUCT_DESC);
10924
 
10925
      if (this.isSetSuccess()) {
10926
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 10927
        oprot.writeI64(this.success);
2462 chandransh 10928
        oprot.writeFieldEnd();
10929
      } else if (this.isSetPe()) {
10930
        oprot.writeFieldBegin(PE_FIELD_DESC);
10931
        this.pe.write(oprot);
10932
        oprot.writeFieldEnd();
10933
      }
10934
      oprot.writeFieldStop();
10935
      oprot.writeStructEnd();
10936
    }
10937
 
10938
    @Override
10939
    public String toString() {
3010 chandransh 10940
      StringBuilder sb = new StringBuilder("createRefund_result(");
2462 chandransh 10941
      boolean first = true;
10942
 
10943
      sb.append("success:");
3010 chandransh 10944
      sb.append(this.success);
2462 chandransh 10945
      first = false;
10946
      if (!first) sb.append(", ");
10947
      sb.append("pe:");
10948
      if (this.pe == null) {
10949
        sb.append("null");
10950
      } else {
10951
        sb.append(this.pe);
10952
      }
10953
      first = false;
10954
      sb.append(")");
10955
      return sb.toString();
10956
    }
10957
 
3430 rajveer 10958
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 10959
      // check for required fields
10960
    }
10961
 
3430 rajveer 10962
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10963
      try {
10964
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10965
      } catch (org.apache.thrift.TException te) {
10966
        throw new java.io.IOException(te);
10967
      }
10968
    }
10969
 
10970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10971
      try {
10972
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10973
      } catch (org.apache.thrift.TException te) {
10974
        throw new java.io.IOException(te);
10975
      }
10976
    }
10977
 
2462 chandransh 10978
  }
10979
 
3430 rajveer 10980
  public static class capturePayment_args implements org.apache.thrift.TBase<capturePayment_args, capturePayment_args._Fields>, java.io.Serializable, Cloneable   {
10981
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_args");
2690 chandransh 10982
 
3430 rajveer 10983
    private static final org.apache.thrift.protocol.TField MERCHANT_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantTxnId", org.apache.thrift.protocol.TType.I64, (short)1);
2690 chandransh 10984
 
3430 rajveer 10985
    private long merchantTxnId; // required
2690 chandransh 10986
 
10987
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10988
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 10989
      MERCHANT_TXN_ID((short)1, "merchantTxnId");
2690 chandransh 10990
 
10991
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10992
 
10993
      static {
10994
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10995
          byName.put(field.getFieldName(), field);
10996
        }
10997
      }
10998
 
10999
      /**
11000
       * Find the _Fields constant that matches fieldId, or null if its not found.
11001
       */
11002
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11003
        switch(fieldId) {
11004
          case 1: // MERCHANT_TXN_ID
11005
            return MERCHANT_TXN_ID;
11006
          default:
11007
            return null;
11008
        }
2690 chandransh 11009
      }
11010
 
11011
      /**
11012
       * Find the _Fields constant that matches fieldId, throwing an exception
11013
       * if it is not found.
11014
       */
11015
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11016
        _Fields fields = findByThriftId(fieldId);
11017
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11018
        return fields;
11019
      }
11020
 
11021
      /**
11022
       * Find the _Fields constant that matches name, or null if its not found.
11023
       */
11024
      public static _Fields findByName(String name) {
11025
        return byName.get(name);
11026
      }
11027
 
11028
      private final short _thriftId;
11029
      private final String _fieldName;
11030
 
11031
      _Fields(short thriftId, String fieldName) {
11032
        _thriftId = thriftId;
11033
        _fieldName = fieldName;
11034
      }
11035
 
11036
      public short getThriftFieldId() {
11037
        return _thriftId;
11038
      }
11039
 
11040
      public String getFieldName() {
11041
        return _fieldName;
11042
      }
11043
    }
11044
 
11045
    // isset id assignments
3010 chandransh 11046
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
11047
    private BitSet __isset_bit_vector = new BitSet(1);
2690 chandransh 11048
 
3430 rajveer 11049
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 11050
    static {
3430 rajveer 11051
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11052
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11054
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11055
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
2690 chandransh 11056
    }
11057
 
3010 chandransh 11058
    public capturePayment_args() {
2690 chandransh 11059
    }
11060
 
3010 chandransh 11061
    public capturePayment_args(
11062
      long merchantTxnId)
2690 chandransh 11063
    {
11064
      this();
11065
      this.merchantTxnId = merchantTxnId;
11066
      setMerchantTxnIdIsSet(true);
11067
    }
11068
 
11069
    /**
11070
     * Performs a deep copy on <i>other</i>.
11071
     */
3010 chandransh 11072
    public capturePayment_args(capturePayment_args other) {
2690 chandransh 11073
      __isset_bit_vector.clear();
11074
      __isset_bit_vector.or(other.__isset_bit_vector);
11075
      this.merchantTxnId = other.merchantTxnId;
11076
    }
11077
 
3010 chandransh 11078
    public capturePayment_args deepCopy() {
11079
      return new capturePayment_args(this);
2690 chandransh 11080
    }
11081
 
3430 rajveer 11082
    @Override
11083
    public void clear() {
11084
      setMerchantTxnIdIsSet(false);
11085
      this.merchantTxnId = 0;
2690 chandransh 11086
    }
11087
 
11088
    public long getMerchantTxnId() {
11089
      return this.merchantTxnId;
11090
    }
11091
 
3430 rajveer 11092
    public void setMerchantTxnId(long merchantTxnId) {
2690 chandransh 11093
      this.merchantTxnId = merchantTxnId;
11094
      setMerchantTxnIdIsSet(true);
11095
    }
11096
 
11097
    public void unsetMerchantTxnId() {
11098
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
11099
    }
11100
 
3430 rajveer 11101
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
2690 chandransh 11102
    public boolean isSetMerchantTxnId() {
11103
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
11104
    }
11105
 
11106
    public void setMerchantTxnIdIsSet(boolean value) {
11107
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
11108
    }
11109
 
11110
    public void setFieldValue(_Fields field, Object value) {
11111
      switch (field) {
11112
      case MERCHANT_TXN_ID:
11113
        if (value == null) {
11114
          unsetMerchantTxnId();
11115
        } else {
11116
          setMerchantTxnId((Long)value);
11117
        }
11118
        break;
11119
 
11120
      }
11121
    }
11122
 
11123
    public Object getFieldValue(_Fields field) {
11124
      switch (field) {
11125
      case MERCHANT_TXN_ID:
3430 rajveer 11126
        return Long.valueOf(getMerchantTxnId());
2690 chandransh 11127
 
11128
      }
11129
      throw new IllegalStateException();
11130
    }
11131
 
3430 rajveer 11132
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11133
    public boolean isSet(_Fields field) {
11134
      if (field == null) {
11135
        throw new IllegalArgumentException();
11136
      }
2690 chandransh 11137
 
11138
      switch (field) {
11139
      case MERCHANT_TXN_ID:
11140
        return isSetMerchantTxnId();
11141
      }
11142
      throw new IllegalStateException();
11143
    }
11144
 
11145
    @Override
11146
    public boolean equals(Object that) {
11147
      if (that == null)
11148
        return false;
3010 chandransh 11149
      if (that instanceof capturePayment_args)
11150
        return this.equals((capturePayment_args)that);
2690 chandransh 11151
      return false;
11152
    }
11153
 
3010 chandransh 11154
    public boolean equals(capturePayment_args that) {
2690 chandransh 11155
      if (that == null)
11156
        return false;
11157
 
11158
      boolean this_present_merchantTxnId = true;
11159
      boolean that_present_merchantTxnId = true;
11160
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
11161
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
11162
          return false;
11163
        if (this.merchantTxnId != that.merchantTxnId)
11164
          return false;
11165
      }
11166
 
11167
      return true;
11168
    }
11169
 
11170
    @Override
11171
    public int hashCode() {
11172
      return 0;
11173
    }
11174
 
3010 chandransh 11175
    public int compareTo(capturePayment_args other) {
2690 chandransh 11176
      if (!getClass().equals(other.getClass())) {
11177
        return getClass().getName().compareTo(other.getClass().getName());
11178
      }
11179
 
11180
      int lastComparison = 0;
3010 chandransh 11181
      capturePayment_args typedOther = (capturePayment_args)other;
2690 chandransh 11182
 
3430 rajveer 11183
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
2690 chandransh 11184
      if (lastComparison != 0) {
11185
        return lastComparison;
11186
      }
3430 rajveer 11187
      if (isSetMerchantTxnId()) {
11188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
11189
        if (lastComparison != 0) {
11190
          return lastComparison;
11191
        }
2690 chandransh 11192
      }
11193
      return 0;
11194
    }
11195
 
3430 rajveer 11196
    public _Fields fieldForId(int fieldId) {
11197
      return _Fields.findByThriftId(fieldId);
11198
    }
11199
 
11200
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11201
      org.apache.thrift.protocol.TField field;
2690 chandransh 11202
      iprot.readStructBegin();
11203
      while (true)
11204
      {
11205
        field = iprot.readFieldBegin();
3430 rajveer 11206
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 11207
          break;
11208
        }
3430 rajveer 11209
        switch (field.id) {
11210
          case 1: // MERCHANT_TXN_ID
11211
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11212
              this.merchantTxnId = iprot.readI64();
11213
              setMerchantTxnIdIsSet(true);
11214
            } else { 
11215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11216
            }
11217
            break;
11218
          default:
11219
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 11220
        }
3430 rajveer 11221
        iprot.readFieldEnd();
2690 chandransh 11222
      }
11223
      iprot.readStructEnd();
11224
      validate();
11225
    }
11226
 
3430 rajveer 11227
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 11228
      validate();
11229
 
11230
      oprot.writeStructBegin(STRUCT_DESC);
11231
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
11232
      oprot.writeI64(this.merchantTxnId);
11233
      oprot.writeFieldEnd();
11234
      oprot.writeFieldStop();
11235
      oprot.writeStructEnd();
11236
    }
11237
 
11238
    @Override
11239
    public String toString() {
3010 chandransh 11240
      StringBuilder sb = new StringBuilder("capturePayment_args(");
2690 chandransh 11241
      boolean first = true;
11242
 
11243
      sb.append("merchantTxnId:");
11244
      sb.append(this.merchantTxnId);
11245
      first = false;
11246
      sb.append(")");
11247
      return sb.toString();
11248
    }
11249
 
3430 rajveer 11250
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 11251
      // check for required fields
11252
    }
11253
 
3430 rajveer 11254
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11255
      try {
11256
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11257
      } catch (org.apache.thrift.TException te) {
11258
        throw new java.io.IOException(te);
11259
      }
11260
    }
11261
 
11262
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11263
      try {
11264
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11265
      } catch (org.apache.thrift.TException te) {
11266
        throw new java.io.IOException(te);
11267
      }
11268
    }
11269
 
2690 chandransh 11270
  }
11271
 
3430 rajveer 11272
  public static class capturePayment_result implements org.apache.thrift.TBase<capturePayment_result, capturePayment_result._Fields>, java.io.Serializable, Cloneable   {
11273
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_result");
2690 chandransh 11274
 
3430 rajveer 11275
    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);
11276
    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 11277
 
3430 rajveer 11278
    private boolean success; // required
11279
    private PaymentException pe; // required
2690 chandransh 11280
 
11281
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11282
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 11283
      SUCCESS((short)0, "success"),
11284
      PE((short)1, "pe");
11285
 
11286
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11287
 
11288
      static {
11289
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11290
          byName.put(field.getFieldName(), field);
11291
        }
11292
      }
11293
 
11294
      /**
11295
       * Find the _Fields constant that matches fieldId, or null if its not found.
11296
       */
11297
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11298
        switch(fieldId) {
11299
          case 0: // SUCCESS
11300
            return SUCCESS;
11301
          case 1: // PE
11302
            return PE;
11303
          default:
11304
            return null;
11305
        }
2690 chandransh 11306
      }
11307
 
11308
      /**
11309
       * Find the _Fields constant that matches fieldId, throwing an exception
11310
       * if it is not found.
11311
       */
11312
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11313
        _Fields fields = findByThriftId(fieldId);
11314
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11315
        return fields;
11316
      }
11317
 
11318
      /**
11319
       * Find the _Fields constant that matches name, or null if its not found.
11320
       */
11321
      public static _Fields findByName(String name) {
11322
        return byName.get(name);
11323
      }
11324
 
11325
      private final short _thriftId;
11326
      private final String _fieldName;
11327
 
11328
      _Fields(short thriftId, String fieldName) {
11329
        _thriftId = thriftId;
11330
        _fieldName = fieldName;
11331
      }
11332
 
11333
      public short getThriftFieldId() {
11334
        return _thriftId;
11335
      }
11336
 
11337
      public String getFieldName() {
11338
        return _fieldName;
11339
      }
11340
    }
11341
 
11342
    // isset id assignments
11343
    private static final int __SUCCESS_ISSET_ID = 0;
11344
    private BitSet __isset_bit_vector = new BitSet(1);
11345
 
3430 rajveer 11346
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 11347
    static {
3430 rajveer 11348
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11349
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11350
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11351
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11352
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11353
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11354
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
2690 chandransh 11355
    }
11356
 
3010 chandransh 11357
    public capturePayment_result() {
2690 chandransh 11358
    }
11359
 
3010 chandransh 11360
    public capturePayment_result(
11361
      boolean success,
2690 chandransh 11362
      PaymentException pe)
11363
    {
11364
      this();
11365
      this.success = success;
11366
      setSuccessIsSet(true);
11367
      this.pe = pe;
11368
    }
11369
 
11370
    /**
11371
     * Performs a deep copy on <i>other</i>.
11372
     */
3010 chandransh 11373
    public capturePayment_result(capturePayment_result other) {
2690 chandransh 11374
      __isset_bit_vector.clear();
11375
      __isset_bit_vector.or(other.__isset_bit_vector);
11376
      this.success = other.success;
11377
      if (other.isSetPe()) {
11378
        this.pe = new PaymentException(other.pe);
11379
      }
11380
    }
11381
 
3010 chandransh 11382
    public capturePayment_result deepCopy() {
11383
      return new capturePayment_result(this);
2690 chandransh 11384
    }
11385
 
3430 rajveer 11386
    @Override
11387
    public void clear() {
11388
      setSuccessIsSet(false);
11389
      this.success = false;
11390
      this.pe = null;
2690 chandransh 11391
    }
11392
 
3010 chandransh 11393
    public boolean isSuccess() {
2690 chandransh 11394
      return this.success;
11395
    }
11396
 
3430 rajveer 11397
    public void setSuccess(boolean success) {
2690 chandransh 11398
      this.success = success;
11399
      setSuccessIsSet(true);
11400
    }
11401
 
11402
    public void unsetSuccess() {
11403
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11404
    }
11405
 
3430 rajveer 11406
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690 chandransh 11407
    public boolean isSetSuccess() {
11408
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11409
    }
11410
 
11411
    public void setSuccessIsSet(boolean value) {
11412
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11413
    }
11414
 
11415
    public PaymentException getPe() {
11416
      return this.pe;
11417
    }
11418
 
3430 rajveer 11419
    public void setPe(PaymentException pe) {
2690 chandransh 11420
      this.pe = pe;
11421
    }
11422
 
11423
    public void unsetPe() {
11424
      this.pe = null;
11425
    }
11426
 
3430 rajveer 11427
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2690 chandransh 11428
    public boolean isSetPe() {
11429
      return this.pe != null;
11430
    }
11431
 
11432
    public void setPeIsSet(boolean value) {
11433
      if (!value) {
11434
        this.pe = null;
11435
      }
11436
    }
11437
 
11438
    public void setFieldValue(_Fields field, Object value) {
11439
      switch (field) {
11440
      case SUCCESS:
11441
        if (value == null) {
11442
          unsetSuccess();
11443
        } else {
3010 chandransh 11444
          setSuccess((Boolean)value);
2690 chandransh 11445
        }
11446
        break;
11447
 
11448
      case PE:
11449
        if (value == null) {
11450
          unsetPe();
11451
        } else {
11452
          setPe((PaymentException)value);
11453
        }
11454
        break;
11455
 
11456
      }
11457
    }
11458
 
11459
    public Object getFieldValue(_Fields field) {
11460
      switch (field) {
11461
      case SUCCESS:
3430 rajveer 11462
        return Boolean.valueOf(isSuccess());
2690 chandransh 11463
 
11464
      case PE:
11465
        return getPe();
11466
 
11467
      }
11468
      throw new IllegalStateException();
11469
    }
11470
 
3430 rajveer 11471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11472
    public boolean isSet(_Fields field) {
11473
      if (field == null) {
11474
        throw new IllegalArgumentException();
11475
      }
2690 chandransh 11476
 
11477
      switch (field) {
11478
      case SUCCESS:
11479
        return isSetSuccess();
11480
      case PE:
11481
        return isSetPe();
11482
      }
11483
      throw new IllegalStateException();
11484
    }
11485
 
11486
    @Override
11487
    public boolean equals(Object that) {
11488
      if (that == null)
11489
        return false;
3010 chandransh 11490
      if (that instanceof capturePayment_result)
11491
        return this.equals((capturePayment_result)that);
2690 chandransh 11492
      return false;
11493
    }
11494
 
3010 chandransh 11495
    public boolean equals(capturePayment_result that) {
2690 chandransh 11496
      if (that == null)
11497
        return false;
11498
 
11499
      boolean this_present_success = true;
11500
      boolean that_present_success = true;
11501
      if (this_present_success || that_present_success) {
11502
        if (!(this_present_success && that_present_success))
11503
          return false;
11504
        if (this.success != that.success)
11505
          return false;
11506
      }
11507
 
11508
      boolean this_present_pe = true && this.isSetPe();
11509
      boolean that_present_pe = true && that.isSetPe();
11510
      if (this_present_pe || that_present_pe) {
11511
        if (!(this_present_pe && that_present_pe))
11512
          return false;
11513
        if (!this.pe.equals(that.pe))
11514
          return false;
11515
      }
11516
 
11517
      return true;
11518
    }
11519
 
11520
    @Override
11521
    public int hashCode() {
11522
      return 0;
11523
    }
11524
 
3010 chandransh 11525
    public int compareTo(capturePayment_result other) {
2690 chandransh 11526
      if (!getClass().equals(other.getClass())) {
11527
        return getClass().getName().compareTo(other.getClass().getName());
11528
      }
11529
 
11530
      int lastComparison = 0;
3010 chandransh 11531
      capturePayment_result typedOther = (capturePayment_result)other;
2690 chandransh 11532
 
3430 rajveer 11533
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2690 chandransh 11534
      if (lastComparison != 0) {
11535
        return lastComparison;
11536
      }
3430 rajveer 11537
      if (isSetSuccess()) {
11538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11539
        if (lastComparison != 0) {
11540
          return lastComparison;
11541
        }
2690 chandransh 11542
      }
3430 rajveer 11543
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2690 chandransh 11544
      if (lastComparison != 0) {
11545
        return lastComparison;
11546
      }
3430 rajveer 11547
      if (isSetPe()) {
11548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
11549
        if (lastComparison != 0) {
11550
          return lastComparison;
11551
        }
2690 chandransh 11552
      }
11553
      return 0;
11554
    }
11555
 
3430 rajveer 11556
    public _Fields fieldForId(int fieldId) {
11557
      return _Fields.findByThriftId(fieldId);
11558
    }
11559
 
11560
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11561
      org.apache.thrift.protocol.TField field;
2690 chandransh 11562
      iprot.readStructBegin();
11563
      while (true)
11564
      {
11565
        field = iprot.readFieldBegin();
3430 rajveer 11566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 11567
          break;
11568
        }
3430 rajveer 11569
        switch (field.id) {
11570
          case 0: // SUCCESS
11571
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11572
              this.success = iprot.readBool();
11573
              setSuccessIsSet(true);
11574
            } else { 
11575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11576
            }
11577
            break;
11578
          case 1: // PE
11579
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11580
              this.pe = new PaymentException();
11581
              this.pe.read(iprot);
11582
            } else { 
11583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11584
            }
11585
            break;
11586
          default:
11587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 11588
        }
3430 rajveer 11589
        iprot.readFieldEnd();
2690 chandransh 11590
      }
11591
      iprot.readStructEnd();
11592
      validate();
11593
    }
11594
 
3430 rajveer 11595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 11596
      oprot.writeStructBegin(STRUCT_DESC);
11597
 
11598
      if (this.isSetSuccess()) {
11599
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 11600
        oprot.writeBool(this.success);
2690 chandransh 11601
        oprot.writeFieldEnd();
11602
      } else if (this.isSetPe()) {
11603
        oprot.writeFieldBegin(PE_FIELD_DESC);
11604
        this.pe.write(oprot);
11605
        oprot.writeFieldEnd();
11606
      }
11607
      oprot.writeFieldStop();
11608
      oprot.writeStructEnd();
11609
    }
11610
 
11611
    @Override
11612
    public String toString() {
3010 chandransh 11613
      StringBuilder sb = new StringBuilder("capturePayment_result(");
2690 chandransh 11614
      boolean first = true;
11615
 
11616
      sb.append("success:");
11617
      sb.append(this.success);
11618
      first = false;
11619
      if (!first) sb.append(", ");
11620
      sb.append("pe:");
11621
      if (this.pe == null) {
11622
        sb.append("null");
11623
      } else {
11624
        sb.append(this.pe);
11625
      }
11626
      first = false;
11627
      sb.append(")");
11628
      return sb.toString();
11629
    }
11630
 
3430 rajveer 11631
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 11632
      // check for required fields
11633
    }
11634
 
3430 rajveer 11635
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11636
      try {
11637
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11638
      } catch (org.apache.thrift.TException te) {
11639
        throw new java.io.IOException(te);
11640
      }
11641
    }
11642
 
11643
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11644
      try {
11645
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11646
      } catch (org.apache.thrift.TException te) {
11647
        throw new java.io.IOException(te);
11648
      }
11649
    }
11650
 
2690 chandransh 11651
  }
11652
 
3956 chandransh 11653
  public static class partiallyCapturePayment_args implements org.apache.thrift.TBase<partiallyCapturePayment_args, partiallyCapturePayment_args._Fields>, java.io.Serializable, Cloneable   {
11654
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_args");
11655
 
11656
    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);
11657
    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);
11658
    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);
11659
    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);
11660
    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);
11661
 
11662
    private long merchantTxnId; // required
11663
    private double amount; // required
11664
    private String xferBy; // required
11665
    private String xferTxnId; // required
11666
    private long xferDate; // required
11667
 
11668
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11669
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11670
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
11671
      AMOUNT((short)2, "amount"),
11672
      XFER_BY((short)3, "xferBy"),
11673
      XFER_TXN_ID((short)4, "xferTxnId"),
11674
      XFER_DATE((short)5, "xferDate");
11675
 
11676
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11677
 
11678
      static {
11679
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11680
          byName.put(field.getFieldName(), field);
11681
        }
11682
      }
11683
 
11684
      /**
11685
       * Find the _Fields constant that matches fieldId, or null if its not found.
11686
       */
11687
      public static _Fields findByThriftId(int fieldId) {
11688
        switch(fieldId) {
11689
          case 1: // MERCHANT_TXN_ID
11690
            return MERCHANT_TXN_ID;
11691
          case 2: // AMOUNT
11692
            return AMOUNT;
11693
          case 3: // XFER_BY
11694
            return XFER_BY;
11695
          case 4: // XFER_TXN_ID
11696
            return XFER_TXN_ID;
11697
          case 5: // XFER_DATE
11698
            return XFER_DATE;
11699
          default:
11700
            return null;
11701
        }
11702
      }
11703
 
11704
      /**
11705
       * Find the _Fields constant that matches fieldId, throwing an exception
11706
       * if it is not found.
11707
       */
11708
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11709
        _Fields fields = findByThriftId(fieldId);
11710
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11711
        return fields;
11712
      }
11713
 
11714
      /**
11715
       * Find the _Fields constant that matches name, or null if its not found.
11716
       */
11717
      public static _Fields findByName(String name) {
11718
        return byName.get(name);
11719
      }
11720
 
11721
      private final short _thriftId;
11722
      private final String _fieldName;
11723
 
11724
      _Fields(short thriftId, String fieldName) {
11725
        _thriftId = thriftId;
11726
        _fieldName = fieldName;
11727
      }
11728
 
11729
      public short getThriftFieldId() {
11730
        return _thriftId;
11731
      }
11732
 
11733
      public String getFieldName() {
11734
        return _fieldName;
11735
      }
11736
    }
11737
 
11738
    // isset id assignments
11739
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
11740
    private static final int __AMOUNT_ISSET_ID = 1;
11741
    private static final int __XFERDATE_ISSET_ID = 2;
11742
    private BitSet __isset_bit_vector = new BitSet(3);
11743
 
11744
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11745
    static {
11746
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11747
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11749
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11750
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
11751
      tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11752
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11753
      tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11754
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11755
      tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11756
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11757
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11758
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_args.class, metaDataMap);
11759
    }
11760
 
11761
    public partiallyCapturePayment_args() {
11762
    }
11763
 
11764
    public partiallyCapturePayment_args(
11765
      long merchantTxnId,
11766
      double amount,
11767
      String xferBy,
11768
      String xferTxnId,
11769
      long xferDate)
11770
    {
11771
      this();
11772
      this.merchantTxnId = merchantTxnId;
11773
      setMerchantTxnIdIsSet(true);
11774
      this.amount = amount;
11775
      setAmountIsSet(true);
11776
      this.xferBy = xferBy;
11777
      this.xferTxnId = xferTxnId;
11778
      this.xferDate = xferDate;
11779
      setXferDateIsSet(true);
11780
    }
11781
 
11782
    /**
11783
     * Performs a deep copy on <i>other</i>.
11784
     */
11785
    public partiallyCapturePayment_args(partiallyCapturePayment_args other) {
11786
      __isset_bit_vector.clear();
11787
      __isset_bit_vector.or(other.__isset_bit_vector);
11788
      this.merchantTxnId = other.merchantTxnId;
11789
      this.amount = other.amount;
11790
      if (other.isSetXferBy()) {
11791
        this.xferBy = other.xferBy;
11792
      }
11793
      if (other.isSetXferTxnId()) {
11794
        this.xferTxnId = other.xferTxnId;
11795
      }
11796
      this.xferDate = other.xferDate;
11797
    }
11798
 
11799
    public partiallyCapturePayment_args deepCopy() {
11800
      return new partiallyCapturePayment_args(this);
11801
    }
11802
 
11803
    @Override
11804
    public void clear() {
11805
      setMerchantTxnIdIsSet(false);
11806
      this.merchantTxnId = 0;
11807
      setAmountIsSet(false);
11808
      this.amount = 0.0;
11809
      this.xferBy = null;
11810
      this.xferTxnId = null;
11811
      setXferDateIsSet(false);
11812
      this.xferDate = 0;
11813
    }
11814
 
11815
    public long getMerchantTxnId() {
11816
      return this.merchantTxnId;
11817
    }
11818
 
11819
    public void setMerchantTxnId(long merchantTxnId) {
11820
      this.merchantTxnId = merchantTxnId;
11821
      setMerchantTxnIdIsSet(true);
11822
    }
11823
 
11824
    public void unsetMerchantTxnId() {
11825
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
11826
    }
11827
 
11828
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
11829
    public boolean isSetMerchantTxnId() {
11830
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
11831
    }
11832
 
11833
    public void setMerchantTxnIdIsSet(boolean value) {
11834
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
11835
    }
11836
 
11837
    public double getAmount() {
11838
      return this.amount;
11839
    }
11840
 
11841
    public void setAmount(double amount) {
11842
      this.amount = amount;
11843
      setAmountIsSet(true);
11844
    }
11845
 
11846
    public void unsetAmount() {
11847
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
11848
    }
11849
 
11850
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
11851
    public boolean isSetAmount() {
11852
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
11853
    }
11854
 
11855
    public void setAmountIsSet(boolean value) {
11856
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
11857
    }
11858
 
11859
    public String getXferBy() {
11860
      return this.xferBy;
11861
    }
11862
 
11863
    public void setXferBy(String xferBy) {
11864
      this.xferBy = xferBy;
11865
    }
11866
 
11867
    public void unsetXferBy() {
11868
      this.xferBy = null;
11869
    }
11870
 
11871
    /** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
11872
    public boolean isSetXferBy() {
11873
      return this.xferBy != null;
11874
    }
11875
 
11876
    public void setXferByIsSet(boolean value) {
11877
      if (!value) {
11878
        this.xferBy = null;
11879
      }
11880
    }
11881
 
11882
    public String getXferTxnId() {
11883
      return this.xferTxnId;
11884
    }
11885
 
11886
    public void setXferTxnId(String xferTxnId) {
11887
      this.xferTxnId = xferTxnId;
11888
    }
11889
 
11890
    public void unsetXferTxnId() {
11891
      this.xferTxnId = null;
11892
    }
11893
 
11894
    /** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
11895
    public boolean isSetXferTxnId() {
11896
      return this.xferTxnId != null;
11897
    }
11898
 
11899
    public void setXferTxnIdIsSet(boolean value) {
11900
      if (!value) {
11901
        this.xferTxnId = null;
11902
      }
11903
    }
11904
 
11905
    public long getXferDate() {
11906
      return this.xferDate;
11907
    }
11908
 
11909
    public void setXferDate(long xferDate) {
11910
      this.xferDate = xferDate;
11911
      setXferDateIsSet(true);
11912
    }
11913
 
11914
    public void unsetXferDate() {
11915
      __isset_bit_vector.clear(__XFERDATE_ISSET_ID);
11916
    }
11917
 
11918
    /** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
11919
    public boolean isSetXferDate() {
11920
      return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
11921
    }
11922
 
11923
    public void setXferDateIsSet(boolean value) {
11924
      __isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
11925
    }
11926
 
11927
    public void setFieldValue(_Fields field, Object value) {
11928
      switch (field) {
11929
      case MERCHANT_TXN_ID:
11930
        if (value == null) {
11931
          unsetMerchantTxnId();
11932
        } else {
11933
          setMerchantTxnId((Long)value);
11934
        }
11935
        break;
11936
 
11937
      case AMOUNT:
11938
        if (value == null) {
11939
          unsetAmount();
11940
        } else {
11941
          setAmount((Double)value);
11942
        }
11943
        break;
11944
 
11945
      case XFER_BY:
11946
        if (value == null) {
11947
          unsetXferBy();
11948
        } else {
11949
          setXferBy((String)value);
11950
        }
11951
        break;
11952
 
11953
      case XFER_TXN_ID:
11954
        if (value == null) {
11955
          unsetXferTxnId();
11956
        } else {
11957
          setXferTxnId((String)value);
11958
        }
11959
        break;
11960
 
11961
      case XFER_DATE:
11962
        if (value == null) {
11963
          unsetXferDate();
11964
        } else {
11965
          setXferDate((Long)value);
11966
        }
11967
        break;
11968
 
11969
      }
11970
    }
11971
 
11972
    public Object getFieldValue(_Fields field) {
11973
      switch (field) {
11974
      case MERCHANT_TXN_ID:
11975
        return Long.valueOf(getMerchantTxnId());
11976
 
11977
      case AMOUNT:
11978
        return Double.valueOf(getAmount());
11979
 
11980
      case XFER_BY:
11981
        return getXferBy();
11982
 
11983
      case XFER_TXN_ID:
11984
        return getXferTxnId();
11985
 
11986
      case XFER_DATE:
11987
        return Long.valueOf(getXferDate());
11988
 
11989
      }
11990
      throw new IllegalStateException();
11991
    }
11992
 
11993
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11994
    public boolean isSet(_Fields field) {
11995
      if (field == null) {
11996
        throw new IllegalArgumentException();
11997
      }
11998
 
11999
      switch (field) {
12000
      case MERCHANT_TXN_ID:
12001
        return isSetMerchantTxnId();
12002
      case AMOUNT:
12003
        return isSetAmount();
12004
      case XFER_BY:
12005
        return isSetXferBy();
12006
      case XFER_TXN_ID:
12007
        return isSetXferTxnId();
12008
      case XFER_DATE:
12009
        return isSetXferDate();
12010
      }
12011
      throw new IllegalStateException();
12012
    }
12013
 
12014
    @Override
12015
    public boolean equals(Object that) {
12016
      if (that == null)
12017
        return false;
12018
      if (that instanceof partiallyCapturePayment_args)
12019
        return this.equals((partiallyCapturePayment_args)that);
12020
      return false;
12021
    }
12022
 
12023
    public boolean equals(partiallyCapturePayment_args that) {
12024
      if (that == null)
12025
        return false;
12026
 
12027
      boolean this_present_merchantTxnId = true;
12028
      boolean that_present_merchantTxnId = true;
12029
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
12030
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
12031
          return false;
12032
        if (this.merchantTxnId != that.merchantTxnId)
12033
          return false;
12034
      }
12035
 
12036
      boolean this_present_amount = true;
12037
      boolean that_present_amount = true;
12038
      if (this_present_amount || that_present_amount) {
12039
        if (!(this_present_amount && that_present_amount))
12040
          return false;
12041
        if (this.amount != that.amount)
12042
          return false;
12043
      }
12044
 
12045
      boolean this_present_xferBy = true && this.isSetXferBy();
12046
      boolean that_present_xferBy = true && that.isSetXferBy();
12047
      if (this_present_xferBy || that_present_xferBy) {
12048
        if (!(this_present_xferBy && that_present_xferBy))
12049
          return false;
12050
        if (!this.xferBy.equals(that.xferBy))
12051
          return false;
12052
      }
12053
 
12054
      boolean this_present_xferTxnId = true && this.isSetXferTxnId();
12055
      boolean that_present_xferTxnId = true && that.isSetXferTxnId();
12056
      if (this_present_xferTxnId || that_present_xferTxnId) {
12057
        if (!(this_present_xferTxnId && that_present_xferTxnId))
12058
          return false;
12059
        if (!this.xferTxnId.equals(that.xferTxnId))
12060
          return false;
12061
      }
12062
 
12063
      boolean this_present_xferDate = true;
12064
      boolean that_present_xferDate = true;
12065
      if (this_present_xferDate || that_present_xferDate) {
12066
        if (!(this_present_xferDate && that_present_xferDate))
12067
          return false;
12068
        if (this.xferDate != that.xferDate)
12069
          return false;
12070
      }
12071
 
12072
      return true;
12073
    }
12074
 
12075
    @Override
12076
    public int hashCode() {
12077
      return 0;
12078
    }
12079
 
12080
    public int compareTo(partiallyCapturePayment_args other) {
12081
      if (!getClass().equals(other.getClass())) {
12082
        return getClass().getName().compareTo(other.getClass().getName());
12083
      }
12084
 
12085
      int lastComparison = 0;
12086
      partiallyCapturePayment_args typedOther = (partiallyCapturePayment_args)other;
12087
 
12088
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
12089
      if (lastComparison != 0) {
12090
        return lastComparison;
12091
      }
12092
      if (isSetMerchantTxnId()) {
12093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
12094
        if (lastComparison != 0) {
12095
          return lastComparison;
12096
        }
12097
      }
12098
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
12099
      if (lastComparison != 0) {
12100
        return lastComparison;
12101
      }
12102
      if (isSetAmount()) {
12103
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
12104
        if (lastComparison != 0) {
12105
          return lastComparison;
12106
        }
12107
      }
12108
      lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
12109
      if (lastComparison != 0) {
12110
        return lastComparison;
12111
      }
12112
      if (isSetXferBy()) {
12113
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
12114
        if (lastComparison != 0) {
12115
          return lastComparison;
12116
        }
12117
      }
12118
      lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
12119
      if (lastComparison != 0) {
12120
        return lastComparison;
12121
      }
12122
      if (isSetXferTxnId()) {
12123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
12124
        if (lastComparison != 0) {
12125
          return lastComparison;
12126
        }
12127
      }
12128
      lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
12129
      if (lastComparison != 0) {
12130
        return lastComparison;
12131
      }
12132
      if (isSetXferDate()) {
12133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
12134
        if (lastComparison != 0) {
12135
          return lastComparison;
12136
        }
12137
      }
12138
      return 0;
12139
    }
12140
 
12141
    public _Fields fieldForId(int fieldId) {
12142
      return _Fields.findByThriftId(fieldId);
12143
    }
12144
 
12145
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12146
      org.apache.thrift.protocol.TField field;
12147
      iprot.readStructBegin();
12148
      while (true)
12149
      {
12150
        field = iprot.readFieldBegin();
12151
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12152
          break;
12153
        }
12154
        switch (field.id) {
12155
          case 1: // MERCHANT_TXN_ID
12156
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12157
              this.merchantTxnId = iprot.readI64();
12158
              setMerchantTxnIdIsSet(true);
12159
            } else { 
12160
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12161
            }
12162
            break;
12163
          case 2: // AMOUNT
12164
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
12165
              this.amount = iprot.readDouble();
12166
              setAmountIsSet(true);
12167
            } else { 
12168
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12169
            }
12170
            break;
12171
          case 3: // XFER_BY
12172
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12173
              this.xferBy = iprot.readString();
12174
            } else { 
12175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12176
            }
12177
            break;
12178
          case 4: // XFER_TXN_ID
12179
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12180
              this.xferTxnId = iprot.readString();
12181
            } else { 
12182
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12183
            }
12184
            break;
12185
          case 5: // XFER_DATE
12186
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12187
              this.xferDate = iprot.readI64();
12188
              setXferDateIsSet(true);
12189
            } else { 
12190
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12191
            }
12192
            break;
12193
          default:
12194
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12195
        }
12196
        iprot.readFieldEnd();
12197
      }
12198
      iprot.readStructEnd();
12199
      validate();
12200
    }
12201
 
12202
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12203
      validate();
12204
 
12205
      oprot.writeStructBegin(STRUCT_DESC);
12206
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
12207
      oprot.writeI64(this.merchantTxnId);
12208
      oprot.writeFieldEnd();
12209
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
12210
      oprot.writeDouble(this.amount);
12211
      oprot.writeFieldEnd();
12212
      if (this.xferBy != null) {
12213
        oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
12214
        oprot.writeString(this.xferBy);
12215
        oprot.writeFieldEnd();
12216
      }
12217
      if (this.xferTxnId != null) {
12218
        oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
12219
        oprot.writeString(this.xferTxnId);
12220
        oprot.writeFieldEnd();
12221
      }
12222
      oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
12223
      oprot.writeI64(this.xferDate);
12224
      oprot.writeFieldEnd();
12225
      oprot.writeFieldStop();
12226
      oprot.writeStructEnd();
12227
    }
12228
 
12229
    @Override
12230
    public String toString() {
12231
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_args(");
12232
      boolean first = true;
12233
 
12234
      sb.append("merchantTxnId:");
12235
      sb.append(this.merchantTxnId);
12236
      first = false;
12237
      if (!first) sb.append(", ");
12238
      sb.append("amount:");
12239
      sb.append(this.amount);
12240
      first = false;
12241
      if (!first) sb.append(", ");
12242
      sb.append("xferBy:");
12243
      if (this.xferBy == null) {
12244
        sb.append("null");
12245
      } else {
12246
        sb.append(this.xferBy);
12247
      }
12248
      first = false;
12249
      if (!first) sb.append(", ");
12250
      sb.append("xferTxnId:");
12251
      if (this.xferTxnId == null) {
12252
        sb.append("null");
12253
      } else {
12254
        sb.append(this.xferTxnId);
12255
      }
12256
      first = false;
12257
      if (!first) sb.append(", ");
12258
      sb.append("xferDate:");
12259
      sb.append(this.xferDate);
12260
      first = false;
12261
      sb.append(")");
12262
      return sb.toString();
12263
    }
12264
 
12265
    public void validate() throws org.apache.thrift.TException {
12266
      // check for required fields
12267
    }
12268
 
12269
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12270
      try {
12271
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12272
      } catch (org.apache.thrift.TException te) {
12273
        throw new java.io.IOException(te);
12274
      }
12275
    }
12276
 
12277
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12278
      try {
12279
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12280
      } catch (org.apache.thrift.TException te) {
12281
        throw new java.io.IOException(te);
12282
      }
12283
    }
12284
 
12285
  }
12286
 
12287
  public static class partiallyCapturePayment_result implements org.apache.thrift.TBase<partiallyCapturePayment_result, partiallyCapturePayment_result._Fields>, java.io.Serializable, Cloneable   {
12288
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_result");
12289
 
12290
    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);
12291
    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);
12292
 
12293
    private boolean success; // required
12294
    private PaymentException pe; // required
12295
 
12296
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12297
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12298
      SUCCESS((short)0, "success"),
12299
      PE((short)1, "pe");
12300
 
12301
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12302
 
12303
      static {
12304
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12305
          byName.put(field.getFieldName(), field);
12306
        }
12307
      }
12308
 
12309
      /**
12310
       * Find the _Fields constant that matches fieldId, or null if its not found.
12311
       */
12312
      public static _Fields findByThriftId(int fieldId) {
12313
        switch(fieldId) {
12314
          case 0: // SUCCESS
12315
            return SUCCESS;
12316
          case 1: // PE
12317
            return PE;
12318
          default:
12319
            return null;
12320
        }
12321
      }
12322
 
12323
      /**
12324
       * Find the _Fields constant that matches fieldId, throwing an exception
12325
       * if it is not found.
12326
       */
12327
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12328
        _Fields fields = findByThriftId(fieldId);
12329
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12330
        return fields;
12331
      }
12332
 
12333
      /**
12334
       * Find the _Fields constant that matches name, or null if its not found.
12335
       */
12336
      public static _Fields findByName(String name) {
12337
        return byName.get(name);
12338
      }
12339
 
12340
      private final short _thriftId;
12341
      private final String _fieldName;
12342
 
12343
      _Fields(short thriftId, String fieldName) {
12344
        _thriftId = thriftId;
12345
        _fieldName = fieldName;
12346
      }
12347
 
12348
      public short getThriftFieldId() {
12349
        return _thriftId;
12350
      }
12351
 
12352
      public String getFieldName() {
12353
        return _fieldName;
12354
      }
12355
    }
12356
 
12357
    // isset id assignments
12358
    private static final int __SUCCESS_ISSET_ID = 0;
12359
    private BitSet __isset_bit_vector = new BitSet(1);
12360
 
12361
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12362
    static {
12363
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12364
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12366
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12367
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12368
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12369
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_result.class, metaDataMap);
12370
    }
12371
 
12372
    public partiallyCapturePayment_result() {
12373
    }
12374
 
12375
    public partiallyCapturePayment_result(
12376
      boolean success,
12377
      PaymentException pe)
12378
    {
12379
      this();
12380
      this.success = success;
12381
      setSuccessIsSet(true);
12382
      this.pe = pe;
12383
    }
12384
 
12385
    /**
12386
     * Performs a deep copy on <i>other</i>.
12387
     */
12388
    public partiallyCapturePayment_result(partiallyCapturePayment_result other) {
12389
      __isset_bit_vector.clear();
12390
      __isset_bit_vector.or(other.__isset_bit_vector);
12391
      this.success = other.success;
12392
      if (other.isSetPe()) {
12393
        this.pe = new PaymentException(other.pe);
12394
      }
12395
    }
12396
 
12397
    public partiallyCapturePayment_result deepCopy() {
12398
      return new partiallyCapturePayment_result(this);
12399
    }
12400
 
12401
    @Override
12402
    public void clear() {
12403
      setSuccessIsSet(false);
12404
      this.success = false;
12405
      this.pe = null;
12406
    }
12407
 
12408
    public boolean isSuccess() {
12409
      return this.success;
12410
    }
12411
 
12412
    public void setSuccess(boolean success) {
12413
      this.success = success;
12414
      setSuccessIsSet(true);
12415
    }
12416
 
12417
    public void unsetSuccess() {
12418
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12419
    }
12420
 
12421
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12422
    public boolean isSetSuccess() {
12423
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12424
    }
12425
 
12426
    public void setSuccessIsSet(boolean value) {
12427
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12428
    }
12429
 
12430
    public PaymentException getPe() {
12431
      return this.pe;
12432
    }
12433
 
12434
    public void setPe(PaymentException pe) {
12435
      this.pe = pe;
12436
    }
12437
 
12438
    public void unsetPe() {
12439
      this.pe = null;
12440
    }
12441
 
12442
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
12443
    public boolean isSetPe() {
12444
      return this.pe != null;
12445
    }
12446
 
12447
    public void setPeIsSet(boolean value) {
12448
      if (!value) {
12449
        this.pe = null;
12450
      }
12451
    }
12452
 
12453
    public void setFieldValue(_Fields field, Object value) {
12454
      switch (field) {
12455
      case SUCCESS:
12456
        if (value == null) {
12457
          unsetSuccess();
12458
        } else {
12459
          setSuccess((Boolean)value);
12460
        }
12461
        break;
12462
 
12463
      case PE:
12464
        if (value == null) {
12465
          unsetPe();
12466
        } else {
12467
          setPe((PaymentException)value);
12468
        }
12469
        break;
12470
 
12471
      }
12472
    }
12473
 
12474
    public Object getFieldValue(_Fields field) {
12475
      switch (field) {
12476
      case SUCCESS:
12477
        return Boolean.valueOf(isSuccess());
12478
 
12479
      case PE:
12480
        return getPe();
12481
 
12482
      }
12483
      throw new IllegalStateException();
12484
    }
12485
 
12486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12487
    public boolean isSet(_Fields field) {
12488
      if (field == null) {
12489
        throw new IllegalArgumentException();
12490
      }
12491
 
12492
      switch (field) {
12493
      case SUCCESS:
12494
        return isSetSuccess();
12495
      case PE:
12496
        return isSetPe();
12497
      }
12498
      throw new IllegalStateException();
12499
    }
12500
 
12501
    @Override
12502
    public boolean equals(Object that) {
12503
      if (that == null)
12504
        return false;
12505
      if (that instanceof partiallyCapturePayment_result)
12506
        return this.equals((partiallyCapturePayment_result)that);
12507
      return false;
12508
    }
12509
 
12510
    public boolean equals(partiallyCapturePayment_result that) {
12511
      if (that == null)
12512
        return false;
12513
 
12514
      boolean this_present_success = true;
12515
      boolean that_present_success = true;
12516
      if (this_present_success || that_present_success) {
12517
        if (!(this_present_success && that_present_success))
12518
          return false;
12519
        if (this.success != that.success)
12520
          return false;
12521
      }
12522
 
12523
      boolean this_present_pe = true && this.isSetPe();
12524
      boolean that_present_pe = true && that.isSetPe();
12525
      if (this_present_pe || that_present_pe) {
12526
        if (!(this_present_pe && that_present_pe))
12527
          return false;
12528
        if (!this.pe.equals(that.pe))
12529
          return false;
12530
      }
12531
 
12532
      return true;
12533
    }
12534
 
12535
    @Override
12536
    public int hashCode() {
12537
      return 0;
12538
    }
12539
 
12540
    public int compareTo(partiallyCapturePayment_result other) {
12541
      if (!getClass().equals(other.getClass())) {
12542
        return getClass().getName().compareTo(other.getClass().getName());
12543
      }
12544
 
12545
      int lastComparison = 0;
12546
      partiallyCapturePayment_result typedOther = (partiallyCapturePayment_result)other;
12547
 
12548
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12549
      if (lastComparison != 0) {
12550
        return lastComparison;
12551
      }
12552
      if (isSetSuccess()) {
12553
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12554
        if (lastComparison != 0) {
12555
          return lastComparison;
12556
        }
12557
      }
12558
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
12559
      if (lastComparison != 0) {
12560
        return lastComparison;
12561
      }
12562
      if (isSetPe()) {
12563
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
12564
        if (lastComparison != 0) {
12565
          return lastComparison;
12566
        }
12567
      }
12568
      return 0;
12569
    }
12570
 
12571
    public _Fields fieldForId(int fieldId) {
12572
      return _Fields.findByThriftId(fieldId);
12573
    }
12574
 
12575
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12576
      org.apache.thrift.protocol.TField field;
12577
      iprot.readStructBegin();
12578
      while (true)
12579
      {
12580
        field = iprot.readFieldBegin();
12581
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12582
          break;
12583
        }
12584
        switch (field.id) {
12585
          case 0: // SUCCESS
12586
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12587
              this.success = iprot.readBool();
12588
              setSuccessIsSet(true);
12589
            } else { 
12590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12591
            }
12592
            break;
12593
          case 1: // PE
12594
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12595
              this.pe = new PaymentException();
12596
              this.pe.read(iprot);
12597
            } else { 
12598
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12599
            }
12600
            break;
12601
          default:
12602
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12603
        }
12604
        iprot.readFieldEnd();
12605
      }
12606
      iprot.readStructEnd();
12607
      validate();
12608
    }
12609
 
12610
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12611
      oprot.writeStructBegin(STRUCT_DESC);
12612
 
12613
      if (this.isSetSuccess()) {
12614
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12615
        oprot.writeBool(this.success);
12616
        oprot.writeFieldEnd();
12617
      } else if (this.isSetPe()) {
12618
        oprot.writeFieldBegin(PE_FIELD_DESC);
12619
        this.pe.write(oprot);
12620
        oprot.writeFieldEnd();
12621
      }
12622
      oprot.writeFieldStop();
12623
      oprot.writeStructEnd();
12624
    }
12625
 
12626
    @Override
12627
    public String toString() {
12628
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_result(");
12629
      boolean first = true;
12630
 
12631
      sb.append("success:");
12632
      sb.append(this.success);
12633
      first = false;
12634
      if (!first) sb.append(", ");
12635
      sb.append("pe:");
12636
      if (this.pe == null) {
12637
        sb.append("null");
12638
      } else {
12639
        sb.append(this.pe);
12640
      }
12641
      first = false;
12642
      sb.append(")");
12643
      return sb.toString();
12644
    }
12645
 
12646
    public void validate() throws org.apache.thrift.TException {
12647
      // check for required fields
12648
    }
12649
 
12650
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12651
      try {
12652
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12653
      } catch (org.apache.thrift.TException te) {
12654
        throw new java.io.IOException(te);
12655
      }
12656
    }
12657
 
12658
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12659
      try {
12660
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12661
      } catch (org.apache.thrift.TException te) {
12662
        throw new java.io.IOException(te);
12663
      }
12664
    }
12665
 
12666
  }
12667
 
4008 mandeep.dh 12668
  public static class getPaymentsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_args, getPaymentsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable   {
12669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_args");
12670
 
12671
    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);
12672
 
12673
    private ExtraPaymentProcessingType category; // required
12674
 
12675
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12676
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12677
      /**
12678
       * 
12679
       * @see ExtraPaymentProcessingType
12680
       */
12681
      CATEGORY((short)1, "category");
12682
 
12683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12684
 
12685
      static {
12686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12687
          byName.put(field.getFieldName(), field);
12688
        }
12689
      }
12690
 
12691
      /**
12692
       * Find the _Fields constant that matches fieldId, or null if its not found.
12693
       */
12694
      public static _Fields findByThriftId(int fieldId) {
12695
        switch(fieldId) {
12696
          case 1: // CATEGORY
12697
            return CATEGORY;
12698
          default:
12699
            return null;
12700
        }
12701
      }
12702
 
12703
      /**
12704
       * Find the _Fields constant that matches fieldId, throwing an exception
12705
       * if it is not found.
12706
       */
12707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12708
        _Fields fields = findByThriftId(fieldId);
12709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12710
        return fields;
12711
      }
12712
 
12713
      /**
12714
       * Find the _Fields constant that matches name, or null if its not found.
12715
       */
12716
      public static _Fields findByName(String name) {
12717
        return byName.get(name);
12718
      }
12719
 
12720
      private final short _thriftId;
12721
      private final String _fieldName;
12722
 
12723
      _Fields(short thriftId, String fieldName) {
12724
        _thriftId = thriftId;
12725
        _fieldName = fieldName;
12726
      }
12727
 
12728
      public short getThriftFieldId() {
12729
        return _thriftId;
12730
      }
12731
 
12732
      public String getFieldName() {
12733
        return _fieldName;
12734
      }
12735
    }
12736
 
12737
    // isset id assignments
12738
 
12739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12740
    static {
12741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12742
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12743
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
12744
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12745
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_args.class, metaDataMap);
12746
    }
12747
 
12748
    public getPaymentsRequiringExtraProcessing_args() {
12749
    }
12750
 
12751
    public getPaymentsRequiringExtraProcessing_args(
12752
      ExtraPaymentProcessingType category)
12753
    {
12754
      this();
12755
      this.category = category;
12756
    }
12757
 
12758
    /**
12759
     * Performs a deep copy on <i>other</i>.
12760
     */
12761
    public getPaymentsRequiringExtraProcessing_args(getPaymentsRequiringExtraProcessing_args other) {
12762
      if (other.isSetCategory()) {
12763
        this.category = other.category;
12764
      }
12765
    }
12766
 
12767
    public getPaymentsRequiringExtraProcessing_args deepCopy() {
12768
      return new getPaymentsRequiringExtraProcessing_args(this);
12769
    }
12770
 
12771
    @Override
12772
    public void clear() {
12773
      this.category = null;
12774
    }
12775
 
12776
    /**
12777
     * 
12778
     * @see ExtraPaymentProcessingType
12779
     */
12780
    public ExtraPaymentProcessingType getCategory() {
12781
      return this.category;
12782
    }
12783
 
12784
    /**
12785
     * 
12786
     * @see ExtraPaymentProcessingType
12787
     */
12788
    public void setCategory(ExtraPaymentProcessingType category) {
12789
      this.category = category;
12790
    }
12791
 
12792
    public void unsetCategory() {
12793
      this.category = null;
12794
    }
12795
 
12796
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
12797
    public boolean isSetCategory() {
12798
      return this.category != null;
12799
    }
12800
 
12801
    public void setCategoryIsSet(boolean value) {
12802
      if (!value) {
12803
        this.category = null;
12804
      }
12805
    }
12806
 
12807
    public void setFieldValue(_Fields field, Object value) {
12808
      switch (field) {
12809
      case CATEGORY:
12810
        if (value == null) {
12811
          unsetCategory();
12812
        } else {
12813
          setCategory((ExtraPaymentProcessingType)value);
12814
        }
12815
        break;
12816
 
12817
      }
12818
    }
12819
 
12820
    public Object getFieldValue(_Fields field) {
12821
      switch (field) {
12822
      case CATEGORY:
12823
        return getCategory();
12824
 
12825
      }
12826
      throw new IllegalStateException();
12827
    }
12828
 
12829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12830
    public boolean isSet(_Fields field) {
12831
      if (field == null) {
12832
        throw new IllegalArgumentException();
12833
      }
12834
 
12835
      switch (field) {
12836
      case CATEGORY:
12837
        return isSetCategory();
12838
      }
12839
      throw new IllegalStateException();
12840
    }
12841
 
12842
    @Override
12843
    public boolean equals(Object that) {
12844
      if (that == null)
12845
        return false;
12846
      if (that instanceof getPaymentsRequiringExtraProcessing_args)
12847
        return this.equals((getPaymentsRequiringExtraProcessing_args)that);
12848
      return false;
12849
    }
12850
 
12851
    public boolean equals(getPaymentsRequiringExtraProcessing_args that) {
12852
      if (that == null)
12853
        return false;
12854
 
12855
      boolean this_present_category = true && this.isSetCategory();
12856
      boolean that_present_category = true && that.isSetCategory();
12857
      if (this_present_category || that_present_category) {
12858
        if (!(this_present_category && that_present_category))
12859
          return false;
12860
        if (!this.category.equals(that.category))
12861
          return false;
12862
      }
12863
 
12864
      return true;
12865
    }
12866
 
12867
    @Override
12868
    public int hashCode() {
12869
      return 0;
12870
    }
12871
 
12872
    public int compareTo(getPaymentsRequiringExtraProcessing_args other) {
12873
      if (!getClass().equals(other.getClass())) {
12874
        return getClass().getName().compareTo(other.getClass().getName());
12875
      }
12876
 
12877
      int lastComparison = 0;
12878
      getPaymentsRequiringExtraProcessing_args typedOther = (getPaymentsRequiringExtraProcessing_args)other;
12879
 
12880
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
12881
      if (lastComparison != 0) {
12882
        return lastComparison;
12883
      }
12884
      if (isSetCategory()) {
12885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
12886
        if (lastComparison != 0) {
12887
          return lastComparison;
12888
        }
12889
      }
12890
      return 0;
12891
    }
12892
 
12893
    public _Fields fieldForId(int fieldId) {
12894
      return _Fields.findByThriftId(fieldId);
12895
    }
12896
 
12897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12898
      org.apache.thrift.protocol.TField field;
12899
      iprot.readStructBegin();
12900
      while (true)
12901
      {
12902
        field = iprot.readFieldBegin();
12903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12904
          break;
12905
        }
12906
        switch (field.id) {
12907
          case 1: // CATEGORY
12908
            if (field.type == org.apache.thrift.protocol.TType.I32) {
12909
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
12910
            } else { 
12911
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12912
            }
12913
            break;
12914
          default:
12915
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12916
        }
12917
        iprot.readFieldEnd();
12918
      }
12919
      iprot.readStructEnd();
12920
      validate();
12921
    }
12922
 
12923
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12924
      validate();
12925
 
12926
      oprot.writeStructBegin(STRUCT_DESC);
12927
      if (this.category != null) {
12928
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
12929
        oprot.writeI32(this.category.getValue());
12930
        oprot.writeFieldEnd();
12931
      }
12932
      oprot.writeFieldStop();
12933
      oprot.writeStructEnd();
12934
    }
12935
 
12936
    @Override
12937
    public String toString() {
12938
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_args(");
12939
      boolean first = true;
12940
 
12941
      sb.append("category:");
12942
      if (this.category == null) {
12943
        sb.append("null");
12944
      } else {
12945
        sb.append(this.category);
12946
      }
12947
      first = false;
12948
      sb.append(")");
12949
      return sb.toString();
12950
    }
12951
 
12952
    public void validate() throws org.apache.thrift.TException {
12953
      // check for required fields
12954
    }
12955
 
12956
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12957
      try {
12958
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12959
      } catch (org.apache.thrift.TException te) {
12960
        throw new java.io.IOException(te);
12961
      }
12962
    }
12963
 
12964
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12965
      try {
12966
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12967
      } catch (org.apache.thrift.TException te) {
12968
        throw new java.io.IOException(te);
12969
      }
12970
    }
12971
 
12972
  }
12973
 
12974
  public static class getPaymentsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_result, getPaymentsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable   {
12975
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_result");
12976
 
12977
    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);
12978
 
12979
    private List<Long> success; // required
12980
 
12981
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12982
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12983
      SUCCESS((short)0, "success");
12984
 
12985
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12986
 
12987
      static {
12988
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12989
          byName.put(field.getFieldName(), field);
12990
        }
12991
      }
12992
 
12993
      /**
12994
       * Find the _Fields constant that matches fieldId, or null if its not found.
12995
       */
12996
      public static _Fields findByThriftId(int fieldId) {
12997
        switch(fieldId) {
12998
          case 0: // SUCCESS
12999
            return SUCCESS;
13000
          default:
13001
            return null;
13002
        }
13003
      }
13004
 
13005
      /**
13006
       * Find the _Fields constant that matches fieldId, throwing an exception
13007
       * if it is not found.
13008
       */
13009
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13010
        _Fields fields = findByThriftId(fieldId);
13011
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13012
        return fields;
13013
      }
13014
 
13015
      /**
13016
       * Find the _Fields constant that matches name, or null if its not found.
13017
       */
13018
      public static _Fields findByName(String name) {
13019
        return byName.get(name);
13020
      }
13021
 
13022
      private final short _thriftId;
13023
      private final String _fieldName;
13024
 
13025
      _Fields(short thriftId, String fieldName) {
13026
        _thriftId = thriftId;
13027
        _fieldName = fieldName;
13028
      }
13029
 
13030
      public short getThriftFieldId() {
13031
        return _thriftId;
13032
      }
13033
 
13034
      public String getFieldName() {
13035
        return _fieldName;
13036
      }
13037
    }
13038
 
13039
    // isset id assignments
13040
 
13041
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13042
    static {
13043
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13044
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13045
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13046
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
13047
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13048
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_result.class, metaDataMap);
13049
    }
13050
 
13051
    public getPaymentsRequiringExtraProcessing_result() {
13052
    }
13053
 
13054
    public getPaymentsRequiringExtraProcessing_result(
13055
      List<Long> success)
13056
    {
13057
      this();
13058
      this.success = success;
13059
    }
13060
 
13061
    /**
13062
     * Performs a deep copy on <i>other</i>.
13063
     */
13064
    public getPaymentsRequiringExtraProcessing_result(getPaymentsRequiringExtraProcessing_result other) {
13065
      if (other.isSetSuccess()) {
13066
        List<Long> __this__success = new ArrayList<Long>();
13067
        for (Long other_element : other.success) {
13068
          __this__success.add(other_element);
13069
        }
13070
        this.success = __this__success;
13071
      }
13072
    }
13073
 
13074
    public getPaymentsRequiringExtraProcessing_result deepCopy() {
13075
      return new getPaymentsRequiringExtraProcessing_result(this);
13076
    }
13077
 
13078
    @Override
13079
    public void clear() {
13080
      this.success = null;
13081
    }
13082
 
13083
    public int getSuccessSize() {
13084
      return (this.success == null) ? 0 : this.success.size();
13085
    }
13086
 
13087
    public java.util.Iterator<Long> getSuccessIterator() {
13088
      return (this.success == null) ? null : this.success.iterator();
13089
    }
13090
 
13091
    public void addToSuccess(long elem) {
13092
      if (this.success == null) {
13093
        this.success = new ArrayList<Long>();
13094
      }
13095
      this.success.add(elem);
13096
    }
13097
 
13098
    public List<Long> getSuccess() {
13099
      return this.success;
13100
    }
13101
 
13102
    public void setSuccess(List<Long> success) {
13103
      this.success = success;
13104
    }
13105
 
13106
    public void unsetSuccess() {
13107
      this.success = null;
13108
    }
13109
 
13110
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13111
    public boolean isSetSuccess() {
13112
      return this.success != null;
13113
    }
13114
 
13115
    public void setSuccessIsSet(boolean value) {
13116
      if (!value) {
13117
        this.success = null;
13118
      }
13119
    }
13120
 
13121
    public void setFieldValue(_Fields field, Object value) {
13122
      switch (field) {
13123
      case SUCCESS:
13124
        if (value == null) {
13125
          unsetSuccess();
13126
        } else {
13127
          setSuccess((List<Long>)value);
13128
        }
13129
        break;
13130
 
13131
      }
13132
    }
13133
 
13134
    public Object getFieldValue(_Fields field) {
13135
      switch (field) {
13136
      case SUCCESS:
13137
        return getSuccess();
13138
 
13139
      }
13140
      throw new IllegalStateException();
13141
    }
13142
 
13143
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13144
    public boolean isSet(_Fields field) {
13145
      if (field == null) {
13146
        throw new IllegalArgumentException();
13147
      }
13148
 
13149
      switch (field) {
13150
      case SUCCESS:
13151
        return isSetSuccess();
13152
      }
13153
      throw new IllegalStateException();
13154
    }
13155
 
13156
    @Override
13157
    public boolean equals(Object that) {
13158
      if (that == null)
13159
        return false;
13160
      if (that instanceof getPaymentsRequiringExtraProcessing_result)
13161
        return this.equals((getPaymentsRequiringExtraProcessing_result)that);
13162
      return false;
13163
    }
13164
 
13165
    public boolean equals(getPaymentsRequiringExtraProcessing_result that) {
13166
      if (that == null)
13167
        return false;
13168
 
13169
      boolean this_present_success = true && this.isSetSuccess();
13170
      boolean that_present_success = true && that.isSetSuccess();
13171
      if (this_present_success || that_present_success) {
13172
        if (!(this_present_success && that_present_success))
13173
          return false;
13174
        if (!this.success.equals(that.success))
13175
          return false;
13176
      }
13177
 
13178
      return true;
13179
    }
13180
 
13181
    @Override
13182
    public int hashCode() {
13183
      return 0;
13184
    }
13185
 
13186
    public int compareTo(getPaymentsRequiringExtraProcessing_result other) {
13187
      if (!getClass().equals(other.getClass())) {
13188
        return getClass().getName().compareTo(other.getClass().getName());
13189
      }
13190
 
13191
      int lastComparison = 0;
13192
      getPaymentsRequiringExtraProcessing_result typedOther = (getPaymentsRequiringExtraProcessing_result)other;
13193
 
13194
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13195
      if (lastComparison != 0) {
13196
        return lastComparison;
13197
      }
13198
      if (isSetSuccess()) {
13199
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13200
        if (lastComparison != 0) {
13201
          return lastComparison;
13202
        }
13203
      }
13204
      return 0;
13205
    }
13206
 
13207
    public _Fields fieldForId(int fieldId) {
13208
      return _Fields.findByThriftId(fieldId);
13209
    }
13210
 
13211
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13212
      org.apache.thrift.protocol.TField field;
13213
      iprot.readStructBegin();
13214
      while (true)
13215
      {
13216
        field = iprot.readFieldBegin();
13217
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13218
          break;
13219
        }
13220
        switch (field.id) {
13221
          case 0: // SUCCESS
13222
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13223
              {
13224
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
13225
                this.success = new ArrayList<Long>(_list32.size);
13226
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
13227
                {
13228
                  long _elem34; // required
13229
                  _elem34 = iprot.readI64();
13230
                  this.success.add(_elem34);
13231
                }
13232
                iprot.readListEnd();
13233
              }
13234
            } else { 
13235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13236
            }
13237
            break;
13238
          default:
13239
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13240
        }
13241
        iprot.readFieldEnd();
13242
      }
13243
      iprot.readStructEnd();
13244
      validate();
13245
    }
13246
 
13247
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13248
      oprot.writeStructBegin(STRUCT_DESC);
13249
 
13250
      if (this.isSetSuccess()) {
13251
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13252
        {
13253
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
13254
          for (long _iter35 : this.success)
13255
          {
13256
            oprot.writeI64(_iter35);
13257
          }
13258
          oprot.writeListEnd();
13259
        }
13260
        oprot.writeFieldEnd();
13261
      }
13262
      oprot.writeFieldStop();
13263
      oprot.writeStructEnd();
13264
    }
13265
 
13266
    @Override
13267
    public String toString() {
13268
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_result(");
13269
      boolean first = true;
13270
 
13271
      sb.append("success:");
13272
      if (this.success == null) {
13273
        sb.append("null");
13274
      } else {
13275
        sb.append(this.success);
13276
      }
13277
      first = false;
13278
      sb.append(")");
13279
      return sb.toString();
13280
    }
13281
 
13282
    public void validate() throws org.apache.thrift.TException {
13283
      // check for required fields
13284
    }
13285
 
13286
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13287
      try {
13288
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13289
      } catch (org.apache.thrift.TException te) {
13290
        throw new java.io.IOException(te);
13291
      }
13292
    }
13293
 
13294
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13295
      try {
13296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13297
      } catch (org.apache.thrift.TException te) {
13298
        throw new java.io.IOException(te);
13299
      }
13300
    }
13301
 
13302
  }
13303
 
13304
  public static class markPaymentAsProcessed_args implements org.apache.thrift.TBase<markPaymentAsProcessed_args, markPaymentAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
13305
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_args");
13306
 
13307
    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);
13308
    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);
13309
 
13310
    private long paymentId; // required
13311
    private ExtraPaymentProcessingType category; // required
13312
 
13313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13315
      PAYMENT_ID((short)1, "paymentId"),
13316
      /**
13317
       * 
13318
       * @see ExtraPaymentProcessingType
13319
       */
13320
      CATEGORY((short)2, "category");
13321
 
13322
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13323
 
13324
      static {
13325
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13326
          byName.put(field.getFieldName(), field);
13327
        }
13328
      }
13329
 
13330
      /**
13331
       * Find the _Fields constant that matches fieldId, or null if its not found.
13332
       */
13333
      public static _Fields findByThriftId(int fieldId) {
13334
        switch(fieldId) {
13335
          case 1: // PAYMENT_ID
13336
            return PAYMENT_ID;
13337
          case 2: // CATEGORY
13338
            return CATEGORY;
13339
          default:
13340
            return null;
13341
        }
13342
      }
13343
 
13344
      /**
13345
       * Find the _Fields constant that matches fieldId, throwing an exception
13346
       * if it is not found.
13347
       */
13348
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13349
        _Fields fields = findByThriftId(fieldId);
13350
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13351
        return fields;
13352
      }
13353
 
13354
      /**
13355
       * Find the _Fields constant that matches name, or null if its not found.
13356
       */
13357
      public static _Fields findByName(String name) {
13358
        return byName.get(name);
13359
      }
13360
 
13361
      private final short _thriftId;
13362
      private final String _fieldName;
13363
 
13364
      _Fields(short thriftId, String fieldName) {
13365
        _thriftId = thriftId;
13366
        _fieldName = fieldName;
13367
      }
13368
 
13369
      public short getThriftFieldId() {
13370
        return _thriftId;
13371
      }
13372
 
13373
      public String getFieldName() {
13374
        return _fieldName;
13375
      }
13376
    }
13377
 
13378
    // isset id assignments
13379
    private static final int __PAYMENTID_ISSET_ID = 0;
13380
    private BitSet __isset_bit_vector = new BitSet(1);
13381
 
13382
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13383
    static {
13384
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13385
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13386
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13387
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13388
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
13389
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13390
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_args.class, metaDataMap);
13391
    }
13392
 
13393
    public markPaymentAsProcessed_args() {
13394
    }
13395
 
13396
    public markPaymentAsProcessed_args(
13397
      long paymentId,
13398
      ExtraPaymentProcessingType category)
13399
    {
13400
      this();
13401
      this.paymentId = paymentId;
13402
      setPaymentIdIsSet(true);
13403
      this.category = category;
13404
    }
13405
 
13406
    /**
13407
     * Performs a deep copy on <i>other</i>.
13408
     */
13409
    public markPaymentAsProcessed_args(markPaymentAsProcessed_args other) {
13410
      __isset_bit_vector.clear();
13411
      __isset_bit_vector.or(other.__isset_bit_vector);
13412
      this.paymentId = other.paymentId;
13413
      if (other.isSetCategory()) {
13414
        this.category = other.category;
13415
      }
13416
    }
13417
 
13418
    public markPaymentAsProcessed_args deepCopy() {
13419
      return new markPaymentAsProcessed_args(this);
13420
    }
13421
 
13422
    @Override
13423
    public void clear() {
13424
      setPaymentIdIsSet(false);
13425
      this.paymentId = 0;
13426
      this.category = null;
13427
    }
13428
 
13429
    public long getPaymentId() {
13430
      return this.paymentId;
13431
    }
13432
 
13433
    public void setPaymentId(long paymentId) {
13434
      this.paymentId = paymentId;
13435
      setPaymentIdIsSet(true);
13436
    }
13437
 
13438
    public void unsetPaymentId() {
13439
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
13440
    }
13441
 
13442
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
13443
    public boolean isSetPaymentId() {
13444
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
13445
    }
13446
 
13447
    public void setPaymentIdIsSet(boolean value) {
13448
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
13449
    }
13450
 
13451
    /**
13452
     * 
13453
     * @see ExtraPaymentProcessingType
13454
     */
13455
    public ExtraPaymentProcessingType getCategory() {
13456
      return this.category;
13457
    }
13458
 
13459
    /**
13460
     * 
13461
     * @see ExtraPaymentProcessingType
13462
     */
13463
    public void setCategory(ExtraPaymentProcessingType category) {
13464
      this.category = category;
13465
    }
13466
 
13467
    public void unsetCategory() {
13468
      this.category = null;
13469
    }
13470
 
13471
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
13472
    public boolean isSetCategory() {
13473
      return this.category != null;
13474
    }
13475
 
13476
    public void setCategoryIsSet(boolean value) {
13477
      if (!value) {
13478
        this.category = null;
13479
      }
13480
    }
13481
 
13482
    public void setFieldValue(_Fields field, Object value) {
13483
      switch (field) {
13484
      case PAYMENT_ID:
13485
        if (value == null) {
13486
          unsetPaymentId();
13487
        } else {
13488
          setPaymentId((Long)value);
13489
        }
13490
        break;
13491
 
13492
      case CATEGORY:
13493
        if (value == null) {
13494
          unsetCategory();
13495
        } else {
13496
          setCategory((ExtraPaymentProcessingType)value);
13497
        }
13498
        break;
13499
 
13500
      }
13501
    }
13502
 
13503
    public Object getFieldValue(_Fields field) {
13504
      switch (field) {
13505
      case PAYMENT_ID:
13506
        return Long.valueOf(getPaymentId());
13507
 
13508
      case CATEGORY:
13509
        return getCategory();
13510
 
13511
      }
13512
      throw new IllegalStateException();
13513
    }
13514
 
13515
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13516
    public boolean isSet(_Fields field) {
13517
      if (field == null) {
13518
        throw new IllegalArgumentException();
13519
      }
13520
 
13521
      switch (field) {
13522
      case PAYMENT_ID:
13523
        return isSetPaymentId();
13524
      case CATEGORY:
13525
        return isSetCategory();
13526
      }
13527
      throw new IllegalStateException();
13528
    }
13529
 
13530
    @Override
13531
    public boolean equals(Object that) {
13532
      if (that == null)
13533
        return false;
13534
      if (that instanceof markPaymentAsProcessed_args)
13535
        return this.equals((markPaymentAsProcessed_args)that);
13536
      return false;
13537
    }
13538
 
13539
    public boolean equals(markPaymentAsProcessed_args that) {
13540
      if (that == null)
13541
        return false;
13542
 
13543
      boolean this_present_paymentId = true;
13544
      boolean that_present_paymentId = true;
13545
      if (this_present_paymentId || that_present_paymentId) {
13546
        if (!(this_present_paymentId && that_present_paymentId))
13547
          return false;
13548
        if (this.paymentId != that.paymentId)
13549
          return false;
13550
      }
13551
 
13552
      boolean this_present_category = true && this.isSetCategory();
13553
      boolean that_present_category = true && that.isSetCategory();
13554
      if (this_present_category || that_present_category) {
13555
        if (!(this_present_category && that_present_category))
13556
          return false;
13557
        if (!this.category.equals(that.category))
13558
          return false;
13559
      }
13560
 
13561
      return true;
13562
    }
13563
 
13564
    @Override
13565
    public int hashCode() {
13566
      return 0;
13567
    }
13568
 
13569
    public int compareTo(markPaymentAsProcessed_args other) {
13570
      if (!getClass().equals(other.getClass())) {
13571
        return getClass().getName().compareTo(other.getClass().getName());
13572
      }
13573
 
13574
      int lastComparison = 0;
13575
      markPaymentAsProcessed_args typedOther = (markPaymentAsProcessed_args)other;
13576
 
13577
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
13578
      if (lastComparison != 0) {
13579
        return lastComparison;
13580
      }
13581
      if (isSetPaymentId()) {
13582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
13583
        if (lastComparison != 0) {
13584
          return lastComparison;
13585
        }
13586
      }
13587
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
13588
      if (lastComparison != 0) {
13589
        return lastComparison;
13590
      }
13591
      if (isSetCategory()) {
13592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
13593
        if (lastComparison != 0) {
13594
          return lastComparison;
13595
        }
13596
      }
13597
      return 0;
13598
    }
13599
 
13600
    public _Fields fieldForId(int fieldId) {
13601
      return _Fields.findByThriftId(fieldId);
13602
    }
13603
 
13604
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13605
      org.apache.thrift.protocol.TField field;
13606
      iprot.readStructBegin();
13607
      while (true)
13608
      {
13609
        field = iprot.readFieldBegin();
13610
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13611
          break;
13612
        }
13613
        switch (field.id) {
13614
          case 1: // PAYMENT_ID
13615
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13616
              this.paymentId = iprot.readI64();
13617
              setPaymentIdIsSet(true);
13618
            } else { 
13619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13620
            }
13621
            break;
13622
          case 2: // CATEGORY
13623
            if (field.type == org.apache.thrift.protocol.TType.I32) {
13624
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
13625
            } else { 
13626
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13627
            }
13628
            break;
13629
          default:
13630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13631
        }
13632
        iprot.readFieldEnd();
13633
      }
13634
      iprot.readStructEnd();
13635
      validate();
13636
    }
13637
 
13638
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13639
      validate();
13640
 
13641
      oprot.writeStructBegin(STRUCT_DESC);
13642
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
13643
      oprot.writeI64(this.paymentId);
13644
      oprot.writeFieldEnd();
13645
      if (this.category != null) {
13646
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
13647
        oprot.writeI32(this.category.getValue());
13648
        oprot.writeFieldEnd();
13649
      }
13650
      oprot.writeFieldStop();
13651
      oprot.writeStructEnd();
13652
    }
13653
 
13654
    @Override
13655
    public String toString() {
13656
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_args(");
13657
      boolean first = true;
13658
 
13659
      sb.append("paymentId:");
13660
      sb.append(this.paymentId);
13661
      first = false;
13662
      if (!first) sb.append(", ");
13663
      sb.append("category:");
13664
      if (this.category == null) {
13665
        sb.append("null");
13666
      } else {
13667
        sb.append(this.category);
13668
      }
13669
      first = false;
13670
      sb.append(")");
13671
      return sb.toString();
13672
    }
13673
 
13674
    public void validate() throws org.apache.thrift.TException {
13675
      // check for required fields
13676
    }
13677
 
13678
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13679
      try {
13680
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13681
      } catch (org.apache.thrift.TException te) {
13682
        throw new java.io.IOException(te);
13683
      }
13684
    }
13685
 
13686
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13687
      try {
13688
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13689
      } catch (org.apache.thrift.TException te) {
13690
        throw new java.io.IOException(te);
13691
      }
13692
    }
13693
 
13694
  }
13695
 
13696
  public static class markPaymentAsProcessed_result implements org.apache.thrift.TBase<markPaymentAsProcessed_result, markPaymentAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
13697
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_result");
13698
 
13699
 
13700
 
13701
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13702
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13703
;
13704
 
13705
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13706
 
13707
      static {
13708
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13709
          byName.put(field.getFieldName(), field);
13710
        }
13711
      }
13712
 
13713
      /**
13714
       * Find the _Fields constant that matches fieldId, or null if its not found.
13715
       */
13716
      public static _Fields findByThriftId(int fieldId) {
13717
        switch(fieldId) {
13718
          default:
13719
            return null;
13720
        }
13721
      }
13722
 
13723
      /**
13724
       * Find the _Fields constant that matches fieldId, throwing an exception
13725
       * if it is not found.
13726
       */
13727
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13728
        _Fields fields = findByThriftId(fieldId);
13729
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13730
        return fields;
13731
      }
13732
 
13733
      /**
13734
       * Find the _Fields constant that matches name, or null if its not found.
13735
       */
13736
      public static _Fields findByName(String name) {
13737
        return byName.get(name);
13738
      }
13739
 
13740
      private final short _thriftId;
13741
      private final String _fieldName;
13742
 
13743
      _Fields(short thriftId, String fieldName) {
13744
        _thriftId = thriftId;
13745
        _fieldName = fieldName;
13746
      }
13747
 
13748
      public short getThriftFieldId() {
13749
        return _thriftId;
13750
      }
13751
 
13752
      public String getFieldName() {
13753
        return _fieldName;
13754
      }
13755
    }
13756
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13757
    static {
13758
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13759
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13760
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_result.class, metaDataMap);
13761
    }
13762
 
13763
    public markPaymentAsProcessed_result() {
13764
    }
13765
 
13766
    /**
13767
     * Performs a deep copy on <i>other</i>.
13768
     */
13769
    public markPaymentAsProcessed_result(markPaymentAsProcessed_result other) {
13770
    }
13771
 
13772
    public markPaymentAsProcessed_result deepCopy() {
13773
      return new markPaymentAsProcessed_result(this);
13774
    }
13775
 
13776
    @Override
13777
    public void clear() {
13778
    }
13779
 
13780
    public void setFieldValue(_Fields field, Object value) {
13781
      switch (field) {
13782
      }
13783
    }
13784
 
13785
    public Object getFieldValue(_Fields field) {
13786
      switch (field) {
13787
      }
13788
      throw new IllegalStateException();
13789
    }
13790
 
13791
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13792
    public boolean isSet(_Fields field) {
13793
      if (field == null) {
13794
        throw new IllegalArgumentException();
13795
      }
13796
 
13797
      switch (field) {
13798
      }
13799
      throw new IllegalStateException();
13800
    }
13801
 
13802
    @Override
13803
    public boolean equals(Object that) {
13804
      if (that == null)
13805
        return false;
13806
      if (that instanceof markPaymentAsProcessed_result)
13807
        return this.equals((markPaymentAsProcessed_result)that);
13808
      return false;
13809
    }
13810
 
13811
    public boolean equals(markPaymentAsProcessed_result that) {
13812
      if (that == null)
13813
        return false;
13814
 
13815
      return true;
13816
    }
13817
 
13818
    @Override
13819
    public int hashCode() {
13820
      return 0;
13821
    }
13822
 
13823
    public int compareTo(markPaymentAsProcessed_result other) {
13824
      if (!getClass().equals(other.getClass())) {
13825
        return getClass().getName().compareTo(other.getClass().getName());
13826
      }
13827
 
13828
      int lastComparison = 0;
13829
      markPaymentAsProcessed_result typedOther = (markPaymentAsProcessed_result)other;
13830
 
13831
      return 0;
13832
    }
13833
 
13834
    public _Fields fieldForId(int fieldId) {
13835
      return _Fields.findByThriftId(fieldId);
13836
    }
13837
 
13838
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13839
      org.apache.thrift.protocol.TField field;
13840
      iprot.readStructBegin();
13841
      while (true)
13842
      {
13843
        field = iprot.readFieldBegin();
13844
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13845
          break;
13846
        }
13847
        switch (field.id) {
13848
          default:
13849
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13850
        }
13851
        iprot.readFieldEnd();
13852
      }
13853
      iprot.readStructEnd();
13854
      validate();
13855
    }
13856
 
13857
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13858
      oprot.writeStructBegin(STRUCT_DESC);
13859
 
13860
      oprot.writeFieldStop();
13861
      oprot.writeStructEnd();
13862
    }
13863
 
13864
    @Override
13865
    public String toString() {
13866
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_result(");
13867
      boolean first = true;
13868
 
13869
      sb.append(")");
13870
      return sb.toString();
13871
    }
13872
 
13873
    public void validate() throws org.apache.thrift.TException {
13874
      // check for required fields
13875
    }
13876
 
13877
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13878
      try {
13879
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13880
      } catch (org.apache.thrift.TException te) {
13881
        throw new java.io.IOException(te);
13882
      }
13883
    }
13884
 
13885
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13886
      try {
13887
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13888
      } catch (org.apache.thrift.TException te) {
13889
        throw new java.io.IOException(te);
13890
      }
13891
    }
13892
 
13893
  }
13894
 
123 ashish 13895
}