Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
123 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
123 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.payments;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
123 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class PaymentService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
123 ashish 26
 
695 rajveer 27
    /**
28
     * create a new payment and return payment id, throws an exception if gateway is not active
29
     * 
30
     * @param userId
31
     * @param amount
32
     * @param gatewayId
33
     * @param txnId
6050 anupam.sin 34
     * @param isDigital
695 rajveer 35
     */
6050 anupam.sin 36
    public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
123 ashish 37
 
695 rajveer 38
    /**
4141 chandransh 39
     * Get all payments for user. If status and gateway are null, they are ignored. Same for times as well.
695 rajveer 40
     * 
41
     * @param userId
42
     * @param fromTime
43
     * @param toTime
44
     * @param status
45
     * @param gatewayId
46
     */
3430 rajveer 47
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 48
 
695 rajveer 49
    /**
4141 chandransh 50
     * Get all payments in the given status for the given gateway. If gatewayId is 0, then it is ignored.
695 rajveer 51
     * 
52
     * @param fromTime
53
     * @param toTime
54
     * @param status
55
     * @param gatewayId
56
     */
3430 rajveer 57
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException;
123 ashish 58
 
695 rajveer 59
    /**
4141 chandransh 60
     * Get all payments for the given gateway which were captured between the given dates. If the gatewayId is 0, it's ignored.
695 rajveer 61
     * 
4141 chandransh 62
     * @param fromTime
63
     * @param toTime
64
     * @param gatewayId
65
     */
66
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException;
67
 
68
    /**
69
     * Get the gateway for the given id.
695 rajveer 70
     * 
71
     * @param id
72
     */
3430 rajveer 73
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 74
 
695 rajveer 75
    /**
4600 varun.gupt 76
     * Get all active Payment Gateways
77
     * 
78
     */
79
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException;
80
 
81
    /**
695 rajveer 82
     * Get a particular payment info
83
     * 
84
     * 
85
     * @param id
86
     */
3430 rajveer 87
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
420 ashish 88
 
695 rajveer 89
    /**
4600 varun.gupt 90
     * Get payments for a transaction. Will raise exception.
695 rajveer 91
     * 
92
     * 
93
     * @param txnId
94
     */
3430 rajveer 95
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
420 ashish 96
 
695 rajveer 97
    /**
7049 anupam.sin 98
     * Get payments for a recharge transaction id. Will raise exception.
99
     * 
100
     * 
101
     * @param txnId
102
     */
103
    public List<Payment> getPaymentForRechargeTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
104
 
105
    /**
4600 varun.gupt 106
     * Get successful payment for a transaction. Will raise exception.
107
     * 
108
     * 
109
     * @param txnId
110
     */
111
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
112
 
113
    /**
695 rajveer 114
     * mark payment successful and store parameters
115
     * 
116
     * 
117
     * @param id
118
     * @param gatewayPaymentId
119
     * @param sessionId
120
     * @param gatewayTxnStatus
121
     * @param description
122
     * @param gatewayTxnId
123
     * @param authCode
124
     * @param referenceCode
125
     * @param errorCode
126
     * @param status
1119 rajveer 127
     * @param gatewayTxnDate
695 rajveer 128
     * @param attributes
129
     */
3430 rajveer 130
    public boolean updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes) throws PaymentException, org.apache.thrift.TException;
695 rajveer 131
 
1629 ankur.sing 132
    /**
1731 ankur.sing 133
     * Returns the minimum and maximum amounts among successful payments.
134
     * List contains two double values, first minimum and second maximum amount.
1629 ankur.sing 135
     */
3430 rajveer 136
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
1629 ankur.sing 137
 
2462 chandransh 138
    /**
139
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
140
     * In case of any processing error, an exception is raised.
141
     * 
142
     * @param merchantPaymentId
10269 amit.gupta 143
     * @param isMobile
2462 chandransh 144
     */
10269 amit.gupta 145
    public String initializeHdfcPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, org.apache.thrift.TException;
2462 chandransh 146
 
2690 chandransh 147
    /**
6050 anupam.sin 148
     * Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
6228 anupam.sin 149
     * In case of any processing error, an exception is raised. The phone is a madatory field and is required in case of dth payments.
6050 anupam.sin 150
     * 
151
     * @param merchantPaymentId
152
     * @param rechargeOrderId
6228 anupam.sin 153
     * @param phone
10269 amit.gupta 154
     * @param isMobile
6050 anupam.sin 155
     */
10269 amit.gupta 156
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile) throws PaymentException, org.apache.thrift.TException;
6050 anupam.sin 157
 
158
    /**
3616 chandransh 159
     * Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
160
     * In case of any processing error, an exception is raised.
161
     * 
162
     * @param merchantPaymentId
10269 amit.gupta 163
     * @param isMobile
3616 chandransh 164
     */
10269 amit.gupta 165
    public String initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, org.apache.thrift.TException;
3616 chandransh 166
 
167
    /**
2690 chandransh 168
     * Create a refund of the given amount corresponding to the given order to be processed through the same
169
     * payment gateway which processed the payment for the corresponding transaction.
170
     * Returns the id of the newly created Refund.
171
     * 
172
     * @param orderId
173
     * @param merchantTxnId
174
     * @param amount
175
     */
3430 rajveer 176
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
2690 chandransh 177
 
3010 chandransh 178
    /**
179
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
6503 rajveer 180
     * transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
181
     * code 104 is	thrown in case no payments are found for the transaction id passed. PaymentException is also
182
     * thrown with error code 106 in case capture was not possible due to connection
183
     * issue.
3010 chandransh 184
     * 
185
     * @param merchantTxnId
8618 rajveer 186
     * @param isDigital
3010 chandransh 187
     */
8618 rajveer 188
    public boolean capturePayment(long merchantTxnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
3010 chandransh 189
 
3956 chandransh 190
    /**
6503 rajveer 191
     * Refund the payment for the given merchant transaction id. It processes the last payment for the given
192
     * transaction. If refund will be failed nothing will be updated in database.
6486 rajveer 193
     * 
194
     * @param merchantTxnId
195
     * @param amount
196
     * @param isDigital
197
     */
198
    public boolean refundPayment(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
199
 
200
    /**
3956 chandransh 201
     * Adds the given amount to the captured amount of a COD payment.
202
     * Updates the captured amount for the corresponding payment and marks it as PARTIALLY CAPTURED.
203
     * If the captured amount becomes equal to total amount, then the payment status is set as SUCCESS.
204
     * Also sets the name of the entity which transferred the money, the date on which it was transferred
205
     * and the corresponding transaction id.
206
     * 
207
     * Returns false if the payment couldn't be captured.
208
     * Throws exception if no such payment could be found or if the captured amount will exceed the total amount after capturing.
209
     * 
210
     * @param merchantTxnId
211
     * @param amount
212
     * @param xferBy
213
     * @param xferTxnId
214
     * @param xferDate
215
     */
216
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException;
217
 
4008 mandeep.dh 218
    /**
219
     * Returns the list of payments that require some extra processing and
220
     * which belong to a particular category. This is currently used by CRM
221
     * application.
222
     * 
223
     * @param category
224
     */
225
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
226
 
227
    /**
228
     * Marks a particular payment as processed for a particular cateogory.
229
     * It essentially deletes the payment if it is processed for a particular
230
     * category. This is currently used by CRM application.
231
     * 
232
     * @param paymentId
233
     * @param category
234
     */
235
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException;
236
 
8914 rajveer 237
    public PaymentStatus getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException;
8907 rajveer 238
 
18577 manish.sha 239
    public Creditor getCreditorInfo(long id, String name) throws org.apache.thrift.TException;
240
 
241
    public boolean updateCreditorInfo(Creditor creditor) throws org.apache.thrift.TException;
242
 
243
    public List<UserSanction> getUserSanctionDetails(long userId) throws org.apache.thrift.TException;
244
 
245
    public UserSanction getUserSanctionDetailsForCreditor(long userId, long creditorId) throws org.apache.thrift.TException;
246
 
247
    public boolean updateUserSanction(UserSanction userSanaction) throws PaymentException, org.apache.thrift.TException;
248
 
249
    public List<CreditHistory> getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType) throws org.apache.thrift.TException;
250
 
251
    public List<CreditHistory> getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType) throws org.apache.thrift.TException;
252
 
253
    public boolean processCreditTransaction(long paymentId, List<CreditHistory> creditTxns) throws PaymentException, org.apache.thrift.TException;
254
 
255
    public List<CreditHistory> getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException;
256
 
123 ashish 257
  }
258
 
3430 rajveer 259
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
260
 
6050 anupam.sin 261
    public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createPayment_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 262
 
263
    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;
264
 
265
    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;
266
 
4141 chandransh 267
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException;
268
 
3430 rajveer 269
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
270
 
4600 varun.gupt 271
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException;
272
 
3430 rajveer 273
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
274
 
275
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
276
 
7049 anupam.sin 277
    public void getPaymentForRechargeTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForRechargeTxnId_call> resultHandler) throws org.apache.thrift.TException;
278
 
4600 varun.gupt 279
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
280
 
3430 rajveer 281
    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;
282
 
283
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
284
 
10269 amit.gupta 285
    public void initializeHdfcPayment(long merchantPaymentId, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 286
 
10269 amit.gupta 287
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException;
6050 anupam.sin 288
 
10269 amit.gupta 289
    public void initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
3616 chandransh 290
 
3430 rajveer 291
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
292
 
8618 rajveer 293
    public void capturePayment(long merchantTxnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 294
 
6486 rajveer 295
    public void refundPayment(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.refundPayment_call> resultHandler) throws org.apache.thrift.TException;
296
 
3956 chandransh 297
    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;
298
 
4008 mandeep.dh 299
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException;
300
 
301
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException;
302
 
8914 rajveer 303
    public void getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentStatusAtGateway_call> resultHandler) throws org.apache.thrift.TException;
8907 rajveer 304
 
18577 manish.sha 305
    public void getCreditorInfo(long id, String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditorInfo_call> resultHandler) throws org.apache.thrift.TException;
306
 
307
    public void updateCreditorInfo(Creditor creditor, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateCreditorInfo_call> resultHandler) throws org.apache.thrift.TException;
308
 
309
    public void getUserSanctionDetails(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSanctionDetails_call> resultHandler) throws org.apache.thrift.TException;
310
 
311
    public void getUserSanctionDetailsForCreditor(long userId, long creditorId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSanctionDetailsForCreditor_call> resultHandler) throws org.apache.thrift.TException;
312
 
313
    public void updateUserSanction(UserSanction userSanaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUserSanction_call> resultHandler) throws org.apache.thrift.TException;
314
 
315
    public void getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException;
316
 
317
    public void getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCreditHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException;
318
 
319
    public void processCreditTransaction(long paymentId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.processCreditTransaction_call> resultHandler) throws org.apache.thrift.TException;
320
 
321
    public void getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLoanPayableForUserToCreditor_call> resultHandler) throws org.apache.thrift.TException;
322
 
3430 rajveer 323
  }
324
 
3374 rajveer 325
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 326
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
327
      public Factory() {}
328
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
329
        return new Client(prot);
330
      }
331
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
332
        return new Client(iprot, oprot);
333
      }
334
    }
335
 
336
    public Client(org.apache.thrift.protocol.TProtocol prot)
123 ashish 337
    {
3430 rajveer 338
      super(prot, prot);
123 ashish 339
    }
340
 
3430 rajveer 341
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 342
      super(iprot, oprot);
123 ashish 343
    }
344
 
6050 anupam.sin 345
    public long createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException
123 ashish 346
    {
6050 anupam.sin 347
      send_createPayment(userId, amount, gatewayId, txnId, isDigital);
123 ashish 348
      return recv_createPayment();
349
    }
350
 
6050 anupam.sin 351
    public void send_createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital) throws org.apache.thrift.TException
123 ashish 352
    {
353
      createPayment_args args = new createPayment_args();
3430 rajveer 354
      args.setUserId(userId);
355
      args.setAmount(amount);
356
      args.setGatewayId(gatewayId);
357
      args.setTxnId(txnId);
6050 anupam.sin 358
      args.setIsDigital(isDigital);
3430 rajveer 359
      sendBase("createPayment", args);
123 ashish 360
    }
361
 
3430 rajveer 362
    public long recv_createPayment() throws PaymentException, org.apache.thrift.TException
123 ashish 363
    {
364
      createPayment_result result = new createPayment_result();
3430 rajveer 365
      receiveBase(result, "createPayment");
123 ashish 366
      if (result.isSetSuccess()) {
367
        return result.success;
368
      }
369
      if (result.pe != null) {
370
        throw result.pe;
371
      }
3430 rajveer 372
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createPayment failed: unknown result");
123 ashish 373
    }
374
 
3430 rajveer 375
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 376
    {
695 rajveer 377
      send_getPaymentsForUser(userId, fromTime, toTime, status, gatewayId);
123 ashish 378
      return recv_getPaymentsForUser();
379
    }
380
 
3430 rajveer 381
    public void send_getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 382
    {
383
      getPaymentsForUser_args args = new getPaymentsForUser_args();
3430 rajveer 384
      args.setUserId(userId);
385
      args.setFromTime(fromTime);
386
      args.setToTime(toTime);
387
      args.setStatus(status);
388
      args.setGatewayId(gatewayId);
389
      sendBase("getPaymentsForUser", args);
123 ashish 390
    }
391
 
3430 rajveer 392
    public List<Payment> recv_getPaymentsForUser() throws PaymentException, org.apache.thrift.TException
123 ashish 393
    {
394
      getPaymentsForUser_result result = new getPaymentsForUser_result();
3430 rajveer 395
      receiveBase(result, "getPaymentsForUser");
123 ashish 396
      if (result.isSetSuccess()) {
397
        return result.success;
398
      }
399
      if (result.pe != null) {
400
        throw result.pe;
401
      }
3430 rajveer 402
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsForUser failed: unknown result");
123 ashish 403
    }
404
 
3430 rajveer 405
    public List<Payment> getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, org.apache.thrift.TException
123 ashish 406
    {
695 rajveer 407
      send_getPayments(fromTime, toTime, status, gatewayId);
123 ashish 408
      return recv_getPayments();
409
    }
410
 
3430 rajveer 411
    public void send_getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId) throws org.apache.thrift.TException
123 ashish 412
    {
413
      getPayments_args args = new getPayments_args();
3430 rajveer 414
      args.setFromTime(fromTime);
415
      args.setToTime(toTime);
416
      args.setStatus(status);
417
      args.setGatewayId(gatewayId);
418
      sendBase("getPayments", args);
123 ashish 419
    }
420
 
3430 rajveer 421
    public List<Payment> recv_getPayments() throws PaymentException, org.apache.thrift.TException
123 ashish 422
    {
423
      getPayments_result result = new getPayments_result();
3430 rajveer 424
      receiveBase(result, "getPayments");
123 ashish 425
      if (result.isSetSuccess()) {
426
        return result.success;
427
      }
428
      if (result.pe != null) {
429
        throw result.pe;
430
      }
3430 rajveer 431
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayments failed: unknown result");
123 ashish 432
    }
433
 
4141 chandransh 434
    public List<Payment> getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws PaymentException, org.apache.thrift.TException
435
    {
436
      send_getPaymentsByCapturedDate(fromTime, toTime, gatewayId);
437
      return recv_getPaymentsByCapturedDate();
438
    }
439
 
440
    public void send_getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId) throws org.apache.thrift.TException
441
    {
442
      getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
443
      args.setFromTime(fromTime);
444
      args.setToTime(toTime);
445
      args.setGatewayId(gatewayId);
446
      sendBase("getPaymentsByCapturedDate", args);
447
    }
448
 
449
    public List<Payment> recv_getPaymentsByCapturedDate() throws PaymentException, org.apache.thrift.TException
450
    {
451
      getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
452
      receiveBase(result, "getPaymentsByCapturedDate");
453
      if (result.isSetSuccess()) {
454
        return result.success;
455
      }
456
      if (result.pe != null) {
457
        throw result.pe;
458
      }
459
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsByCapturedDate failed: unknown result");
460
    }
461
 
3430 rajveer 462
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 463
    {
464
      send_getPaymentGateway(id);
465
      return recv_getPaymentGateway();
466
    }
467
 
3430 rajveer 468
    public void send_getPaymentGateway(long id) throws org.apache.thrift.TException
420 ashish 469
    {
470
      getPaymentGateway_args args = new getPaymentGateway_args();
3430 rajveer 471
      args.setId(id);
472
      sendBase("getPaymentGateway", args);
420 ashish 473
    }
474
 
3430 rajveer 475
    public PaymentGateway recv_getPaymentGateway() throws PaymentException, org.apache.thrift.TException
420 ashish 476
    {
477
      getPaymentGateway_result result = new getPaymentGateway_result();
3430 rajveer 478
      receiveBase(result, "getPaymentGateway");
420 ashish 479
      if (result.isSetSuccess()) {
480
        return result.success;
481
      }
482
      if (result.pe != null) {
483
        throw result.pe;
484
      }
3430 rajveer 485
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
420 ashish 486
    }
487
 
4600 varun.gupt 488
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
489
    {
490
      send_getActivePaymentGateways();
491
      return recv_getActivePaymentGateways();
492
    }
493
 
494
    public void send_getActivePaymentGateways() throws org.apache.thrift.TException
495
    {
496
      getActivePaymentGateways_args args = new getActivePaymentGateways_args();
497
      sendBase("getActivePaymentGateways", args);
498
    }
499
 
500
    public List<PaymentGateway> recv_getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
501
    {
502
      getActivePaymentGateways_result result = new getActivePaymentGateways_result();
503
      receiveBase(result, "getActivePaymentGateways");
504
      if (result.isSetSuccess()) {
505
        return result.success;
506
      }
507
      if (result.pe != null) {
508
        throw result.pe;
509
      }
510
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
511
    }
512
 
3430 rajveer 513
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
420 ashish 514
    {
695 rajveer 515
      send_getPayment(id);
516
      return recv_getPayment();
420 ashish 517
    }
518
 
3430 rajveer 519
    public void send_getPayment(long id) throws org.apache.thrift.TException
420 ashish 520
    {
695 rajveer 521
      getPayment_args args = new getPayment_args();
3430 rajveer 522
      args.setId(id);
523
      sendBase("getPayment", args);
420 ashish 524
    }
525
 
3430 rajveer 526
    public Payment recv_getPayment() throws PaymentException, org.apache.thrift.TException
420 ashish 527
    {
695 rajveer 528
      getPayment_result result = new getPayment_result();
3430 rajveer 529
      receiveBase(result, "getPayment");
695 rajveer 530
      if (result.isSetSuccess()) {
531
        return result.success;
532
      }
420 ashish 533
      if (result.pe != null) {
534
        throw result.pe;
535
      }
3430 rajveer 536
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPayment failed: unknown result");
420 ashish 537
    }
538
 
3430 rajveer 539
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
420 ashish 540
    {
695 rajveer 541
      send_getPaymentForTxnId(txnId);
542
      return recv_getPaymentForTxnId();
420 ashish 543
    }
544
 
3430 rajveer 545
    public void send_getPaymentForTxnId(long txnId) throws org.apache.thrift.TException
420 ashish 546
    {
695 rajveer 547
      getPaymentForTxnId_args args = new getPaymentForTxnId_args();
3430 rajveer 548
      args.setTxnId(txnId);
549
      sendBase("getPaymentForTxnId", args);
420 ashish 550
    }
551
 
3430 rajveer 552
    public List<Payment> recv_getPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
420 ashish 553
    {
695 rajveer 554
      getPaymentForTxnId_result result = new getPaymentForTxnId_result();
3430 rajveer 555
      receiveBase(result, "getPaymentForTxnId");
420 ashish 556
      if (result.isSetSuccess()) {
557
        return result.success;
558
      }
559
      if (result.pe != null) {
560
        throw result.pe;
561
      }
3430 rajveer 562
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
420 ashish 563
    }
564
 
7049 anupam.sin 565
    public List<Payment> getPaymentForRechargeTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
566
    {
567
      send_getPaymentForRechargeTxnId(txnId);
568
      return recv_getPaymentForRechargeTxnId();
569
    }
570
 
571
    public void send_getPaymentForRechargeTxnId(long txnId) throws org.apache.thrift.TException
572
    {
573
      getPaymentForRechargeTxnId_args args = new getPaymentForRechargeTxnId_args();
574
      args.setTxnId(txnId);
575
      sendBase("getPaymentForRechargeTxnId", args);
576
    }
577
 
578
    public List<Payment> recv_getPaymentForRechargeTxnId() throws PaymentException, org.apache.thrift.TException
579
    {
580
      getPaymentForRechargeTxnId_result result = new getPaymentForRechargeTxnId_result();
581
      receiveBase(result, "getPaymentForRechargeTxnId");
582
      if (result.isSetSuccess()) {
583
        return result.success;
584
      }
585
      if (result.pe != null) {
586
        throw result.pe;
587
      }
588
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForRechargeTxnId failed: unknown result");
589
    }
590
 
4600 varun.gupt 591
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
592
    {
593
      send_getSuccessfulPaymentForTxnId(txnId);
594
      return recv_getSuccessfulPaymentForTxnId();
595
    }
596
 
597
    public void send_getSuccessfulPaymentForTxnId(long txnId) throws org.apache.thrift.TException
598
    {
599
      getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
600
      args.setTxnId(txnId);
601
      sendBase("getSuccessfulPaymentForTxnId", args);
602
    }
603
 
604
    public Payment recv_getSuccessfulPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
605
    {
606
      getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
607
      receiveBase(result, "getSuccessfulPaymentForTxnId");
608
      if (result.isSetSuccess()) {
609
        return result.success;
610
      }
611
      if (result.pe != null) {
612
        throw result.pe;
613
      }
614
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
615
    }
616
 
3430 rajveer 617
    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 618
    {
1119 rajveer 619
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
695 rajveer 620
      return recv_updatePaymentDetails();
420 ashish 621
    }
622
 
3430 rajveer 623
    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 624
    {
695 rajveer 625
      updatePaymentDetails_args args = new updatePaymentDetails_args();
3430 rajveer 626
      args.setId(id);
627
      args.setGatewayPaymentId(gatewayPaymentId);
628
      args.setSessionId(sessionId);
629
      args.setGatewayTxnStatus(gatewayTxnStatus);
630
      args.setDescription(description);
631
      args.setGatewayTxnId(gatewayTxnId);
632
      args.setAuthCode(authCode);
633
      args.setReferenceCode(referenceCode);
634
      args.setErrorCode(errorCode);
635
      args.setStatus(status);
636
      args.setGatewayTxnDate(gatewayTxnDate);
637
      args.setAttributes(attributes);
638
      sendBase("updatePaymentDetails", args);
420 ashish 639
    }
640
 
3430 rajveer 641
    public boolean recv_updatePaymentDetails() throws PaymentException, org.apache.thrift.TException
420 ashish 642
    {
695 rajveer 643
      updatePaymentDetails_result result = new updatePaymentDetails_result();
3430 rajveer 644
      receiveBase(result, "updatePaymentDetails");
695 rajveer 645
      if (result.isSetSuccess()) {
646
        return result.success;
647
      }
420 ashish 648
      if (result.pe != null) {
649
        throw result.pe;
650
      }
3430 rajveer 651
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
420 ashish 652
    }
653
 
3430 rajveer 654
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 655
    {
1731 ankur.sing 656
      send_getSuccessfulPaymentsAmountRange();
657
      return recv_getSuccessfulPaymentsAmountRange();
1629 ankur.sing 658
    }
659
 
3430 rajveer 660
    public void send_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 661
    {
1731 ankur.sing 662
      getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
3430 rajveer 663
      sendBase("getSuccessfulPaymentsAmountRange", args);
1629 ankur.sing 664
    }
665
 
3430 rajveer 666
    public List<Double> recv_getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException
1629 ankur.sing 667
    {
1731 ankur.sing 668
      getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 669
      receiveBase(result, "getSuccessfulPaymentsAmountRange");
1629 ankur.sing 670
      if (result.isSetSuccess()) {
671
        return result.success;
672
      }
3430 rajveer 673
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
1629 ankur.sing 674
    }
675
 
10269 amit.gupta 676
    public String initializeHdfcPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, org.apache.thrift.TException
2462 chandransh 677
    {
10269 amit.gupta 678
      send_initializeHdfcPayment(merchantPaymentId, isMobile);
2462 chandransh 679
      return recv_initializeHdfcPayment();
680
    }
681
 
10269 amit.gupta 682
    public void send_initializeHdfcPayment(long merchantPaymentId, boolean isMobile) throws org.apache.thrift.TException
2462 chandransh 683
    {
684
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
3430 rajveer 685
      args.setMerchantPaymentId(merchantPaymentId);
10269 amit.gupta 686
      args.setIsMobile(isMobile);
3430 rajveer 687
      sendBase("initializeHdfcPayment", args);
2462 chandransh 688
    }
689
 
3430 rajveer 690
    public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
2462 chandransh 691
    {
692
      initializeHdfcPayment_result result = new initializeHdfcPayment_result();
3430 rajveer 693
      receiveBase(result, "initializeHdfcPayment");
2462 chandransh 694
      if (result.isSetSuccess()) {
695
        return result.success;
696
      }
697
      if (result.pe != null) {
698
        throw result.pe;
699
      }
3430 rajveer 700
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
2462 chandransh 701
    }
702
 
10269 amit.gupta 703
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile) throws PaymentException, org.apache.thrift.TException
6050 anupam.sin 704
    {
10269 amit.gupta 705
      send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone, isMobile);
6050 anupam.sin 706
      return recv_doHdfcPaymentForDigitalOrder();
707
    }
708
 
10269 amit.gupta 709
    public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile) throws org.apache.thrift.TException
6050 anupam.sin 710
    {
711
      doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
712
      args.setMerchantPaymentId(merchantPaymentId);
713
      args.setRechargeOrderId(rechargeOrderId);
6228 anupam.sin 714
      args.setPhone(phone);
10269 amit.gupta 715
      args.setIsMobile(isMobile);
6050 anupam.sin 716
      sendBase("doHdfcPaymentForDigitalOrder", args);
717
    }
718
 
719
    public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
720
    {
721
      doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
722
      receiveBase(result, "doHdfcPaymentForDigitalOrder");
723
      if (result.isSetSuccess()) {
724
        return result.success;
725
      }
726
      if (result.pe != null) {
727
        throw result.pe;
728
      }
729
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
730
    }
731
 
10269 amit.gupta 732
    public String initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, org.apache.thrift.TException
3616 chandransh 733
    {
10269 amit.gupta 734
      send_initializeHdfcEmiPayment(merchantPaymentId, isMobile);
3616 chandransh 735
      return recv_initializeHdfcEmiPayment();
736
    }
737
 
10269 amit.gupta 738
    public void send_initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile) throws org.apache.thrift.TException
3616 chandransh 739
    {
740
      initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
741
      args.setMerchantPaymentId(merchantPaymentId);
10269 amit.gupta 742
      args.setIsMobile(isMobile);
3616 chandransh 743
      sendBase("initializeHdfcEmiPayment", args);
744
    }
745
 
746
    public String recv_initializeHdfcEmiPayment() throws PaymentException, org.apache.thrift.TException
747
    {
748
      initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
749
      receiveBase(result, "initializeHdfcEmiPayment");
750
      if (result.isSetSuccess()) {
751
        return result.success;
752
      }
753
      if (result.pe != null) {
754
        throw result.pe;
755
      }
756
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcEmiPayment failed: unknown result");
757
    }
758
 
3430 rajveer 759
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException
2690 chandransh 760
    {
761
      send_createRefund(orderId, merchantTxnId, amount);
762
      return recv_createRefund();
763
    }
764
 
3430 rajveer 765
    public void send_createRefund(long orderId, long merchantTxnId, double amount) throws org.apache.thrift.TException
2690 chandransh 766
    {
767
      createRefund_args args = new createRefund_args();
3430 rajveer 768
      args.setOrderId(orderId);
769
      args.setMerchantTxnId(merchantTxnId);
770
      args.setAmount(amount);
771
      sendBase("createRefund", args);
2690 chandransh 772
    }
773
 
3430 rajveer 774
    public long recv_createRefund() throws PaymentException, org.apache.thrift.TException
2690 chandransh 775
    {
776
      createRefund_result result = new createRefund_result();
3430 rajveer 777
      receiveBase(result, "createRefund");
2690 chandransh 778
      if (result.isSetSuccess()) {
779
        return result.success;
780
      }
781
      if (result.pe != null) {
782
        throw result.pe;
783
      }
3430 rajveer 784
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
2690 chandransh 785
    }
786
 
8618 rajveer 787
    public boolean capturePayment(long merchantTxnId, boolean isDigital) throws PaymentException, org.apache.thrift.TException
3010 chandransh 788
    {
8618 rajveer 789
      send_capturePayment(merchantTxnId, isDigital);
3010 chandransh 790
      return recv_capturePayment();
791
    }
792
 
8618 rajveer 793
    public void send_capturePayment(long merchantTxnId, boolean isDigital) throws org.apache.thrift.TException
3010 chandransh 794
    {
795
      capturePayment_args args = new capturePayment_args();
3430 rajveer 796
      args.setMerchantTxnId(merchantTxnId);
8618 rajveer 797
      args.setIsDigital(isDigital);
3430 rajveer 798
      sendBase("capturePayment", args);
3010 chandransh 799
    }
800
 
3430 rajveer 801
    public boolean recv_capturePayment() throws PaymentException, org.apache.thrift.TException
3010 chandransh 802
    {
803
      capturePayment_result result = new capturePayment_result();
3430 rajveer 804
      receiveBase(result, "capturePayment");
3010 chandransh 805
      if (result.isSetSuccess()) {
806
        return result.success;
807
      }
808
      if (result.pe != null) {
809
        throw result.pe;
810
      }
3430 rajveer 811
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
3010 chandransh 812
    }
813
 
6486 rajveer 814
    public boolean refundPayment(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException
815
    {
816
      send_refundPayment(merchantTxnId, amount, isDigital);
817
      return recv_refundPayment();
818
    }
819
 
820
    public void send_refundPayment(long merchantTxnId, double amount, boolean isDigital) throws org.apache.thrift.TException
821
    {
822
      refundPayment_args args = new refundPayment_args();
823
      args.setMerchantTxnId(merchantTxnId);
824
      args.setAmount(amount);
825
      args.setIsDigital(isDigital);
826
      sendBase("refundPayment", args);
827
    }
828
 
829
    public boolean recv_refundPayment() throws PaymentException, org.apache.thrift.TException
830
    {
831
      refundPayment_result result = new refundPayment_result();
832
      receiveBase(result, "refundPayment");
833
      if (result.isSetSuccess()) {
834
        return result.success;
835
      }
836
      if (result.pe != null) {
837
        throw result.pe;
838
      }
839
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "refundPayment failed: unknown result");
840
    }
841
 
3956 chandransh 842
    public boolean partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws PaymentException, org.apache.thrift.TException
843
    {
844
      send_partiallyCapturePayment(merchantTxnId, amount, xferBy, xferTxnId, xferDate);
845
      return recv_partiallyCapturePayment();
846
    }
847
 
848
    public void send_partiallyCapturePayment(long merchantTxnId, double amount, String xferBy, String xferTxnId, long xferDate) throws org.apache.thrift.TException
849
    {
850
      partiallyCapturePayment_args args = new partiallyCapturePayment_args();
851
      args.setMerchantTxnId(merchantTxnId);
852
      args.setAmount(amount);
853
      args.setXferBy(xferBy);
854
      args.setXferTxnId(xferTxnId);
855
      args.setXferDate(xferDate);
856
      sendBase("partiallyCapturePayment", args);
857
    }
858
 
859
    public boolean recv_partiallyCapturePayment() throws PaymentException, org.apache.thrift.TException
860
    {
861
      partiallyCapturePayment_result result = new partiallyCapturePayment_result();
862
      receiveBase(result, "partiallyCapturePayment");
863
      if (result.isSetSuccess()) {
864
        return result.success;
865
      }
866
      if (result.pe != null) {
867
        throw result.pe;
868
      }
869
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "partiallyCapturePayment failed: unknown result");
870
    }
871
 
4008 mandeep.dh 872
    public List<Long> getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
873
    {
874
      send_getPaymentsRequiringExtraProcessing(category);
875
      return recv_getPaymentsRequiringExtraProcessing();
876
    }
877
 
878
    public void send_getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category) throws org.apache.thrift.TException
879
    {
880
      getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
881
      args.setCategory(category);
882
      sendBase("getPaymentsRequiringExtraProcessing", args);
883
    }
884
 
885
    public List<Long> recv_getPaymentsRequiringExtraProcessing() throws org.apache.thrift.TException
886
    {
887
      getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
888
      receiveBase(result, "getPaymentsRequiringExtraProcessing");
889
      if (result.isSetSuccess()) {
890
        return result.success;
891
      }
892
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentsRequiringExtraProcessing failed: unknown result");
893
    }
894
 
895
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
896
    {
897
      send_markPaymentAsProcessed(paymentId, category);
898
      recv_markPaymentAsProcessed();
899
    }
900
 
901
    public void send_markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category) throws org.apache.thrift.TException
902
    {
903
      markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
904
      args.setPaymentId(paymentId);
905
      args.setCategory(category);
906
      sendBase("markPaymentAsProcessed", args);
907
    }
908
 
909
    public void recv_markPaymentAsProcessed() throws org.apache.thrift.TException
910
    {
911
      markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
912
      receiveBase(result, "markPaymentAsProcessed");
913
      return;
914
    }
915
 
8914 rajveer 916
    public PaymentStatus getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital) throws PaymentException, org.apache.thrift.TException
8907 rajveer 917
    {
8914 rajveer 918
      send_getPaymentStatusAtGateway(merchantTxnId, amount, isDigital);
919
      return recv_getPaymentStatusAtGateway();
8907 rajveer 920
    }
921
 
8914 rajveer 922
    public void send_getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital) throws org.apache.thrift.TException
8907 rajveer 923
    {
8914 rajveer 924
      getPaymentStatusAtGateway_args args = new getPaymentStatusAtGateway_args();
8907 rajveer 925
      args.setMerchantTxnId(merchantTxnId);
926
      args.setAmount(amount);
927
      args.setIsDigital(isDigital);
8914 rajveer 928
      sendBase("getPaymentStatusAtGateway", args);
8907 rajveer 929
    }
930
 
8914 rajveer 931
    public PaymentStatus recv_getPaymentStatusAtGateway() throws PaymentException, org.apache.thrift.TException
8907 rajveer 932
    {
8914 rajveer 933
      getPaymentStatusAtGateway_result result = new getPaymentStatusAtGateway_result();
934
      receiveBase(result, "getPaymentStatusAtGateway");
8907 rajveer 935
      if (result.isSetSuccess()) {
936
        return result.success;
937
      }
938
      if (result.pe != null) {
939
        throw result.pe;
940
      }
8914 rajveer 941
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentStatusAtGateway failed: unknown result");
8907 rajveer 942
    }
943
 
18577 manish.sha 944
    public Creditor getCreditorInfo(long id, String name) throws org.apache.thrift.TException
945
    {
946
      send_getCreditorInfo(id, name);
947
      return recv_getCreditorInfo();
948
    }
949
 
950
    public void send_getCreditorInfo(long id, String name) throws org.apache.thrift.TException
951
    {
952
      getCreditorInfo_args args = new getCreditorInfo_args();
953
      args.setId(id);
954
      args.setName(name);
955
      sendBase("getCreditorInfo", args);
956
    }
957
 
958
    public Creditor recv_getCreditorInfo() throws org.apache.thrift.TException
959
    {
960
      getCreditorInfo_result result = new getCreditorInfo_result();
961
      receiveBase(result, "getCreditorInfo");
962
      if (result.isSetSuccess()) {
963
        return result.success;
964
      }
965
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditorInfo failed: unknown result");
966
    }
967
 
968
    public boolean updateCreditorInfo(Creditor creditor) throws org.apache.thrift.TException
969
    {
970
      send_updateCreditorInfo(creditor);
971
      return recv_updateCreditorInfo();
972
    }
973
 
974
    public void send_updateCreditorInfo(Creditor creditor) throws org.apache.thrift.TException
975
    {
976
      updateCreditorInfo_args args = new updateCreditorInfo_args();
977
      args.setCreditor(creditor);
978
      sendBase("updateCreditorInfo", args);
979
    }
980
 
981
    public boolean recv_updateCreditorInfo() throws org.apache.thrift.TException
982
    {
983
      updateCreditorInfo_result result = new updateCreditorInfo_result();
984
      receiveBase(result, "updateCreditorInfo");
985
      if (result.isSetSuccess()) {
986
        return result.success;
987
      }
988
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateCreditorInfo failed: unknown result");
989
    }
990
 
991
    public List<UserSanction> getUserSanctionDetails(long userId) throws org.apache.thrift.TException
992
    {
993
      send_getUserSanctionDetails(userId);
994
      return recv_getUserSanctionDetails();
995
    }
996
 
997
    public void send_getUserSanctionDetails(long userId) throws org.apache.thrift.TException
998
    {
999
      getUserSanctionDetails_args args = new getUserSanctionDetails_args();
1000
      args.setUserId(userId);
1001
      sendBase("getUserSanctionDetails", args);
1002
    }
1003
 
1004
    public List<UserSanction> recv_getUserSanctionDetails() throws org.apache.thrift.TException
1005
    {
1006
      getUserSanctionDetails_result result = new getUserSanctionDetails_result();
1007
      receiveBase(result, "getUserSanctionDetails");
1008
      if (result.isSetSuccess()) {
1009
        return result.success;
1010
      }
1011
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserSanctionDetails failed: unknown result");
1012
    }
1013
 
1014
    public UserSanction getUserSanctionDetailsForCreditor(long userId, long creditorId) throws org.apache.thrift.TException
1015
    {
1016
      send_getUserSanctionDetailsForCreditor(userId, creditorId);
1017
      return recv_getUserSanctionDetailsForCreditor();
1018
    }
1019
 
1020
    public void send_getUserSanctionDetailsForCreditor(long userId, long creditorId) throws org.apache.thrift.TException
1021
    {
1022
      getUserSanctionDetailsForCreditor_args args = new getUserSanctionDetailsForCreditor_args();
1023
      args.setUserId(userId);
1024
      args.setCreditorId(creditorId);
1025
      sendBase("getUserSanctionDetailsForCreditor", args);
1026
    }
1027
 
1028
    public UserSanction recv_getUserSanctionDetailsForCreditor() throws org.apache.thrift.TException
1029
    {
1030
      getUserSanctionDetailsForCreditor_result result = new getUserSanctionDetailsForCreditor_result();
1031
      receiveBase(result, "getUserSanctionDetailsForCreditor");
1032
      if (result.isSetSuccess()) {
1033
        return result.success;
1034
      }
1035
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserSanctionDetailsForCreditor failed: unknown result");
1036
    }
1037
 
1038
    public boolean updateUserSanction(UserSanction userSanaction) throws PaymentException, org.apache.thrift.TException
1039
    {
1040
      send_updateUserSanction(userSanaction);
1041
      return recv_updateUserSanction();
1042
    }
1043
 
1044
    public void send_updateUserSanction(UserSanction userSanaction) throws org.apache.thrift.TException
1045
    {
1046
      updateUserSanction_args args = new updateUserSanction_args();
1047
      args.setUserSanaction(userSanaction);
1048
      sendBase("updateUserSanction", args);
1049
    }
1050
 
1051
    public boolean recv_updateUserSanction() throws PaymentException, org.apache.thrift.TException
1052
    {
1053
      updateUserSanction_result result = new updateUserSanction_result();
1054
      receiveBase(result, "updateUserSanction");
1055
      if (result.isSetSuccess()) {
1056
        return result.success;
1057
      }
1058
      if (result.pe != null) {
1059
        throw result.pe;
1060
      }
1061
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserSanction failed: unknown result");
1062
    }
1063
 
1064
    public List<CreditHistory> getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType) throws org.apache.thrift.TException
1065
    {
1066
      send_getCreditHistoryRecordsForTransaction(paymentId, creditorId, creditTxnType);
1067
      return recv_getCreditHistoryRecordsForTransaction();
1068
    }
1069
 
1070
    public void send_getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType) throws org.apache.thrift.TException
1071
    {
1072
      getCreditHistoryRecordsForTransaction_args args = new getCreditHistoryRecordsForTransaction_args();
1073
      args.setPaymentId(paymentId);
1074
      args.setCreditorId(creditorId);
1075
      args.setCreditTxnType(creditTxnType);
1076
      sendBase("getCreditHistoryRecordsForTransaction", args);
1077
    }
1078
 
1079
    public List<CreditHistory> recv_getCreditHistoryRecordsForTransaction() throws org.apache.thrift.TException
1080
    {
1081
      getCreditHistoryRecordsForTransaction_result result = new getCreditHistoryRecordsForTransaction_result();
1082
      receiveBase(result, "getCreditHistoryRecordsForTransaction");
1083
      if (result.isSetSuccess()) {
1084
        return result.success;
1085
      }
1086
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForTransaction failed: unknown result");
1087
    }
1088
 
1089
    public List<CreditHistory> getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType) throws org.apache.thrift.TException
1090
    {
1091
      send_getCreditHistoryRecordsForUserAndCreditor(userId, creditTxnType);
1092
      return recv_getCreditHistoryRecordsForUserAndCreditor();
1093
    }
1094
 
1095
    public void send_getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType) throws org.apache.thrift.TException
1096
    {
1097
      getCreditHistoryRecordsForUserAndCreditor_args args = new getCreditHistoryRecordsForUserAndCreditor_args();
1098
      args.setUserId(userId);
1099
      args.setCreditTxnType(creditTxnType);
1100
      sendBase("getCreditHistoryRecordsForUserAndCreditor", args);
1101
    }
1102
 
1103
    public List<CreditHistory> recv_getCreditHistoryRecordsForUserAndCreditor() throws org.apache.thrift.TException
1104
    {
1105
      getCreditHistoryRecordsForUserAndCreditor_result result = new getCreditHistoryRecordsForUserAndCreditor_result();
1106
      receiveBase(result, "getCreditHistoryRecordsForUserAndCreditor");
1107
      if (result.isSetSuccess()) {
1108
        return result.success;
1109
      }
1110
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCreditHistoryRecordsForUserAndCreditor failed: unknown result");
1111
    }
1112
 
1113
    public boolean processCreditTransaction(long paymentId, List<CreditHistory> creditTxns) throws PaymentException, org.apache.thrift.TException
1114
    {
1115
      send_processCreditTransaction(paymentId, creditTxns);
1116
      return recv_processCreditTransaction();
1117
    }
1118
 
1119
    public void send_processCreditTransaction(long paymentId, List<CreditHistory> creditTxns) throws org.apache.thrift.TException
1120
    {
1121
      processCreditTransaction_args args = new processCreditTransaction_args();
1122
      args.setPaymentId(paymentId);
1123
      args.setCreditTxns(creditTxns);
1124
      sendBase("processCreditTransaction", args);
1125
    }
1126
 
1127
    public boolean recv_processCreditTransaction() throws PaymentException, org.apache.thrift.TException
1128
    {
1129
      processCreditTransaction_result result = new processCreditTransaction_result();
1130
      receiveBase(result, "processCreditTransaction");
1131
      if (result.isSetSuccess()) {
1132
        return result.success;
1133
      }
1134
      if (result.pe != null) {
1135
        throw result.pe;
1136
      }
1137
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "processCreditTransaction failed: unknown result");
1138
    }
1139
 
1140
    public List<CreditHistory> getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException
1141
    {
1142
      send_getLoanPayableForUserToCreditor(userId, creditorId, dueDate);
1143
      return recv_getLoanPayableForUserToCreditor();
1144
    }
1145
 
1146
    public void send_getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate) throws org.apache.thrift.TException
1147
    {
1148
      getLoanPayableForUserToCreditor_args args = new getLoanPayableForUserToCreditor_args();
1149
      args.setUserId(userId);
1150
      args.setCreditorId(creditorId);
1151
      args.setDueDate(dueDate);
1152
      sendBase("getLoanPayableForUserToCreditor", args);
1153
    }
1154
 
1155
    public List<CreditHistory> recv_getLoanPayableForUserToCreditor() throws org.apache.thrift.TException
1156
    {
1157
      getLoanPayableForUserToCreditor_result result = new getLoanPayableForUserToCreditor_result();
1158
      receiveBase(result, "getLoanPayableForUserToCreditor");
1159
      if (result.isSetSuccess()) {
1160
        return result.success;
1161
      }
1162
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLoanPayableForUserToCreditor failed: unknown result");
1163
    }
1164
 
123 ashish 1165
  }
3430 rajveer 1166
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1167
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1168
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1169
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1170
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1171
        this.clientManager = clientManager;
1172
        this.protocolFactory = protocolFactory;
1173
      }
1174
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1175
        return new AsyncClient(protocolFactory, clientManager, transport);
1176
      }
123 ashish 1177
    }
1178
 
3430 rajveer 1179
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1180
      super(protocolFactory, clientManager, transport);
1181
    }
123 ashish 1182
 
6050 anupam.sin 1183
    public void createPayment(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1184
      checkReady();
6050 anupam.sin 1185
      createPayment_call method_call = new createPayment_call(userId, amount, gatewayId, txnId, isDigital, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1186
      this.___currentMethod = method_call;
1187
      ___manager.call(method_call);
1188
    }
1189
 
1190
    public static class createPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1191
      private long userId;
1192
      private double amount;
1193
      private long gatewayId;
1194
      private long txnId;
6050 anupam.sin 1195
      private boolean isDigital;
1196
      public createPayment_call(long userId, double amount, long gatewayId, long txnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<createPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1197
        super(client, protocolFactory, transport, resultHandler, false);
1198
        this.userId = userId;
1199
        this.amount = amount;
1200
        this.gatewayId = gatewayId;
1201
        this.txnId = txnId;
6050 anupam.sin 1202
        this.isDigital = isDigital;
123 ashish 1203
      }
3430 rajveer 1204
 
1205
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1206
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1207
        createPayment_args args = new createPayment_args();
1208
        args.setUserId(userId);
1209
        args.setAmount(amount);
1210
        args.setGatewayId(gatewayId);
1211
        args.setTxnId(txnId);
6050 anupam.sin 1212
        args.setIsDigital(isDigital);
3430 rajveer 1213
        args.write(prot);
1214
        prot.writeMessageEnd();
1215
      }
1216
 
1217
      public long getResult() throws PaymentException, org.apache.thrift.TException {
1218
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1219
          throw new IllegalStateException("Method call not finished!");
1220
        }
1221
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1222
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1223
        return (new Client(prot)).recv_createPayment();
1224
      }
123 ashish 1225
    }
1226
 
3430 rajveer 1227
    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 {
1228
      checkReady();
1229
      getPaymentsForUser_call method_call = new getPaymentsForUser_call(userId, fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
1230
      this.___currentMethod = method_call;
1231
      ___manager.call(method_call);
1232
    }
1233
 
1234
    public static class getPaymentsForUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1235
      private long userId;
1236
      private long fromTime;
1237
      private long toTime;
1238
      private PaymentStatus status;
1239
      private long gatewayId;
1240
      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 {
1241
        super(client, protocolFactory, transport, resultHandler, false);
1242
        this.userId = userId;
1243
        this.fromTime = fromTime;
1244
        this.toTime = toTime;
1245
        this.status = status;
1246
        this.gatewayId = gatewayId;
1247
      }
1248
 
1249
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1250
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsForUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1251
        getPaymentsForUser_args args = new getPaymentsForUser_args();
1252
        args.setUserId(userId);
1253
        args.setFromTime(fromTime);
1254
        args.setToTime(toTime);
1255
        args.setStatus(status);
1256
        args.setGatewayId(gatewayId);
1257
        args.write(prot);
1258
        prot.writeMessageEnd();
1259
      }
1260
 
1261
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1262
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1263
          throw new IllegalStateException("Method call not finished!");
1264
        }
1265
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1267
        return (new Client(prot)).recv_getPaymentsForUser();
1268
      }
1269
    }
1270
 
1271
    public void getPayments(long fromTime, long toTime, PaymentStatus status, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPayments_call> resultHandler) throws org.apache.thrift.TException {
1272
      checkReady();
1273
      getPayments_call method_call = new getPayments_call(fromTime, toTime, status, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
1274
      this.___currentMethod = method_call;
1275
      ___manager.call(method_call);
1276
    }
1277
 
1278
    public static class getPayments_call extends org.apache.thrift.async.TAsyncMethodCall {
1279
      private long fromTime;
1280
      private long toTime;
1281
      private PaymentStatus status;
1282
      private long gatewayId;
1283
      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 {
1284
        super(client, protocolFactory, transport, resultHandler, false);
1285
        this.fromTime = fromTime;
1286
        this.toTime = toTime;
1287
        this.status = status;
1288
        this.gatewayId = gatewayId;
1289
      }
1290
 
1291
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1292
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayments", org.apache.thrift.protocol.TMessageType.CALL, 0));
1293
        getPayments_args args = new getPayments_args();
1294
        args.setFromTime(fromTime);
1295
        args.setToTime(toTime);
1296
        args.setStatus(status);
1297
        args.setGatewayId(gatewayId);
1298
        args.write(prot);
1299
        prot.writeMessageEnd();
1300
      }
1301
 
1302
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1303
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1304
          throw new IllegalStateException("Method call not finished!");
1305
        }
1306
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1307
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1308
        return (new Client(prot)).recv_getPayments();
1309
      }
1310
    }
1311
 
4141 chandransh 1312
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException {
1313
      checkReady();
1314
      getPaymentsByCapturedDate_call method_call = new getPaymentsByCapturedDate_call(fromTime, toTime, gatewayId, resultHandler, this, ___protocolFactory, ___transport);
1315
      this.___currentMethod = method_call;
1316
      ___manager.call(method_call);
1317
    }
1318
 
1319
    public static class getPaymentsByCapturedDate_call extends org.apache.thrift.async.TAsyncMethodCall {
1320
      private long fromTime;
1321
      private long toTime;
1322
      private long gatewayId;
1323
      public getPaymentsByCapturedDate_call(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<getPaymentsByCapturedDate_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1324
        super(client, protocolFactory, transport, resultHandler, false);
1325
        this.fromTime = fromTime;
1326
        this.toTime = toTime;
1327
        this.gatewayId = gatewayId;
1328
      }
1329
 
1330
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1331
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsByCapturedDate", org.apache.thrift.protocol.TMessageType.CALL, 0));
1332
        getPaymentsByCapturedDate_args args = new getPaymentsByCapturedDate_args();
1333
        args.setFromTime(fromTime);
1334
        args.setToTime(toTime);
1335
        args.setGatewayId(gatewayId);
1336
        args.write(prot);
1337
        prot.writeMessageEnd();
1338
      }
1339
 
1340
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1341
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1342
          throw new IllegalStateException("Method call not finished!");
1343
        }
1344
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1345
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1346
        return (new Client(prot)).recv_getPaymentsByCapturedDate();
1347
      }
1348
    }
1349
 
3430 rajveer 1350
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException {
1351
      checkReady();
1352
      getPaymentGateway_call method_call = new getPaymentGateway_call(id, resultHandler, this, ___protocolFactory, ___transport);
1353
      this.___currentMethod = method_call;
1354
      ___manager.call(method_call);
1355
    }
1356
 
1357
    public static class getPaymentGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
1358
      private long id;
1359
      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 {
1360
        super(client, protocolFactory, transport, resultHandler, false);
1361
        this.id = id;
1362
      }
1363
 
1364
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1365
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
1366
        getPaymentGateway_args args = new getPaymentGateway_args();
1367
        args.setId(id);
1368
        args.write(prot);
1369
        prot.writeMessageEnd();
1370
      }
1371
 
1372
      public PaymentGateway getResult() throws PaymentException, org.apache.thrift.TException {
1373
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1374
          throw new IllegalStateException("Method call not finished!");
1375
        }
1376
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1377
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1378
        return (new Client(prot)).recv_getPaymentGateway();
1379
      }
1380
    }
1381
 
4600 varun.gupt 1382
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException {
1383
      checkReady();
1384
      getActivePaymentGateways_call method_call = new getActivePaymentGateways_call(resultHandler, this, ___protocolFactory, ___transport);
1385
      this.___currentMethod = method_call;
1386
      ___manager.call(method_call);
1387
    }
1388
 
1389
    public static class getActivePaymentGateways_call extends org.apache.thrift.async.TAsyncMethodCall {
1390
      public getActivePaymentGateways_call(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1391
        super(client, protocolFactory, transport, resultHandler, false);
1392
      }
1393
 
1394
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1395
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivePaymentGateways", org.apache.thrift.protocol.TMessageType.CALL, 0));
1396
        getActivePaymentGateways_args args = new getActivePaymentGateways_args();
1397
        args.write(prot);
1398
        prot.writeMessageEnd();
1399
      }
1400
 
1401
      public List<PaymentGateway> getResult() throws PaymentException, org.apache.thrift.TException {
1402
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1403
          throw new IllegalStateException("Method call not finished!");
1404
        }
1405
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1406
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1407
        return (new Client(prot)).recv_getActivePaymentGateways();
1408
      }
1409
    }
1410
 
3430 rajveer 1411
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
1412
      checkReady();
1413
      getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
1414
      this.___currentMethod = method_call;
1415
      ___manager.call(method_call);
1416
    }
1417
 
1418
    public static class getPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1419
      private long id;
1420
      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 {
1421
        super(client, protocolFactory, transport, resultHandler, false);
1422
        this.id = id;
1423
      }
1424
 
1425
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1426
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1427
        getPayment_args args = new getPayment_args();
1428
        args.setId(id);
1429
        args.write(prot);
1430
        prot.writeMessageEnd();
1431
      }
1432
 
1433
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1434
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1435
          throw new IllegalStateException("Method call not finished!");
1436
        }
1437
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1438
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1439
        return (new Client(prot)).recv_getPayment();
1440
      }
1441
    }
1442
 
1443
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1444
      checkReady();
1445
      getPaymentForTxnId_call method_call = new getPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1446
      this.___currentMethod = method_call;
1447
      ___manager.call(method_call);
1448
    }
1449
 
1450
    public static class getPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1451
      private long txnId;
1452
      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 {
1453
        super(client, protocolFactory, transport, resultHandler, false);
1454
        this.txnId = txnId;
1455
      }
1456
 
1457
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1458
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1459
        getPaymentForTxnId_args args = new getPaymentForTxnId_args();
1460
        args.setTxnId(txnId);
1461
        args.write(prot);
1462
        prot.writeMessageEnd();
1463
      }
1464
 
1465
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1466
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1467
          throw new IllegalStateException("Method call not finished!");
1468
        }
1469
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1470
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1471
        return (new Client(prot)).recv_getPaymentForTxnId();
1472
      }
1473
    }
1474
 
7049 anupam.sin 1475
    public void getPaymentForRechargeTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForRechargeTxnId_call> resultHandler) throws org.apache.thrift.TException {
1476
      checkReady();
1477
      getPaymentForRechargeTxnId_call method_call = new getPaymentForRechargeTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1478
      this.___currentMethod = method_call;
1479
      ___manager.call(method_call);
1480
    }
1481
 
1482
    public static class getPaymentForRechargeTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1483
      private long txnId;
1484
      public getPaymentForRechargeTxnId_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<getPaymentForRechargeTxnId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1485
        super(client, protocolFactory, transport, resultHandler, false);
1486
        this.txnId = txnId;
1487
      }
1488
 
1489
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1490
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentForRechargeTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1491
        getPaymentForRechargeTxnId_args args = new getPaymentForRechargeTxnId_args();
1492
        args.setTxnId(txnId);
1493
        args.write(prot);
1494
        prot.writeMessageEnd();
1495
      }
1496
 
1497
      public List<Payment> getResult() throws PaymentException, org.apache.thrift.TException {
1498
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1499
          throw new IllegalStateException("Method call not finished!");
1500
        }
1501
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1502
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1503
        return (new Client(prot)).recv_getPaymentForRechargeTxnId();
1504
      }
1505
    }
1506
 
4600 varun.gupt 1507
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
1508
      checkReady();
1509
      getSuccessfulPaymentForTxnId_call method_call = new getSuccessfulPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
1510
      this.___currentMethod = method_call;
1511
      ___manager.call(method_call);
1512
    }
1513
 
1514
    public static class getSuccessfulPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
1515
      private long txnId;
1516
      public getSuccessfulPaymentForTxnId_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1517
        super(client, protocolFactory, transport, resultHandler, false);
1518
        this.txnId = txnId;
1519
      }
1520
 
1521
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1522
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
1523
        getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
1524
        args.setTxnId(txnId);
1525
        args.write(prot);
1526
        prot.writeMessageEnd();
1527
      }
1528
 
1529
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
1530
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1531
          throw new IllegalStateException("Method call not finished!");
1532
        }
1533
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1534
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1535
        return (new Client(prot)).recv_getSuccessfulPaymentForTxnId();
1536
      }
1537
    }
1538
 
3430 rajveer 1539
    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 {
1540
      checkReady();
1541
      updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
1542
      this.___currentMethod = method_call;
1543
      ___manager.call(method_call);
1544
    }
1545
 
1546
    public static class updatePaymentDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
1547
      private long id;
1548
      private String gatewayPaymentId;
1549
      private String sessionId;
1550
      private String gatewayTxnStatus;
1551
      private String description;
1552
      private String gatewayTxnId;
1553
      private String authCode;
1554
      private String referenceCode;
1555
      private String errorCode;
1556
      private PaymentStatus status;
1557
      private String gatewayTxnDate;
1558
      private List<Attribute> attributes;
1559
      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 {
1560
        super(client, protocolFactory, transport, resultHandler, false);
1561
        this.id = id;
1562
        this.gatewayPaymentId = gatewayPaymentId;
1563
        this.sessionId = sessionId;
1564
        this.gatewayTxnStatus = gatewayTxnStatus;
1565
        this.description = description;
1566
        this.gatewayTxnId = gatewayTxnId;
1567
        this.authCode = authCode;
1568
        this.referenceCode = referenceCode;
1569
        this.errorCode = errorCode;
1570
        this.status = status;
1571
        this.gatewayTxnDate = gatewayTxnDate;
1572
        this.attributes = attributes;
1573
      }
1574
 
1575
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1576
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePaymentDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
1577
        updatePaymentDetails_args args = new updatePaymentDetails_args();
1578
        args.setId(id);
1579
        args.setGatewayPaymentId(gatewayPaymentId);
1580
        args.setSessionId(sessionId);
1581
        args.setGatewayTxnStatus(gatewayTxnStatus);
1582
        args.setDescription(description);
1583
        args.setGatewayTxnId(gatewayTxnId);
1584
        args.setAuthCode(authCode);
1585
        args.setReferenceCode(referenceCode);
1586
        args.setErrorCode(errorCode);
1587
        args.setStatus(status);
1588
        args.setGatewayTxnDate(gatewayTxnDate);
1589
        args.setAttributes(attributes);
1590
        args.write(prot);
1591
        prot.writeMessageEnd();
1592
      }
1593
 
1594
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1595
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1596
          throw new IllegalStateException("Method call not finished!");
1597
        }
1598
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1599
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1600
        return (new Client(prot)).recv_updatePaymentDetails();
1601
      }
1602
    }
1603
 
1604
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException {
1605
      checkReady();
1606
      getSuccessfulPaymentsAmountRange_call method_call = new getSuccessfulPaymentsAmountRange_call(resultHandler, this, ___protocolFactory, ___transport);
1607
      this.___currentMethod = method_call;
1608
      ___manager.call(method_call);
1609
    }
1610
 
1611
    public static class getSuccessfulPaymentsAmountRange_call extends org.apache.thrift.async.TAsyncMethodCall {
1612
      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 {
1613
        super(client, protocolFactory, transport, resultHandler, false);
1614
      }
1615
 
1616
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1617
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentsAmountRange", org.apache.thrift.protocol.TMessageType.CALL, 0));
1618
        getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
1619
        args.write(prot);
1620
        prot.writeMessageEnd();
1621
      }
1622
 
1623
      public List<Double> getResult() throws org.apache.thrift.TException {
1624
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1625
          throw new IllegalStateException("Method call not finished!");
1626
        }
1627
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1628
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1629
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
1630
      }
1631
    }
1632
 
10269 amit.gupta 1633
    public void initializeHdfcPayment(long merchantPaymentId, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1634
      checkReady();
10269 amit.gupta 1635
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, isMobile, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1636
      this.___currentMethod = method_call;
1637
      ___manager.call(method_call);
1638
    }
1639
 
1640
    public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1641
      private long merchantPaymentId;
10269 amit.gupta 1642
      private boolean isMobile;
1643
      public initializeHdfcPayment_call(long merchantPaymentId, boolean isMobile, 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 {
3430 rajveer 1644
        super(client, protocolFactory, transport, resultHandler, false);
1645
        this.merchantPaymentId = merchantPaymentId;
10269 amit.gupta 1646
        this.isMobile = isMobile;
3430 rajveer 1647
      }
1648
 
1649
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1650
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1651
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
1652
        args.setMerchantPaymentId(merchantPaymentId);
10269 amit.gupta 1653
        args.setIsMobile(isMobile);
3430 rajveer 1654
        args.write(prot);
1655
        prot.writeMessageEnd();
1656
      }
1657
 
1658
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1659
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1660
          throw new IllegalStateException("Method call not finished!");
1661
        }
1662
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1663
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1664
        return (new Client(prot)).recv_initializeHdfcPayment();
1665
      }
1666
    }
1667
 
10269 amit.gupta 1668
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException {
6050 anupam.sin 1669
      checkReady();
10269 amit.gupta 1670
      doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, phone, isMobile, resultHandler, this, ___protocolFactory, ___transport);
6050 anupam.sin 1671
      this.___currentMethod = method_call;
1672
      ___manager.call(method_call);
1673
    }
1674
 
1675
    public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1676
      private long merchantPaymentId;
1677
      private long rechargeOrderId;
6228 anupam.sin 1678
      private String phone;
10269 amit.gupta 1679
      private boolean isMobile;
1680
      public doHdfcPaymentForDigitalOrder_call(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
6050 anupam.sin 1681
        super(client, protocolFactory, transport, resultHandler, false);
1682
        this.merchantPaymentId = merchantPaymentId;
1683
        this.rechargeOrderId = rechargeOrderId;
6228 anupam.sin 1684
        this.phone = phone;
10269 amit.gupta 1685
        this.isMobile = isMobile;
6050 anupam.sin 1686
      }
1687
 
1688
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1689
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doHdfcPaymentForDigitalOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1690
        doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
1691
        args.setMerchantPaymentId(merchantPaymentId);
1692
        args.setRechargeOrderId(rechargeOrderId);
6228 anupam.sin 1693
        args.setPhone(phone);
10269 amit.gupta 1694
        args.setIsMobile(isMobile);
6050 anupam.sin 1695
        args.write(prot);
1696
        prot.writeMessageEnd();
1697
      }
1698
 
1699
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1700
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1701
          throw new IllegalStateException("Method call not finished!");
1702
        }
1703
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1704
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1705
        return (new Client(prot)).recv_doHdfcPaymentForDigitalOrder();
1706
      }
1707
    }
1708
 
10269 amit.gupta 1709
    public void initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
3616 chandransh 1710
      checkReady();
10269 amit.gupta 1711
      initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, isMobile, resultHandler, this, ___protocolFactory, ___transport);
3616 chandransh 1712
      this.___currentMethod = method_call;
1713
      ___manager.call(method_call);
1714
    }
1715
 
1716
    public static class initializeHdfcEmiPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1717
      private long merchantPaymentId;
10269 amit.gupta 1718
      private boolean isMobile;
1719
      public initializeHdfcEmiPayment_call(long merchantPaymentId, boolean isMobile, 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 {
3616 chandransh 1720
        super(client, protocolFactory, transport, resultHandler, false);
1721
        this.merchantPaymentId = merchantPaymentId;
10269 amit.gupta 1722
        this.isMobile = isMobile;
3616 chandransh 1723
      }
1724
 
1725
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1726
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcEmiPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1727
        initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
1728
        args.setMerchantPaymentId(merchantPaymentId);
10269 amit.gupta 1729
        args.setIsMobile(isMobile);
3616 chandransh 1730
        args.write(prot);
1731
        prot.writeMessageEnd();
1732
      }
1733
 
1734
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1735
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1736
          throw new IllegalStateException("Method call not finished!");
1737
        }
1738
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1739
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1740
        return (new Client(prot)).recv_initializeHdfcEmiPayment();
1741
      }
1742
    }
1743
 
3430 rajveer 1744
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<createRefund_call> resultHandler) throws org.apache.thrift.TException {
1745
      checkReady();
1746
      createRefund_call method_call = new createRefund_call(orderId, merchantTxnId, amount, resultHandler, this, ___protocolFactory, ___transport);
1747
      this.___currentMethod = method_call;
1748
      ___manager.call(method_call);
1749
    }
1750
 
1751
    public static class createRefund_call extends org.apache.thrift.async.TAsyncMethodCall {
1752
      private long orderId;
1753
      private long merchantTxnId;
1754
      private double amount;
1755
      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 {
1756
        super(client, protocolFactory, transport, resultHandler, false);
1757
        this.orderId = orderId;
1758
        this.merchantTxnId = merchantTxnId;
1759
        this.amount = amount;
1760
      }
1761
 
1762
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1763
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createRefund", org.apache.thrift.protocol.TMessageType.CALL, 0));
1764
        createRefund_args args = new createRefund_args();
1765
        args.setOrderId(orderId);
1766
        args.setMerchantTxnId(merchantTxnId);
1767
        args.setAmount(amount);
1768
        args.write(prot);
1769
        prot.writeMessageEnd();
1770
      }
1771
 
1772
      public long getResult() throws PaymentException, org.apache.thrift.TException {
1773
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1774
          throw new IllegalStateException("Method call not finished!");
1775
        }
1776
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1777
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1778
        return (new Client(prot)).recv_createRefund();
1779
      }
1780
    }
1781
 
8618 rajveer 1782
    public void capturePayment(long merchantTxnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1783
      checkReady();
8618 rajveer 1784
      capturePayment_call method_call = new capturePayment_call(merchantTxnId, isDigital, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1785
      this.___currentMethod = method_call;
1786
      ___manager.call(method_call);
1787
    }
1788
 
1789
    public static class capturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1790
      private long merchantTxnId;
8618 rajveer 1791
      private boolean isDigital;
1792
      public capturePayment_call(long merchantTxnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<capturePayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1793
        super(client, protocolFactory, transport, resultHandler, false);
1794
        this.merchantTxnId = merchantTxnId;
8618 rajveer 1795
        this.isDigital = isDigital;
3430 rajveer 1796
      }
1797
 
1798
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1799
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("capturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1800
        capturePayment_args args = new capturePayment_args();
1801
        args.setMerchantTxnId(merchantTxnId);
8618 rajveer 1802
        args.setIsDigital(isDigital);
3430 rajveer 1803
        args.write(prot);
1804
        prot.writeMessageEnd();
1805
      }
1806
 
1807
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1808
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1809
          throw new IllegalStateException("Method call not finished!");
1810
        }
1811
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1812
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1813
        return (new Client(prot)).recv_capturePayment();
1814
      }
1815
    }
1816
 
6486 rajveer 1817
    public void refundPayment(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<refundPayment_call> resultHandler) throws org.apache.thrift.TException {
1818
      checkReady();
1819
      refundPayment_call method_call = new refundPayment_call(merchantTxnId, amount, isDigital, resultHandler, this, ___protocolFactory, ___transport);
1820
      this.___currentMethod = method_call;
1821
      ___manager.call(method_call);
1822
    }
1823
 
1824
    public static class refundPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1825
      private long merchantTxnId;
1826
      private double amount;
1827
      private boolean isDigital;
1828
      public refundPayment_call(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<refundPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1829
        super(client, protocolFactory, transport, resultHandler, false);
1830
        this.merchantTxnId = merchantTxnId;
1831
        this.amount = amount;
1832
        this.isDigital = isDigital;
1833
      }
1834
 
1835
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1836
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("refundPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1837
        refundPayment_args args = new refundPayment_args();
1838
        args.setMerchantTxnId(merchantTxnId);
1839
        args.setAmount(amount);
1840
        args.setIsDigital(isDigital);
1841
        args.write(prot);
1842
        prot.writeMessageEnd();
1843
      }
1844
 
1845
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1846
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1847
          throw new IllegalStateException("Method call not finished!");
1848
        }
1849
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1850
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1851
        return (new Client(prot)).recv_refundPayment();
1852
      }
1853
    }
1854
 
3956 chandransh 1855
    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 {
1856
      checkReady();
1857
      partiallyCapturePayment_call method_call = new partiallyCapturePayment_call(merchantTxnId, amount, xferBy, xferTxnId, xferDate, resultHandler, this, ___protocolFactory, ___transport);
1858
      this.___currentMethod = method_call;
1859
      ___manager.call(method_call);
1860
    }
1861
 
1862
    public static class partiallyCapturePayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1863
      private long merchantTxnId;
1864
      private double amount;
1865
      private String xferBy;
1866
      private String xferTxnId;
1867
      private long xferDate;
1868
      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 {
1869
        super(client, protocolFactory, transport, resultHandler, false);
1870
        this.merchantTxnId = merchantTxnId;
1871
        this.amount = amount;
1872
        this.xferBy = xferBy;
1873
        this.xferTxnId = xferTxnId;
1874
        this.xferDate = xferDate;
1875
      }
1876
 
1877
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1878
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("partiallyCapturePayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1879
        partiallyCapturePayment_args args = new partiallyCapturePayment_args();
1880
        args.setMerchantTxnId(merchantTxnId);
1881
        args.setAmount(amount);
1882
        args.setXferBy(xferBy);
1883
        args.setXferTxnId(xferTxnId);
1884
        args.setXferDate(xferDate);
1885
        args.write(prot);
1886
        prot.writeMessageEnd();
1887
      }
1888
 
1889
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
1890
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1891
          throw new IllegalStateException("Method call not finished!");
1892
        }
1893
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1894
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1895
        return (new Client(prot)).recv_partiallyCapturePayment();
1896
      }
1897
    }
1898
 
4008 mandeep.dh 1899
    public void getPaymentsRequiringExtraProcessing(ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<getPaymentsRequiringExtraProcessing_call> resultHandler) throws org.apache.thrift.TException {
1900
      checkReady();
1901
      getPaymentsRequiringExtraProcessing_call method_call = new getPaymentsRequiringExtraProcessing_call(category, resultHandler, this, ___protocolFactory, ___transport);
1902
      this.___currentMethod = method_call;
1903
      ___manager.call(method_call);
1904
    }
1905
 
1906
    public static class getPaymentsRequiringExtraProcessing_call extends org.apache.thrift.async.TAsyncMethodCall {
1907
      private ExtraPaymentProcessingType category;
1908
      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 {
1909
        super(client, protocolFactory, transport, resultHandler, false);
1910
        this.category = category;
1911
      }
1912
 
1913
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1914
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentsRequiringExtraProcessing", org.apache.thrift.protocol.TMessageType.CALL, 0));
1915
        getPaymentsRequiringExtraProcessing_args args = new getPaymentsRequiringExtraProcessing_args();
1916
        args.setCategory(category);
1917
        args.write(prot);
1918
        prot.writeMessageEnd();
1919
      }
1920
 
1921
      public List<Long> getResult() throws org.apache.thrift.TException {
1922
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1923
          throw new IllegalStateException("Method call not finished!");
1924
        }
1925
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1926
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1927
        return (new Client(prot)).recv_getPaymentsRequiringExtraProcessing();
1928
      }
1929
    }
1930
 
1931
    public void markPaymentAsProcessed(long paymentId, ExtraPaymentProcessingType category, org.apache.thrift.async.AsyncMethodCallback<markPaymentAsProcessed_call> resultHandler) throws org.apache.thrift.TException {
1932
      checkReady();
1933
      markPaymentAsProcessed_call method_call = new markPaymentAsProcessed_call(paymentId, category, resultHandler, this, ___protocolFactory, ___transport);
1934
      this.___currentMethod = method_call;
1935
      ___manager.call(method_call);
1936
    }
1937
 
1938
    public static class markPaymentAsProcessed_call extends org.apache.thrift.async.TAsyncMethodCall {
1939
      private long paymentId;
1940
      private ExtraPaymentProcessingType category;
1941
      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 {
1942
        super(client, protocolFactory, transport, resultHandler, false);
1943
        this.paymentId = paymentId;
1944
        this.category = category;
1945
      }
1946
 
1947
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1948
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markPaymentAsProcessed", org.apache.thrift.protocol.TMessageType.CALL, 0));
1949
        markPaymentAsProcessed_args args = new markPaymentAsProcessed_args();
1950
        args.setPaymentId(paymentId);
1951
        args.setCategory(category);
1952
        args.write(prot);
1953
        prot.writeMessageEnd();
1954
      }
1955
 
1956
      public void getResult() throws org.apache.thrift.TException {
1957
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1958
          throw new IllegalStateException("Method call not finished!");
1959
        }
1960
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1961
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1962
        (new Client(prot)).recv_markPaymentAsProcessed();
1963
      }
1964
    }
1965
 
8914 rajveer 1966
    public void getPaymentStatusAtGateway(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<getPaymentStatusAtGateway_call> resultHandler) throws org.apache.thrift.TException {
8907 rajveer 1967
      checkReady();
8914 rajveer 1968
      getPaymentStatusAtGateway_call method_call = new getPaymentStatusAtGateway_call(merchantTxnId, amount, isDigital, resultHandler, this, ___protocolFactory, ___transport);
8907 rajveer 1969
      this.___currentMethod = method_call;
1970
      ___manager.call(method_call);
1971
    }
1972
 
8914 rajveer 1973
    public static class getPaymentStatusAtGateway_call extends org.apache.thrift.async.TAsyncMethodCall {
8907 rajveer 1974
      private long merchantTxnId;
1975
      private double amount;
1976
      private boolean isDigital;
8914 rajveer 1977
      public getPaymentStatusAtGateway_call(long merchantTxnId, double amount, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<getPaymentStatusAtGateway_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 {
8907 rajveer 1978
        super(client, protocolFactory, transport, resultHandler, false);
1979
        this.merchantTxnId = merchantTxnId;
1980
        this.amount = amount;
1981
        this.isDigital = isDigital;
1982
      }
1983
 
1984
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
8914 rajveer 1985
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPaymentStatusAtGateway", org.apache.thrift.protocol.TMessageType.CALL, 0));
1986
        getPaymentStatusAtGateway_args args = new getPaymentStatusAtGateway_args();
8907 rajveer 1987
        args.setMerchantTxnId(merchantTxnId);
1988
        args.setAmount(amount);
1989
        args.setIsDigital(isDigital);
1990
        args.write(prot);
1991
        prot.writeMessageEnd();
1992
      }
1993
 
8914 rajveer 1994
      public PaymentStatus getResult() throws PaymentException, org.apache.thrift.TException {
8907 rajveer 1995
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1996
          throw new IllegalStateException("Method call not finished!");
1997
        }
1998
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1999
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
8914 rajveer 2000
        return (new Client(prot)).recv_getPaymentStatusAtGateway();
8907 rajveer 2001
      }
2002
    }
2003
 
18577 manish.sha 2004
    public void getCreditorInfo(long id, String name, org.apache.thrift.async.AsyncMethodCallback<getCreditorInfo_call> resultHandler) throws org.apache.thrift.TException {
2005
      checkReady();
2006
      getCreditorInfo_call method_call = new getCreditorInfo_call(id, name, resultHandler, this, ___protocolFactory, ___transport);
2007
      this.___currentMethod = method_call;
2008
      ___manager.call(method_call);
2009
    }
2010
 
2011
    public static class getCreditorInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2012
      private long id;
2013
      private String name;
2014
      public getCreditorInfo_call(long id, String name, org.apache.thrift.async.AsyncMethodCallback<getCreditorInfo_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 {
2015
        super(client, protocolFactory, transport, resultHandler, false);
2016
        this.id = id;
2017
        this.name = name;
2018
      }
2019
 
2020
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2021
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditorInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2022
        getCreditorInfo_args args = new getCreditorInfo_args();
2023
        args.setId(id);
2024
        args.setName(name);
2025
        args.write(prot);
2026
        prot.writeMessageEnd();
2027
      }
2028
 
2029
      public Creditor getResult() throws org.apache.thrift.TException {
2030
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2031
          throw new IllegalStateException("Method call not finished!");
2032
        }
2033
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2034
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2035
        return (new Client(prot)).recv_getCreditorInfo();
2036
      }
2037
    }
2038
 
2039
    public void updateCreditorInfo(Creditor creditor, org.apache.thrift.async.AsyncMethodCallback<updateCreditorInfo_call> resultHandler) throws org.apache.thrift.TException {
2040
      checkReady();
2041
      updateCreditorInfo_call method_call = new updateCreditorInfo_call(creditor, resultHandler, this, ___protocolFactory, ___transport);
2042
      this.___currentMethod = method_call;
2043
      ___manager.call(method_call);
2044
    }
2045
 
2046
    public static class updateCreditorInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2047
      private Creditor creditor;
2048
      public updateCreditorInfo_call(Creditor creditor, org.apache.thrift.async.AsyncMethodCallback<updateCreditorInfo_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 {
2049
        super(client, protocolFactory, transport, resultHandler, false);
2050
        this.creditor = creditor;
2051
      }
2052
 
2053
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2054
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateCreditorInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2055
        updateCreditorInfo_args args = new updateCreditorInfo_args();
2056
        args.setCreditor(creditor);
2057
        args.write(prot);
2058
        prot.writeMessageEnd();
2059
      }
2060
 
2061
      public boolean getResult() throws org.apache.thrift.TException {
2062
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2063
          throw new IllegalStateException("Method call not finished!");
2064
        }
2065
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2066
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2067
        return (new Client(prot)).recv_updateCreditorInfo();
2068
      }
2069
    }
2070
 
2071
    public void getUserSanctionDetails(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSanctionDetails_call> resultHandler) throws org.apache.thrift.TException {
2072
      checkReady();
2073
      getUserSanctionDetails_call method_call = new getUserSanctionDetails_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2074
      this.___currentMethod = method_call;
2075
      ___manager.call(method_call);
2076
    }
2077
 
2078
    public static class getUserSanctionDetails_call extends org.apache.thrift.async.TAsyncMethodCall {
2079
      private long userId;
2080
      public getUserSanctionDetails_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSanctionDetails_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 {
2081
        super(client, protocolFactory, transport, resultHandler, false);
2082
        this.userId = userId;
2083
      }
2084
 
2085
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2086
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserSanctionDetails", org.apache.thrift.protocol.TMessageType.CALL, 0));
2087
        getUserSanctionDetails_args args = new getUserSanctionDetails_args();
2088
        args.setUserId(userId);
2089
        args.write(prot);
2090
        prot.writeMessageEnd();
2091
      }
2092
 
2093
      public List<UserSanction> getResult() throws org.apache.thrift.TException {
2094
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2095
          throw new IllegalStateException("Method call not finished!");
2096
        }
2097
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2098
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2099
        return (new Client(prot)).recv_getUserSanctionDetails();
2100
      }
2101
    }
2102
 
2103
    public void getUserSanctionDetailsForCreditor(long userId, long creditorId, org.apache.thrift.async.AsyncMethodCallback<getUserSanctionDetailsForCreditor_call> resultHandler) throws org.apache.thrift.TException {
2104
      checkReady();
2105
      getUserSanctionDetailsForCreditor_call method_call = new getUserSanctionDetailsForCreditor_call(userId, creditorId, resultHandler, this, ___protocolFactory, ___transport);
2106
      this.___currentMethod = method_call;
2107
      ___manager.call(method_call);
2108
    }
2109
 
2110
    public static class getUserSanctionDetailsForCreditor_call extends org.apache.thrift.async.TAsyncMethodCall {
2111
      private long userId;
2112
      private long creditorId;
2113
      public getUserSanctionDetailsForCreditor_call(long userId, long creditorId, org.apache.thrift.async.AsyncMethodCallback<getUserSanctionDetailsForCreditor_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 {
2114
        super(client, protocolFactory, transport, resultHandler, false);
2115
        this.userId = userId;
2116
        this.creditorId = creditorId;
2117
      }
2118
 
2119
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2120
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserSanctionDetailsForCreditor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2121
        getUserSanctionDetailsForCreditor_args args = new getUserSanctionDetailsForCreditor_args();
2122
        args.setUserId(userId);
2123
        args.setCreditorId(creditorId);
2124
        args.write(prot);
2125
        prot.writeMessageEnd();
2126
      }
2127
 
2128
      public UserSanction getResult() throws org.apache.thrift.TException {
2129
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2130
          throw new IllegalStateException("Method call not finished!");
2131
        }
2132
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2133
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2134
        return (new Client(prot)).recv_getUserSanctionDetailsForCreditor();
2135
      }
2136
    }
2137
 
2138
    public void updateUserSanction(UserSanction userSanaction, org.apache.thrift.async.AsyncMethodCallback<updateUserSanction_call> resultHandler) throws org.apache.thrift.TException {
2139
      checkReady();
2140
      updateUserSanction_call method_call = new updateUserSanction_call(userSanaction, resultHandler, this, ___protocolFactory, ___transport);
2141
      this.___currentMethod = method_call;
2142
      ___manager.call(method_call);
2143
    }
2144
 
2145
    public static class updateUserSanction_call extends org.apache.thrift.async.TAsyncMethodCall {
2146
      private UserSanction userSanaction;
2147
      public updateUserSanction_call(UserSanction userSanaction, org.apache.thrift.async.AsyncMethodCallback<updateUserSanction_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 {
2148
        super(client, protocolFactory, transport, resultHandler, false);
2149
        this.userSanaction = userSanaction;
2150
      }
2151
 
2152
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2153
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUserSanction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2154
        updateUserSanction_args args = new updateUserSanction_args();
2155
        args.setUserSanaction(userSanaction);
2156
        args.write(prot);
2157
        prot.writeMessageEnd();
2158
      }
2159
 
2160
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
2161
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2162
          throw new IllegalStateException("Method call not finished!");
2163
        }
2164
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2165
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2166
        return (new Client(prot)).recv_updateUserSanction();
2167
      }
2168
    }
2169
 
2170
    public void getCreditHistoryRecordsForTransaction(long paymentId, long creditorId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForTransaction_call> resultHandler) throws org.apache.thrift.TException {
2171
      checkReady();
2172
      getCreditHistoryRecordsForTransaction_call method_call = new getCreditHistoryRecordsForTransaction_call(paymentId, creditorId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
2173
      this.___currentMethod = method_call;
2174
      ___manager.call(method_call);
2175
    }
2176
 
2177
    public static class getCreditHistoryRecordsForTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2178
      private long paymentId;
2179
      private long creditorId;
2180
      private String creditTxnType;
2181
      public getCreditHistoryRecordsForTransaction_call(long paymentId, long creditorId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForTransaction_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 {
2182
        super(client, protocolFactory, transport, resultHandler, false);
2183
        this.paymentId = paymentId;
2184
        this.creditorId = creditorId;
2185
        this.creditTxnType = creditTxnType;
2186
      }
2187
 
2188
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2189
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditHistoryRecordsForTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2190
        getCreditHistoryRecordsForTransaction_args args = new getCreditHistoryRecordsForTransaction_args();
2191
        args.setPaymentId(paymentId);
2192
        args.setCreditorId(creditorId);
2193
        args.setCreditTxnType(creditTxnType);
2194
        args.write(prot);
2195
        prot.writeMessageEnd();
2196
      }
2197
 
2198
      public List<CreditHistory> getResult() throws org.apache.thrift.TException {
2199
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2200
          throw new IllegalStateException("Method call not finished!");
2201
        }
2202
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2203
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2204
        return (new Client(prot)).recv_getCreditHistoryRecordsForTransaction();
2205
      }
2206
    }
2207
 
2208
    public void getCreditHistoryRecordsForUserAndCreditor(long userId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForUserAndCreditor_call> resultHandler) throws org.apache.thrift.TException {
2209
      checkReady();
2210
      getCreditHistoryRecordsForUserAndCreditor_call method_call = new getCreditHistoryRecordsForUserAndCreditor_call(userId, creditTxnType, resultHandler, this, ___protocolFactory, ___transport);
2211
      this.___currentMethod = method_call;
2212
      ___manager.call(method_call);
2213
    }
2214
 
2215
    public static class getCreditHistoryRecordsForUserAndCreditor_call extends org.apache.thrift.async.TAsyncMethodCall {
2216
      private long userId;
2217
      private String creditTxnType;
2218
      public getCreditHistoryRecordsForUserAndCreditor_call(long userId, String creditTxnType, org.apache.thrift.async.AsyncMethodCallback<getCreditHistoryRecordsForUserAndCreditor_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 {
2219
        super(client, protocolFactory, transport, resultHandler, false);
2220
        this.userId = userId;
2221
        this.creditTxnType = creditTxnType;
2222
      }
2223
 
2224
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2225
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getCreditHistoryRecordsForUserAndCreditor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2226
        getCreditHistoryRecordsForUserAndCreditor_args args = new getCreditHistoryRecordsForUserAndCreditor_args();
2227
        args.setUserId(userId);
2228
        args.setCreditTxnType(creditTxnType);
2229
        args.write(prot);
2230
        prot.writeMessageEnd();
2231
      }
2232
 
2233
      public List<CreditHistory> getResult() throws org.apache.thrift.TException {
2234
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2235
          throw new IllegalStateException("Method call not finished!");
2236
        }
2237
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2239
        return (new Client(prot)).recv_getCreditHistoryRecordsForUserAndCreditor();
2240
      }
2241
    }
2242
 
2243
    public void processCreditTransaction(long paymentId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<processCreditTransaction_call> resultHandler) throws org.apache.thrift.TException {
2244
      checkReady();
2245
      processCreditTransaction_call method_call = new processCreditTransaction_call(paymentId, creditTxns, resultHandler, this, ___protocolFactory, ___transport);
2246
      this.___currentMethod = method_call;
2247
      ___manager.call(method_call);
2248
    }
2249
 
2250
    public static class processCreditTransaction_call extends org.apache.thrift.async.TAsyncMethodCall {
2251
      private long paymentId;
2252
      private List<CreditHistory> creditTxns;
2253
      public processCreditTransaction_call(long paymentId, List<CreditHistory> creditTxns, org.apache.thrift.async.AsyncMethodCallback<processCreditTransaction_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 {
2254
        super(client, protocolFactory, transport, resultHandler, false);
2255
        this.paymentId = paymentId;
2256
        this.creditTxns = creditTxns;
2257
      }
2258
 
2259
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2260
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("processCreditTransaction", org.apache.thrift.protocol.TMessageType.CALL, 0));
2261
        processCreditTransaction_args args = new processCreditTransaction_args();
2262
        args.setPaymentId(paymentId);
2263
        args.setCreditTxns(creditTxns);
2264
        args.write(prot);
2265
        prot.writeMessageEnd();
2266
      }
2267
 
2268
      public boolean getResult() throws PaymentException, org.apache.thrift.TException {
2269
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2270
          throw new IllegalStateException("Method call not finished!");
2271
        }
2272
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2273
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2274
        return (new Client(prot)).recv_processCreditTransaction();
2275
      }
2276
    }
2277
 
2278
    public void getLoanPayableForUserToCreditor(long userId, long creditorId, long dueDate, org.apache.thrift.async.AsyncMethodCallback<getLoanPayableForUserToCreditor_call> resultHandler) throws org.apache.thrift.TException {
2279
      checkReady();
2280
      getLoanPayableForUserToCreditor_call method_call = new getLoanPayableForUserToCreditor_call(userId, creditorId, dueDate, resultHandler, this, ___protocolFactory, ___transport);
2281
      this.___currentMethod = method_call;
2282
      ___manager.call(method_call);
2283
    }
2284
 
2285
    public static class getLoanPayableForUserToCreditor_call extends org.apache.thrift.async.TAsyncMethodCall {
2286
      private long userId;
2287
      private long creditorId;
2288
      private long dueDate;
2289
      public getLoanPayableForUserToCreditor_call(long userId, long creditorId, long dueDate, org.apache.thrift.async.AsyncMethodCallback<getLoanPayableForUserToCreditor_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 {
2290
        super(client, protocolFactory, transport, resultHandler, false);
2291
        this.userId = userId;
2292
        this.creditorId = creditorId;
2293
        this.dueDate = dueDate;
2294
      }
2295
 
2296
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2297
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLoanPayableForUserToCreditor", org.apache.thrift.protocol.TMessageType.CALL, 0));
2298
        getLoanPayableForUserToCreditor_args args = new getLoanPayableForUserToCreditor_args();
2299
        args.setUserId(userId);
2300
        args.setCreditorId(creditorId);
2301
        args.setDueDate(dueDate);
2302
        args.write(prot);
2303
        prot.writeMessageEnd();
2304
      }
2305
 
2306
      public List<CreditHistory> getResult() throws org.apache.thrift.TException {
2307
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2308
          throw new IllegalStateException("Method call not finished!");
2309
        }
2310
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2311
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2312
        return (new Client(prot)).recv_getLoanPayableForUserToCreditor();
2313
      }
2314
    }
2315
 
3430 rajveer 2316
  }
2317
 
2318
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2319
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2320
    public Processor(I iface) {
2321
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2322
    }
2323
 
2324
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2325
      super(iface, getProcessMap(processMap));
2326
    }
2327
 
2328
    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) {
2329
      processMap.put("createPayment", new createPayment());
2330
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
2331
      processMap.put("getPayments", new getPayments());
4141 chandransh 2332
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
3430 rajveer 2333
      processMap.put("getPaymentGateway", new getPaymentGateway());
4600 varun.gupt 2334
      processMap.put("getActivePaymentGateways", new getActivePaymentGateways());
3430 rajveer 2335
      processMap.put("getPayment", new getPayment());
2336
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
7049 anupam.sin 2337
      processMap.put("getPaymentForRechargeTxnId", new getPaymentForRechargeTxnId());
4600 varun.gupt 2338
      processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
3430 rajveer 2339
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
2340
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
2341
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
6050 anupam.sin 2342
      processMap.put("doHdfcPaymentForDigitalOrder", new doHdfcPaymentForDigitalOrder());
3616 chandransh 2343
      processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
3430 rajveer 2344
      processMap.put("createRefund", new createRefund());
2345
      processMap.put("capturePayment", new capturePayment());
6486 rajveer 2346
      processMap.put("refundPayment", new refundPayment());
3956 chandransh 2347
      processMap.put("partiallyCapturePayment", new partiallyCapturePayment());
4008 mandeep.dh 2348
      processMap.put("getPaymentsRequiringExtraProcessing", new getPaymentsRequiringExtraProcessing());
2349
      processMap.put("markPaymentAsProcessed", new markPaymentAsProcessed());
8914 rajveer 2350
      processMap.put("getPaymentStatusAtGateway", new getPaymentStatusAtGateway());
18577 manish.sha 2351
      processMap.put("getCreditorInfo", new getCreditorInfo());
2352
      processMap.put("updateCreditorInfo", new updateCreditorInfo());
2353
      processMap.put("getUserSanctionDetails", new getUserSanctionDetails());
2354
      processMap.put("getUserSanctionDetailsForCreditor", new getUserSanctionDetailsForCreditor());
2355
      processMap.put("updateUserSanction", new updateUserSanction());
2356
      processMap.put("getCreditHistoryRecordsForTransaction", new getCreditHistoryRecordsForTransaction());
2357
      processMap.put("getCreditHistoryRecordsForUserAndCreditor", new getCreditHistoryRecordsForUserAndCreditor());
2358
      processMap.put("processCreditTransaction", new processCreditTransaction());
2359
      processMap.put("getLoanPayableForUserToCreditor", new getLoanPayableForUserToCreditor());
3430 rajveer 2360
      return processMap;
2361
    }
2362
 
2363
    private static class createPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createPayment_args> {
2364
      public createPayment() {
2365
        super("createPayment");
2366
      }
2367
 
2368
      protected createPayment_args getEmptyArgsInstance() {
2369
        return new createPayment_args();
2370
      }
2371
 
2372
      protected createPayment_result getResult(I iface, createPayment_args args) throws org.apache.thrift.TException {
123 ashish 2373
        createPayment_result result = new createPayment_result();
2374
        try {
6050 anupam.sin 2375
          result.success = iface.createPayment(args.userId, args.amount, args.gatewayId, args.txnId, args.isDigital);
420 ashish 2376
          result.setSuccessIsSet(true);
123 ashish 2377
        } catch (PaymentException pe) {
2378
          result.pe = pe;
2379
        }
3430 rajveer 2380
        return result;
123 ashish 2381
      }
2382
    }
2383
 
3430 rajveer 2384
    private static class getPaymentsForUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsForUser_args> {
2385
      public getPaymentsForUser() {
2386
        super("getPaymentsForUser");
2387
      }
2388
 
2389
      protected getPaymentsForUser_args getEmptyArgsInstance() {
2390
        return new getPaymentsForUser_args();
2391
      }
2392
 
2393
      protected getPaymentsForUser_result getResult(I iface, getPaymentsForUser_args args) throws org.apache.thrift.TException {
123 ashish 2394
        getPaymentsForUser_result result = new getPaymentsForUser_result();
2395
        try {
3430 rajveer 2396
          result.success = iface.getPaymentsForUser(args.userId, args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 2397
        } catch (PaymentException pe) {
2398
          result.pe = pe;
2399
        }
3430 rajveer 2400
        return result;
123 ashish 2401
      }
2402
    }
2403
 
3430 rajveer 2404
    private static class getPayments<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayments_args> {
2405
      public getPayments() {
2406
        super("getPayments");
2407
      }
2408
 
2409
      protected getPayments_args getEmptyArgsInstance() {
2410
        return new getPayments_args();
2411
      }
2412
 
2413
      protected getPayments_result getResult(I iface, getPayments_args args) throws org.apache.thrift.TException {
123 ashish 2414
        getPayments_result result = new getPayments_result();
2415
        try {
3430 rajveer 2416
          result.success = iface.getPayments(args.fromTime, args.toTime, args.status, args.gatewayId);
123 ashish 2417
        } catch (PaymentException pe) {
2418
          result.pe = pe;
2419
        }
3430 rajveer 2420
        return result;
123 ashish 2421
      }
2422
    }
2423
 
4141 chandransh 2424
    private static class getPaymentsByCapturedDate<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsByCapturedDate_args> {
2425
      public getPaymentsByCapturedDate() {
2426
        super("getPaymentsByCapturedDate");
2427
      }
2428
 
2429
      protected getPaymentsByCapturedDate_args getEmptyArgsInstance() {
2430
        return new getPaymentsByCapturedDate_args();
2431
      }
2432
 
2433
      protected getPaymentsByCapturedDate_result getResult(I iface, getPaymentsByCapturedDate_args args) throws org.apache.thrift.TException {
2434
        getPaymentsByCapturedDate_result result = new getPaymentsByCapturedDate_result();
2435
        try {
2436
          result.success = iface.getPaymentsByCapturedDate(args.fromTime, args.toTime, args.gatewayId);
2437
        } catch (PaymentException pe) {
2438
          result.pe = pe;
2439
        }
2440
        return result;
2441
      }
2442
    }
2443
 
3430 rajveer 2444
    private static class getPaymentGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentGateway_args> {
2445
      public getPaymentGateway() {
2446
        super("getPaymentGateway");
2447
      }
2448
 
2449
      protected getPaymentGateway_args getEmptyArgsInstance() {
2450
        return new getPaymentGateway_args();
2451
      }
2452
 
2453
      protected getPaymentGateway_result getResult(I iface, getPaymentGateway_args args) throws org.apache.thrift.TException {
420 ashish 2454
        getPaymentGateway_result result = new getPaymentGateway_result();
2455
        try {
3430 rajveer 2456
          result.success = iface.getPaymentGateway(args.id);
420 ashish 2457
        } catch (PaymentException pe) {
2458
          result.pe = pe;
2459
        }
3430 rajveer 2460
        return result;
420 ashish 2461
      }
2462
    }
2463
 
4600 varun.gupt 2464
    private static class getActivePaymentGateways<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivePaymentGateways_args> {
2465
      public getActivePaymentGateways() {
2466
        super("getActivePaymentGateways");
2467
      }
2468
 
2469
      protected getActivePaymentGateways_args getEmptyArgsInstance() {
2470
        return new getActivePaymentGateways_args();
2471
      }
2472
 
2473
      protected getActivePaymentGateways_result getResult(I iface, getActivePaymentGateways_args args) throws org.apache.thrift.TException {
2474
        getActivePaymentGateways_result result = new getActivePaymentGateways_result();
2475
        try {
2476
          result.success = iface.getActivePaymentGateways();
2477
        } catch (PaymentException pe) {
2478
          result.pe = pe;
2479
        }
2480
        return result;
2481
      }
2482
    }
2483
 
3430 rajveer 2484
    private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
2485
      public getPayment() {
2486
        super("getPayment");
2487
      }
2488
 
2489
      protected getPayment_args getEmptyArgsInstance() {
2490
        return new getPayment_args();
2491
      }
2492
 
2493
      protected getPayment_result getResult(I iface, getPayment_args args) throws org.apache.thrift.TException {
695 rajveer 2494
        getPayment_result result = new getPayment_result();
420 ashish 2495
        try {
3430 rajveer 2496
          result.success = iface.getPayment(args.id);
420 ashish 2497
        } catch (PaymentException pe) {
2498
          result.pe = pe;
2499
        }
3430 rajveer 2500
        return result;
420 ashish 2501
      }
2502
    }
2503
 
3430 rajveer 2504
    private static class getPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForTxnId_args> {
2505
      public getPaymentForTxnId() {
2506
        super("getPaymentForTxnId");
2507
      }
2508
 
2509
      protected getPaymentForTxnId_args getEmptyArgsInstance() {
2510
        return new getPaymentForTxnId_args();
2511
      }
2512
 
2513
      protected getPaymentForTxnId_result getResult(I iface, getPaymentForTxnId_args args) throws org.apache.thrift.TException {
695 rajveer 2514
        getPaymentForTxnId_result result = new getPaymentForTxnId_result();
420 ashish 2515
        try {
3430 rajveer 2516
          result.success = iface.getPaymentForTxnId(args.txnId);
420 ashish 2517
        } catch (PaymentException pe) {
2518
          result.pe = pe;
2519
        }
3430 rajveer 2520
        return result;
420 ashish 2521
      }
2522
    }
2523
 
7049 anupam.sin 2524
    private static class getPaymentForRechargeTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentForRechargeTxnId_args> {
2525
      public getPaymentForRechargeTxnId() {
2526
        super("getPaymentForRechargeTxnId");
2527
      }
2528
 
2529
      protected getPaymentForRechargeTxnId_args getEmptyArgsInstance() {
2530
        return new getPaymentForRechargeTxnId_args();
2531
      }
2532
 
2533
      protected getPaymentForRechargeTxnId_result getResult(I iface, getPaymentForRechargeTxnId_args args) throws org.apache.thrift.TException {
2534
        getPaymentForRechargeTxnId_result result = new getPaymentForRechargeTxnId_result();
2535
        try {
2536
          result.success = iface.getPaymentForRechargeTxnId(args.txnId);
2537
        } catch (PaymentException pe) {
2538
          result.pe = pe;
2539
        }
2540
        return result;
2541
      }
2542
    }
2543
 
4600 varun.gupt 2544
    private static class getSuccessfulPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentForTxnId_args> {
2545
      public getSuccessfulPaymentForTxnId() {
2546
        super("getSuccessfulPaymentForTxnId");
2547
      }
2548
 
2549
      protected getSuccessfulPaymentForTxnId_args getEmptyArgsInstance() {
2550
        return new getSuccessfulPaymentForTxnId_args();
2551
      }
2552
 
2553
      protected getSuccessfulPaymentForTxnId_result getResult(I iface, getSuccessfulPaymentForTxnId_args args) throws org.apache.thrift.TException {
2554
        getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
2555
        try {
2556
          result.success = iface.getSuccessfulPaymentForTxnId(args.txnId);
2557
        } catch (PaymentException pe) {
2558
          result.pe = pe;
2559
        }
2560
        return result;
2561
      }
2562
    }
2563
 
3430 rajveer 2564
    private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
2565
      public updatePaymentDetails() {
2566
        super("updatePaymentDetails");
2567
      }
2568
 
2569
      protected updatePaymentDetails_args getEmptyArgsInstance() {
2570
        return new updatePaymentDetails_args();
2571
      }
2572
 
2573
      protected updatePaymentDetails_result getResult(I iface, updatePaymentDetails_args args) throws org.apache.thrift.TException {
695 rajveer 2574
        updatePaymentDetails_result result = new updatePaymentDetails_result();
420 ashish 2575
        try {
3430 rajveer 2576
          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 2577
          result.setSuccessIsSet(true);
420 ashish 2578
        } catch (PaymentException pe) {
2579
          result.pe = pe;
2580
        }
3430 rajveer 2581
        return result;
420 ashish 2582
      }
2583
    }
2584
 
3430 rajveer 2585
    private static class getSuccessfulPaymentsAmountRange<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentsAmountRange_args> {
2586
      public getSuccessfulPaymentsAmountRange() {
2587
        super("getSuccessfulPaymentsAmountRange");
2588
      }
2589
 
2590
      protected getSuccessfulPaymentsAmountRange_args getEmptyArgsInstance() {
2591
        return new getSuccessfulPaymentsAmountRange_args();
2592
      }
2593
 
2594
      protected getSuccessfulPaymentsAmountRange_result getResult(I iface, getSuccessfulPaymentsAmountRange_args args) throws org.apache.thrift.TException {
1731 ankur.sing 2595
        getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
3430 rajveer 2596
        result.success = iface.getSuccessfulPaymentsAmountRange();
2597
        return result;
1629 ankur.sing 2598
      }
2599
    }
2600
 
3430 rajveer 2601
    private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
2602
      public initializeHdfcPayment() {
2603
        super("initializeHdfcPayment");
2604
      }
2605
 
2606
      protected initializeHdfcPayment_args getEmptyArgsInstance() {
2607
        return new initializeHdfcPayment_args();
2608
      }
2609
 
2610
      protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
2462 chandransh 2611
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
2612
        try {
10269 amit.gupta 2613
          result.success = iface.initializeHdfcPayment(args.merchantPaymentId, args.isMobile);
2462 chandransh 2614
        } catch (PaymentException pe) {
2615
          result.pe = pe;
2616
        }
3430 rajveer 2617
        return result;
2462 chandransh 2618
      }
2619
    }
2620
 
6050 anupam.sin 2621
    private static class doHdfcPaymentForDigitalOrder<I extends Iface> extends org.apache.thrift.ProcessFunction<I, doHdfcPaymentForDigitalOrder_args> {
2622
      public doHdfcPaymentForDigitalOrder() {
2623
        super("doHdfcPaymentForDigitalOrder");
2624
      }
2625
 
2626
      protected doHdfcPaymentForDigitalOrder_args getEmptyArgsInstance() {
2627
        return new doHdfcPaymentForDigitalOrder_args();
2628
      }
2629
 
2630
      protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
2631
        doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
2632
        try {
10269 amit.gupta 2633
          result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone, args.isMobile);
6050 anupam.sin 2634
        } catch (PaymentException pe) {
2635
          result.pe = pe;
2636
        }
2637
        return result;
2638
      }
2639
    }
2640
 
3616 chandransh 2641
    private static class initializeHdfcEmiPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcEmiPayment_args> {
2642
      public initializeHdfcEmiPayment() {
2643
        super("initializeHdfcEmiPayment");
2644
      }
2645
 
2646
      protected initializeHdfcEmiPayment_args getEmptyArgsInstance() {
2647
        return new initializeHdfcEmiPayment_args();
2648
      }
2649
 
2650
      protected initializeHdfcEmiPayment_result getResult(I iface, initializeHdfcEmiPayment_args args) throws org.apache.thrift.TException {
2651
        initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
2652
        try {
10269 amit.gupta 2653
          result.success = iface.initializeHdfcEmiPayment(args.merchantPaymentId, args.isMobile);
3616 chandransh 2654
        } catch (PaymentException pe) {
2655
          result.pe = pe;
2656
        }
2657
        return result;
2658
      }
2659
    }
2660
 
3430 rajveer 2661
    private static class createRefund<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createRefund_args> {
2662
      public createRefund() {
2663
        super("createRefund");
2664
      }
2665
 
2666
      protected createRefund_args getEmptyArgsInstance() {
2667
        return new createRefund_args();
2668
      }
2669
 
2670
      protected createRefund_result getResult(I iface, createRefund_args args) throws org.apache.thrift.TException {
2690 chandransh 2671
        createRefund_result result = new createRefund_result();
2672
        try {
3430 rajveer 2673
          result.success = iface.createRefund(args.orderId, args.merchantTxnId, args.amount);
2690 chandransh 2674
          result.setSuccessIsSet(true);
2675
        } catch (PaymentException pe) {
2676
          result.pe = pe;
2677
        }
3430 rajveer 2678
        return result;
2690 chandransh 2679
      }
2680
    }
2681
 
3430 rajveer 2682
    private static class capturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, capturePayment_args> {
2683
      public capturePayment() {
2684
        super("capturePayment");
2685
      }
2686
 
2687
      protected capturePayment_args getEmptyArgsInstance() {
2688
        return new capturePayment_args();
2689
      }
2690
 
2691
      protected capturePayment_result getResult(I iface, capturePayment_args args) throws org.apache.thrift.TException {
3010 chandransh 2692
        capturePayment_result result = new capturePayment_result();
2693
        try {
8618 rajveer 2694
          result.success = iface.capturePayment(args.merchantTxnId, args.isDigital);
3010 chandransh 2695
          result.setSuccessIsSet(true);
2696
        } catch (PaymentException pe) {
2697
          result.pe = pe;
2698
        }
3430 rajveer 2699
        return result;
3010 chandransh 2700
      }
2701
    }
2702
 
6486 rajveer 2703
    private static class refundPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, refundPayment_args> {
2704
      public refundPayment() {
2705
        super("refundPayment");
2706
      }
2707
 
2708
      protected refundPayment_args getEmptyArgsInstance() {
2709
        return new refundPayment_args();
2710
      }
2711
 
2712
      protected refundPayment_result getResult(I iface, refundPayment_args args) throws org.apache.thrift.TException {
2713
        refundPayment_result result = new refundPayment_result();
2714
        try {
2715
          result.success = iface.refundPayment(args.merchantTxnId, args.amount, args.isDigital);
2716
          result.setSuccessIsSet(true);
2717
        } catch (PaymentException pe) {
2718
          result.pe = pe;
2719
        }
2720
        return result;
2721
      }
2722
    }
2723
 
3956 chandransh 2724
    private static class partiallyCapturePayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, partiallyCapturePayment_args> {
2725
      public partiallyCapturePayment() {
2726
        super("partiallyCapturePayment");
2727
      }
2728
 
2729
      protected partiallyCapturePayment_args getEmptyArgsInstance() {
2730
        return new partiallyCapturePayment_args();
2731
      }
2732
 
2733
      protected partiallyCapturePayment_result getResult(I iface, partiallyCapturePayment_args args) throws org.apache.thrift.TException {
2734
        partiallyCapturePayment_result result = new partiallyCapturePayment_result();
2735
        try {
2736
          result.success = iface.partiallyCapturePayment(args.merchantTxnId, args.amount, args.xferBy, args.xferTxnId, args.xferDate);
2737
          result.setSuccessIsSet(true);
2738
        } catch (PaymentException pe) {
2739
          result.pe = pe;
2740
        }
2741
        return result;
2742
      }
2743
    }
2744
 
4008 mandeep.dh 2745
    private static class getPaymentsRequiringExtraProcessing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentsRequiringExtraProcessing_args> {
2746
      public getPaymentsRequiringExtraProcessing() {
2747
        super("getPaymentsRequiringExtraProcessing");
2748
      }
2749
 
2750
      protected getPaymentsRequiringExtraProcessing_args getEmptyArgsInstance() {
2751
        return new getPaymentsRequiringExtraProcessing_args();
2752
      }
2753
 
2754
      protected getPaymentsRequiringExtraProcessing_result getResult(I iface, getPaymentsRequiringExtraProcessing_args args) throws org.apache.thrift.TException {
2755
        getPaymentsRequiringExtraProcessing_result result = new getPaymentsRequiringExtraProcessing_result();
2756
        result.success = iface.getPaymentsRequiringExtraProcessing(args.category);
2757
        return result;
2758
      }
2759
    }
2760
 
2761
    private static class markPaymentAsProcessed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markPaymentAsProcessed_args> {
2762
      public markPaymentAsProcessed() {
2763
        super("markPaymentAsProcessed");
2764
      }
2765
 
2766
      protected markPaymentAsProcessed_args getEmptyArgsInstance() {
2767
        return new markPaymentAsProcessed_args();
2768
      }
2769
 
2770
      protected markPaymentAsProcessed_result getResult(I iface, markPaymentAsProcessed_args args) throws org.apache.thrift.TException {
2771
        markPaymentAsProcessed_result result = new markPaymentAsProcessed_result();
2772
        iface.markPaymentAsProcessed(args.paymentId, args.category);
2773
        return result;
2774
      }
2775
    }
2776
 
8914 rajveer 2777
    private static class getPaymentStatusAtGateway<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPaymentStatusAtGateway_args> {
2778
      public getPaymentStatusAtGateway() {
2779
        super("getPaymentStatusAtGateway");
8907 rajveer 2780
      }
2781
 
8914 rajveer 2782
      protected getPaymentStatusAtGateway_args getEmptyArgsInstance() {
2783
        return new getPaymentStatusAtGateway_args();
8907 rajveer 2784
      }
2785
 
8914 rajveer 2786
      protected getPaymentStatusAtGateway_result getResult(I iface, getPaymentStatusAtGateway_args args) throws org.apache.thrift.TException {
2787
        getPaymentStatusAtGateway_result result = new getPaymentStatusAtGateway_result();
8907 rajveer 2788
        try {
8914 rajveer 2789
          result.success = iface.getPaymentStatusAtGateway(args.merchantTxnId, args.amount, args.isDigital);
8907 rajveer 2790
        } catch (PaymentException pe) {
2791
          result.pe = pe;
2792
        }
2793
        return result;
2794
      }
2795
    }
2796
 
18577 manish.sha 2797
    private static class getCreditorInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCreditorInfo_args> {
2798
      public getCreditorInfo() {
2799
        super("getCreditorInfo");
2800
      }
2801
 
2802
      protected getCreditorInfo_args getEmptyArgsInstance() {
2803
        return new getCreditorInfo_args();
2804
      }
2805
 
2806
      protected getCreditorInfo_result getResult(I iface, getCreditorInfo_args args) throws org.apache.thrift.TException {
2807
        getCreditorInfo_result result = new getCreditorInfo_result();
2808
        result.success = iface.getCreditorInfo(args.id, args.name);
2809
        return result;
2810
      }
2811
    }
2812
 
2813
    private static class updateCreditorInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateCreditorInfo_args> {
2814
      public updateCreditorInfo() {
2815
        super("updateCreditorInfo");
2816
      }
2817
 
2818
      protected updateCreditorInfo_args getEmptyArgsInstance() {
2819
        return new updateCreditorInfo_args();
2820
      }
2821
 
2822
      protected updateCreditorInfo_result getResult(I iface, updateCreditorInfo_args args) throws org.apache.thrift.TException {
2823
        updateCreditorInfo_result result = new updateCreditorInfo_result();
2824
        result.success = iface.updateCreditorInfo(args.creditor);
2825
        result.setSuccessIsSet(true);
2826
        return result;
2827
      }
2828
    }
2829
 
2830
    private static class getUserSanctionDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserSanctionDetails_args> {
2831
      public getUserSanctionDetails() {
2832
        super("getUserSanctionDetails");
2833
      }
2834
 
2835
      protected getUserSanctionDetails_args getEmptyArgsInstance() {
2836
        return new getUserSanctionDetails_args();
2837
      }
2838
 
2839
      protected getUserSanctionDetails_result getResult(I iface, getUserSanctionDetails_args args) throws org.apache.thrift.TException {
2840
        getUserSanctionDetails_result result = new getUserSanctionDetails_result();
2841
        result.success = iface.getUserSanctionDetails(args.userId);
2842
        return result;
2843
      }
2844
    }
2845
 
2846
    private static class getUserSanctionDetailsForCreditor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserSanctionDetailsForCreditor_args> {
2847
      public getUserSanctionDetailsForCreditor() {
2848
        super("getUserSanctionDetailsForCreditor");
2849
      }
2850
 
2851
      protected getUserSanctionDetailsForCreditor_args getEmptyArgsInstance() {
2852
        return new getUserSanctionDetailsForCreditor_args();
2853
      }
2854
 
2855
      protected getUserSanctionDetailsForCreditor_result getResult(I iface, getUserSanctionDetailsForCreditor_args args) throws org.apache.thrift.TException {
2856
        getUserSanctionDetailsForCreditor_result result = new getUserSanctionDetailsForCreditor_result();
2857
        result.success = iface.getUserSanctionDetailsForCreditor(args.userId, args.creditorId);
2858
        return result;
2859
      }
2860
    }
2861
 
2862
    private static class updateUserSanction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUserSanction_args> {
2863
      public updateUserSanction() {
2864
        super("updateUserSanction");
2865
      }
2866
 
2867
      protected updateUserSanction_args getEmptyArgsInstance() {
2868
        return new updateUserSanction_args();
2869
      }
2870
 
2871
      protected updateUserSanction_result getResult(I iface, updateUserSanction_args args) throws org.apache.thrift.TException {
2872
        updateUserSanction_result result = new updateUserSanction_result();
2873
        try {
2874
          result.success = iface.updateUserSanction(args.userSanaction);
2875
          result.setSuccessIsSet(true);
2876
        } catch (PaymentException pe) {
2877
          result.pe = pe;
2878
        }
2879
        return result;
2880
      }
2881
    }
2882
 
2883
    private static class getCreditHistoryRecordsForTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCreditHistoryRecordsForTransaction_args> {
2884
      public getCreditHistoryRecordsForTransaction() {
2885
        super("getCreditHistoryRecordsForTransaction");
2886
      }
2887
 
2888
      protected getCreditHistoryRecordsForTransaction_args getEmptyArgsInstance() {
2889
        return new getCreditHistoryRecordsForTransaction_args();
2890
      }
2891
 
2892
      protected getCreditHistoryRecordsForTransaction_result getResult(I iface, getCreditHistoryRecordsForTransaction_args args) throws org.apache.thrift.TException {
2893
        getCreditHistoryRecordsForTransaction_result result = new getCreditHistoryRecordsForTransaction_result();
2894
        result.success = iface.getCreditHistoryRecordsForTransaction(args.paymentId, args.creditorId, args.creditTxnType);
2895
        return result;
2896
      }
2897
    }
2898
 
2899
    private static class getCreditHistoryRecordsForUserAndCreditor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getCreditHistoryRecordsForUserAndCreditor_args> {
2900
      public getCreditHistoryRecordsForUserAndCreditor() {
2901
        super("getCreditHistoryRecordsForUserAndCreditor");
2902
      }
2903
 
2904
      protected getCreditHistoryRecordsForUserAndCreditor_args getEmptyArgsInstance() {
2905
        return new getCreditHistoryRecordsForUserAndCreditor_args();
2906
      }
2907
 
2908
      protected getCreditHistoryRecordsForUserAndCreditor_result getResult(I iface, getCreditHistoryRecordsForUserAndCreditor_args args) throws org.apache.thrift.TException {
2909
        getCreditHistoryRecordsForUserAndCreditor_result result = new getCreditHistoryRecordsForUserAndCreditor_result();
2910
        result.success = iface.getCreditHistoryRecordsForUserAndCreditor(args.userId, args.creditTxnType);
2911
        return result;
2912
      }
2913
    }
2914
 
2915
    private static class processCreditTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, processCreditTransaction_args> {
2916
      public processCreditTransaction() {
2917
        super("processCreditTransaction");
2918
      }
2919
 
2920
      protected processCreditTransaction_args getEmptyArgsInstance() {
2921
        return new processCreditTransaction_args();
2922
      }
2923
 
2924
      protected processCreditTransaction_result getResult(I iface, processCreditTransaction_args args) throws org.apache.thrift.TException {
2925
        processCreditTransaction_result result = new processCreditTransaction_result();
2926
        try {
2927
          result.success = iface.processCreditTransaction(args.paymentId, args.creditTxns);
2928
          result.setSuccessIsSet(true);
2929
        } catch (PaymentException pe) {
2930
          result.pe = pe;
2931
        }
2932
        return result;
2933
      }
2934
    }
2935
 
2936
    private static class getLoanPayableForUserToCreditor<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLoanPayableForUserToCreditor_args> {
2937
      public getLoanPayableForUserToCreditor() {
2938
        super("getLoanPayableForUserToCreditor");
2939
      }
2940
 
2941
      protected getLoanPayableForUserToCreditor_args getEmptyArgsInstance() {
2942
        return new getLoanPayableForUserToCreditor_args();
2943
      }
2944
 
2945
      protected getLoanPayableForUserToCreditor_result getResult(I iface, getLoanPayableForUserToCreditor_args args) throws org.apache.thrift.TException {
2946
        getLoanPayableForUserToCreditor_result result = new getLoanPayableForUserToCreditor_result();
2947
        result.success = iface.getLoanPayableForUserToCreditor(args.userId, args.creditorId, args.dueDate);
2948
        return result;
2949
      }
2950
    }
2951
 
123 ashish 2952
  }
2953
 
3430 rajveer 2954
  public static class createPayment_args implements org.apache.thrift.TBase<createPayment_args, createPayment_args._Fields>, java.io.Serializable, Cloneable   {
2955
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_args");
123 ashish 2956
 
3430 rajveer 2957
    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);
2958
    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);
2959
    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);
2960
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)4);
6050 anupam.sin 2961
    private static final org.apache.thrift.protocol.TField IS_DIGITAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDigital", org.apache.thrift.protocol.TType.BOOL, (short)5);
123 ashish 2962
 
3430 rajveer 2963
    private long userId; // required
2964
    private double amount; // required
2965
    private long gatewayId; // required
2966
    private long txnId; // required
6050 anupam.sin 2967
    private boolean isDigital; // required
123 ashish 2968
 
2969
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2970
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 2971
      USER_ID((short)1, "userId"),
2972
      AMOUNT((short)2, "amount"),
2973
      GATEWAY_ID((short)3, "gatewayId"),
6050 anupam.sin 2974
      TXN_ID((short)4, "txnId"),
2975
      IS_DIGITAL((short)5, "isDigital");
123 ashish 2976
 
2977
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2978
 
2979
      static {
2980
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2981
          byName.put(field.getFieldName(), field);
2982
        }
2983
      }
2984
 
2985
      /**
2986
       * Find the _Fields constant that matches fieldId, or null if its not found.
2987
       */
2988
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2989
        switch(fieldId) {
2990
          case 1: // USER_ID
2991
            return USER_ID;
2992
          case 2: // AMOUNT
2993
            return AMOUNT;
2994
          case 3: // GATEWAY_ID
2995
            return GATEWAY_ID;
2996
          case 4: // TXN_ID
2997
            return TXN_ID;
6050 anupam.sin 2998
          case 5: // IS_DIGITAL
2999
            return IS_DIGITAL;
3430 rajveer 3000
          default:
3001
            return null;
3002
        }
123 ashish 3003
      }
3004
 
3005
      /**
3006
       * Find the _Fields constant that matches fieldId, throwing an exception
3007
       * if it is not found.
3008
       */
3009
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3010
        _Fields fields = findByThriftId(fieldId);
3011
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3012
        return fields;
3013
      }
3014
 
3015
      /**
3016
       * Find the _Fields constant that matches name, or null if its not found.
3017
       */
3018
      public static _Fields findByName(String name) {
3019
        return byName.get(name);
3020
      }
3021
 
3022
      private final short _thriftId;
3023
      private final String _fieldName;
3024
 
3025
      _Fields(short thriftId, String fieldName) {
3026
        _thriftId = thriftId;
3027
        _fieldName = fieldName;
3028
      }
3029
 
3030
      public short getThriftFieldId() {
3031
        return _thriftId;
3032
      }
3033
 
3034
      public String getFieldName() {
3035
        return _fieldName;
3036
      }
3037
    }
3038
 
3039
    // isset id assignments
695 rajveer 3040
    private static final int __USERID_ISSET_ID = 0;
3041
    private static final int __AMOUNT_ISSET_ID = 1;
3042
    private static final int __GATEWAYID_ISSET_ID = 2;
3043
    private static final int __TXNID_ISSET_ID = 3;
6050 anupam.sin 3044
    private static final int __ISDIGITAL_ISSET_ID = 4;
3045
    private BitSet __isset_bit_vector = new BitSet(5);
123 ashish 3046
 
3430 rajveer 3047
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3048
    static {
3430 rajveer 3049
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3050
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3052
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3053
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
3054
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3055
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3056
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3057
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6050 anupam.sin 3058
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 3060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_args.class, metaDataMap);
123 ashish 3062
    }
3063
 
3064
    public createPayment_args() {
3065
    }
3066
 
3067
    public createPayment_args(
695 rajveer 3068
      long userId,
123 ashish 3069
      double amount,
695 rajveer 3070
      long gatewayId,
6050 anupam.sin 3071
      long txnId,
3072
      boolean isDigital)
123 ashish 3073
    {
3074
      this();
695 rajveer 3075
      this.userId = userId;
3076
      setUserIdIsSet(true);
123 ashish 3077
      this.amount = amount;
3078
      setAmountIsSet(true);
695 rajveer 3079
      this.gatewayId = gatewayId;
3080
      setGatewayIdIsSet(true);
3081
      this.txnId = txnId;
3082
      setTxnIdIsSet(true);
6050 anupam.sin 3083
      this.isDigital = isDigital;
3084
      setIsDigitalIsSet(true);
123 ashish 3085
    }
3086
 
3087
    /**
3088
     * Performs a deep copy on <i>other</i>.
3089
     */
3090
    public createPayment_args(createPayment_args other) {
3091
      __isset_bit_vector.clear();
3092
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 3093
      this.userId = other.userId;
123 ashish 3094
      this.amount = other.amount;
695 rajveer 3095
      this.gatewayId = other.gatewayId;
3096
      this.txnId = other.txnId;
6050 anupam.sin 3097
      this.isDigital = other.isDigital;
123 ashish 3098
    }
3099
 
3100
    public createPayment_args deepCopy() {
3101
      return new createPayment_args(this);
3102
    }
3103
 
3430 rajveer 3104
    @Override
3105
    public void clear() {
3106
      setUserIdIsSet(false);
3107
      this.userId = 0;
3108
      setAmountIsSet(false);
3109
      this.amount = 0.0;
3110
      setGatewayIdIsSet(false);
3111
      this.gatewayId = 0;
3112
      setTxnIdIsSet(false);
3113
      this.txnId = 0;
6050 anupam.sin 3114
      setIsDigitalIsSet(false);
3115
      this.isDigital = false;
123 ashish 3116
    }
3117
 
695 rajveer 3118
    public long getUserId() {
3119
      return this.userId;
123 ashish 3120
    }
3121
 
3430 rajveer 3122
    public void setUserId(long userId) {
695 rajveer 3123
      this.userId = userId;
3124
      setUserIdIsSet(true);
123 ashish 3125
    }
3126
 
695 rajveer 3127
    public void unsetUserId() {
3128
      __isset_bit_vector.clear(__USERID_ISSET_ID);
123 ashish 3129
    }
3130
 
3430 rajveer 3131
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
695 rajveer 3132
    public boolean isSetUserId() {
3133
      return __isset_bit_vector.get(__USERID_ISSET_ID);
123 ashish 3134
    }
3135
 
695 rajveer 3136
    public void setUserIdIsSet(boolean value) {
3137
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
123 ashish 3138
    }
3139
 
3140
    public double getAmount() {
3141
      return this.amount;
3142
    }
3143
 
3430 rajveer 3144
    public void setAmount(double amount) {
123 ashish 3145
      this.amount = amount;
3146
      setAmountIsSet(true);
3147
    }
3148
 
3149
    public void unsetAmount() {
3150
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
3151
    }
3152
 
3430 rajveer 3153
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
123 ashish 3154
    public boolean isSetAmount() {
3155
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
3156
    }
3157
 
3158
    public void setAmountIsSet(boolean value) {
3159
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
3160
    }
3161
 
695 rajveer 3162
    public long getGatewayId() {
3163
      return this.gatewayId;
123 ashish 3164
    }
3165
 
3430 rajveer 3166
    public void setGatewayId(long gatewayId) {
695 rajveer 3167
      this.gatewayId = gatewayId;
3168
      setGatewayIdIsSet(true);
123 ashish 3169
    }
3170
 
695 rajveer 3171
    public void unsetGatewayId() {
3172
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 3173
    }
3174
 
3430 rajveer 3175
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 3176
    public boolean isSetGatewayId() {
3177
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 3178
    }
3179
 
695 rajveer 3180
    public void setGatewayIdIsSet(boolean value) {
3181
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 3182
    }
3183
 
695 rajveer 3184
    public long getTxnId() {
3185
      return this.txnId;
3186
    }
3187
 
3430 rajveer 3188
    public void setTxnId(long txnId) {
695 rajveer 3189
      this.txnId = txnId;
3190
      setTxnIdIsSet(true);
3191
    }
3192
 
3193
    public void unsetTxnId() {
3194
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
3195
    }
3196
 
3430 rajveer 3197
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 3198
    public boolean isSetTxnId() {
3199
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
3200
    }
3201
 
3202
    public void setTxnIdIsSet(boolean value) {
3203
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
3204
    }
3205
 
6050 anupam.sin 3206
    public boolean isIsDigital() {
3207
      return this.isDigital;
3208
    }
3209
 
3210
    public void setIsDigital(boolean isDigital) {
3211
      this.isDigital = isDigital;
3212
      setIsDigitalIsSet(true);
3213
    }
3214
 
3215
    public void unsetIsDigital() {
3216
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
3217
    }
3218
 
3219
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
3220
    public boolean isSetIsDigital() {
3221
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
3222
    }
3223
 
3224
    public void setIsDigitalIsSet(boolean value) {
3225
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
3226
    }
3227
 
123 ashish 3228
    public void setFieldValue(_Fields field, Object value) {
3229
      switch (field) {
3230
      case USER_ID:
3231
        if (value == null) {
695 rajveer 3232
          unsetUserId();
123 ashish 3233
        } else {
695 rajveer 3234
          setUserId((Long)value);
123 ashish 3235
        }
3236
        break;
3237
 
695 rajveer 3238
      case AMOUNT:
123 ashish 3239
        if (value == null) {
695 rajveer 3240
          unsetAmount();
123 ashish 3241
        } else {
695 rajveer 3242
          setAmount((Double)value);
123 ashish 3243
        }
3244
        break;
3245
 
695 rajveer 3246
      case GATEWAY_ID:
123 ashish 3247
        if (value == null) {
695 rajveer 3248
          unsetGatewayId();
123 ashish 3249
        } else {
695 rajveer 3250
          setGatewayId((Long)value);
123 ashish 3251
        }
3252
        break;
3253
 
695 rajveer 3254
      case TXN_ID:
123 ashish 3255
        if (value == null) {
695 rajveer 3256
          unsetTxnId();
123 ashish 3257
        } else {
695 rajveer 3258
          setTxnId((Long)value);
123 ashish 3259
        }
3260
        break;
3261
 
6050 anupam.sin 3262
      case IS_DIGITAL:
3263
        if (value == null) {
3264
          unsetIsDigital();
3265
        } else {
3266
          setIsDigital((Boolean)value);
3267
        }
3268
        break;
3269
 
123 ashish 3270
      }
3271
    }
3272
 
3273
    public Object getFieldValue(_Fields field) {
3274
      switch (field) {
3275
      case USER_ID:
3430 rajveer 3276
        return Long.valueOf(getUserId());
123 ashish 3277
 
3278
      case AMOUNT:
3430 rajveer 3279
        return Double.valueOf(getAmount());
123 ashish 3280
 
420 ashish 3281
      case GATEWAY_ID:
3430 rajveer 3282
        return Long.valueOf(getGatewayId());
123 ashish 3283
 
695 rajveer 3284
      case TXN_ID:
3430 rajveer 3285
        return Long.valueOf(getTxnId());
695 rajveer 3286
 
6050 anupam.sin 3287
      case IS_DIGITAL:
3288
        return Boolean.valueOf(isIsDigital());
3289
 
123 ashish 3290
      }
3291
      throw new IllegalStateException();
3292
    }
3293
 
3430 rajveer 3294
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3295
    public boolean isSet(_Fields field) {
3296
      if (field == null) {
3297
        throw new IllegalArgumentException();
3298
      }
123 ashish 3299
 
3300
      switch (field) {
3301
      case USER_ID:
695 rajveer 3302
        return isSetUserId();
123 ashish 3303
      case AMOUNT:
3304
        return isSetAmount();
420 ashish 3305
      case GATEWAY_ID:
695 rajveer 3306
        return isSetGatewayId();
3307
      case TXN_ID:
3308
        return isSetTxnId();
6050 anupam.sin 3309
      case IS_DIGITAL:
3310
        return isSetIsDigital();
123 ashish 3311
      }
3312
      throw new IllegalStateException();
3313
    }
3314
 
3315
    @Override
3316
    public boolean equals(Object that) {
3317
      if (that == null)
3318
        return false;
3319
      if (that instanceof createPayment_args)
3320
        return this.equals((createPayment_args)that);
3321
      return false;
3322
    }
3323
 
3324
    public boolean equals(createPayment_args that) {
3325
      if (that == null)
3326
        return false;
3327
 
695 rajveer 3328
      boolean this_present_userId = true;
3329
      boolean that_present_userId = true;
3330
      if (this_present_userId || that_present_userId) {
3331
        if (!(this_present_userId && that_present_userId))
123 ashish 3332
          return false;
695 rajveer 3333
        if (this.userId != that.userId)
123 ashish 3334
          return false;
3335
      }
3336
 
3337
      boolean this_present_amount = true;
3338
      boolean that_present_amount = true;
3339
      if (this_present_amount || that_present_amount) {
3340
        if (!(this_present_amount && that_present_amount))
3341
          return false;
3342
        if (this.amount != that.amount)
3343
          return false;
3344
      }
3345
 
695 rajveer 3346
      boolean this_present_gatewayId = true;
3347
      boolean that_present_gatewayId = true;
3348
      if (this_present_gatewayId || that_present_gatewayId) {
3349
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 3350
          return false;
695 rajveer 3351
        if (this.gatewayId != that.gatewayId)
123 ashish 3352
          return false;
3353
      }
3354
 
695 rajveer 3355
      boolean this_present_txnId = true;
3356
      boolean that_present_txnId = true;
3357
      if (this_present_txnId || that_present_txnId) {
3358
        if (!(this_present_txnId && that_present_txnId))
3359
          return false;
3360
        if (this.txnId != that.txnId)
3361
          return false;
3362
      }
3363
 
6050 anupam.sin 3364
      boolean this_present_isDigital = true;
3365
      boolean that_present_isDigital = true;
3366
      if (this_present_isDigital || that_present_isDigital) {
3367
        if (!(this_present_isDigital && that_present_isDigital))
3368
          return false;
3369
        if (this.isDigital != that.isDigital)
3370
          return false;
3371
      }
3372
 
123 ashish 3373
      return true;
3374
    }
3375
 
3376
    @Override
3377
    public int hashCode() {
3378
      return 0;
3379
    }
3380
 
3381
    public int compareTo(createPayment_args other) {
3382
      if (!getClass().equals(other.getClass())) {
3383
        return getClass().getName().compareTo(other.getClass().getName());
3384
      }
3385
 
3386
      int lastComparison = 0;
3387
      createPayment_args typedOther = (createPayment_args)other;
3388
 
3430 rajveer 3389
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 3390
      if (lastComparison != 0) {
3391
        return lastComparison;
3392
      }
3430 rajveer 3393
      if (isSetUserId()) {
3394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
3395
        if (lastComparison != 0) {
3396
          return lastComparison;
3397
        }
123 ashish 3398
      }
3430 rajveer 3399
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
123 ashish 3400
      if (lastComparison != 0) {
3401
        return lastComparison;
3402
      }
3430 rajveer 3403
      if (isSetAmount()) {
3404
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
3405
        if (lastComparison != 0) {
3406
          return lastComparison;
3407
        }
123 ashish 3408
      }
3430 rajveer 3409
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 3410
      if (lastComparison != 0) {
3411
        return lastComparison;
3412
      }
3430 rajveer 3413
      if (isSetGatewayId()) {
3414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
3415
        if (lastComparison != 0) {
3416
          return lastComparison;
3417
        }
123 ashish 3418
      }
3430 rajveer 3419
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
123 ashish 3420
      if (lastComparison != 0) {
3421
        return lastComparison;
3422
      }
3430 rajveer 3423
      if (isSetTxnId()) {
3424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
3425
        if (lastComparison != 0) {
3426
          return lastComparison;
3427
        }
123 ashish 3428
      }
6050 anupam.sin 3429
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
3430
      if (lastComparison != 0) {
3431
        return lastComparison;
3432
      }
3433
      if (isSetIsDigital()) {
3434
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
3435
        if (lastComparison != 0) {
3436
          return lastComparison;
3437
        }
3438
      }
123 ashish 3439
      return 0;
3440
    }
3441
 
3430 rajveer 3442
    public _Fields fieldForId(int fieldId) {
3443
      return _Fields.findByThriftId(fieldId);
3444
    }
3445
 
3446
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3447
      org.apache.thrift.protocol.TField field;
123 ashish 3448
      iprot.readStructBegin();
3449
      while (true)
3450
      {
3451
        field = iprot.readFieldBegin();
3430 rajveer 3452
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3453
          break;
3454
        }
3430 rajveer 3455
        switch (field.id) {
3456
          case 1: // USER_ID
3457
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3458
              this.userId = iprot.readI64();
3459
              setUserIdIsSet(true);
3460
            } else { 
3461
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3462
            }
3463
            break;
3464
          case 2: // AMOUNT
3465
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
3466
              this.amount = iprot.readDouble();
3467
              setAmountIsSet(true);
3468
            } else { 
3469
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3470
            }
3471
            break;
3472
          case 3: // GATEWAY_ID
3473
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3474
              this.gatewayId = iprot.readI64();
3475
              setGatewayIdIsSet(true);
3476
            } else { 
3477
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3478
            }
3479
            break;
3480
          case 4: // TXN_ID
3481
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3482
              this.txnId = iprot.readI64();
3483
              setTxnIdIsSet(true);
3484
            } else { 
3485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3486
            }
3487
            break;
6050 anupam.sin 3488
          case 5: // IS_DIGITAL
3489
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
3490
              this.isDigital = iprot.readBool();
3491
              setIsDigitalIsSet(true);
3492
            } else { 
3493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3494
            }
3495
            break;
3430 rajveer 3496
          default:
3497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3498
        }
3430 rajveer 3499
        iprot.readFieldEnd();
123 ashish 3500
      }
3501
      iprot.readStructEnd();
3502
      validate();
3503
    }
3504
 
3430 rajveer 3505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3506
      validate();
3507
 
3508
      oprot.writeStructBegin(STRUCT_DESC);
3509
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
695 rajveer 3510
      oprot.writeI64(this.userId);
123 ashish 3511
      oprot.writeFieldEnd();
3512
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
3513
      oprot.writeDouble(this.amount);
3514
      oprot.writeFieldEnd();
420 ashish 3515
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 3516
      oprot.writeI64(this.gatewayId);
420 ashish 3517
      oprot.writeFieldEnd();
695 rajveer 3518
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
3519
      oprot.writeI64(this.txnId);
3520
      oprot.writeFieldEnd();
6050 anupam.sin 3521
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
3522
      oprot.writeBool(this.isDigital);
3523
      oprot.writeFieldEnd();
123 ashish 3524
      oprot.writeFieldStop();
3525
      oprot.writeStructEnd();
3526
    }
3527
 
3528
    @Override
3529
    public String toString() {
3530
      StringBuilder sb = new StringBuilder("createPayment_args(");
3531
      boolean first = true;
3532
 
695 rajveer 3533
      sb.append("userId:");
3534
      sb.append(this.userId);
123 ashish 3535
      first = false;
3536
      if (!first) sb.append(", ");
3537
      sb.append("amount:");
3538
      sb.append(this.amount);
3539
      first = false;
3540
      if (!first) sb.append(", ");
695 rajveer 3541
      sb.append("gatewayId:");
3542
      sb.append(this.gatewayId);
123 ashish 3543
      first = false;
695 rajveer 3544
      if (!first) sb.append(", ");
3545
      sb.append("txnId:");
3546
      sb.append(this.txnId);
3547
      first = false;
6050 anupam.sin 3548
      if (!first) sb.append(", ");
3549
      sb.append("isDigital:");
3550
      sb.append(this.isDigital);
3551
      first = false;
123 ashish 3552
      sb.append(")");
3553
      return sb.toString();
3554
    }
3555
 
3430 rajveer 3556
    public void validate() throws org.apache.thrift.TException {
123 ashish 3557
      // check for required fields
3558
    }
3559
 
3430 rajveer 3560
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3561
      try {
3562
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3563
      } catch (org.apache.thrift.TException te) {
3564
        throw new java.io.IOException(te);
3565
      }
3566
    }
3567
 
3568
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3569
      try {
3570
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3571
      } catch (org.apache.thrift.TException te) {
3572
        throw new java.io.IOException(te);
3573
      }
3574
    }
3575
 
123 ashish 3576
  }
3577
 
3430 rajveer 3578
  public static class createPayment_result implements org.apache.thrift.TBase<createPayment_result, createPayment_result._Fields>, java.io.Serializable, Cloneable   {
3579
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createPayment_result");
123 ashish 3580
 
3430 rajveer 3581
    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);
3582
    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 3583
 
3430 rajveer 3584
    private long success; // required
3585
    private PaymentException pe; // required
123 ashish 3586
 
3587
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3588
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 3589
      SUCCESS((short)0, "success"),
3590
      PE((short)1, "pe");
3591
 
3592
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3593
 
3594
      static {
3595
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3596
          byName.put(field.getFieldName(), field);
3597
        }
3598
      }
3599
 
3600
      /**
3601
       * Find the _Fields constant that matches fieldId, or null if its not found.
3602
       */
3603
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3604
        switch(fieldId) {
3605
          case 0: // SUCCESS
3606
            return SUCCESS;
3607
          case 1: // PE
3608
            return PE;
3609
          default:
3610
            return null;
3611
        }
123 ashish 3612
      }
3613
 
3614
      /**
3615
       * Find the _Fields constant that matches fieldId, throwing an exception
3616
       * if it is not found.
3617
       */
3618
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3619
        _Fields fields = findByThriftId(fieldId);
3620
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3621
        return fields;
3622
      }
3623
 
3624
      /**
3625
       * Find the _Fields constant that matches name, or null if its not found.
3626
       */
3627
      public static _Fields findByName(String name) {
3628
        return byName.get(name);
3629
      }
3630
 
3631
      private final short _thriftId;
3632
      private final String _fieldName;
3633
 
3634
      _Fields(short thriftId, String fieldName) {
3635
        _thriftId = thriftId;
3636
        _fieldName = fieldName;
3637
      }
3638
 
3639
      public short getThriftFieldId() {
3640
        return _thriftId;
3641
      }
3642
 
3643
      public String getFieldName() {
3644
        return _fieldName;
3645
      }
3646
    }
3647
 
3648
    // isset id assignments
420 ashish 3649
    private static final int __SUCCESS_ISSET_ID = 0;
3650
    private BitSet __isset_bit_vector = new BitSet(1);
123 ashish 3651
 
3430 rajveer 3652
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 3653
    static {
3430 rajveer 3654
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3655
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3656
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3657
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3658
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3659
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3660
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createPayment_result.class, metaDataMap);
123 ashish 3661
    }
3662
 
3663
    public createPayment_result() {
3664
    }
3665
 
3666
    public createPayment_result(
420 ashish 3667
      long success,
123 ashish 3668
      PaymentException pe)
3669
    {
3670
      this();
3671
      this.success = success;
420 ashish 3672
      setSuccessIsSet(true);
123 ashish 3673
      this.pe = pe;
3674
    }
3675
 
3676
    /**
3677
     * Performs a deep copy on <i>other</i>.
3678
     */
3679
    public createPayment_result(createPayment_result other) {
420 ashish 3680
      __isset_bit_vector.clear();
3681
      __isset_bit_vector.or(other.__isset_bit_vector);
3682
      this.success = other.success;
123 ashish 3683
      if (other.isSetPe()) {
3684
        this.pe = new PaymentException(other.pe);
3685
      }
3686
    }
3687
 
3688
    public createPayment_result deepCopy() {
3689
      return new createPayment_result(this);
3690
    }
3691
 
3430 rajveer 3692
    @Override
3693
    public void clear() {
3694
      setSuccessIsSet(false);
3695
      this.success = 0;
3696
      this.pe = null;
123 ashish 3697
    }
3698
 
420 ashish 3699
    public long getSuccess() {
123 ashish 3700
      return this.success;
3701
    }
3702
 
3430 rajveer 3703
    public void setSuccess(long success) {
123 ashish 3704
      this.success = success;
420 ashish 3705
      setSuccessIsSet(true);
123 ashish 3706
    }
3707
 
3708
    public void unsetSuccess() {
420 ashish 3709
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
123 ashish 3710
    }
3711
 
3430 rajveer 3712
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 3713
    public boolean isSetSuccess() {
420 ashish 3714
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
123 ashish 3715
    }
3716
 
3717
    public void setSuccessIsSet(boolean value) {
420 ashish 3718
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
123 ashish 3719
    }
3720
 
3721
    public PaymentException getPe() {
3722
      return this.pe;
3723
    }
3724
 
3430 rajveer 3725
    public void setPe(PaymentException pe) {
123 ashish 3726
      this.pe = pe;
3727
    }
3728
 
3729
    public void unsetPe() {
3730
      this.pe = null;
3731
    }
3732
 
3430 rajveer 3733
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 3734
    public boolean isSetPe() {
3735
      return this.pe != null;
3736
    }
3737
 
3738
    public void setPeIsSet(boolean value) {
3739
      if (!value) {
3740
        this.pe = null;
3741
      }
3742
    }
3743
 
3744
    public void setFieldValue(_Fields field, Object value) {
3745
      switch (field) {
3746
      case SUCCESS:
3747
        if (value == null) {
3748
          unsetSuccess();
3749
        } else {
420 ashish 3750
          setSuccess((Long)value);
123 ashish 3751
        }
3752
        break;
3753
 
3754
      case PE:
3755
        if (value == null) {
3756
          unsetPe();
3757
        } else {
3758
          setPe((PaymentException)value);
3759
        }
3760
        break;
3761
 
3762
      }
3763
    }
3764
 
3765
    public Object getFieldValue(_Fields field) {
3766
      switch (field) {
3767
      case SUCCESS:
3430 rajveer 3768
        return Long.valueOf(getSuccess());
123 ashish 3769
 
3770
      case PE:
3771
        return getPe();
3772
 
3773
      }
3774
      throw new IllegalStateException();
3775
    }
3776
 
3430 rajveer 3777
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3778
    public boolean isSet(_Fields field) {
3779
      if (field == null) {
3780
        throw new IllegalArgumentException();
3781
      }
123 ashish 3782
 
3783
      switch (field) {
3784
      case SUCCESS:
3785
        return isSetSuccess();
3786
      case PE:
3787
        return isSetPe();
3788
      }
3789
      throw new IllegalStateException();
3790
    }
3791
 
3792
    @Override
3793
    public boolean equals(Object that) {
3794
      if (that == null)
3795
        return false;
3796
      if (that instanceof createPayment_result)
3797
        return this.equals((createPayment_result)that);
3798
      return false;
3799
    }
3800
 
3801
    public boolean equals(createPayment_result that) {
3802
      if (that == null)
3803
        return false;
3804
 
420 ashish 3805
      boolean this_present_success = true;
3806
      boolean that_present_success = true;
123 ashish 3807
      if (this_present_success || that_present_success) {
3808
        if (!(this_present_success && that_present_success))
3809
          return false;
420 ashish 3810
        if (this.success != that.success)
123 ashish 3811
          return false;
3812
      }
3813
 
3814
      boolean this_present_pe = true && this.isSetPe();
3815
      boolean that_present_pe = true && that.isSetPe();
3816
      if (this_present_pe || that_present_pe) {
3817
        if (!(this_present_pe && that_present_pe))
3818
          return false;
3819
        if (!this.pe.equals(that.pe))
3820
          return false;
3821
      }
3822
 
3823
      return true;
3824
    }
3825
 
3826
    @Override
3827
    public int hashCode() {
3828
      return 0;
3829
    }
3830
 
420 ashish 3831
    public int compareTo(createPayment_result other) {
3832
      if (!getClass().equals(other.getClass())) {
3833
        return getClass().getName().compareTo(other.getClass().getName());
3834
      }
3835
 
3836
      int lastComparison = 0;
3837
      createPayment_result typedOther = (createPayment_result)other;
3838
 
3430 rajveer 3839
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 3840
      if (lastComparison != 0) {
3841
        return lastComparison;
3842
      }
3430 rajveer 3843
      if (isSetSuccess()) {
3844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3845
        if (lastComparison != 0) {
3846
          return lastComparison;
3847
        }
420 ashish 3848
      }
3430 rajveer 3849
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 3850
      if (lastComparison != 0) {
3851
        return lastComparison;
3852
      }
3430 rajveer 3853
      if (isSetPe()) {
3854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
3855
        if (lastComparison != 0) {
3856
          return lastComparison;
3857
        }
420 ashish 3858
      }
3859
      return 0;
3860
    }
3861
 
3430 rajveer 3862
    public _Fields fieldForId(int fieldId) {
3863
      return _Fields.findByThriftId(fieldId);
3864
    }
3865
 
3866
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3867
      org.apache.thrift.protocol.TField field;
123 ashish 3868
      iprot.readStructBegin();
3869
      while (true)
3870
      {
3871
        field = iprot.readFieldBegin();
3430 rajveer 3872
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 3873
          break;
3874
        }
3430 rajveer 3875
        switch (field.id) {
3876
          case 0: // SUCCESS
3877
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3878
              this.success = iprot.readI64();
3879
              setSuccessIsSet(true);
3880
            } else { 
3881
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3882
            }
3883
            break;
3884
          case 1: // PE
3885
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3886
              this.pe = new PaymentException();
3887
              this.pe.read(iprot);
3888
            } else { 
3889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3890
            }
3891
            break;
3892
          default:
3893
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 3894
        }
3430 rajveer 3895
        iprot.readFieldEnd();
123 ashish 3896
      }
3897
      iprot.readStructEnd();
3898
      validate();
3899
    }
3900
 
3430 rajveer 3901
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 3902
      oprot.writeStructBegin(STRUCT_DESC);
3903
 
3904
      if (this.isSetSuccess()) {
3905
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 3906
        oprot.writeI64(this.success);
123 ashish 3907
        oprot.writeFieldEnd();
3908
      } else if (this.isSetPe()) {
3909
        oprot.writeFieldBegin(PE_FIELD_DESC);
3910
        this.pe.write(oprot);
3911
        oprot.writeFieldEnd();
3912
      }
3913
      oprot.writeFieldStop();
3914
      oprot.writeStructEnd();
3915
    }
3916
 
3917
    @Override
3918
    public String toString() {
3919
      StringBuilder sb = new StringBuilder("createPayment_result(");
3920
      boolean first = true;
3921
 
3922
      sb.append("success:");
420 ashish 3923
      sb.append(this.success);
123 ashish 3924
      first = false;
3925
      if (!first) sb.append(", ");
3926
      sb.append("pe:");
3927
      if (this.pe == null) {
3928
        sb.append("null");
3929
      } else {
3930
        sb.append(this.pe);
3931
      }
3932
      first = false;
3933
      sb.append(")");
3934
      return sb.toString();
3935
    }
3936
 
3430 rajveer 3937
    public void validate() throws org.apache.thrift.TException {
123 ashish 3938
      // check for required fields
3939
    }
3940
 
3430 rajveer 3941
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3942
      try {
3943
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3944
      } catch (org.apache.thrift.TException te) {
3945
        throw new java.io.IOException(te);
3946
      }
3947
    }
3948
 
3949
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3950
      try {
3951
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3952
      } catch (org.apache.thrift.TException te) {
3953
        throw new java.io.IOException(te);
3954
      }
3955
    }
3956
 
123 ashish 3957
  }
3958
 
3430 rajveer 3959
  public static class getPaymentsForUser_args implements org.apache.thrift.TBase<getPaymentsForUser_args, getPaymentsForUser_args._Fields>, java.io.Serializable, Cloneable   {
3960
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_args");
123 ashish 3961
 
3430 rajveer 3962
    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);
3963
    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);
3964
    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);
3965
    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);
3966
    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 3967
 
3430 rajveer 3968
    private long userId; // required
3969
    private long fromTime; // required
3970
    private long toTime; // required
3971
    private PaymentStatus status; // required
3972
    private long gatewayId; // required
123 ashish 3973
 
3974
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3975
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 3976
      USER_ID((short)1, "userId"),
695 rajveer 3977
      FROM_TIME((short)2, "fromTime"),
3978
      TO_TIME((short)3, "toTime"),
123 ashish 3979
      /**
3980
       * 
3981
       * @see PaymentStatus
3982
       */
3983
      STATUS((short)4, "status"),
695 rajveer 3984
      GATEWAY_ID((short)5, "gatewayId");
123 ashish 3985
 
3986
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3987
 
3988
      static {
3989
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3990
          byName.put(field.getFieldName(), field);
3991
        }
3992
      }
3993
 
3994
      /**
3995
       * Find the _Fields constant that matches fieldId, or null if its not found.
3996
       */
3997
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3998
        switch(fieldId) {
3999
          case 1: // USER_ID
4000
            return USER_ID;
4001
          case 2: // FROM_TIME
4002
            return FROM_TIME;
4003
          case 3: // TO_TIME
4004
            return TO_TIME;
4005
          case 4: // STATUS
4006
            return STATUS;
4007
          case 5: // GATEWAY_ID
4008
            return GATEWAY_ID;
4009
          default:
4010
            return null;
4011
        }
123 ashish 4012
      }
4013
 
4014
      /**
4015
       * Find the _Fields constant that matches fieldId, throwing an exception
4016
       * if it is not found.
4017
       */
4018
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4019
        _Fields fields = findByThriftId(fieldId);
4020
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4021
        return fields;
4022
      }
4023
 
4024
      /**
4025
       * Find the _Fields constant that matches name, or null if its not found.
4026
       */
4027
      public static _Fields findByName(String name) {
4028
        return byName.get(name);
4029
      }
4030
 
4031
      private final short _thriftId;
4032
      private final String _fieldName;
4033
 
4034
      _Fields(short thriftId, String fieldName) {
4035
        _thriftId = thriftId;
4036
        _fieldName = fieldName;
4037
      }
4038
 
4039
      public short getThriftFieldId() {
4040
        return _thriftId;
4041
      }
4042
 
4043
      public String getFieldName() {
4044
        return _fieldName;
4045
      }
4046
    }
4047
 
4048
    // isset id assignments
4049
    private static final int __USERID_ISSET_ID = 0;
695 rajveer 4050
    private static final int __FROMTIME_ISSET_ID = 1;
4051
    private static final int __TOTIME_ISSET_ID = 2;
4052
    private static final int __GATEWAYID_ISSET_ID = 3;
420 ashish 4053
    private BitSet __isset_bit_vector = new BitSet(4);
123 ashish 4054
 
3430 rajveer 4055
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4056
    static {
3430 rajveer 4057
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4058
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4060
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4061
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4062
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4063
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4064
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4065
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
4066
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4067
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4068
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4069
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_args.class, metaDataMap);
123 ashish 4070
    }
4071
 
4072
    public getPaymentsForUser_args() {
4073
    }
4074
 
4075
    public getPaymentsForUser_args(
4076
      long userId,
695 rajveer 4077
      long fromTime,
4078
      long toTime,
123 ashish 4079
      PaymentStatus status,
695 rajveer 4080
      long gatewayId)
123 ashish 4081
    {
4082
      this();
4083
      this.userId = userId;
4084
      setUserIdIsSet(true);
695 rajveer 4085
      this.fromTime = fromTime;
4086
      setFromTimeIsSet(true);
4087
      this.toTime = toTime;
4088
      setToTimeIsSet(true);
123 ashish 4089
      this.status = status;
695 rajveer 4090
      this.gatewayId = gatewayId;
4091
      setGatewayIdIsSet(true);
123 ashish 4092
    }
4093
 
4094
    /**
4095
     * Performs a deep copy on <i>other</i>.
4096
     */
4097
    public getPaymentsForUser_args(getPaymentsForUser_args other) {
4098
      __isset_bit_vector.clear();
4099
      __isset_bit_vector.or(other.__isset_bit_vector);
4100
      this.userId = other.userId;
695 rajveer 4101
      this.fromTime = other.fromTime;
4102
      this.toTime = other.toTime;
123 ashish 4103
      if (other.isSetStatus()) {
4104
        this.status = other.status;
4105
      }
695 rajveer 4106
      this.gatewayId = other.gatewayId;
123 ashish 4107
    }
4108
 
4109
    public getPaymentsForUser_args deepCopy() {
4110
      return new getPaymentsForUser_args(this);
4111
    }
4112
 
3430 rajveer 4113
    @Override
4114
    public void clear() {
4115
      setUserIdIsSet(false);
4116
      this.userId = 0;
4117
      setFromTimeIsSet(false);
4118
      this.fromTime = 0;
4119
      setToTimeIsSet(false);
4120
      this.toTime = 0;
4121
      this.status = null;
4122
      setGatewayIdIsSet(false);
4123
      this.gatewayId = 0;
123 ashish 4124
    }
4125
 
4126
    public long getUserId() {
4127
      return this.userId;
4128
    }
4129
 
3430 rajveer 4130
    public void setUserId(long userId) {
123 ashish 4131
      this.userId = userId;
4132
      setUserIdIsSet(true);
4133
    }
4134
 
4135
    public void unsetUserId() {
4136
      __isset_bit_vector.clear(__USERID_ISSET_ID);
4137
    }
4138
 
3430 rajveer 4139
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
123 ashish 4140
    public boolean isSetUserId() {
4141
      return __isset_bit_vector.get(__USERID_ISSET_ID);
4142
    }
4143
 
4144
    public void setUserIdIsSet(boolean value) {
4145
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
4146
    }
4147
 
695 rajveer 4148
    public long getFromTime() {
4149
      return this.fromTime;
123 ashish 4150
    }
4151
 
3430 rajveer 4152
    public void setFromTime(long fromTime) {
695 rajveer 4153
      this.fromTime = fromTime;
4154
      setFromTimeIsSet(true);
123 ashish 4155
    }
4156
 
695 rajveer 4157
    public void unsetFromTime() {
4158
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 4159
    }
4160
 
3430 rajveer 4161
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 4162
    public boolean isSetFromTime() {
4163
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 4164
    }
4165
 
695 rajveer 4166
    public void setFromTimeIsSet(boolean value) {
4167
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 4168
    }
4169
 
695 rajveer 4170
    public long getToTime() {
4171
      return this.toTime;
123 ashish 4172
    }
4173
 
3430 rajveer 4174
    public void setToTime(long toTime) {
695 rajveer 4175
      this.toTime = toTime;
4176
      setToTimeIsSet(true);
123 ashish 4177
    }
4178
 
695 rajveer 4179
    public void unsetToTime() {
4180
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 4181
    }
4182
 
3430 rajveer 4183
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 4184
    public boolean isSetToTime() {
4185
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 4186
    }
4187
 
695 rajveer 4188
    public void setToTimeIsSet(boolean value) {
4189
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 4190
    }
4191
 
4192
    /**
4193
     * 
4194
     * @see PaymentStatus
4195
     */
4196
    public PaymentStatus getStatus() {
4197
      return this.status;
4198
    }
4199
 
4200
    /**
4201
     * 
4202
     * @see PaymentStatus
4203
     */
3430 rajveer 4204
    public void setStatus(PaymentStatus status) {
123 ashish 4205
      this.status = status;
4206
    }
4207
 
4208
    public void unsetStatus() {
4209
      this.status = null;
4210
    }
4211
 
3430 rajveer 4212
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 4213
    public boolean isSetStatus() {
4214
      return this.status != null;
4215
    }
4216
 
4217
    public void setStatusIsSet(boolean value) {
4218
      if (!value) {
4219
        this.status = null;
4220
      }
4221
    }
4222
 
695 rajveer 4223
    public long getGatewayId() {
4224
      return this.gatewayId;
123 ashish 4225
    }
4226
 
3430 rajveer 4227
    public void setGatewayId(long gatewayId) {
695 rajveer 4228
      this.gatewayId = gatewayId;
4229
      setGatewayIdIsSet(true);
123 ashish 4230
    }
4231
 
695 rajveer 4232
    public void unsetGatewayId() {
4233
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 4234
    }
4235
 
3430 rajveer 4236
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 4237
    public boolean isSetGatewayId() {
4238
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 4239
    }
4240
 
695 rajveer 4241
    public void setGatewayIdIsSet(boolean value) {
4242
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 4243
    }
4244
 
4245
    public void setFieldValue(_Fields field, Object value) {
4246
      switch (field) {
4247
      case USER_ID:
4248
        if (value == null) {
4249
          unsetUserId();
4250
        } else {
4251
          setUserId((Long)value);
4252
        }
4253
        break;
4254
 
4255
      case FROM_TIME:
4256
        if (value == null) {
695 rajveer 4257
          unsetFromTime();
123 ashish 4258
        } else {
695 rajveer 4259
          setFromTime((Long)value);
123 ashish 4260
        }
4261
        break;
4262
 
4263
      case TO_TIME:
4264
        if (value == null) {
695 rajveer 4265
          unsetToTime();
123 ashish 4266
        } else {
695 rajveer 4267
          setToTime((Long)value);
123 ashish 4268
        }
4269
        break;
4270
 
4271
      case STATUS:
4272
        if (value == null) {
4273
          unsetStatus();
4274
        } else {
4275
          setStatus((PaymentStatus)value);
4276
        }
4277
        break;
4278
 
420 ashish 4279
      case GATEWAY_ID:
123 ashish 4280
        if (value == null) {
695 rajveer 4281
          unsetGatewayId();
123 ashish 4282
        } else {
695 rajveer 4283
          setGatewayId((Long)value);
123 ashish 4284
        }
4285
        break;
4286
 
4287
      }
4288
    }
4289
 
4290
    public Object getFieldValue(_Fields field) {
4291
      switch (field) {
4292
      case USER_ID:
3430 rajveer 4293
        return Long.valueOf(getUserId());
123 ashish 4294
 
4295
      case FROM_TIME:
3430 rajveer 4296
        return Long.valueOf(getFromTime());
123 ashish 4297
 
4298
      case TO_TIME:
3430 rajveer 4299
        return Long.valueOf(getToTime());
123 ashish 4300
 
4301
      case STATUS:
4302
        return getStatus();
4303
 
420 ashish 4304
      case GATEWAY_ID:
3430 rajveer 4305
        return Long.valueOf(getGatewayId());
123 ashish 4306
 
4307
      }
4308
      throw new IllegalStateException();
4309
    }
4310
 
3430 rajveer 4311
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4312
    public boolean isSet(_Fields field) {
4313
      if (field == null) {
4314
        throw new IllegalArgumentException();
4315
      }
123 ashish 4316
 
4317
      switch (field) {
4318
      case USER_ID:
4319
        return isSetUserId();
4320
      case FROM_TIME:
695 rajveer 4321
        return isSetFromTime();
123 ashish 4322
      case TO_TIME:
695 rajveer 4323
        return isSetToTime();
123 ashish 4324
      case STATUS:
4325
        return isSetStatus();
420 ashish 4326
      case GATEWAY_ID:
695 rajveer 4327
        return isSetGatewayId();
123 ashish 4328
      }
4329
      throw new IllegalStateException();
4330
    }
4331
 
4332
    @Override
4333
    public boolean equals(Object that) {
4334
      if (that == null)
4335
        return false;
4336
      if (that instanceof getPaymentsForUser_args)
4337
        return this.equals((getPaymentsForUser_args)that);
4338
      return false;
4339
    }
4340
 
4341
    public boolean equals(getPaymentsForUser_args that) {
4342
      if (that == null)
4343
        return false;
4344
 
4345
      boolean this_present_userId = true;
4346
      boolean that_present_userId = true;
4347
      if (this_present_userId || that_present_userId) {
4348
        if (!(this_present_userId && that_present_userId))
4349
          return false;
4350
        if (this.userId != that.userId)
4351
          return false;
4352
      }
4353
 
695 rajveer 4354
      boolean this_present_fromTime = true;
4355
      boolean that_present_fromTime = true;
4356
      if (this_present_fromTime || that_present_fromTime) {
4357
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 4358
          return false;
695 rajveer 4359
        if (this.fromTime != that.fromTime)
123 ashish 4360
          return false;
4361
      }
4362
 
695 rajveer 4363
      boolean this_present_toTime = true;
4364
      boolean that_present_toTime = true;
4365
      if (this_present_toTime || that_present_toTime) {
4366
        if (!(this_present_toTime && that_present_toTime))
123 ashish 4367
          return false;
695 rajveer 4368
        if (this.toTime != that.toTime)
123 ashish 4369
          return false;
4370
      }
4371
 
4372
      boolean this_present_status = true && this.isSetStatus();
4373
      boolean that_present_status = true && that.isSetStatus();
4374
      if (this_present_status || that_present_status) {
4375
        if (!(this_present_status && that_present_status))
4376
          return false;
4377
        if (!this.status.equals(that.status))
4378
          return false;
4379
      }
4380
 
695 rajveer 4381
      boolean this_present_gatewayId = true;
4382
      boolean that_present_gatewayId = true;
4383
      if (this_present_gatewayId || that_present_gatewayId) {
4384
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 4385
          return false;
695 rajveer 4386
        if (this.gatewayId != that.gatewayId)
123 ashish 4387
          return false;
4388
      }
4389
 
4390
      return true;
4391
    }
4392
 
4393
    @Override
4394
    public int hashCode() {
4395
      return 0;
4396
    }
4397
 
4398
    public int compareTo(getPaymentsForUser_args other) {
4399
      if (!getClass().equals(other.getClass())) {
4400
        return getClass().getName().compareTo(other.getClass().getName());
4401
      }
4402
 
4403
      int lastComparison = 0;
4404
      getPaymentsForUser_args typedOther = (getPaymentsForUser_args)other;
4405
 
3430 rajveer 4406
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
123 ashish 4407
      if (lastComparison != 0) {
4408
        return lastComparison;
4409
      }
3430 rajveer 4410
      if (isSetUserId()) {
4411
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
4412
        if (lastComparison != 0) {
4413
          return lastComparison;
4414
        }
123 ashish 4415
      }
3430 rajveer 4416
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 4417
      if (lastComparison != 0) {
4418
        return lastComparison;
4419
      }
3430 rajveer 4420
      if (isSetFromTime()) {
4421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
4422
        if (lastComparison != 0) {
4423
          return lastComparison;
4424
        }
123 ashish 4425
      }
3430 rajveer 4426
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 4427
      if (lastComparison != 0) {
4428
        return lastComparison;
4429
      }
3430 rajveer 4430
      if (isSetToTime()) {
4431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
4432
        if (lastComparison != 0) {
4433
          return lastComparison;
4434
        }
123 ashish 4435
      }
3430 rajveer 4436
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 4437
      if (lastComparison != 0) {
4438
        return lastComparison;
4439
      }
3430 rajveer 4440
      if (isSetStatus()) {
4441
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
4442
        if (lastComparison != 0) {
4443
          return lastComparison;
4444
        }
123 ashish 4445
      }
3430 rajveer 4446
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 4447
      if (lastComparison != 0) {
4448
        return lastComparison;
4449
      }
3430 rajveer 4450
      if (isSetGatewayId()) {
4451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
4452
        if (lastComparison != 0) {
4453
          return lastComparison;
4454
        }
123 ashish 4455
      }
4456
      return 0;
4457
    }
4458
 
3430 rajveer 4459
    public _Fields fieldForId(int fieldId) {
4460
      return _Fields.findByThriftId(fieldId);
4461
    }
4462
 
4463
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4464
      org.apache.thrift.protocol.TField field;
123 ashish 4465
      iprot.readStructBegin();
4466
      while (true)
4467
      {
4468
        field = iprot.readFieldBegin();
3430 rajveer 4469
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4470
          break;
4471
        }
3430 rajveer 4472
        switch (field.id) {
4473
          case 1: // USER_ID
4474
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4475
              this.userId = iprot.readI64();
4476
              setUserIdIsSet(true);
4477
            } else { 
4478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4479
            }
4480
            break;
4481
          case 2: // FROM_TIME
4482
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4483
              this.fromTime = iprot.readI64();
4484
              setFromTimeIsSet(true);
4485
            } else { 
4486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4487
            }
4488
            break;
4489
          case 3: // TO_TIME
4490
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4491
              this.toTime = iprot.readI64();
4492
              setToTimeIsSet(true);
4493
            } else { 
4494
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4495
            }
4496
            break;
4497
          case 4: // STATUS
4498
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4499
              this.status = PaymentStatus.findByValue(iprot.readI32());
4500
            } else { 
4501
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4502
            }
4503
            break;
4504
          case 5: // GATEWAY_ID
4505
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4506
              this.gatewayId = iprot.readI64();
4507
              setGatewayIdIsSet(true);
4508
            } else { 
4509
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4510
            }
4511
            break;
4512
          default:
4513
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4514
        }
3430 rajveer 4515
        iprot.readFieldEnd();
123 ashish 4516
      }
4517
      iprot.readStructEnd();
4518
      validate();
4519
    }
4520
 
3430 rajveer 4521
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4522
      validate();
4523
 
4524
      oprot.writeStructBegin(STRUCT_DESC);
4525
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
4526
      oprot.writeI64(this.userId);
4527
      oprot.writeFieldEnd();
4528
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 4529
      oprot.writeI64(this.fromTime);
123 ashish 4530
      oprot.writeFieldEnd();
4531
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 4532
      oprot.writeI64(this.toTime);
123 ashish 4533
      oprot.writeFieldEnd();
4534
      if (this.status != null) {
4535
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
4536
        oprot.writeI32(this.status.getValue());
4537
        oprot.writeFieldEnd();
4538
      }
420 ashish 4539
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 4540
      oprot.writeI64(this.gatewayId);
420 ashish 4541
      oprot.writeFieldEnd();
123 ashish 4542
      oprot.writeFieldStop();
4543
      oprot.writeStructEnd();
4544
    }
4545
 
4546
    @Override
4547
    public String toString() {
4548
      StringBuilder sb = new StringBuilder("getPaymentsForUser_args(");
4549
      boolean first = true;
4550
 
4551
      sb.append("userId:");
4552
      sb.append(this.userId);
4553
      first = false;
4554
      if (!first) sb.append(", ");
695 rajveer 4555
      sb.append("fromTime:");
4556
      sb.append(this.fromTime);
123 ashish 4557
      first = false;
4558
      if (!first) sb.append(", ");
695 rajveer 4559
      sb.append("toTime:");
4560
      sb.append(this.toTime);
123 ashish 4561
      first = false;
4562
      if (!first) sb.append(", ");
4563
      sb.append("status:");
4564
      if (this.status == null) {
4565
        sb.append("null");
4566
      } else {
4567
        sb.append(this.status);
4568
      }
4569
      first = false;
4570
      if (!first) sb.append(", ");
695 rajveer 4571
      sb.append("gatewayId:");
4572
      sb.append(this.gatewayId);
123 ashish 4573
      first = false;
4574
      sb.append(")");
4575
      return sb.toString();
4576
    }
4577
 
3430 rajveer 4578
    public void validate() throws org.apache.thrift.TException {
123 ashish 4579
      // check for required fields
4580
    }
4581
 
3430 rajveer 4582
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4583
      try {
4584
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4585
      } catch (org.apache.thrift.TException te) {
4586
        throw new java.io.IOException(te);
4587
      }
4588
    }
4589
 
4590
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4591
      try {
4592
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4593
      } catch (org.apache.thrift.TException te) {
4594
        throw new java.io.IOException(te);
4595
      }
4596
    }
4597
 
123 ashish 4598
  }
4599
 
3430 rajveer 4600
  public static class getPaymentsForUser_result implements org.apache.thrift.TBase<getPaymentsForUser_result, getPaymentsForUser_result._Fields>, java.io.Serializable, Cloneable   {
4601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsForUser_result");
123 ashish 4602
 
3430 rajveer 4603
    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);
4604
    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 4605
 
3430 rajveer 4606
    private List<Payment> success; // required
4607
    private PaymentException pe; // required
123 ashish 4608
 
4609
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4610
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 4611
      SUCCESS((short)0, "success"),
4612
      PE((short)1, "pe");
4613
 
4614
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4615
 
4616
      static {
4617
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4618
          byName.put(field.getFieldName(), field);
4619
        }
4620
      }
4621
 
4622
      /**
4623
       * Find the _Fields constant that matches fieldId, or null if its not found.
4624
       */
4625
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4626
        switch(fieldId) {
4627
          case 0: // SUCCESS
4628
            return SUCCESS;
4629
          case 1: // PE
4630
            return PE;
4631
          default:
4632
            return null;
4633
        }
123 ashish 4634
      }
4635
 
4636
      /**
4637
       * Find the _Fields constant that matches fieldId, throwing an exception
4638
       * if it is not found.
4639
       */
4640
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4641
        _Fields fields = findByThriftId(fieldId);
4642
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4643
        return fields;
4644
      }
4645
 
4646
      /**
4647
       * Find the _Fields constant that matches name, or null if its not found.
4648
       */
4649
      public static _Fields findByName(String name) {
4650
        return byName.get(name);
4651
      }
4652
 
4653
      private final short _thriftId;
4654
      private final String _fieldName;
4655
 
4656
      _Fields(short thriftId, String fieldName) {
4657
        _thriftId = thriftId;
4658
        _fieldName = fieldName;
4659
      }
4660
 
4661
      public short getThriftFieldId() {
4662
        return _thriftId;
4663
      }
4664
 
4665
      public String getFieldName() {
4666
        return _fieldName;
4667
      }
4668
    }
4669
 
4670
    // isset id assignments
4671
 
3430 rajveer 4672
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 4673
    static {
3430 rajveer 4674
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4675
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4676
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4677
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
4678
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4679
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4680
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4681
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsForUser_result.class, metaDataMap);
123 ashish 4682
    }
4683
 
4684
    public getPaymentsForUser_result() {
4685
    }
4686
 
4687
    public getPaymentsForUser_result(
4688
      List<Payment> success,
4689
      PaymentException pe)
4690
    {
4691
      this();
4692
      this.success = success;
4693
      this.pe = pe;
4694
    }
4695
 
4696
    /**
4697
     * Performs a deep copy on <i>other</i>.
4698
     */
4699
    public getPaymentsForUser_result(getPaymentsForUser_result other) {
4700
      if (other.isSetSuccess()) {
4701
        List<Payment> __this__success = new ArrayList<Payment>();
4702
        for (Payment other_element : other.success) {
4703
          __this__success.add(new Payment(other_element));
4704
        }
4705
        this.success = __this__success;
4706
      }
4707
      if (other.isSetPe()) {
4708
        this.pe = new PaymentException(other.pe);
4709
      }
4710
    }
4711
 
4712
    public getPaymentsForUser_result deepCopy() {
4713
      return new getPaymentsForUser_result(this);
4714
    }
4715
 
3430 rajveer 4716
    @Override
4717
    public void clear() {
4718
      this.success = null;
4719
      this.pe = null;
123 ashish 4720
    }
4721
 
4722
    public int getSuccessSize() {
4723
      return (this.success == null) ? 0 : this.success.size();
4724
    }
4725
 
4726
    public java.util.Iterator<Payment> getSuccessIterator() {
4727
      return (this.success == null) ? null : this.success.iterator();
4728
    }
4729
 
4730
    public void addToSuccess(Payment elem) {
4731
      if (this.success == null) {
4732
        this.success = new ArrayList<Payment>();
4733
      }
4734
      this.success.add(elem);
4735
    }
4736
 
4737
    public List<Payment> getSuccess() {
4738
      return this.success;
4739
    }
4740
 
3430 rajveer 4741
    public void setSuccess(List<Payment> success) {
123 ashish 4742
      this.success = success;
4743
    }
4744
 
4745
    public void unsetSuccess() {
4746
      this.success = null;
4747
    }
4748
 
3430 rajveer 4749
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 4750
    public boolean isSetSuccess() {
4751
      return this.success != null;
4752
    }
4753
 
4754
    public void setSuccessIsSet(boolean value) {
4755
      if (!value) {
4756
        this.success = null;
4757
      }
4758
    }
4759
 
4760
    public PaymentException getPe() {
4761
      return this.pe;
4762
    }
4763
 
3430 rajveer 4764
    public void setPe(PaymentException pe) {
123 ashish 4765
      this.pe = pe;
4766
    }
4767
 
4768
    public void unsetPe() {
4769
      this.pe = null;
4770
    }
4771
 
3430 rajveer 4772
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 4773
    public boolean isSetPe() {
4774
      return this.pe != null;
4775
    }
4776
 
4777
    public void setPeIsSet(boolean value) {
4778
      if (!value) {
4779
        this.pe = null;
4780
      }
4781
    }
4782
 
4783
    public void setFieldValue(_Fields field, Object value) {
4784
      switch (field) {
4785
      case SUCCESS:
4786
        if (value == null) {
4787
          unsetSuccess();
4788
        } else {
4789
          setSuccess((List<Payment>)value);
4790
        }
4791
        break;
4792
 
4793
      case PE:
4794
        if (value == null) {
4795
          unsetPe();
4796
        } else {
4797
          setPe((PaymentException)value);
4798
        }
4799
        break;
4800
 
4801
      }
4802
    }
4803
 
4804
    public Object getFieldValue(_Fields field) {
4805
      switch (field) {
4806
      case SUCCESS:
4807
        return getSuccess();
4808
 
4809
      case PE:
4810
        return getPe();
4811
 
4812
      }
4813
      throw new IllegalStateException();
4814
    }
4815
 
3430 rajveer 4816
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4817
    public boolean isSet(_Fields field) {
4818
      if (field == null) {
4819
        throw new IllegalArgumentException();
4820
      }
123 ashish 4821
 
4822
      switch (field) {
4823
      case SUCCESS:
4824
        return isSetSuccess();
4825
      case PE:
4826
        return isSetPe();
4827
      }
4828
      throw new IllegalStateException();
4829
    }
4830
 
4831
    @Override
4832
    public boolean equals(Object that) {
4833
      if (that == null)
4834
        return false;
4835
      if (that instanceof getPaymentsForUser_result)
4836
        return this.equals((getPaymentsForUser_result)that);
4837
      return false;
4838
    }
4839
 
4840
    public boolean equals(getPaymentsForUser_result that) {
4841
      if (that == null)
4842
        return false;
4843
 
4844
      boolean this_present_success = true && this.isSetSuccess();
4845
      boolean that_present_success = true && that.isSetSuccess();
4846
      if (this_present_success || that_present_success) {
4847
        if (!(this_present_success && that_present_success))
4848
          return false;
4849
        if (!this.success.equals(that.success))
4850
          return false;
4851
      }
4852
 
4853
      boolean this_present_pe = true && this.isSetPe();
4854
      boolean that_present_pe = true && that.isSetPe();
4855
      if (this_present_pe || that_present_pe) {
4856
        if (!(this_present_pe && that_present_pe))
4857
          return false;
4858
        if (!this.pe.equals(that.pe))
4859
          return false;
4860
      }
4861
 
4862
      return true;
4863
    }
4864
 
4865
    @Override
4866
    public int hashCode() {
4867
      return 0;
4868
    }
4869
 
695 rajveer 4870
    public int compareTo(getPaymentsForUser_result other) {
123 ashish 4871
      if (!getClass().equals(other.getClass())) {
4872
        return getClass().getName().compareTo(other.getClass().getName());
4873
      }
4874
 
4875
      int lastComparison = 0;
695 rajveer 4876
      getPaymentsForUser_result typedOther = (getPaymentsForUser_result)other;
123 ashish 4877
 
3430 rajveer 4878
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 4879
      if (lastComparison != 0) {
4880
        return lastComparison;
4881
      }
3430 rajveer 4882
      if (isSetSuccess()) {
4883
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4884
        if (lastComparison != 0) {
4885
          return lastComparison;
4886
        }
123 ashish 4887
      }
3430 rajveer 4888
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
123 ashish 4889
      if (lastComparison != 0) {
4890
        return lastComparison;
4891
      }
3430 rajveer 4892
      if (isSetPe()) {
4893
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
4894
        if (lastComparison != 0) {
4895
          return lastComparison;
4896
        }
123 ashish 4897
      }
4898
      return 0;
4899
    }
4900
 
3430 rajveer 4901
    public _Fields fieldForId(int fieldId) {
4902
      return _Fields.findByThriftId(fieldId);
4903
    }
4904
 
4905
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4906
      org.apache.thrift.protocol.TField field;
123 ashish 4907
      iprot.readStructBegin();
4908
      while (true)
4909
      {
4910
        field = iprot.readFieldBegin();
3430 rajveer 4911
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 4912
          break;
4913
        }
3430 rajveer 4914
        switch (field.id) {
4915
          case 0: // SUCCESS
4916
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4917
              {
4918
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
4919
                this.success = new ArrayList<Payment>(_list12.size);
4920
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
123 ashish 4921
                {
3430 rajveer 4922
                  Payment _elem14; // required
4923
                  _elem14 = new Payment();
4924
                  _elem14.read(iprot);
4925
                  this.success.add(_elem14);
123 ashish 4926
                }
3430 rajveer 4927
                iprot.readListEnd();
123 ashish 4928
              }
3430 rajveer 4929
            } else { 
4930
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4931
            }
4932
            break;
4933
          case 1: // PE
4934
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4935
              this.pe = new PaymentException();
4936
              this.pe.read(iprot);
4937
            } else { 
4938
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4939
            }
4940
            break;
4941
          default:
4942
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 4943
        }
3430 rajveer 4944
        iprot.readFieldEnd();
123 ashish 4945
      }
4946
      iprot.readStructEnd();
4947
      validate();
4948
    }
4949
 
3430 rajveer 4950
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 4951
      oprot.writeStructBegin(STRUCT_DESC);
4952
 
4953
      if (this.isSetSuccess()) {
4954
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4955
        {
3430 rajveer 4956
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 4957
          for (Payment _iter15 : this.success)
123 ashish 4958
          {
2747 chandransh 4959
            _iter15.write(oprot);
123 ashish 4960
          }
4961
          oprot.writeListEnd();
4962
        }
4963
        oprot.writeFieldEnd();
4964
      } else if (this.isSetPe()) {
4965
        oprot.writeFieldBegin(PE_FIELD_DESC);
4966
        this.pe.write(oprot);
4967
        oprot.writeFieldEnd();
4968
      }
4969
      oprot.writeFieldStop();
4970
      oprot.writeStructEnd();
4971
    }
4972
 
4973
    @Override
4974
    public String toString() {
695 rajveer 4975
      StringBuilder sb = new StringBuilder("getPaymentsForUser_result(");
123 ashish 4976
      boolean first = true;
4977
 
4978
      sb.append("success:");
4979
      if (this.success == null) {
4980
        sb.append("null");
4981
      } else {
4982
        sb.append(this.success);
4983
      }
4984
      first = false;
4985
      if (!first) sb.append(", ");
4986
      sb.append("pe:");
4987
      if (this.pe == null) {
4988
        sb.append("null");
4989
      } else {
4990
        sb.append(this.pe);
4991
      }
4992
      first = false;
4993
      sb.append(")");
4994
      return sb.toString();
4995
    }
4996
 
3430 rajveer 4997
    public void validate() throws org.apache.thrift.TException {
123 ashish 4998
      // check for required fields
4999
    }
5000
 
3430 rajveer 5001
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5002
      try {
5003
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5004
      } catch (org.apache.thrift.TException te) {
5005
        throw new java.io.IOException(te);
5006
      }
5007
    }
5008
 
5009
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5010
      try {
5011
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5012
      } catch (org.apache.thrift.TException te) {
5013
        throw new java.io.IOException(te);
5014
      }
5015
    }
5016
 
123 ashish 5017
  }
5018
 
3430 rajveer 5019
  public static class getPayments_args implements org.apache.thrift.TBase<getPayments_args, getPayments_args._Fields>, java.io.Serializable, Cloneable   {
5020
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_args");
123 ashish 5021
 
3430 rajveer 5022
    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);
5023
    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);
5024
    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);
5025
    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 5026
 
3430 rajveer 5027
    private long fromTime; // required
5028
    private long toTime; // required
5029
    private PaymentStatus status; // required
5030
    private long gatewayId; // required
123 ashish 5031
 
5032
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5033
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 5034
      FROM_TIME((short)1, "fromTime"),
5035
      TO_TIME((short)2, "toTime"),
123 ashish 5036
      /**
5037
       * 
5038
       * @see PaymentStatus
5039
       */
5040
      STATUS((short)3, "status"),
695 rajveer 5041
      GATEWAY_ID((short)4, "gatewayId");
123 ashish 5042
 
5043
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5044
 
5045
      static {
5046
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5047
          byName.put(field.getFieldName(), field);
5048
        }
5049
      }
5050
 
5051
      /**
5052
       * Find the _Fields constant that matches fieldId, or null if its not found.
5053
       */
5054
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5055
        switch(fieldId) {
5056
          case 1: // FROM_TIME
5057
            return FROM_TIME;
5058
          case 2: // TO_TIME
5059
            return TO_TIME;
5060
          case 3: // STATUS
5061
            return STATUS;
5062
          case 4: // GATEWAY_ID
5063
            return GATEWAY_ID;
5064
          default:
5065
            return null;
5066
        }
123 ashish 5067
      }
5068
 
5069
      /**
5070
       * Find the _Fields constant that matches fieldId, throwing an exception
5071
       * if it is not found.
5072
       */
5073
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5074
        _Fields fields = findByThriftId(fieldId);
5075
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5076
        return fields;
5077
      }
5078
 
5079
      /**
5080
       * Find the _Fields constant that matches name, or null if its not found.
5081
       */
5082
      public static _Fields findByName(String name) {
5083
        return byName.get(name);
5084
      }
5085
 
5086
      private final short _thriftId;
5087
      private final String _fieldName;
5088
 
5089
      _Fields(short thriftId, String fieldName) {
5090
        _thriftId = thriftId;
5091
        _fieldName = fieldName;
5092
      }
5093
 
5094
      public short getThriftFieldId() {
5095
        return _thriftId;
5096
      }
5097
 
5098
      public String getFieldName() {
5099
        return _fieldName;
5100
      }
5101
    }
5102
 
5103
    // isset id assignments
695 rajveer 5104
    private static final int __FROMTIME_ISSET_ID = 0;
5105
    private static final int __TOTIME_ISSET_ID = 1;
5106
    private static final int __GATEWAYID_ISSET_ID = 2;
420 ashish 5107
    private BitSet __isset_bit_vector = new BitSet(3);
123 ashish 5108
 
3430 rajveer 5109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 5110
    static {
3430 rajveer 5111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5112
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5113
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5114
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5116
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5117
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
5118
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5119
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_args.class, metaDataMap);
123 ashish 5122
    }
5123
 
5124
    public getPayments_args() {
5125
    }
5126
 
5127
    public getPayments_args(
695 rajveer 5128
      long fromTime,
5129
      long toTime,
123 ashish 5130
      PaymentStatus status,
695 rajveer 5131
      long gatewayId)
123 ashish 5132
    {
5133
      this();
695 rajveer 5134
      this.fromTime = fromTime;
5135
      setFromTimeIsSet(true);
5136
      this.toTime = toTime;
5137
      setToTimeIsSet(true);
123 ashish 5138
      this.status = status;
695 rajveer 5139
      this.gatewayId = gatewayId;
5140
      setGatewayIdIsSet(true);
123 ashish 5141
    }
5142
 
5143
    /**
5144
     * Performs a deep copy on <i>other</i>.
5145
     */
5146
    public getPayments_args(getPayments_args other) {
5147
      __isset_bit_vector.clear();
5148
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 5149
      this.fromTime = other.fromTime;
5150
      this.toTime = other.toTime;
123 ashish 5151
      if (other.isSetStatus()) {
5152
        this.status = other.status;
5153
      }
695 rajveer 5154
      this.gatewayId = other.gatewayId;
123 ashish 5155
    }
5156
 
5157
    public getPayments_args deepCopy() {
5158
      return new getPayments_args(this);
5159
    }
5160
 
3430 rajveer 5161
    @Override
5162
    public void clear() {
5163
      setFromTimeIsSet(false);
5164
      this.fromTime = 0;
5165
      setToTimeIsSet(false);
5166
      this.toTime = 0;
5167
      this.status = null;
5168
      setGatewayIdIsSet(false);
5169
      this.gatewayId = 0;
123 ashish 5170
    }
5171
 
695 rajveer 5172
    public long getFromTime() {
5173
      return this.fromTime;
123 ashish 5174
    }
5175
 
3430 rajveer 5176
    public void setFromTime(long fromTime) {
695 rajveer 5177
      this.fromTime = fromTime;
5178
      setFromTimeIsSet(true);
123 ashish 5179
    }
5180
 
695 rajveer 5181
    public void unsetFromTime() {
5182
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
123 ashish 5183
    }
5184
 
3430 rajveer 5185
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
695 rajveer 5186
    public boolean isSetFromTime() {
5187
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
123 ashish 5188
    }
5189
 
695 rajveer 5190
    public void setFromTimeIsSet(boolean value) {
5191
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
123 ashish 5192
    }
5193
 
695 rajveer 5194
    public long getToTime() {
5195
      return this.toTime;
123 ashish 5196
    }
5197
 
3430 rajveer 5198
    public void setToTime(long toTime) {
695 rajveer 5199
      this.toTime = toTime;
5200
      setToTimeIsSet(true);
123 ashish 5201
    }
5202
 
695 rajveer 5203
    public void unsetToTime() {
5204
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
123 ashish 5205
    }
5206
 
3430 rajveer 5207
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
695 rajveer 5208
    public boolean isSetToTime() {
5209
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
123 ashish 5210
    }
5211
 
695 rajveer 5212
    public void setToTimeIsSet(boolean value) {
5213
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
123 ashish 5214
    }
5215
 
5216
    /**
5217
     * 
5218
     * @see PaymentStatus
5219
     */
5220
    public PaymentStatus getStatus() {
5221
      return this.status;
5222
    }
5223
 
5224
    /**
5225
     * 
5226
     * @see PaymentStatus
5227
     */
3430 rajveer 5228
    public void setStatus(PaymentStatus status) {
123 ashish 5229
      this.status = status;
5230
    }
5231
 
5232
    public void unsetStatus() {
5233
      this.status = null;
5234
    }
5235
 
3430 rajveer 5236
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
123 ashish 5237
    public boolean isSetStatus() {
5238
      return this.status != null;
5239
    }
5240
 
5241
    public void setStatusIsSet(boolean value) {
5242
      if (!value) {
5243
        this.status = null;
5244
      }
5245
    }
5246
 
695 rajveer 5247
    public long getGatewayId() {
5248
      return this.gatewayId;
123 ashish 5249
    }
5250
 
3430 rajveer 5251
    public void setGatewayId(long gatewayId) {
695 rajveer 5252
      this.gatewayId = gatewayId;
5253
      setGatewayIdIsSet(true);
123 ashish 5254
    }
5255
 
695 rajveer 5256
    public void unsetGatewayId() {
5257
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
123 ashish 5258
    }
5259
 
3430 rajveer 5260
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
695 rajveer 5261
    public boolean isSetGatewayId() {
5262
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
123 ashish 5263
    }
5264
 
695 rajveer 5265
    public void setGatewayIdIsSet(boolean value) {
5266
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
123 ashish 5267
    }
5268
 
5269
    public void setFieldValue(_Fields field, Object value) {
5270
      switch (field) {
5271
      case FROM_TIME:
5272
        if (value == null) {
695 rajveer 5273
          unsetFromTime();
123 ashish 5274
        } else {
695 rajveer 5275
          setFromTime((Long)value);
123 ashish 5276
        }
5277
        break;
5278
 
5279
      case TO_TIME:
5280
        if (value == null) {
695 rajveer 5281
          unsetToTime();
123 ashish 5282
        } else {
695 rajveer 5283
          setToTime((Long)value);
123 ashish 5284
        }
5285
        break;
5286
 
5287
      case STATUS:
5288
        if (value == null) {
5289
          unsetStatus();
5290
        } else {
5291
          setStatus((PaymentStatus)value);
5292
        }
5293
        break;
5294
 
420 ashish 5295
      case GATEWAY_ID:
123 ashish 5296
        if (value == null) {
695 rajveer 5297
          unsetGatewayId();
123 ashish 5298
        } else {
695 rajveer 5299
          setGatewayId((Long)value);
123 ashish 5300
        }
5301
        break;
5302
 
5303
      }
5304
    }
5305
 
5306
    public Object getFieldValue(_Fields field) {
5307
      switch (field) {
5308
      case FROM_TIME:
3430 rajveer 5309
        return Long.valueOf(getFromTime());
123 ashish 5310
 
5311
      case TO_TIME:
3430 rajveer 5312
        return Long.valueOf(getToTime());
123 ashish 5313
 
5314
      case STATUS:
5315
        return getStatus();
5316
 
420 ashish 5317
      case GATEWAY_ID:
3430 rajveer 5318
        return Long.valueOf(getGatewayId());
123 ashish 5319
 
5320
      }
5321
      throw new IllegalStateException();
5322
    }
5323
 
3430 rajveer 5324
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5325
    public boolean isSet(_Fields field) {
5326
      if (field == null) {
5327
        throw new IllegalArgumentException();
5328
      }
123 ashish 5329
 
5330
      switch (field) {
5331
      case FROM_TIME:
695 rajveer 5332
        return isSetFromTime();
123 ashish 5333
      case TO_TIME:
695 rajveer 5334
        return isSetToTime();
123 ashish 5335
      case STATUS:
5336
        return isSetStatus();
420 ashish 5337
      case GATEWAY_ID:
695 rajveer 5338
        return isSetGatewayId();
123 ashish 5339
      }
5340
      throw new IllegalStateException();
5341
    }
5342
 
5343
    @Override
5344
    public boolean equals(Object that) {
5345
      if (that == null)
5346
        return false;
5347
      if (that instanceof getPayments_args)
5348
        return this.equals((getPayments_args)that);
5349
      return false;
5350
    }
5351
 
5352
    public boolean equals(getPayments_args that) {
5353
      if (that == null)
5354
        return false;
5355
 
695 rajveer 5356
      boolean this_present_fromTime = true;
5357
      boolean that_present_fromTime = true;
5358
      if (this_present_fromTime || that_present_fromTime) {
5359
        if (!(this_present_fromTime && that_present_fromTime))
123 ashish 5360
          return false;
695 rajveer 5361
        if (this.fromTime != that.fromTime)
123 ashish 5362
          return false;
5363
      }
5364
 
695 rajveer 5365
      boolean this_present_toTime = true;
5366
      boolean that_present_toTime = true;
5367
      if (this_present_toTime || that_present_toTime) {
5368
        if (!(this_present_toTime && that_present_toTime))
123 ashish 5369
          return false;
695 rajveer 5370
        if (this.toTime != that.toTime)
123 ashish 5371
          return false;
5372
      }
5373
 
5374
      boolean this_present_status = true && this.isSetStatus();
5375
      boolean that_present_status = true && that.isSetStatus();
5376
      if (this_present_status || that_present_status) {
5377
        if (!(this_present_status && that_present_status))
5378
          return false;
5379
        if (!this.status.equals(that.status))
5380
          return false;
5381
      }
5382
 
695 rajveer 5383
      boolean this_present_gatewayId = true;
5384
      boolean that_present_gatewayId = true;
5385
      if (this_present_gatewayId || that_present_gatewayId) {
5386
        if (!(this_present_gatewayId && that_present_gatewayId))
123 ashish 5387
          return false;
695 rajveer 5388
        if (this.gatewayId != that.gatewayId)
123 ashish 5389
          return false;
5390
      }
5391
 
5392
      return true;
5393
    }
5394
 
5395
    @Override
5396
    public int hashCode() {
5397
      return 0;
5398
    }
5399
 
5400
    public int compareTo(getPayments_args other) {
5401
      if (!getClass().equals(other.getClass())) {
5402
        return getClass().getName().compareTo(other.getClass().getName());
5403
      }
5404
 
5405
      int lastComparison = 0;
5406
      getPayments_args typedOther = (getPayments_args)other;
5407
 
3430 rajveer 5408
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
123 ashish 5409
      if (lastComparison != 0) {
5410
        return lastComparison;
5411
      }
3430 rajveer 5412
      if (isSetFromTime()) {
5413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
5414
        if (lastComparison != 0) {
5415
          return lastComparison;
5416
        }
123 ashish 5417
      }
3430 rajveer 5418
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
123 ashish 5419
      if (lastComparison != 0) {
5420
        return lastComparison;
5421
      }
3430 rajveer 5422
      if (isSetToTime()) {
5423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
5424
        if (lastComparison != 0) {
5425
          return lastComparison;
5426
        }
123 ashish 5427
      }
3430 rajveer 5428
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
123 ashish 5429
      if (lastComparison != 0) {
5430
        return lastComparison;
5431
      }
3430 rajveer 5432
      if (isSetStatus()) {
5433
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
5434
        if (lastComparison != 0) {
5435
          return lastComparison;
5436
        }
123 ashish 5437
      }
3430 rajveer 5438
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
123 ashish 5439
      if (lastComparison != 0) {
5440
        return lastComparison;
5441
      }
3430 rajveer 5442
      if (isSetGatewayId()) {
5443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
5444
        if (lastComparison != 0) {
5445
          return lastComparison;
5446
        }
123 ashish 5447
      }
5448
      return 0;
5449
    }
5450
 
3430 rajveer 5451
    public _Fields fieldForId(int fieldId) {
5452
      return _Fields.findByThriftId(fieldId);
5453
    }
5454
 
5455
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5456
      org.apache.thrift.protocol.TField field;
123 ashish 5457
      iprot.readStructBegin();
5458
      while (true)
5459
      {
5460
        field = iprot.readFieldBegin();
3430 rajveer 5461
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 5462
          break;
5463
        }
3430 rajveer 5464
        switch (field.id) {
5465
          case 1: // FROM_TIME
5466
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5467
              this.fromTime = iprot.readI64();
5468
              setFromTimeIsSet(true);
5469
            } else { 
5470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5471
            }
5472
            break;
5473
          case 2: // TO_TIME
5474
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5475
              this.toTime = iprot.readI64();
5476
              setToTimeIsSet(true);
5477
            } else { 
5478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5479
            }
5480
            break;
5481
          case 3: // STATUS
5482
            if (field.type == org.apache.thrift.protocol.TType.I32) {
5483
              this.status = PaymentStatus.findByValue(iprot.readI32());
5484
            } else { 
5485
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5486
            }
5487
            break;
5488
          case 4: // GATEWAY_ID
5489
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5490
              this.gatewayId = iprot.readI64();
5491
              setGatewayIdIsSet(true);
5492
            } else { 
5493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5494
            }
5495
            break;
5496
          default:
5497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 5498
        }
3430 rajveer 5499
        iprot.readFieldEnd();
123 ashish 5500
      }
5501
      iprot.readStructEnd();
5502
      validate();
5503
    }
5504
 
3430 rajveer 5505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 5506
      validate();
5507
 
5508
      oprot.writeStructBegin(STRUCT_DESC);
5509
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
695 rajveer 5510
      oprot.writeI64(this.fromTime);
123 ashish 5511
      oprot.writeFieldEnd();
5512
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
695 rajveer 5513
      oprot.writeI64(this.toTime);
123 ashish 5514
      oprot.writeFieldEnd();
5515
      if (this.status != null) {
5516
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
5517
        oprot.writeI32(this.status.getValue());
5518
        oprot.writeFieldEnd();
5519
      }
420 ashish 5520
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
695 rajveer 5521
      oprot.writeI64(this.gatewayId);
420 ashish 5522
      oprot.writeFieldEnd();
123 ashish 5523
      oprot.writeFieldStop();
5524
      oprot.writeStructEnd();
5525
    }
5526
 
5527
    @Override
5528
    public String toString() {
5529
      StringBuilder sb = new StringBuilder("getPayments_args(");
5530
      boolean first = true;
5531
 
695 rajveer 5532
      sb.append("fromTime:");
5533
      sb.append(this.fromTime);
123 ashish 5534
      first = false;
5535
      if (!first) sb.append(", ");
695 rajveer 5536
      sb.append("toTime:");
5537
      sb.append(this.toTime);
123 ashish 5538
      first = false;
5539
      if (!first) sb.append(", ");
5540
      sb.append("status:");
5541
      if (this.status == null) {
5542
        sb.append("null");
5543
      } else {
5544
        sb.append(this.status);
5545
      }
5546
      first = false;
5547
      if (!first) sb.append(", ");
695 rajveer 5548
      sb.append("gatewayId:");
5549
      sb.append(this.gatewayId);
123 ashish 5550
      first = false;
5551
      sb.append(")");
5552
      return sb.toString();
5553
    }
5554
 
3430 rajveer 5555
    public void validate() throws org.apache.thrift.TException {
123 ashish 5556
      // check for required fields
5557
    }
5558
 
3430 rajveer 5559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5560
      try {
5561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5562
      } catch (org.apache.thrift.TException te) {
5563
        throw new java.io.IOException(te);
5564
      }
5565
    }
5566
 
5567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5568
      try {
5569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5570
      } catch (org.apache.thrift.TException te) {
5571
        throw new java.io.IOException(te);
5572
      }
5573
    }
5574
 
123 ashish 5575
  }
5576
 
3430 rajveer 5577
  public static class getPayments_result implements org.apache.thrift.TBase<getPayments_result, getPayments_result._Fields>, java.io.Serializable, Cloneable   {
5578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayments_result");
123 ashish 5579
 
3430 rajveer 5580
    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);
5581
    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 5582
 
3430 rajveer 5583
    private List<Payment> success; // required
5584
    private PaymentException pe; // required
123 ashish 5585
 
5586
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5587
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
123 ashish 5588
      SUCCESS((short)0, "success"),
5589
      PE((short)1, "pe");
5590
 
5591
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5592
 
5593
      static {
5594
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5595
          byName.put(field.getFieldName(), field);
5596
        }
5597
      }
5598
 
5599
      /**
5600
       * Find the _Fields constant that matches fieldId, or null if its not found.
5601
       */
5602
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5603
        switch(fieldId) {
5604
          case 0: // SUCCESS
5605
            return SUCCESS;
5606
          case 1: // PE
5607
            return PE;
5608
          default:
5609
            return null;
5610
        }
123 ashish 5611
      }
5612
 
5613
      /**
5614
       * Find the _Fields constant that matches fieldId, throwing an exception
5615
       * if it is not found.
5616
       */
5617
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5618
        _Fields fields = findByThriftId(fieldId);
5619
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5620
        return fields;
5621
      }
5622
 
5623
      /**
5624
       * Find the _Fields constant that matches name, or null if its not found.
5625
       */
5626
      public static _Fields findByName(String name) {
5627
        return byName.get(name);
5628
      }
5629
 
5630
      private final short _thriftId;
5631
      private final String _fieldName;
5632
 
5633
      _Fields(short thriftId, String fieldName) {
5634
        _thriftId = thriftId;
5635
        _fieldName = fieldName;
5636
      }
5637
 
5638
      public short getThriftFieldId() {
5639
        return _thriftId;
5640
      }
5641
 
5642
      public String getFieldName() {
5643
        return _fieldName;
5644
      }
5645
    }
5646
 
5647
    // isset id assignments
5648
 
3430 rajveer 5649
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 5650
    static {
3430 rajveer 5651
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5652
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5653
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5654
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
5655
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5656
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5657
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5658
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayments_result.class, metaDataMap);
123 ashish 5659
    }
5660
 
5661
    public getPayments_result() {
5662
    }
5663
 
5664
    public getPayments_result(
5665
      List<Payment> success,
5666
      PaymentException pe)
5667
    {
5668
      this();
5669
      this.success = success;
5670
      this.pe = pe;
5671
    }
5672
 
5673
    /**
5674
     * Performs a deep copy on <i>other</i>.
5675
     */
5676
    public getPayments_result(getPayments_result other) {
5677
      if (other.isSetSuccess()) {
5678
        List<Payment> __this__success = new ArrayList<Payment>();
5679
        for (Payment other_element : other.success) {
5680
          __this__success.add(new Payment(other_element));
5681
        }
5682
        this.success = __this__success;
5683
      }
5684
      if (other.isSetPe()) {
5685
        this.pe = new PaymentException(other.pe);
5686
      }
5687
    }
5688
 
5689
    public getPayments_result deepCopy() {
5690
      return new getPayments_result(this);
5691
    }
5692
 
3430 rajveer 5693
    @Override
5694
    public void clear() {
5695
      this.success = null;
5696
      this.pe = null;
123 ashish 5697
    }
5698
 
5699
    public int getSuccessSize() {
5700
      return (this.success == null) ? 0 : this.success.size();
5701
    }
5702
 
5703
    public java.util.Iterator<Payment> getSuccessIterator() {
5704
      return (this.success == null) ? null : this.success.iterator();
5705
    }
5706
 
5707
    public void addToSuccess(Payment elem) {
5708
      if (this.success == null) {
5709
        this.success = new ArrayList<Payment>();
5710
      }
5711
      this.success.add(elem);
5712
    }
5713
 
5714
    public List<Payment> getSuccess() {
5715
      return this.success;
5716
    }
5717
 
3430 rajveer 5718
    public void setSuccess(List<Payment> success) {
123 ashish 5719
      this.success = success;
5720
    }
5721
 
5722
    public void unsetSuccess() {
5723
      this.success = null;
5724
    }
5725
 
3430 rajveer 5726
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
123 ashish 5727
    public boolean isSetSuccess() {
5728
      return this.success != null;
5729
    }
5730
 
5731
    public void setSuccessIsSet(boolean value) {
5732
      if (!value) {
5733
        this.success = null;
5734
      }
5735
    }
5736
 
5737
    public PaymentException getPe() {
5738
      return this.pe;
5739
    }
5740
 
3430 rajveer 5741
    public void setPe(PaymentException pe) {
123 ashish 5742
      this.pe = pe;
5743
    }
5744
 
5745
    public void unsetPe() {
5746
      this.pe = null;
5747
    }
5748
 
3430 rajveer 5749
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
123 ashish 5750
    public boolean isSetPe() {
5751
      return this.pe != null;
5752
    }
5753
 
5754
    public void setPeIsSet(boolean value) {
5755
      if (!value) {
5756
        this.pe = null;
5757
      }
5758
    }
5759
 
5760
    public void setFieldValue(_Fields field, Object value) {
5761
      switch (field) {
5762
      case SUCCESS:
5763
        if (value == null) {
5764
          unsetSuccess();
5765
        } else {
5766
          setSuccess((List<Payment>)value);
5767
        }
5768
        break;
5769
 
5770
      case PE:
5771
        if (value == null) {
5772
          unsetPe();
5773
        } else {
5774
          setPe((PaymentException)value);
5775
        }
5776
        break;
5777
 
5778
      }
5779
    }
5780
 
5781
    public Object getFieldValue(_Fields field) {
5782
      switch (field) {
5783
      case SUCCESS:
5784
        return getSuccess();
5785
 
5786
      case PE:
5787
        return getPe();
5788
 
5789
      }
5790
      throw new IllegalStateException();
5791
    }
5792
 
3430 rajveer 5793
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5794
    public boolean isSet(_Fields field) {
5795
      if (field == null) {
5796
        throw new IllegalArgumentException();
5797
      }
123 ashish 5798
 
5799
      switch (field) {
5800
      case SUCCESS:
5801
        return isSetSuccess();
5802
      case PE:
5803
        return isSetPe();
5804
      }
5805
      throw new IllegalStateException();
5806
    }
5807
 
5808
    @Override
5809
    public boolean equals(Object that) {
5810
      if (that == null)
5811
        return false;
5812
      if (that instanceof getPayments_result)
5813
        return this.equals((getPayments_result)that);
5814
      return false;
5815
    }
5816
 
5817
    public boolean equals(getPayments_result that) {
5818
      if (that == null)
5819
        return false;
5820
 
5821
      boolean this_present_success = true && this.isSetSuccess();
5822
      boolean that_present_success = true && that.isSetSuccess();
5823
      if (this_present_success || that_present_success) {
5824
        if (!(this_present_success && that_present_success))
5825
          return false;
5826
        if (!this.success.equals(that.success))
5827
          return false;
5828
      }
5829
 
5830
      boolean this_present_pe = true && this.isSetPe();
5831
      boolean that_present_pe = true && that.isSetPe();
5832
      if (this_present_pe || that_present_pe) {
5833
        if (!(this_present_pe && that_present_pe))
5834
          return false;
5835
        if (!this.pe.equals(that.pe))
5836
          return false;
5837
      }
5838
 
5839
      return true;
5840
    }
5841
 
5842
    @Override
5843
    public int hashCode() {
5844
      return 0;
5845
    }
5846
 
695 rajveer 5847
    public int compareTo(getPayments_result other) {
123 ashish 5848
      if (!getClass().equals(other.getClass())) {
5849
        return getClass().getName().compareTo(other.getClass().getName());
5850
      }
5851
 
5852
      int lastComparison = 0;
695 rajveer 5853
      getPayments_result typedOther = (getPayments_result)other;
123 ashish 5854
 
3430 rajveer 5855
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
123 ashish 5856
      if (lastComparison != 0) {
5857
        return lastComparison;
5858
      }
3430 rajveer 5859
      if (isSetSuccess()) {
5860
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5861
        if (lastComparison != 0) {
5862
          return lastComparison;
5863
        }
123 ashish 5864
      }
3430 rajveer 5865
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 5866
      if (lastComparison != 0) {
5867
        return lastComparison;
123 ashish 5868
      }
3430 rajveer 5869
      if (isSetPe()) {
5870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
5871
        if (lastComparison != 0) {
5872
          return lastComparison;
5873
        }
123 ashish 5874
      }
5875
      return 0;
5876
    }
5877
 
3430 rajveer 5878
    public _Fields fieldForId(int fieldId) {
5879
      return _Fields.findByThriftId(fieldId);
5880
    }
5881
 
5882
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5883
      org.apache.thrift.protocol.TField field;
123 ashish 5884
      iprot.readStructBegin();
5885
      while (true)
5886
      {
5887
        field = iprot.readFieldBegin();
3430 rajveer 5888
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 5889
          break;
5890
        }
3430 rajveer 5891
        switch (field.id) {
5892
          case 0: // SUCCESS
5893
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5894
              {
5895
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
5896
                this.success = new ArrayList<Payment>(_list16.size);
5897
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
420 ashish 5898
                {
3430 rajveer 5899
                  Payment _elem18; // required
5900
                  _elem18 = new Payment();
5901
                  _elem18.read(iprot);
5902
                  this.success.add(_elem18);
420 ashish 5903
                }
3430 rajveer 5904
                iprot.readListEnd();
123 ashish 5905
              }
3430 rajveer 5906
            } else { 
5907
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5908
            }
5909
            break;
5910
          case 1: // PE
5911
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5912
              this.pe = new PaymentException();
5913
              this.pe.read(iprot);
5914
            } else { 
5915
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5916
            }
5917
            break;
5918
          default:
5919
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 5920
        }
3430 rajveer 5921
        iprot.readFieldEnd();
123 ashish 5922
      }
5923
      iprot.readStructEnd();
5924
      validate();
5925
    }
5926
 
3430 rajveer 5927
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 5928
      oprot.writeStructBegin(STRUCT_DESC);
5929
 
5930
      if (this.isSetSuccess()) {
5931
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
420 ashish 5932
        {
3430 rajveer 5933
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2747 chandransh 5934
          for (Payment _iter19 : this.success)
420 ashish 5935
          {
2747 chandransh 5936
            _iter19.write(oprot);
420 ashish 5937
          }
5938
          oprot.writeListEnd();
5939
        }
123 ashish 5940
        oprot.writeFieldEnd();
5941
      } else if (this.isSetPe()) {
5942
        oprot.writeFieldBegin(PE_FIELD_DESC);
5943
        this.pe.write(oprot);
5944
        oprot.writeFieldEnd();
5945
      }
5946
      oprot.writeFieldStop();
5947
      oprot.writeStructEnd();
5948
    }
5949
 
5950
    @Override
5951
    public String toString() {
695 rajveer 5952
      StringBuilder sb = new StringBuilder("getPayments_result(");
123 ashish 5953
      boolean first = true;
5954
 
5955
      sb.append("success:");
5956
      if (this.success == null) {
5957
        sb.append("null");
5958
      } else {
5959
        sb.append(this.success);
5960
      }
5961
      first = false;
5962
      if (!first) sb.append(", ");
5963
      sb.append("pe:");
5964
      if (this.pe == null) {
5965
        sb.append("null");
5966
      } else {
5967
        sb.append(this.pe);
5968
      }
5969
      first = false;
5970
      sb.append(")");
5971
      return sb.toString();
5972
    }
5973
 
3430 rajveer 5974
    public void validate() throws org.apache.thrift.TException {
123 ashish 5975
      // check for required fields
5976
    }
5977
 
3430 rajveer 5978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5979
      try {
5980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5981
      } catch (org.apache.thrift.TException te) {
5982
        throw new java.io.IOException(te);
5983
      }
5984
    }
5985
 
5986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5987
      try {
5988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5989
      } catch (org.apache.thrift.TException te) {
5990
        throw new java.io.IOException(te);
5991
      }
5992
    }
5993
 
123 ashish 5994
  }
5995
 
4141 chandransh 5996
  public static class getPaymentsByCapturedDate_args implements org.apache.thrift.TBase<getPaymentsByCapturedDate_args, getPaymentsByCapturedDate_args._Fields>, java.io.Serializable, Cloneable   {
5997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_args");
5998
 
5999
    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);
6000
    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);
6001
    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);
6002
 
6003
    private long fromTime; // required
6004
    private long toTime; // required
6005
    private long gatewayId; // required
6006
 
6007
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6008
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6009
      FROM_TIME((short)1, "fromTime"),
6010
      TO_TIME((short)2, "toTime"),
6011
      GATEWAY_ID((short)3, "gatewayId");
6012
 
6013
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6014
 
6015
      static {
6016
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6017
          byName.put(field.getFieldName(), field);
6018
        }
6019
      }
6020
 
6021
      /**
6022
       * Find the _Fields constant that matches fieldId, or null if its not found.
6023
       */
6024
      public static _Fields findByThriftId(int fieldId) {
6025
        switch(fieldId) {
6026
          case 1: // FROM_TIME
6027
            return FROM_TIME;
6028
          case 2: // TO_TIME
6029
            return TO_TIME;
6030
          case 3: // GATEWAY_ID
6031
            return GATEWAY_ID;
6032
          default:
6033
            return null;
6034
        }
6035
      }
6036
 
6037
      /**
6038
       * Find the _Fields constant that matches fieldId, throwing an exception
6039
       * if it is not found.
6040
       */
6041
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6042
        _Fields fields = findByThriftId(fieldId);
6043
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6044
        return fields;
6045
      }
6046
 
6047
      /**
6048
       * Find the _Fields constant that matches name, or null if its not found.
6049
       */
6050
      public static _Fields findByName(String name) {
6051
        return byName.get(name);
6052
      }
6053
 
6054
      private final short _thriftId;
6055
      private final String _fieldName;
6056
 
6057
      _Fields(short thriftId, String fieldName) {
6058
        _thriftId = thriftId;
6059
        _fieldName = fieldName;
6060
      }
6061
 
6062
      public short getThriftFieldId() {
6063
        return _thriftId;
6064
      }
6065
 
6066
      public String getFieldName() {
6067
        return _fieldName;
6068
      }
6069
    }
6070
 
6071
    // isset id assignments
6072
    private static final int __FROMTIME_ISSET_ID = 0;
6073
    private static final int __TOTIME_ISSET_ID = 1;
6074
    private static final int __GATEWAYID_ISSET_ID = 2;
6075
    private BitSet __isset_bit_vector = new BitSet(3);
6076
 
6077
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6078
    static {
6079
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6080
      tmpMap.put(_Fields.FROM_TIME, new org.apache.thrift.meta_data.FieldMetaData("fromTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6082
      tmpMap.put(_Fields.TO_TIME, new org.apache.thrift.meta_data.FieldMetaData("toTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6083
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6084
      tmpMap.put(_Fields.GATEWAY_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6086
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6087
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_args.class, metaDataMap);
6088
    }
6089
 
6090
    public getPaymentsByCapturedDate_args() {
6091
    }
6092
 
6093
    public getPaymentsByCapturedDate_args(
6094
      long fromTime,
6095
      long toTime,
6096
      long gatewayId)
6097
    {
6098
      this();
6099
      this.fromTime = fromTime;
6100
      setFromTimeIsSet(true);
6101
      this.toTime = toTime;
6102
      setToTimeIsSet(true);
6103
      this.gatewayId = gatewayId;
6104
      setGatewayIdIsSet(true);
6105
    }
6106
 
6107
    /**
6108
     * Performs a deep copy on <i>other</i>.
6109
     */
6110
    public getPaymentsByCapturedDate_args(getPaymentsByCapturedDate_args other) {
6111
      __isset_bit_vector.clear();
6112
      __isset_bit_vector.or(other.__isset_bit_vector);
6113
      this.fromTime = other.fromTime;
6114
      this.toTime = other.toTime;
6115
      this.gatewayId = other.gatewayId;
6116
    }
6117
 
6118
    public getPaymentsByCapturedDate_args deepCopy() {
6119
      return new getPaymentsByCapturedDate_args(this);
6120
    }
6121
 
6122
    @Override
6123
    public void clear() {
6124
      setFromTimeIsSet(false);
6125
      this.fromTime = 0;
6126
      setToTimeIsSet(false);
6127
      this.toTime = 0;
6128
      setGatewayIdIsSet(false);
6129
      this.gatewayId = 0;
6130
    }
6131
 
6132
    public long getFromTime() {
6133
      return this.fromTime;
6134
    }
6135
 
6136
    public void setFromTime(long fromTime) {
6137
      this.fromTime = fromTime;
6138
      setFromTimeIsSet(true);
6139
    }
6140
 
6141
    public void unsetFromTime() {
6142
      __isset_bit_vector.clear(__FROMTIME_ISSET_ID);
6143
    }
6144
 
6145
    /** Returns true if field fromTime is set (has been assigned a value) and false otherwise */
6146
    public boolean isSetFromTime() {
6147
      return __isset_bit_vector.get(__FROMTIME_ISSET_ID);
6148
    }
6149
 
6150
    public void setFromTimeIsSet(boolean value) {
6151
      __isset_bit_vector.set(__FROMTIME_ISSET_ID, value);
6152
    }
6153
 
6154
    public long getToTime() {
6155
      return this.toTime;
6156
    }
6157
 
6158
    public void setToTime(long toTime) {
6159
      this.toTime = toTime;
6160
      setToTimeIsSet(true);
6161
    }
6162
 
6163
    public void unsetToTime() {
6164
      __isset_bit_vector.clear(__TOTIME_ISSET_ID);
6165
    }
6166
 
6167
    /** Returns true if field toTime is set (has been assigned a value) and false otherwise */
6168
    public boolean isSetToTime() {
6169
      return __isset_bit_vector.get(__TOTIME_ISSET_ID);
6170
    }
6171
 
6172
    public void setToTimeIsSet(boolean value) {
6173
      __isset_bit_vector.set(__TOTIME_ISSET_ID, value);
6174
    }
6175
 
6176
    public long getGatewayId() {
6177
      return this.gatewayId;
6178
    }
6179
 
6180
    public void setGatewayId(long gatewayId) {
6181
      this.gatewayId = gatewayId;
6182
      setGatewayIdIsSet(true);
6183
    }
6184
 
6185
    public void unsetGatewayId() {
6186
      __isset_bit_vector.clear(__GATEWAYID_ISSET_ID);
6187
    }
6188
 
6189
    /** Returns true if field gatewayId is set (has been assigned a value) and false otherwise */
6190
    public boolean isSetGatewayId() {
6191
      return __isset_bit_vector.get(__GATEWAYID_ISSET_ID);
6192
    }
6193
 
6194
    public void setGatewayIdIsSet(boolean value) {
6195
      __isset_bit_vector.set(__GATEWAYID_ISSET_ID, value);
6196
    }
6197
 
6198
    public void setFieldValue(_Fields field, Object value) {
6199
      switch (field) {
6200
      case FROM_TIME:
6201
        if (value == null) {
6202
          unsetFromTime();
6203
        } else {
6204
          setFromTime((Long)value);
6205
        }
6206
        break;
6207
 
6208
      case TO_TIME:
6209
        if (value == null) {
6210
          unsetToTime();
6211
        } else {
6212
          setToTime((Long)value);
6213
        }
6214
        break;
6215
 
6216
      case GATEWAY_ID:
6217
        if (value == null) {
6218
          unsetGatewayId();
6219
        } else {
6220
          setGatewayId((Long)value);
6221
        }
6222
        break;
6223
 
6224
      }
6225
    }
6226
 
6227
    public Object getFieldValue(_Fields field) {
6228
      switch (field) {
6229
      case FROM_TIME:
6230
        return Long.valueOf(getFromTime());
6231
 
6232
      case TO_TIME:
6233
        return Long.valueOf(getToTime());
6234
 
6235
      case GATEWAY_ID:
6236
        return Long.valueOf(getGatewayId());
6237
 
6238
      }
6239
      throw new IllegalStateException();
6240
    }
6241
 
6242
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6243
    public boolean isSet(_Fields field) {
6244
      if (field == null) {
6245
        throw new IllegalArgumentException();
6246
      }
6247
 
6248
      switch (field) {
6249
      case FROM_TIME:
6250
        return isSetFromTime();
6251
      case TO_TIME:
6252
        return isSetToTime();
6253
      case GATEWAY_ID:
6254
        return isSetGatewayId();
6255
      }
6256
      throw new IllegalStateException();
6257
    }
6258
 
6259
    @Override
6260
    public boolean equals(Object that) {
6261
      if (that == null)
6262
        return false;
6263
      if (that instanceof getPaymentsByCapturedDate_args)
6264
        return this.equals((getPaymentsByCapturedDate_args)that);
6265
      return false;
6266
    }
6267
 
6268
    public boolean equals(getPaymentsByCapturedDate_args that) {
6269
      if (that == null)
6270
        return false;
6271
 
6272
      boolean this_present_fromTime = true;
6273
      boolean that_present_fromTime = true;
6274
      if (this_present_fromTime || that_present_fromTime) {
6275
        if (!(this_present_fromTime && that_present_fromTime))
6276
          return false;
6277
        if (this.fromTime != that.fromTime)
6278
          return false;
6279
      }
6280
 
6281
      boolean this_present_toTime = true;
6282
      boolean that_present_toTime = true;
6283
      if (this_present_toTime || that_present_toTime) {
6284
        if (!(this_present_toTime && that_present_toTime))
6285
          return false;
6286
        if (this.toTime != that.toTime)
6287
          return false;
6288
      }
6289
 
6290
      boolean this_present_gatewayId = true;
6291
      boolean that_present_gatewayId = true;
6292
      if (this_present_gatewayId || that_present_gatewayId) {
6293
        if (!(this_present_gatewayId && that_present_gatewayId))
6294
          return false;
6295
        if (this.gatewayId != that.gatewayId)
6296
          return false;
6297
      }
6298
 
6299
      return true;
6300
    }
6301
 
6302
    @Override
6303
    public int hashCode() {
6304
      return 0;
6305
    }
6306
 
6307
    public int compareTo(getPaymentsByCapturedDate_args other) {
6308
      if (!getClass().equals(other.getClass())) {
6309
        return getClass().getName().compareTo(other.getClass().getName());
6310
      }
6311
 
6312
      int lastComparison = 0;
6313
      getPaymentsByCapturedDate_args typedOther = (getPaymentsByCapturedDate_args)other;
6314
 
6315
      lastComparison = Boolean.valueOf(isSetFromTime()).compareTo(typedOther.isSetFromTime());
6316
      if (lastComparison != 0) {
6317
        return lastComparison;
6318
      }
6319
      if (isSetFromTime()) {
6320
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromTime, typedOther.fromTime);
6321
        if (lastComparison != 0) {
6322
          return lastComparison;
6323
        }
6324
      }
6325
      lastComparison = Boolean.valueOf(isSetToTime()).compareTo(typedOther.isSetToTime());
6326
      if (lastComparison != 0) {
6327
        return lastComparison;
6328
      }
6329
      if (isSetToTime()) {
6330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toTime, typedOther.toTime);
6331
        if (lastComparison != 0) {
6332
          return lastComparison;
6333
        }
6334
      }
6335
      lastComparison = Boolean.valueOf(isSetGatewayId()).compareTo(typedOther.isSetGatewayId());
6336
      if (lastComparison != 0) {
6337
        return lastComparison;
6338
      }
6339
      if (isSetGatewayId()) {
6340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayId, typedOther.gatewayId);
6341
        if (lastComparison != 0) {
6342
          return lastComparison;
6343
        }
6344
      }
6345
      return 0;
6346
    }
6347
 
6348
    public _Fields fieldForId(int fieldId) {
6349
      return _Fields.findByThriftId(fieldId);
6350
    }
6351
 
6352
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6353
      org.apache.thrift.protocol.TField field;
6354
      iprot.readStructBegin();
6355
      while (true)
6356
      {
6357
        field = iprot.readFieldBegin();
6358
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6359
          break;
6360
        }
6361
        switch (field.id) {
6362
          case 1: // FROM_TIME
6363
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6364
              this.fromTime = iprot.readI64();
6365
              setFromTimeIsSet(true);
6366
            } else { 
6367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6368
            }
6369
            break;
6370
          case 2: // TO_TIME
6371
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6372
              this.toTime = iprot.readI64();
6373
              setToTimeIsSet(true);
6374
            } else { 
6375
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6376
            }
6377
            break;
6378
          case 3: // GATEWAY_ID
6379
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6380
              this.gatewayId = iprot.readI64();
6381
              setGatewayIdIsSet(true);
6382
            } else { 
6383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6384
            }
6385
            break;
6386
          default:
6387
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6388
        }
6389
        iprot.readFieldEnd();
6390
      }
6391
      iprot.readStructEnd();
6392
      validate();
6393
    }
6394
 
6395
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6396
      validate();
6397
 
6398
      oprot.writeStructBegin(STRUCT_DESC);
6399
      oprot.writeFieldBegin(FROM_TIME_FIELD_DESC);
6400
      oprot.writeI64(this.fromTime);
6401
      oprot.writeFieldEnd();
6402
      oprot.writeFieldBegin(TO_TIME_FIELD_DESC);
6403
      oprot.writeI64(this.toTime);
6404
      oprot.writeFieldEnd();
6405
      oprot.writeFieldBegin(GATEWAY_ID_FIELD_DESC);
6406
      oprot.writeI64(this.gatewayId);
6407
      oprot.writeFieldEnd();
6408
      oprot.writeFieldStop();
6409
      oprot.writeStructEnd();
6410
    }
6411
 
6412
    @Override
6413
    public String toString() {
6414
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_args(");
6415
      boolean first = true;
6416
 
6417
      sb.append("fromTime:");
6418
      sb.append(this.fromTime);
6419
      first = false;
6420
      if (!first) sb.append(", ");
6421
      sb.append("toTime:");
6422
      sb.append(this.toTime);
6423
      first = false;
6424
      if (!first) sb.append(", ");
6425
      sb.append("gatewayId:");
6426
      sb.append(this.gatewayId);
6427
      first = false;
6428
      sb.append(")");
6429
      return sb.toString();
6430
    }
6431
 
6432
    public void validate() throws org.apache.thrift.TException {
6433
      // check for required fields
6434
    }
6435
 
6436
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6437
      try {
6438
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6439
      } catch (org.apache.thrift.TException te) {
6440
        throw new java.io.IOException(te);
6441
      }
6442
    }
6443
 
6444
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6445
      try {
6446
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6447
      } catch (org.apache.thrift.TException te) {
6448
        throw new java.io.IOException(te);
6449
      }
6450
    }
6451
 
6452
  }
6453
 
6454
  public static class getPaymentsByCapturedDate_result implements org.apache.thrift.TBase<getPaymentsByCapturedDate_result, getPaymentsByCapturedDate_result._Fields>, java.io.Serializable, Cloneable   {
6455
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsByCapturedDate_result");
6456
 
6457
    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);
6458
    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);
6459
 
6460
    private List<Payment> success; // required
6461
    private PaymentException pe; // required
6462
 
6463
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6464
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6465
      SUCCESS((short)0, "success"),
6466
      PE((short)1, "pe");
6467
 
6468
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6469
 
6470
      static {
6471
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6472
          byName.put(field.getFieldName(), field);
6473
        }
6474
      }
6475
 
6476
      /**
6477
       * Find the _Fields constant that matches fieldId, or null if its not found.
6478
       */
6479
      public static _Fields findByThriftId(int fieldId) {
6480
        switch(fieldId) {
6481
          case 0: // SUCCESS
6482
            return SUCCESS;
6483
          case 1: // PE
6484
            return PE;
6485
          default:
6486
            return null;
6487
        }
6488
      }
6489
 
6490
      /**
6491
       * Find the _Fields constant that matches fieldId, throwing an exception
6492
       * if it is not found.
6493
       */
6494
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6495
        _Fields fields = findByThriftId(fieldId);
6496
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6497
        return fields;
6498
      }
6499
 
6500
      /**
6501
       * Find the _Fields constant that matches name, or null if its not found.
6502
       */
6503
      public static _Fields findByName(String name) {
6504
        return byName.get(name);
6505
      }
6506
 
6507
      private final short _thriftId;
6508
      private final String _fieldName;
6509
 
6510
      _Fields(short thriftId, String fieldName) {
6511
        _thriftId = thriftId;
6512
        _fieldName = fieldName;
6513
      }
6514
 
6515
      public short getThriftFieldId() {
6516
        return _thriftId;
6517
      }
6518
 
6519
      public String getFieldName() {
6520
        return _fieldName;
6521
      }
6522
    }
6523
 
6524
    // isset id assignments
6525
 
6526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6527
    static {
6528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6529
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6530
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6531
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
6532
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6534
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6535
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsByCapturedDate_result.class, metaDataMap);
6536
    }
6537
 
6538
    public getPaymentsByCapturedDate_result() {
6539
    }
6540
 
6541
    public getPaymentsByCapturedDate_result(
6542
      List<Payment> success,
6543
      PaymentException pe)
6544
    {
6545
      this();
6546
      this.success = success;
6547
      this.pe = pe;
6548
    }
6549
 
6550
    /**
6551
     * Performs a deep copy on <i>other</i>.
6552
     */
6553
    public getPaymentsByCapturedDate_result(getPaymentsByCapturedDate_result other) {
6554
      if (other.isSetSuccess()) {
6555
        List<Payment> __this__success = new ArrayList<Payment>();
6556
        for (Payment other_element : other.success) {
6557
          __this__success.add(new Payment(other_element));
6558
        }
6559
        this.success = __this__success;
6560
      }
6561
      if (other.isSetPe()) {
6562
        this.pe = new PaymentException(other.pe);
6563
      }
6564
    }
6565
 
6566
    public getPaymentsByCapturedDate_result deepCopy() {
6567
      return new getPaymentsByCapturedDate_result(this);
6568
    }
6569
 
6570
    @Override
6571
    public void clear() {
6572
      this.success = null;
6573
      this.pe = null;
6574
    }
6575
 
6576
    public int getSuccessSize() {
6577
      return (this.success == null) ? 0 : this.success.size();
6578
    }
6579
 
6580
    public java.util.Iterator<Payment> getSuccessIterator() {
6581
      return (this.success == null) ? null : this.success.iterator();
6582
    }
6583
 
6584
    public void addToSuccess(Payment elem) {
6585
      if (this.success == null) {
6586
        this.success = new ArrayList<Payment>();
6587
      }
6588
      this.success.add(elem);
6589
    }
6590
 
6591
    public List<Payment> getSuccess() {
6592
      return this.success;
6593
    }
6594
 
6595
    public void setSuccess(List<Payment> success) {
6596
      this.success = success;
6597
    }
6598
 
6599
    public void unsetSuccess() {
6600
      this.success = null;
6601
    }
6602
 
6603
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6604
    public boolean isSetSuccess() {
6605
      return this.success != null;
6606
    }
6607
 
6608
    public void setSuccessIsSet(boolean value) {
6609
      if (!value) {
6610
        this.success = null;
6611
      }
6612
    }
6613
 
6614
    public PaymentException getPe() {
6615
      return this.pe;
6616
    }
6617
 
6618
    public void setPe(PaymentException pe) {
6619
      this.pe = pe;
6620
    }
6621
 
6622
    public void unsetPe() {
6623
      this.pe = null;
6624
    }
6625
 
6626
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
6627
    public boolean isSetPe() {
6628
      return this.pe != null;
6629
    }
6630
 
6631
    public void setPeIsSet(boolean value) {
6632
      if (!value) {
6633
        this.pe = null;
6634
      }
6635
    }
6636
 
6637
    public void setFieldValue(_Fields field, Object value) {
6638
      switch (field) {
6639
      case SUCCESS:
6640
        if (value == null) {
6641
          unsetSuccess();
6642
        } else {
6643
          setSuccess((List<Payment>)value);
6644
        }
6645
        break;
6646
 
6647
      case PE:
6648
        if (value == null) {
6649
          unsetPe();
6650
        } else {
6651
          setPe((PaymentException)value);
6652
        }
6653
        break;
6654
 
6655
      }
6656
    }
6657
 
6658
    public Object getFieldValue(_Fields field) {
6659
      switch (field) {
6660
      case SUCCESS:
6661
        return getSuccess();
6662
 
6663
      case PE:
6664
        return getPe();
6665
 
6666
      }
6667
      throw new IllegalStateException();
6668
    }
6669
 
6670
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6671
    public boolean isSet(_Fields field) {
6672
      if (field == null) {
6673
        throw new IllegalArgumentException();
6674
      }
6675
 
6676
      switch (field) {
6677
      case SUCCESS:
6678
        return isSetSuccess();
6679
      case PE:
6680
        return isSetPe();
6681
      }
6682
      throw new IllegalStateException();
6683
    }
6684
 
6685
    @Override
6686
    public boolean equals(Object that) {
6687
      if (that == null)
6688
        return false;
6689
      if (that instanceof getPaymentsByCapturedDate_result)
6690
        return this.equals((getPaymentsByCapturedDate_result)that);
6691
      return false;
6692
    }
6693
 
6694
    public boolean equals(getPaymentsByCapturedDate_result that) {
6695
      if (that == null)
6696
        return false;
6697
 
6698
      boolean this_present_success = true && this.isSetSuccess();
6699
      boolean that_present_success = true && that.isSetSuccess();
6700
      if (this_present_success || that_present_success) {
6701
        if (!(this_present_success && that_present_success))
6702
          return false;
6703
        if (!this.success.equals(that.success))
6704
          return false;
6705
      }
6706
 
6707
      boolean this_present_pe = true && this.isSetPe();
6708
      boolean that_present_pe = true && that.isSetPe();
6709
      if (this_present_pe || that_present_pe) {
6710
        if (!(this_present_pe && that_present_pe))
6711
          return false;
6712
        if (!this.pe.equals(that.pe))
6713
          return false;
6714
      }
6715
 
6716
      return true;
6717
    }
6718
 
6719
    @Override
6720
    public int hashCode() {
6721
      return 0;
6722
    }
6723
 
6724
    public int compareTo(getPaymentsByCapturedDate_result other) {
6725
      if (!getClass().equals(other.getClass())) {
6726
        return getClass().getName().compareTo(other.getClass().getName());
6727
      }
6728
 
6729
      int lastComparison = 0;
6730
      getPaymentsByCapturedDate_result typedOther = (getPaymentsByCapturedDate_result)other;
6731
 
6732
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6733
      if (lastComparison != 0) {
6734
        return lastComparison;
6735
      }
6736
      if (isSetSuccess()) {
6737
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6738
        if (lastComparison != 0) {
6739
          return lastComparison;
6740
        }
6741
      }
6742
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
6743
      if (lastComparison != 0) {
6744
        return lastComparison;
6745
      }
6746
      if (isSetPe()) {
6747
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
6748
        if (lastComparison != 0) {
6749
          return lastComparison;
6750
        }
6751
      }
6752
      return 0;
6753
    }
6754
 
6755
    public _Fields fieldForId(int fieldId) {
6756
      return _Fields.findByThriftId(fieldId);
6757
    }
6758
 
6759
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6760
      org.apache.thrift.protocol.TField field;
6761
      iprot.readStructBegin();
6762
      while (true)
6763
      {
6764
        field = iprot.readFieldBegin();
6765
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6766
          break;
6767
        }
6768
        switch (field.id) {
6769
          case 0: // SUCCESS
6770
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6771
              {
6772
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
6773
                this.success = new ArrayList<Payment>(_list20.size);
6774
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
6775
                {
6776
                  Payment _elem22; // required
6777
                  _elem22 = new Payment();
6778
                  _elem22.read(iprot);
6779
                  this.success.add(_elem22);
6780
                }
6781
                iprot.readListEnd();
6782
              }
6783
            } else { 
6784
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6785
            }
6786
            break;
6787
          case 1: // PE
6788
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6789
              this.pe = new PaymentException();
6790
              this.pe.read(iprot);
6791
            } else { 
6792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6793
            }
6794
            break;
6795
          default:
6796
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6797
        }
6798
        iprot.readFieldEnd();
6799
      }
6800
      iprot.readStructEnd();
6801
      validate();
6802
    }
6803
 
6804
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6805
      oprot.writeStructBegin(STRUCT_DESC);
6806
 
6807
      if (this.isSetSuccess()) {
6808
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6809
        {
6810
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
6811
          for (Payment _iter23 : this.success)
6812
          {
6813
            _iter23.write(oprot);
6814
          }
6815
          oprot.writeListEnd();
6816
        }
6817
        oprot.writeFieldEnd();
6818
      } else if (this.isSetPe()) {
6819
        oprot.writeFieldBegin(PE_FIELD_DESC);
6820
        this.pe.write(oprot);
6821
        oprot.writeFieldEnd();
6822
      }
6823
      oprot.writeFieldStop();
6824
      oprot.writeStructEnd();
6825
    }
6826
 
6827
    @Override
6828
    public String toString() {
6829
      StringBuilder sb = new StringBuilder("getPaymentsByCapturedDate_result(");
6830
      boolean first = true;
6831
 
6832
      sb.append("success:");
6833
      if (this.success == null) {
6834
        sb.append("null");
6835
      } else {
6836
        sb.append(this.success);
6837
      }
6838
      first = false;
6839
      if (!first) sb.append(", ");
6840
      sb.append("pe:");
6841
      if (this.pe == null) {
6842
        sb.append("null");
6843
      } else {
6844
        sb.append(this.pe);
6845
      }
6846
      first = false;
6847
      sb.append(")");
6848
      return sb.toString();
6849
    }
6850
 
6851
    public void validate() throws org.apache.thrift.TException {
6852
      // check for required fields
6853
    }
6854
 
6855
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6856
      try {
6857
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6858
      } catch (org.apache.thrift.TException te) {
6859
        throw new java.io.IOException(te);
6860
      }
6861
    }
6862
 
6863
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6864
      try {
6865
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6866
      } catch (org.apache.thrift.TException te) {
6867
        throw new java.io.IOException(te);
6868
      }
6869
    }
6870
 
6871
  }
6872
 
3430 rajveer 6873
  public static class getPaymentGateway_args implements org.apache.thrift.TBase<getPaymentGateway_args, getPaymentGateway_args._Fields>, java.io.Serializable, Cloneable   {
6874
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_args");
123 ashish 6875
 
3430 rajveer 6876
    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 6877
 
3430 rajveer 6878
    private long id; // required
123 ashish 6879
 
6880
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6881
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 6882
      ID((short)1, "id");
123 ashish 6883
 
6884
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6885
 
6886
      static {
6887
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6888
          byName.put(field.getFieldName(), field);
6889
        }
6890
      }
6891
 
6892
      /**
6893
       * Find the _Fields constant that matches fieldId, or null if its not found.
6894
       */
6895
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6896
        switch(fieldId) {
6897
          case 1: // ID
6898
            return ID;
6899
          default:
6900
            return null;
6901
        }
123 ashish 6902
      }
6903
 
6904
      /**
6905
       * Find the _Fields constant that matches fieldId, throwing an exception
6906
       * if it is not found.
6907
       */
6908
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6909
        _Fields fields = findByThriftId(fieldId);
6910
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6911
        return fields;
6912
      }
6913
 
6914
      /**
6915
       * Find the _Fields constant that matches name, or null if its not found.
6916
       */
6917
      public static _Fields findByName(String name) {
6918
        return byName.get(name);
6919
      }
6920
 
6921
      private final short _thriftId;
6922
      private final String _fieldName;
6923
 
6924
      _Fields(short thriftId, String fieldName) {
6925
        _thriftId = thriftId;
6926
        _fieldName = fieldName;
6927
      }
6928
 
6929
      public short getThriftFieldId() {
6930
        return _thriftId;
6931
      }
6932
 
6933
      public String getFieldName() {
6934
        return _fieldName;
6935
      }
6936
    }
6937
 
6938
    // isset id assignments
420 ashish 6939
    private static final int __ID_ISSET_ID = 0;
123 ashish 6940
    private BitSet __isset_bit_vector = new BitSet(1);
6941
 
3430 rajveer 6942
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
123 ashish 6943
    static {
3430 rajveer 6944
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6945
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6947
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6948
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_args.class, metaDataMap);
123 ashish 6949
    }
6950
 
695 rajveer 6951
    public getPaymentGateway_args() {
123 ashish 6952
    }
6953
 
695 rajveer 6954
    public getPaymentGateway_args(
6955
      long id)
123 ashish 6956
    {
6957
      this();
420 ashish 6958
      this.id = id;
6959
      setIdIsSet(true);
123 ashish 6960
    }
6961
 
6962
    /**
6963
     * Performs a deep copy on <i>other</i>.
6964
     */
695 rajveer 6965
    public getPaymentGateway_args(getPaymentGateway_args other) {
123 ashish 6966
      __isset_bit_vector.clear();
6967
      __isset_bit_vector.or(other.__isset_bit_vector);
420 ashish 6968
      this.id = other.id;
123 ashish 6969
    }
6970
 
695 rajveer 6971
    public getPaymentGateway_args deepCopy() {
6972
      return new getPaymentGateway_args(this);
123 ashish 6973
    }
6974
 
3430 rajveer 6975
    @Override
6976
    public void clear() {
6977
      setIdIsSet(false);
6978
      this.id = 0;
123 ashish 6979
    }
6980
 
420 ashish 6981
    public long getId() {
6982
      return this.id;
123 ashish 6983
    }
6984
 
3430 rajveer 6985
    public void setId(long id) {
420 ashish 6986
      this.id = id;
6987
      setIdIsSet(true);
123 ashish 6988
    }
6989
 
420 ashish 6990
    public void unsetId() {
6991
      __isset_bit_vector.clear(__ID_ISSET_ID);
123 ashish 6992
    }
6993
 
3430 rajveer 6994
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 6995
    public boolean isSetId() {
6996
      return __isset_bit_vector.get(__ID_ISSET_ID);
123 ashish 6997
    }
6998
 
420 ashish 6999
    public void setIdIsSet(boolean value) {
7000
      __isset_bit_vector.set(__ID_ISSET_ID, value);
123 ashish 7001
    }
7002
 
7003
    public void setFieldValue(_Fields field, Object value) {
7004
      switch (field) {
420 ashish 7005
      case ID:
123 ashish 7006
        if (value == null) {
420 ashish 7007
          unsetId();
123 ashish 7008
        } else {
420 ashish 7009
          setId((Long)value);
123 ashish 7010
        }
7011
        break;
7012
 
7013
      }
7014
    }
7015
 
7016
    public Object getFieldValue(_Fields field) {
7017
      switch (field) {
420 ashish 7018
      case ID:
3430 rajveer 7019
        return Long.valueOf(getId());
123 ashish 7020
 
7021
      }
7022
      throw new IllegalStateException();
7023
    }
7024
 
3430 rajveer 7025
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7026
    public boolean isSet(_Fields field) {
7027
      if (field == null) {
7028
        throw new IllegalArgumentException();
7029
      }
123 ashish 7030
 
7031
      switch (field) {
420 ashish 7032
      case ID:
7033
        return isSetId();
123 ashish 7034
      }
7035
      throw new IllegalStateException();
7036
    }
7037
 
7038
    @Override
7039
    public boolean equals(Object that) {
7040
      if (that == null)
7041
        return false;
695 rajveer 7042
      if (that instanceof getPaymentGateway_args)
7043
        return this.equals((getPaymentGateway_args)that);
123 ashish 7044
      return false;
7045
    }
7046
 
695 rajveer 7047
    public boolean equals(getPaymentGateway_args that) {
123 ashish 7048
      if (that == null)
7049
        return false;
7050
 
420 ashish 7051
      boolean this_present_id = true;
7052
      boolean that_present_id = true;
7053
      if (this_present_id || that_present_id) {
7054
        if (!(this_present_id && that_present_id))
123 ashish 7055
          return false;
420 ashish 7056
        if (this.id != that.id)
123 ashish 7057
          return false;
7058
      }
7059
 
7060
      return true;
7061
    }
7062
 
7063
    @Override
7064
    public int hashCode() {
7065
      return 0;
7066
    }
7067
 
695 rajveer 7068
    public int compareTo(getPaymentGateway_args other) {
123 ashish 7069
      if (!getClass().equals(other.getClass())) {
7070
        return getClass().getName().compareTo(other.getClass().getName());
7071
      }
7072
 
7073
      int lastComparison = 0;
695 rajveer 7074
      getPaymentGateway_args typedOther = (getPaymentGateway_args)other;
123 ashish 7075
 
3430 rajveer 7076
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
123 ashish 7077
      if (lastComparison != 0) {
7078
        return lastComparison;
7079
      }
3430 rajveer 7080
      if (isSetId()) {
7081
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7082
        if (lastComparison != 0) {
7083
          return lastComparison;
7084
        }
123 ashish 7085
      }
7086
      return 0;
7087
    }
7088
 
3430 rajveer 7089
    public _Fields fieldForId(int fieldId) {
7090
      return _Fields.findByThriftId(fieldId);
7091
    }
7092
 
7093
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7094
      org.apache.thrift.protocol.TField field;
123 ashish 7095
      iprot.readStructBegin();
7096
      while (true)
7097
      {
7098
        field = iprot.readFieldBegin();
3430 rajveer 7099
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
123 ashish 7100
          break;
7101
        }
3430 rajveer 7102
        switch (field.id) {
7103
          case 1: // ID
7104
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7105
              this.id = iprot.readI64();
7106
              setIdIsSet(true);
7107
            } else { 
7108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7109
            }
7110
            break;
7111
          default:
7112
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
123 ashish 7113
        }
3430 rajveer 7114
        iprot.readFieldEnd();
123 ashish 7115
      }
7116
      iprot.readStructEnd();
7117
      validate();
7118
    }
7119
 
3430 rajveer 7120
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
123 ashish 7121
      validate();
7122
 
7123
      oprot.writeStructBegin(STRUCT_DESC);
420 ashish 7124
      oprot.writeFieldBegin(ID_FIELD_DESC);
7125
      oprot.writeI64(this.id);
123 ashish 7126
      oprot.writeFieldEnd();
7127
      oprot.writeFieldStop();
7128
      oprot.writeStructEnd();
7129
    }
7130
 
7131
    @Override
7132
    public String toString() {
695 rajveer 7133
      StringBuilder sb = new StringBuilder("getPaymentGateway_args(");
123 ashish 7134
      boolean first = true;
7135
 
420 ashish 7136
      sb.append("id:");
7137
      sb.append(this.id);
123 ashish 7138
      first = false;
7139
      sb.append(")");
7140
      return sb.toString();
7141
    }
7142
 
3430 rajveer 7143
    public void validate() throws org.apache.thrift.TException {
123 ashish 7144
      // check for required fields
7145
    }
7146
 
3430 rajveer 7147
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7148
      try {
7149
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7150
      } catch (org.apache.thrift.TException te) {
7151
        throw new java.io.IOException(te);
7152
      }
7153
    }
7154
 
7155
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7156
      try {
7157
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7158
        __isset_bit_vector = new BitSet(1);
7159
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7160
      } catch (org.apache.thrift.TException te) {
7161
        throw new java.io.IOException(te);
7162
      }
7163
    }
7164
 
123 ashish 7165
  }
7166
 
3430 rajveer 7167
  public static class getPaymentGateway_result implements org.apache.thrift.TBase<getPaymentGateway_result, getPaymentGateway_result._Fields>, java.io.Serializable, Cloneable   {
7168
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentGateway_result");
123 ashish 7169
 
3430 rajveer 7170
    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);
7171
    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 7172
 
3430 rajveer 7173
    private PaymentGateway success; // required
7174
    private PaymentException pe; // required
123 ashish 7175
 
7176
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7177
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 7178
      SUCCESS((short)0, "success"),
7179
      PE((short)1, "pe");
7180
 
7181
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7182
 
7183
      static {
7184
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7185
          byName.put(field.getFieldName(), field);
7186
        }
7187
      }
7188
 
7189
      /**
7190
       * Find the _Fields constant that matches fieldId, or null if its not found.
7191
       */
7192
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7193
        switch(fieldId) {
7194
          case 0: // SUCCESS
7195
            return SUCCESS;
7196
          case 1: // PE
7197
            return PE;
7198
          default:
7199
            return null;
7200
        }
420 ashish 7201
      }
7202
 
7203
      /**
7204
       * Find the _Fields constant that matches fieldId, throwing an exception
7205
       * if it is not found.
7206
       */
7207
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7208
        _Fields fields = findByThriftId(fieldId);
7209
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7210
        return fields;
7211
      }
7212
 
7213
      /**
7214
       * Find the _Fields constant that matches name, or null if its not found.
7215
       */
7216
      public static _Fields findByName(String name) {
7217
        return byName.get(name);
7218
      }
7219
 
7220
      private final short _thriftId;
7221
      private final String _fieldName;
7222
 
7223
      _Fields(short thriftId, String fieldName) {
7224
        _thriftId = thriftId;
7225
        _fieldName = fieldName;
7226
      }
7227
 
7228
      public short getThriftFieldId() {
7229
        return _thriftId;
7230
      }
7231
 
7232
      public String getFieldName() {
7233
        return _fieldName;
7234
      }
7235
    }
7236
 
7237
    // isset id assignments
7238
 
3430 rajveer 7239
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 7240
    static {
3430 rajveer 7241
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7242
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7243
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class)));
7244
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7245
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7246
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7247
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentGateway_result.class, metaDataMap);
420 ashish 7248
    }
7249
 
695 rajveer 7250
    public getPaymentGateway_result() {
420 ashish 7251
    }
7252
 
695 rajveer 7253
    public getPaymentGateway_result(
7254
      PaymentGateway success,
420 ashish 7255
      PaymentException pe)
7256
    {
7257
      this();
7258
      this.success = success;
7259
      this.pe = pe;
7260
    }
7261
 
7262
    /**
7263
     * Performs a deep copy on <i>other</i>.
7264
     */
695 rajveer 7265
    public getPaymentGateway_result(getPaymentGateway_result other) {
420 ashish 7266
      if (other.isSetSuccess()) {
695 rajveer 7267
        this.success = new PaymentGateway(other.success);
420 ashish 7268
      }
7269
      if (other.isSetPe()) {
7270
        this.pe = new PaymentException(other.pe);
7271
      }
7272
    }
7273
 
695 rajveer 7274
    public getPaymentGateway_result deepCopy() {
7275
      return new getPaymentGateway_result(this);
420 ashish 7276
    }
7277
 
3430 rajveer 7278
    @Override
7279
    public void clear() {
7280
      this.success = null;
7281
      this.pe = null;
420 ashish 7282
    }
7283
 
695 rajveer 7284
    public PaymentGateway getSuccess() {
420 ashish 7285
      return this.success;
7286
    }
7287
 
3430 rajveer 7288
    public void setSuccess(PaymentGateway success) {
420 ashish 7289
      this.success = success;
7290
    }
7291
 
7292
    public void unsetSuccess() {
7293
      this.success = null;
7294
    }
7295
 
3430 rajveer 7296
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 7297
    public boolean isSetSuccess() {
7298
      return this.success != null;
7299
    }
7300
 
7301
    public void setSuccessIsSet(boolean value) {
7302
      if (!value) {
7303
        this.success = null;
7304
      }
7305
    }
7306
 
7307
    public PaymentException getPe() {
7308
      return this.pe;
7309
    }
7310
 
3430 rajveer 7311
    public void setPe(PaymentException pe) {
420 ashish 7312
      this.pe = pe;
7313
    }
7314
 
7315
    public void unsetPe() {
7316
      this.pe = null;
7317
    }
7318
 
3430 rajveer 7319
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 7320
    public boolean isSetPe() {
7321
      return this.pe != null;
7322
    }
7323
 
7324
    public void setPeIsSet(boolean value) {
7325
      if (!value) {
7326
        this.pe = null;
7327
      }
7328
    }
7329
 
7330
    public void setFieldValue(_Fields field, Object value) {
7331
      switch (field) {
7332
      case SUCCESS:
7333
        if (value == null) {
7334
          unsetSuccess();
7335
        } else {
695 rajveer 7336
          setSuccess((PaymentGateway)value);
420 ashish 7337
        }
7338
        break;
7339
 
7340
      case PE:
7341
        if (value == null) {
7342
          unsetPe();
7343
        } else {
7344
          setPe((PaymentException)value);
7345
        }
7346
        break;
7347
 
7348
      }
7349
    }
7350
 
7351
    public Object getFieldValue(_Fields field) {
7352
      switch (field) {
7353
      case SUCCESS:
7354
        return getSuccess();
7355
 
7356
      case PE:
7357
        return getPe();
7358
 
7359
      }
7360
      throw new IllegalStateException();
7361
    }
7362
 
3430 rajveer 7363
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7364
    public boolean isSet(_Fields field) {
7365
      if (field == null) {
7366
        throw new IllegalArgumentException();
7367
      }
420 ashish 7368
 
7369
      switch (field) {
7370
      case SUCCESS:
7371
        return isSetSuccess();
7372
      case PE:
7373
        return isSetPe();
7374
      }
7375
      throw new IllegalStateException();
7376
    }
7377
 
7378
    @Override
7379
    public boolean equals(Object that) {
7380
      if (that == null)
7381
        return false;
695 rajveer 7382
      if (that instanceof getPaymentGateway_result)
7383
        return this.equals((getPaymentGateway_result)that);
420 ashish 7384
      return false;
7385
    }
7386
 
695 rajveer 7387
    public boolean equals(getPaymentGateway_result that) {
420 ashish 7388
      if (that == null)
7389
        return false;
7390
 
7391
      boolean this_present_success = true && this.isSetSuccess();
7392
      boolean that_present_success = true && that.isSetSuccess();
7393
      if (this_present_success || that_present_success) {
7394
        if (!(this_present_success && that_present_success))
7395
          return false;
7396
        if (!this.success.equals(that.success))
7397
          return false;
7398
      }
7399
 
7400
      boolean this_present_pe = true && this.isSetPe();
7401
      boolean that_present_pe = true && that.isSetPe();
7402
      if (this_present_pe || that_present_pe) {
7403
        if (!(this_present_pe && that_present_pe))
7404
          return false;
7405
        if (!this.pe.equals(that.pe))
7406
          return false;
7407
      }
7408
 
7409
      return true;
7410
    }
7411
 
7412
    @Override
7413
    public int hashCode() {
7414
      return 0;
7415
    }
7416
 
695 rajveer 7417
    public int compareTo(getPaymentGateway_result other) {
7418
      if (!getClass().equals(other.getClass())) {
7419
        return getClass().getName().compareTo(other.getClass().getName());
7420
      }
7421
 
7422
      int lastComparison = 0;
7423
      getPaymentGateway_result typedOther = (getPaymentGateway_result)other;
7424
 
3430 rajveer 7425
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 7426
      if (lastComparison != 0) {
7427
        return lastComparison;
7428
      }
3430 rajveer 7429
      if (isSetSuccess()) {
7430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7431
        if (lastComparison != 0) {
7432
          return lastComparison;
7433
        }
695 rajveer 7434
      }
3430 rajveer 7435
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 7436
      if (lastComparison != 0) {
7437
        return lastComparison;
7438
      }
3430 rajveer 7439
      if (isSetPe()) {
7440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
7441
        if (lastComparison != 0) {
7442
          return lastComparison;
7443
        }
695 rajveer 7444
      }
7445
      return 0;
7446
    }
7447
 
3430 rajveer 7448
    public _Fields fieldForId(int fieldId) {
7449
      return _Fields.findByThriftId(fieldId);
7450
    }
7451
 
7452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7453
      org.apache.thrift.protocol.TField field;
420 ashish 7454
      iprot.readStructBegin();
7455
      while (true)
7456
      {
7457
        field = iprot.readFieldBegin();
3430 rajveer 7458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 7459
          break;
7460
        }
3430 rajveer 7461
        switch (field.id) {
7462
          case 0: // SUCCESS
7463
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7464
              this.success = new PaymentGateway();
7465
              this.success.read(iprot);
7466
            } else { 
7467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7468
            }
7469
            break;
7470
          case 1: // PE
7471
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7472
              this.pe = new PaymentException();
7473
              this.pe.read(iprot);
7474
            } else { 
7475
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7476
            }
7477
            break;
7478
          default:
7479
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 7480
        }
3430 rajveer 7481
        iprot.readFieldEnd();
420 ashish 7482
      }
7483
      iprot.readStructEnd();
7484
      validate();
7485
    }
7486
 
3430 rajveer 7487
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 7488
      oprot.writeStructBegin(STRUCT_DESC);
7489
 
7490
      if (this.isSetSuccess()) {
7491
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 7492
        this.success.write(oprot);
420 ashish 7493
        oprot.writeFieldEnd();
7494
      } else if (this.isSetPe()) {
7495
        oprot.writeFieldBegin(PE_FIELD_DESC);
7496
        this.pe.write(oprot);
7497
        oprot.writeFieldEnd();
7498
      }
7499
      oprot.writeFieldStop();
7500
      oprot.writeStructEnd();
7501
    }
7502
 
7503
    @Override
7504
    public String toString() {
695 rajveer 7505
      StringBuilder sb = new StringBuilder("getPaymentGateway_result(");
420 ashish 7506
      boolean first = true;
7507
 
7508
      sb.append("success:");
7509
      if (this.success == null) {
7510
        sb.append("null");
7511
      } else {
7512
        sb.append(this.success);
7513
      }
7514
      first = false;
7515
      if (!first) sb.append(", ");
7516
      sb.append("pe:");
7517
      if (this.pe == null) {
7518
        sb.append("null");
7519
      } else {
7520
        sb.append(this.pe);
7521
      }
7522
      first = false;
7523
      sb.append(")");
7524
      return sb.toString();
7525
    }
7526
 
3430 rajveer 7527
    public void validate() throws org.apache.thrift.TException {
420 ashish 7528
      // check for required fields
7529
    }
7530
 
3430 rajveer 7531
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7532
      try {
7533
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7534
      } catch (org.apache.thrift.TException te) {
7535
        throw new java.io.IOException(te);
7536
      }
7537
    }
7538
 
7539
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7540
      try {
7541
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7542
      } catch (org.apache.thrift.TException te) {
7543
        throw new java.io.IOException(te);
7544
      }
7545
    }
7546
 
420 ashish 7547
  }
7548
 
4600 varun.gupt 7549
  public static class getActivePaymentGateways_args implements org.apache.thrift.TBase<getActivePaymentGateways_args, getActivePaymentGateways_args._Fields>, java.io.Serializable, Cloneable   {
7550
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_args");
7551
 
7552
 
7553
 
7554
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7555
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7556
;
7557
 
7558
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7559
 
7560
      static {
7561
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7562
          byName.put(field.getFieldName(), field);
7563
        }
7564
      }
7565
 
7566
      /**
7567
       * Find the _Fields constant that matches fieldId, or null if its not found.
7568
       */
7569
      public static _Fields findByThriftId(int fieldId) {
7570
        switch(fieldId) {
7571
          default:
7572
            return null;
7573
        }
7574
      }
7575
 
7576
      /**
7577
       * Find the _Fields constant that matches fieldId, throwing an exception
7578
       * if it is not found.
7579
       */
7580
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7581
        _Fields fields = findByThriftId(fieldId);
7582
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7583
        return fields;
7584
      }
7585
 
7586
      /**
7587
       * Find the _Fields constant that matches name, or null if its not found.
7588
       */
7589
      public static _Fields findByName(String name) {
7590
        return byName.get(name);
7591
      }
7592
 
7593
      private final short _thriftId;
7594
      private final String _fieldName;
7595
 
7596
      _Fields(short thriftId, String fieldName) {
7597
        _thriftId = thriftId;
7598
        _fieldName = fieldName;
7599
      }
7600
 
7601
      public short getThriftFieldId() {
7602
        return _thriftId;
7603
      }
7604
 
7605
      public String getFieldName() {
7606
        return _fieldName;
7607
      }
7608
    }
7609
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7610
    static {
7611
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7612
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7613
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_args.class, metaDataMap);
7614
    }
7615
 
7616
    public getActivePaymentGateways_args() {
7617
    }
7618
 
7619
    /**
7620
     * Performs a deep copy on <i>other</i>.
7621
     */
7622
    public getActivePaymentGateways_args(getActivePaymentGateways_args other) {
7623
    }
7624
 
7625
    public getActivePaymentGateways_args deepCopy() {
7626
      return new getActivePaymentGateways_args(this);
7627
    }
7628
 
7629
    @Override
7630
    public void clear() {
7631
    }
7632
 
7633
    public void setFieldValue(_Fields field, Object value) {
7634
      switch (field) {
7635
      }
7636
    }
7637
 
7638
    public Object getFieldValue(_Fields field) {
7639
      switch (field) {
7640
      }
7641
      throw new IllegalStateException();
7642
    }
7643
 
7644
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7645
    public boolean isSet(_Fields field) {
7646
      if (field == null) {
7647
        throw new IllegalArgumentException();
7648
      }
7649
 
7650
      switch (field) {
7651
      }
7652
      throw new IllegalStateException();
7653
    }
7654
 
7655
    @Override
7656
    public boolean equals(Object that) {
7657
      if (that == null)
7658
        return false;
7659
      if (that instanceof getActivePaymentGateways_args)
7660
        return this.equals((getActivePaymentGateways_args)that);
7661
      return false;
7662
    }
7663
 
7664
    public boolean equals(getActivePaymentGateways_args that) {
7665
      if (that == null)
7666
        return false;
7667
 
7668
      return true;
7669
    }
7670
 
7671
    @Override
7672
    public int hashCode() {
7673
      return 0;
7674
    }
7675
 
7676
    public int compareTo(getActivePaymentGateways_args other) {
7677
      if (!getClass().equals(other.getClass())) {
7678
        return getClass().getName().compareTo(other.getClass().getName());
7679
      }
7680
 
7681
      int lastComparison = 0;
7682
      getActivePaymentGateways_args typedOther = (getActivePaymentGateways_args)other;
7683
 
7684
      return 0;
7685
    }
7686
 
7687
    public _Fields fieldForId(int fieldId) {
7688
      return _Fields.findByThriftId(fieldId);
7689
    }
7690
 
7691
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7692
      org.apache.thrift.protocol.TField field;
7693
      iprot.readStructBegin();
7694
      while (true)
7695
      {
7696
        field = iprot.readFieldBegin();
7697
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7698
          break;
7699
        }
7700
        switch (field.id) {
7701
          default:
7702
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7703
        }
7704
        iprot.readFieldEnd();
7705
      }
7706
      iprot.readStructEnd();
7707
      validate();
7708
    }
7709
 
7710
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7711
      validate();
7712
 
7713
      oprot.writeStructBegin(STRUCT_DESC);
7714
      oprot.writeFieldStop();
7715
      oprot.writeStructEnd();
7716
    }
7717
 
7718
    @Override
7719
    public String toString() {
7720
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_args(");
7721
      boolean first = true;
7722
 
7723
      sb.append(")");
7724
      return sb.toString();
7725
    }
7726
 
7727
    public void validate() throws org.apache.thrift.TException {
7728
      // check for required fields
7729
    }
7730
 
7731
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7732
      try {
7733
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7734
      } catch (org.apache.thrift.TException te) {
7735
        throw new java.io.IOException(te);
7736
      }
7737
    }
7738
 
7739
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7740
      try {
7741
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7742
      } catch (org.apache.thrift.TException te) {
7743
        throw new java.io.IOException(te);
7744
      }
7745
    }
7746
 
7747
  }
7748
 
7749
  public static class getActivePaymentGateways_result implements org.apache.thrift.TBase<getActivePaymentGateways_result, getActivePaymentGateways_result._Fields>, java.io.Serializable, Cloneable   {
7750
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_result");
7751
 
7752
    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);
7753
    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);
7754
 
7755
    private List<PaymentGateway> success; // required
7756
    private PaymentException pe; // required
7757
 
7758
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7759
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7760
      SUCCESS((short)0, "success"),
7761
      PE((short)1, "pe");
7762
 
7763
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7764
 
7765
      static {
7766
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7767
          byName.put(field.getFieldName(), field);
7768
        }
7769
      }
7770
 
7771
      /**
7772
       * Find the _Fields constant that matches fieldId, or null if its not found.
7773
       */
7774
      public static _Fields findByThriftId(int fieldId) {
7775
        switch(fieldId) {
7776
          case 0: // SUCCESS
7777
            return SUCCESS;
7778
          case 1: // PE
7779
            return PE;
7780
          default:
7781
            return null;
7782
        }
7783
      }
7784
 
7785
      /**
7786
       * Find the _Fields constant that matches fieldId, throwing an exception
7787
       * if it is not found.
7788
       */
7789
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7790
        _Fields fields = findByThriftId(fieldId);
7791
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7792
        return fields;
7793
      }
7794
 
7795
      /**
7796
       * Find the _Fields constant that matches name, or null if its not found.
7797
       */
7798
      public static _Fields findByName(String name) {
7799
        return byName.get(name);
7800
      }
7801
 
7802
      private final short _thriftId;
7803
      private final String _fieldName;
7804
 
7805
      _Fields(short thriftId, String fieldName) {
7806
        _thriftId = thriftId;
7807
        _fieldName = fieldName;
7808
      }
7809
 
7810
      public short getThriftFieldId() {
7811
        return _thriftId;
7812
      }
7813
 
7814
      public String getFieldName() {
7815
        return _fieldName;
7816
      }
7817
    }
7818
 
7819
    // isset id assignments
7820
 
7821
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7822
    static {
7823
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7824
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7825
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7826
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class))));
7827
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7828
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7829
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7830
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_result.class, metaDataMap);
7831
    }
7832
 
7833
    public getActivePaymentGateways_result() {
7834
    }
7835
 
7836
    public getActivePaymentGateways_result(
7837
      List<PaymentGateway> success,
7838
      PaymentException pe)
7839
    {
7840
      this();
7841
      this.success = success;
7842
      this.pe = pe;
7843
    }
7844
 
7845
    /**
7846
     * Performs a deep copy on <i>other</i>.
7847
     */
7848
    public getActivePaymentGateways_result(getActivePaymentGateways_result other) {
7849
      if (other.isSetSuccess()) {
7850
        List<PaymentGateway> __this__success = new ArrayList<PaymentGateway>();
7851
        for (PaymentGateway other_element : other.success) {
7852
          __this__success.add(new PaymentGateway(other_element));
7853
        }
7854
        this.success = __this__success;
7855
      }
7856
      if (other.isSetPe()) {
7857
        this.pe = new PaymentException(other.pe);
7858
      }
7859
    }
7860
 
7861
    public getActivePaymentGateways_result deepCopy() {
7862
      return new getActivePaymentGateways_result(this);
7863
    }
7864
 
7865
    @Override
7866
    public void clear() {
7867
      this.success = null;
7868
      this.pe = null;
7869
    }
7870
 
7871
    public int getSuccessSize() {
7872
      return (this.success == null) ? 0 : this.success.size();
7873
    }
7874
 
7875
    public java.util.Iterator<PaymentGateway> getSuccessIterator() {
7876
      return (this.success == null) ? null : this.success.iterator();
7877
    }
7878
 
7879
    public void addToSuccess(PaymentGateway elem) {
7880
      if (this.success == null) {
7881
        this.success = new ArrayList<PaymentGateway>();
7882
      }
7883
      this.success.add(elem);
7884
    }
7885
 
7886
    public List<PaymentGateway> getSuccess() {
7887
      return this.success;
7888
    }
7889
 
7890
    public void setSuccess(List<PaymentGateway> success) {
7891
      this.success = success;
7892
    }
7893
 
7894
    public void unsetSuccess() {
7895
      this.success = null;
7896
    }
7897
 
7898
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7899
    public boolean isSetSuccess() {
7900
      return this.success != null;
7901
    }
7902
 
7903
    public void setSuccessIsSet(boolean value) {
7904
      if (!value) {
7905
        this.success = null;
7906
      }
7907
    }
7908
 
7909
    public PaymentException getPe() {
7910
      return this.pe;
7911
    }
7912
 
7913
    public void setPe(PaymentException pe) {
7914
      this.pe = pe;
7915
    }
7916
 
7917
    public void unsetPe() {
7918
      this.pe = null;
7919
    }
7920
 
7921
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
7922
    public boolean isSetPe() {
7923
      return this.pe != null;
7924
    }
7925
 
7926
    public void setPeIsSet(boolean value) {
7927
      if (!value) {
7928
        this.pe = null;
7929
      }
7930
    }
7931
 
7932
    public void setFieldValue(_Fields field, Object value) {
7933
      switch (field) {
7934
      case SUCCESS:
7935
        if (value == null) {
7936
          unsetSuccess();
7937
        } else {
7938
          setSuccess((List<PaymentGateway>)value);
7939
        }
7940
        break;
7941
 
7942
      case PE:
7943
        if (value == null) {
7944
          unsetPe();
7945
        } else {
7946
          setPe((PaymentException)value);
7947
        }
7948
        break;
7949
 
7950
      }
7951
    }
7952
 
7953
    public Object getFieldValue(_Fields field) {
7954
      switch (field) {
7955
      case SUCCESS:
7956
        return getSuccess();
7957
 
7958
      case PE:
7959
        return getPe();
7960
 
7961
      }
7962
      throw new IllegalStateException();
7963
    }
7964
 
7965
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7966
    public boolean isSet(_Fields field) {
7967
      if (field == null) {
7968
        throw new IllegalArgumentException();
7969
      }
7970
 
7971
      switch (field) {
7972
      case SUCCESS:
7973
        return isSetSuccess();
7974
      case PE:
7975
        return isSetPe();
7976
      }
7977
      throw new IllegalStateException();
7978
    }
7979
 
7980
    @Override
7981
    public boolean equals(Object that) {
7982
      if (that == null)
7983
        return false;
7984
      if (that instanceof getActivePaymentGateways_result)
7985
        return this.equals((getActivePaymentGateways_result)that);
7986
      return false;
7987
    }
7988
 
7989
    public boolean equals(getActivePaymentGateways_result that) {
7990
      if (that == null)
7991
        return false;
7992
 
7993
      boolean this_present_success = true && this.isSetSuccess();
7994
      boolean that_present_success = true && that.isSetSuccess();
7995
      if (this_present_success || that_present_success) {
7996
        if (!(this_present_success && that_present_success))
7997
          return false;
7998
        if (!this.success.equals(that.success))
7999
          return false;
8000
      }
8001
 
8002
      boolean this_present_pe = true && this.isSetPe();
8003
      boolean that_present_pe = true && that.isSetPe();
8004
      if (this_present_pe || that_present_pe) {
8005
        if (!(this_present_pe && that_present_pe))
8006
          return false;
8007
        if (!this.pe.equals(that.pe))
8008
          return false;
8009
      }
8010
 
8011
      return true;
8012
    }
8013
 
8014
    @Override
8015
    public int hashCode() {
8016
      return 0;
8017
    }
8018
 
8019
    public int compareTo(getActivePaymentGateways_result other) {
8020
      if (!getClass().equals(other.getClass())) {
8021
        return getClass().getName().compareTo(other.getClass().getName());
8022
      }
8023
 
8024
      int lastComparison = 0;
8025
      getActivePaymentGateways_result typedOther = (getActivePaymentGateways_result)other;
8026
 
8027
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8028
      if (lastComparison != 0) {
8029
        return lastComparison;
8030
      }
8031
      if (isSetSuccess()) {
8032
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8033
        if (lastComparison != 0) {
8034
          return lastComparison;
8035
        }
8036
      }
8037
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
8038
      if (lastComparison != 0) {
8039
        return lastComparison;
8040
      }
8041
      if (isSetPe()) {
8042
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
8043
        if (lastComparison != 0) {
8044
          return lastComparison;
8045
        }
8046
      }
8047
      return 0;
8048
    }
8049
 
8050
    public _Fields fieldForId(int fieldId) {
8051
      return _Fields.findByThriftId(fieldId);
8052
    }
8053
 
8054
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8055
      org.apache.thrift.protocol.TField field;
8056
      iprot.readStructBegin();
8057
      while (true)
8058
      {
8059
        field = iprot.readFieldBegin();
8060
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8061
          break;
8062
        }
8063
        switch (field.id) {
8064
          case 0: // SUCCESS
8065
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8066
              {
8067
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
8068
                this.success = new ArrayList<PaymentGateway>(_list24.size);
8069
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
8070
                {
8071
                  PaymentGateway _elem26; // required
8072
                  _elem26 = new PaymentGateway();
8073
                  _elem26.read(iprot);
8074
                  this.success.add(_elem26);
8075
                }
8076
                iprot.readListEnd();
8077
              }
8078
            } else { 
8079
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8080
            }
8081
            break;
8082
          case 1: // PE
8083
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8084
              this.pe = new PaymentException();
8085
              this.pe.read(iprot);
8086
            } else { 
8087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8088
            }
8089
            break;
8090
          default:
8091
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8092
        }
8093
        iprot.readFieldEnd();
8094
      }
8095
      iprot.readStructEnd();
8096
      validate();
8097
    }
8098
 
8099
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8100
      oprot.writeStructBegin(STRUCT_DESC);
8101
 
8102
      if (this.isSetSuccess()) {
8103
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8104
        {
8105
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8106
          for (PaymentGateway _iter27 : this.success)
8107
          {
8108
            _iter27.write(oprot);
8109
          }
8110
          oprot.writeListEnd();
8111
        }
8112
        oprot.writeFieldEnd();
8113
      } else if (this.isSetPe()) {
8114
        oprot.writeFieldBegin(PE_FIELD_DESC);
8115
        this.pe.write(oprot);
8116
        oprot.writeFieldEnd();
8117
      }
8118
      oprot.writeFieldStop();
8119
      oprot.writeStructEnd();
8120
    }
8121
 
8122
    @Override
8123
    public String toString() {
8124
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_result(");
8125
      boolean first = true;
8126
 
8127
      sb.append("success:");
8128
      if (this.success == null) {
8129
        sb.append("null");
8130
      } else {
8131
        sb.append(this.success);
8132
      }
8133
      first = false;
8134
      if (!first) sb.append(", ");
8135
      sb.append("pe:");
8136
      if (this.pe == null) {
8137
        sb.append("null");
8138
      } else {
8139
        sb.append(this.pe);
8140
      }
8141
      first = false;
8142
      sb.append(")");
8143
      return sb.toString();
8144
    }
8145
 
8146
    public void validate() throws org.apache.thrift.TException {
8147
      // check for required fields
8148
    }
8149
 
8150
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8151
      try {
8152
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8153
      } catch (org.apache.thrift.TException te) {
8154
        throw new java.io.IOException(te);
8155
      }
8156
    }
8157
 
8158
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8159
      try {
8160
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8161
      } catch (org.apache.thrift.TException te) {
8162
        throw new java.io.IOException(te);
8163
      }
8164
    }
8165
 
8166
  }
8167
 
3430 rajveer 8168
  public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable   {
8169
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
420 ashish 8170
 
3430 rajveer 8171
    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 8172
 
3430 rajveer 8173
    private long id; // required
420 ashish 8174
 
8175
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8176
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 8177
      ID((short)1, "id");
8178
 
8179
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8180
 
8181
      static {
8182
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8183
          byName.put(field.getFieldName(), field);
8184
        }
8185
      }
8186
 
8187
      /**
8188
       * Find the _Fields constant that matches fieldId, or null if its not found.
8189
       */
8190
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8191
        switch(fieldId) {
8192
          case 1: // ID
8193
            return ID;
8194
          default:
8195
            return null;
8196
        }
420 ashish 8197
      }
8198
 
8199
      /**
8200
       * Find the _Fields constant that matches fieldId, throwing an exception
8201
       * if it is not found.
8202
       */
8203
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8204
        _Fields fields = findByThriftId(fieldId);
8205
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8206
        return fields;
8207
      }
8208
 
8209
      /**
8210
       * Find the _Fields constant that matches name, or null if its not found.
8211
       */
8212
      public static _Fields findByName(String name) {
8213
        return byName.get(name);
8214
      }
8215
 
8216
      private final short _thriftId;
8217
      private final String _fieldName;
8218
 
8219
      _Fields(short thriftId, String fieldName) {
8220
        _thriftId = thriftId;
8221
        _fieldName = fieldName;
8222
      }
8223
 
8224
      public short getThriftFieldId() {
8225
        return _thriftId;
8226
      }
8227
 
8228
      public String getFieldName() {
8229
        return _fieldName;
8230
      }
8231
    }
8232
 
8233
    // isset id assignments
8234
    private static final int __ID_ISSET_ID = 0;
8235
    private BitSet __isset_bit_vector = new BitSet(1);
8236
 
3430 rajveer 8237
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 8238
    static {
3430 rajveer 8239
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8240
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8241
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8242
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8243
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_args.class, metaDataMap);
420 ashish 8244
    }
8245
 
695 rajveer 8246
    public getPayment_args() {
420 ashish 8247
    }
8248
 
695 rajveer 8249
    public getPayment_args(
420 ashish 8250
      long id)
8251
    {
8252
      this();
8253
      this.id = id;
8254
      setIdIsSet(true);
8255
    }
8256
 
8257
    /**
8258
     * Performs a deep copy on <i>other</i>.
8259
     */
695 rajveer 8260
    public getPayment_args(getPayment_args other) {
420 ashish 8261
      __isset_bit_vector.clear();
8262
      __isset_bit_vector.or(other.__isset_bit_vector);
8263
      this.id = other.id;
8264
    }
8265
 
695 rajveer 8266
    public getPayment_args deepCopy() {
8267
      return new getPayment_args(this);
420 ashish 8268
    }
8269
 
3430 rajveer 8270
    @Override
8271
    public void clear() {
8272
      setIdIsSet(false);
8273
      this.id = 0;
420 ashish 8274
    }
8275
 
8276
    public long getId() {
8277
      return this.id;
8278
    }
8279
 
3430 rajveer 8280
    public void setId(long id) {
420 ashish 8281
      this.id = id;
8282
      setIdIsSet(true);
8283
    }
8284
 
8285
    public void unsetId() {
8286
      __isset_bit_vector.clear(__ID_ISSET_ID);
8287
    }
8288
 
3430 rajveer 8289
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 8290
    public boolean isSetId() {
8291
      return __isset_bit_vector.get(__ID_ISSET_ID);
8292
    }
8293
 
8294
    public void setIdIsSet(boolean value) {
8295
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8296
    }
8297
 
8298
    public void setFieldValue(_Fields field, Object value) {
8299
      switch (field) {
8300
      case ID:
8301
        if (value == null) {
8302
          unsetId();
8303
        } else {
8304
          setId((Long)value);
8305
        }
8306
        break;
8307
 
8308
      }
8309
    }
8310
 
8311
    public Object getFieldValue(_Fields field) {
8312
      switch (field) {
8313
      case ID:
3430 rajveer 8314
        return Long.valueOf(getId());
420 ashish 8315
 
8316
      }
8317
      throw new IllegalStateException();
8318
    }
8319
 
3430 rajveer 8320
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8321
    public boolean isSet(_Fields field) {
8322
      if (field == null) {
8323
        throw new IllegalArgumentException();
8324
      }
420 ashish 8325
 
8326
      switch (field) {
8327
      case ID:
8328
        return isSetId();
8329
      }
8330
      throw new IllegalStateException();
8331
    }
8332
 
8333
    @Override
8334
    public boolean equals(Object that) {
8335
      if (that == null)
8336
        return false;
695 rajveer 8337
      if (that instanceof getPayment_args)
8338
        return this.equals((getPayment_args)that);
420 ashish 8339
      return false;
8340
    }
8341
 
695 rajveer 8342
    public boolean equals(getPayment_args that) {
420 ashish 8343
      if (that == null)
8344
        return false;
8345
 
8346
      boolean this_present_id = true;
8347
      boolean that_present_id = true;
8348
      if (this_present_id || that_present_id) {
8349
        if (!(this_present_id && that_present_id))
8350
          return false;
8351
        if (this.id != that.id)
8352
          return false;
8353
      }
8354
 
8355
      return true;
8356
    }
8357
 
8358
    @Override
8359
    public int hashCode() {
8360
      return 0;
8361
    }
8362
 
695 rajveer 8363
    public int compareTo(getPayment_args other) {
420 ashish 8364
      if (!getClass().equals(other.getClass())) {
8365
        return getClass().getName().compareTo(other.getClass().getName());
8366
      }
8367
 
8368
      int lastComparison = 0;
695 rajveer 8369
      getPayment_args typedOther = (getPayment_args)other;
420 ashish 8370
 
3430 rajveer 8371
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 8372
      if (lastComparison != 0) {
8373
        return lastComparison;
8374
      }
3430 rajveer 8375
      if (isSetId()) {
8376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8377
        if (lastComparison != 0) {
8378
          return lastComparison;
8379
        }
420 ashish 8380
      }
8381
      return 0;
8382
    }
8383
 
3430 rajveer 8384
    public _Fields fieldForId(int fieldId) {
8385
      return _Fields.findByThriftId(fieldId);
8386
    }
8387
 
8388
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8389
      org.apache.thrift.protocol.TField field;
420 ashish 8390
      iprot.readStructBegin();
8391
      while (true)
8392
      {
8393
        field = iprot.readFieldBegin();
3430 rajveer 8394
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8395
          break;
8396
        }
3430 rajveer 8397
        switch (field.id) {
8398
          case 1: // ID
8399
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8400
              this.id = iprot.readI64();
8401
              setIdIsSet(true);
8402
            } else { 
8403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8404
            }
8405
            break;
8406
          default:
8407
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8408
        }
3430 rajveer 8409
        iprot.readFieldEnd();
420 ashish 8410
      }
8411
      iprot.readStructEnd();
8412
      validate();
8413
    }
8414
 
3430 rajveer 8415
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8416
      validate();
8417
 
8418
      oprot.writeStructBegin(STRUCT_DESC);
8419
      oprot.writeFieldBegin(ID_FIELD_DESC);
8420
      oprot.writeI64(this.id);
8421
      oprot.writeFieldEnd();
8422
      oprot.writeFieldStop();
8423
      oprot.writeStructEnd();
8424
    }
8425
 
8426
    @Override
8427
    public String toString() {
695 rajveer 8428
      StringBuilder sb = new StringBuilder("getPayment_args(");
420 ashish 8429
      boolean first = true;
8430
 
8431
      sb.append("id:");
8432
      sb.append(this.id);
8433
      first = false;
8434
      sb.append(")");
8435
      return sb.toString();
8436
    }
8437
 
3430 rajveer 8438
    public void validate() throws org.apache.thrift.TException {
420 ashish 8439
      // check for required fields
8440
    }
8441
 
3430 rajveer 8442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8443
      try {
8444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8445
      } catch (org.apache.thrift.TException te) {
8446
        throw new java.io.IOException(te);
8447
      }
8448
    }
8449
 
8450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8451
      try {
8452
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8453
        __isset_bit_vector = new BitSet(1);
8454
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8455
      } catch (org.apache.thrift.TException te) {
8456
        throw new java.io.IOException(te);
8457
      }
8458
    }
8459
 
420 ashish 8460
  }
8461
 
3430 rajveer 8462
  public static class getPayment_result implements org.apache.thrift.TBase<getPayment_result, getPayment_result._Fields>, java.io.Serializable, Cloneable   {
8463
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_result");
420 ashish 8464
 
3430 rajveer 8465
    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);
8466
    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 8467
 
3430 rajveer 8468
    private Payment success; // required
8469
    private PaymentException pe; // required
420 ashish 8470
 
8471
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8472
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 8473
      SUCCESS((short)0, "success"),
8474
      PE((short)1, "pe");
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
          case 1: // PE
8492
            return PE;
8493
          default:
8494
            return null;
8495
        }
420 ashish 8496
      }
8497
 
8498
      /**
8499
       * Find the _Fields constant that matches fieldId, throwing an exception
8500
       * if it is not found.
8501
       */
8502
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8503
        _Fields fields = findByThriftId(fieldId);
8504
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8505
        return fields;
8506
      }
8507
 
8508
      /**
8509
       * Find the _Fields constant that matches name, or null if its not found.
8510
       */
8511
      public static _Fields findByName(String name) {
8512
        return byName.get(name);
8513
      }
8514
 
8515
      private final short _thriftId;
8516
      private final String _fieldName;
8517
 
8518
      _Fields(short thriftId, String fieldName) {
8519
        _thriftId = thriftId;
8520
        _fieldName = fieldName;
8521
      }
8522
 
8523
      public short getThriftFieldId() {
8524
        return _thriftId;
8525
      }
8526
 
8527
      public String getFieldName() {
8528
        return _fieldName;
8529
      }
8530
    }
8531
 
8532
    // isset id assignments
8533
 
3430 rajveer 8534
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 8535
    static {
3430 rajveer 8536
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8537
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8538
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
8539
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8540
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8541
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8542
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPayment_result.class, metaDataMap);
420 ashish 8543
    }
8544
 
695 rajveer 8545
    public getPayment_result() {
420 ashish 8546
    }
8547
 
695 rajveer 8548
    public getPayment_result(
8549
      Payment success,
420 ashish 8550
      PaymentException pe)
8551
    {
8552
      this();
8553
      this.success = success;
8554
      this.pe = pe;
8555
    }
8556
 
8557
    /**
8558
     * Performs a deep copy on <i>other</i>.
8559
     */
695 rajveer 8560
    public getPayment_result(getPayment_result other) {
420 ashish 8561
      if (other.isSetSuccess()) {
695 rajveer 8562
        this.success = new Payment(other.success);
420 ashish 8563
      }
8564
      if (other.isSetPe()) {
8565
        this.pe = new PaymentException(other.pe);
8566
      }
8567
    }
8568
 
695 rajveer 8569
    public getPayment_result deepCopy() {
8570
      return new getPayment_result(this);
420 ashish 8571
    }
8572
 
3430 rajveer 8573
    @Override
8574
    public void clear() {
8575
      this.success = null;
8576
      this.pe = null;
420 ashish 8577
    }
8578
 
695 rajveer 8579
    public Payment getSuccess() {
420 ashish 8580
      return this.success;
8581
    }
8582
 
3430 rajveer 8583
    public void setSuccess(Payment success) {
420 ashish 8584
      this.success = success;
8585
    }
8586
 
8587
    public void unsetSuccess() {
8588
      this.success = null;
8589
    }
8590
 
3430 rajveer 8591
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 8592
    public boolean isSetSuccess() {
8593
      return this.success != null;
8594
    }
8595
 
8596
    public void setSuccessIsSet(boolean value) {
8597
      if (!value) {
8598
        this.success = null;
8599
      }
8600
    }
8601
 
8602
    public PaymentException getPe() {
8603
      return this.pe;
8604
    }
8605
 
3430 rajveer 8606
    public void setPe(PaymentException pe) {
420 ashish 8607
      this.pe = pe;
8608
    }
8609
 
8610
    public void unsetPe() {
8611
      this.pe = null;
8612
    }
8613
 
3430 rajveer 8614
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 8615
    public boolean isSetPe() {
8616
      return this.pe != null;
8617
    }
8618
 
8619
    public void setPeIsSet(boolean value) {
8620
      if (!value) {
8621
        this.pe = null;
8622
      }
8623
    }
8624
 
8625
    public void setFieldValue(_Fields field, Object value) {
8626
      switch (field) {
8627
      case SUCCESS:
8628
        if (value == null) {
8629
          unsetSuccess();
8630
        } else {
695 rajveer 8631
          setSuccess((Payment)value);
420 ashish 8632
        }
8633
        break;
8634
 
8635
      case PE:
8636
        if (value == null) {
8637
          unsetPe();
8638
        } else {
8639
          setPe((PaymentException)value);
8640
        }
8641
        break;
8642
 
8643
      }
8644
    }
8645
 
8646
    public Object getFieldValue(_Fields field) {
8647
      switch (field) {
8648
      case SUCCESS:
8649
        return getSuccess();
8650
 
8651
      case PE:
8652
        return getPe();
8653
 
8654
      }
8655
      throw new IllegalStateException();
8656
    }
8657
 
3430 rajveer 8658
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8659
    public boolean isSet(_Fields field) {
8660
      if (field == null) {
8661
        throw new IllegalArgumentException();
8662
      }
420 ashish 8663
 
8664
      switch (field) {
8665
      case SUCCESS:
8666
        return isSetSuccess();
8667
      case PE:
8668
        return isSetPe();
8669
      }
8670
      throw new IllegalStateException();
8671
    }
8672
 
8673
    @Override
8674
    public boolean equals(Object that) {
8675
      if (that == null)
8676
        return false;
695 rajveer 8677
      if (that instanceof getPayment_result)
8678
        return this.equals((getPayment_result)that);
420 ashish 8679
      return false;
8680
    }
8681
 
695 rajveer 8682
    public boolean equals(getPayment_result that) {
420 ashish 8683
      if (that == null)
8684
        return false;
8685
 
8686
      boolean this_present_success = true && this.isSetSuccess();
8687
      boolean that_present_success = true && that.isSetSuccess();
8688
      if (this_present_success || that_present_success) {
8689
        if (!(this_present_success && that_present_success))
8690
          return false;
8691
        if (!this.success.equals(that.success))
8692
          return false;
8693
      }
8694
 
8695
      boolean this_present_pe = true && this.isSetPe();
8696
      boolean that_present_pe = true && that.isSetPe();
8697
      if (this_present_pe || that_present_pe) {
8698
        if (!(this_present_pe && that_present_pe))
8699
          return false;
8700
        if (!this.pe.equals(that.pe))
8701
          return false;
8702
      }
8703
 
8704
      return true;
8705
    }
8706
 
8707
    @Override
8708
    public int hashCode() {
8709
      return 0;
8710
    }
8711
 
695 rajveer 8712
    public int compareTo(getPayment_result other) {
420 ashish 8713
      if (!getClass().equals(other.getClass())) {
8714
        return getClass().getName().compareTo(other.getClass().getName());
8715
      }
8716
 
8717
      int lastComparison = 0;
695 rajveer 8718
      getPayment_result typedOther = (getPayment_result)other;
420 ashish 8719
 
3430 rajveer 8720
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
420 ashish 8721
      if (lastComparison != 0) {
8722
        return lastComparison;
8723
      }
3430 rajveer 8724
      if (isSetSuccess()) {
8725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8726
        if (lastComparison != 0) {
8727
          return lastComparison;
8728
        }
420 ashish 8729
      }
3430 rajveer 8730
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 8731
      if (lastComparison != 0) {
8732
        return lastComparison;
8733
      }
3430 rajveer 8734
      if (isSetPe()) {
8735
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
8736
        if (lastComparison != 0) {
8737
          return lastComparison;
8738
        }
420 ashish 8739
      }
8740
      return 0;
8741
    }
8742
 
3430 rajveer 8743
    public _Fields fieldForId(int fieldId) {
8744
      return _Fields.findByThriftId(fieldId);
8745
    }
8746
 
8747
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8748
      org.apache.thrift.protocol.TField field;
420 ashish 8749
      iprot.readStructBegin();
8750
      while (true)
8751
      {
8752
        field = iprot.readFieldBegin();
3430 rajveer 8753
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 8754
          break;
8755
        }
3430 rajveer 8756
        switch (field.id) {
8757
          case 0: // SUCCESS
8758
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8759
              this.success = new Payment();
8760
              this.success.read(iprot);
8761
            } else { 
8762
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8763
            }
8764
            break;
8765
          case 1: // PE
8766
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8767
              this.pe = new PaymentException();
8768
              this.pe.read(iprot);
8769
            } else { 
8770
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8771
            }
8772
            break;
8773
          default:
8774
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 8775
        }
3430 rajveer 8776
        iprot.readFieldEnd();
420 ashish 8777
      }
8778
      iprot.readStructEnd();
8779
      validate();
8780
    }
8781
 
3430 rajveer 8782
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 8783
      oprot.writeStructBegin(STRUCT_DESC);
8784
 
695 rajveer 8785
      if (this.isSetSuccess()) {
8786
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8787
        this.success.write(oprot);
8788
        oprot.writeFieldEnd();
8789
      } else if (this.isSetPe()) {
420 ashish 8790
        oprot.writeFieldBegin(PE_FIELD_DESC);
8791
        this.pe.write(oprot);
8792
        oprot.writeFieldEnd();
8793
      }
8794
      oprot.writeFieldStop();
8795
      oprot.writeStructEnd();
8796
    }
8797
 
8798
    @Override
8799
    public String toString() {
695 rajveer 8800
      StringBuilder sb = new StringBuilder("getPayment_result(");
420 ashish 8801
      boolean first = true;
8802
 
695 rajveer 8803
      sb.append("success:");
8804
      if (this.success == null) {
8805
        sb.append("null");
8806
      } else {
8807
        sb.append(this.success);
8808
      }
8809
      first = false;
8810
      if (!first) sb.append(", ");
420 ashish 8811
      sb.append("pe:");
8812
      if (this.pe == null) {
8813
        sb.append("null");
8814
      } else {
8815
        sb.append(this.pe);
8816
      }
8817
      first = false;
8818
      sb.append(")");
8819
      return sb.toString();
8820
    }
8821
 
3430 rajveer 8822
    public void validate() throws org.apache.thrift.TException {
420 ashish 8823
      // check for required fields
8824
    }
8825
 
3430 rajveer 8826
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8827
      try {
8828
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8829
      } catch (org.apache.thrift.TException te) {
8830
        throw new java.io.IOException(te);
8831
      }
8832
    }
8833
 
8834
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8835
      try {
8836
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8837
      } catch (org.apache.thrift.TException te) {
8838
        throw new java.io.IOException(te);
8839
      }
8840
    }
8841
 
420 ashish 8842
  }
8843
 
3430 rajveer 8844
  public static class getPaymentForTxnId_args implements org.apache.thrift.TBase<getPaymentForTxnId_args, getPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
8845
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_args");
420 ashish 8846
 
3430 rajveer 8847
    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 8848
 
3430 rajveer 8849
    private long txnId; // required
420 ashish 8850
 
8851
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8852
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 8853
      TXN_ID((short)1, "txnId");
420 ashish 8854
 
8855
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8856
 
8857
      static {
8858
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8859
          byName.put(field.getFieldName(), field);
8860
        }
8861
      }
8862
 
8863
      /**
8864
       * Find the _Fields constant that matches fieldId, or null if its not found.
8865
       */
8866
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8867
        switch(fieldId) {
8868
          case 1: // TXN_ID
8869
            return TXN_ID;
8870
          default:
8871
            return null;
8872
        }
420 ashish 8873
      }
8874
 
8875
      /**
8876
       * Find the _Fields constant that matches fieldId, throwing an exception
8877
       * if it is not found.
8878
       */
8879
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8880
        _Fields fields = findByThriftId(fieldId);
8881
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8882
        return fields;
8883
      }
8884
 
8885
      /**
8886
       * Find the _Fields constant that matches name, or null if its not found.
8887
       */
8888
      public static _Fields findByName(String name) {
8889
        return byName.get(name);
8890
      }
8891
 
8892
      private final short _thriftId;
8893
      private final String _fieldName;
8894
 
8895
      _Fields(short thriftId, String fieldName) {
8896
        _thriftId = thriftId;
8897
        _fieldName = fieldName;
8898
      }
8899
 
8900
      public short getThriftFieldId() {
8901
        return _thriftId;
8902
      }
8903
 
8904
      public String getFieldName() {
8905
        return _fieldName;
8906
      }
8907
    }
8908
 
8909
    // isset id assignments
695 rajveer 8910
    private static final int __TXNID_ISSET_ID = 0;
420 ashish 8911
    private BitSet __isset_bit_vector = new BitSet(1);
8912
 
3430 rajveer 8913
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 8914
    static {
3430 rajveer 8915
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8916
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8917
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8918
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8919
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_args.class, metaDataMap);
420 ashish 8920
    }
8921
 
695 rajveer 8922
    public getPaymentForTxnId_args() {
420 ashish 8923
    }
8924
 
695 rajveer 8925
    public getPaymentForTxnId_args(
8926
      long txnId)
420 ashish 8927
    {
8928
      this();
695 rajveer 8929
      this.txnId = txnId;
8930
      setTxnIdIsSet(true);
420 ashish 8931
    }
8932
 
8933
    /**
8934
     * Performs a deep copy on <i>other</i>.
8935
     */
695 rajveer 8936
    public getPaymentForTxnId_args(getPaymentForTxnId_args other) {
420 ashish 8937
      __isset_bit_vector.clear();
8938
      __isset_bit_vector.or(other.__isset_bit_vector);
695 rajveer 8939
      this.txnId = other.txnId;
420 ashish 8940
    }
8941
 
695 rajveer 8942
    public getPaymentForTxnId_args deepCopy() {
8943
      return new getPaymentForTxnId_args(this);
420 ashish 8944
    }
8945
 
3430 rajveer 8946
    @Override
8947
    public void clear() {
8948
      setTxnIdIsSet(false);
8949
      this.txnId = 0;
420 ashish 8950
    }
8951
 
695 rajveer 8952
    public long getTxnId() {
8953
      return this.txnId;
420 ashish 8954
    }
8955
 
3430 rajveer 8956
    public void setTxnId(long txnId) {
695 rajveer 8957
      this.txnId = txnId;
8958
      setTxnIdIsSet(true);
420 ashish 8959
    }
8960
 
695 rajveer 8961
    public void unsetTxnId() {
8962
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
420 ashish 8963
    }
8964
 
3430 rajveer 8965
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
695 rajveer 8966
    public boolean isSetTxnId() {
8967
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
420 ashish 8968
    }
8969
 
695 rajveer 8970
    public void setTxnIdIsSet(boolean value) {
8971
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
420 ashish 8972
    }
8973
 
8974
    public void setFieldValue(_Fields field, Object value) {
8975
      switch (field) {
695 rajveer 8976
      case TXN_ID:
420 ashish 8977
        if (value == null) {
695 rajveer 8978
          unsetTxnId();
420 ashish 8979
        } else {
695 rajveer 8980
          setTxnId((Long)value);
420 ashish 8981
        }
8982
        break;
8983
 
8984
      }
8985
    }
8986
 
8987
    public Object getFieldValue(_Fields field) {
8988
      switch (field) {
695 rajveer 8989
      case TXN_ID:
3430 rajveer 8990
        return Long.valueOf(getTxnId());
420 ashish 8991
 
8992
      }
8993
      throw new IllegalStateException();
8994
    }
8995
 
3430 rajveer 8996
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8997
    public boolean isSet(_Fields field) {
8998
      if (field == null) {
8999
        throw new IllegalArgumentException();
9000
      }
420 ashish 9001
 
9002
      switch (field) {
695 rajveer 9003
      case TXN_ID:
9004
        return isSetTxnId();
420 ashish 9005
      }
9006
      throw new IllegalStateException();
9007
    }
9008
 
9009
    @Override
9010
    public boolean equals(Object that) {
9011
      if (that == null)
9012
        return false;
695 rajveer 9013
      if (that instanceof getPaymentForTxnId_args)
9014
        return this.equals((getPaymentForTxnId_args)that);
420 ashish 9015
      return false;
9016
    }
9017
 
695 rajveer 9018
    public boolean equals(getPaymentForTxnId_args that) {
420 ashish 9019
      if (that == null)
9020
        return false;
9021
 
695 rajveer 9022
      boolean this_present_txnId = true;
9023
      boolean that_present_txnId = true;
9024
      if (this_present_txnId || that_present_txnId) {
9025
        if (!(this_present_txnId && that_present_txnId))
420 ashish 9026
          return false;
695 rajveer 9027
        if (this.txnId != that.txnId)
420 ashish 9028
          return false;
9029
      }
9030
 
9031
      return true;
9032
    }
9033
 
9034
    @Override
9035
    public int hashCode() {
9036
      return 0;
9037
    }
9038
 
695 rajveer 9039
    public int compareTo(getPaymentForTxnId_args other) {
420 ashish 9040
      if (!getClass().equals(other.getClass())) {
9041
        return getClass().getName().compareTo(other.getClass().getName());
9042
      }
9043
 
9044
      int lastComparison = 0;
695 rajveer 9045
      getPaymentForTxnId_args typedOther = (getPaymentForTxnId_args)other;
420 ashish 9046
 
3430 rajveer 9047
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
420 ashish 9048
      if (lastComparison != 0) {
9049
        return lastComparison;
9050
      }
3430 rajveer 9051
      if (isSetTxnId()) {
9052
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
9053
        if (lastComparison != 0) {
9054
          return lastComparison;
9055
        }
420 ashish 9056
      }
9057
      return 0;
9058
    }
9059
 
3430 rajveer 9060
    public _Fields fieldForId(int fieldId) {
9061
      return _Fields.findByThriftId(fieldId);
9062
    }
9063
 
9064
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9065
      org.apache.thrift.protocol.TField field;
420 ashish 9066
      iprot.readStructBegin();
9067
      while (true)
9068
      {
9069
        field = iprot.readFieldBegin();
3430 rajveer 9070
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 9071
          break;
9072
        }
3430 rajveer 9073
        switch (field.id) {
9074
          case 1: // TXN_ID
9075
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9076
              this.txnId = iprot.readI64();
9077
              setTxnIdIsSet(true);
9078
            } else { 
9079
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9080
            }
9081
            break;
9082
          default:
9083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 9084
        }
3430 rajveer 9085
        iprot.readFieldEnd();
420 ashish 9086
      }
9087
      iprot.readStructEnd();
9088
      validate();
9089
    }
9090
 
3430 rajveer 9091
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 9092
      validate();
9093
 
9094
      oprot.writeStructBegin(STRUCT_DESC);
695 rajveer 9095
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
9096
      oprot.writeI64(this.txnId);
420 ashish 9097
      oprot.writeFieldEnd();
9098
      oprot.writeFieldStop();
9099
      oprot.writeStructEnd();
9100
    }
9101
 
9102
    @Override
9103
    public String toString() {
695 rajveer 9104
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_args(");
420 ashish 9105
      boolean first = true;
9106
 
695 rajveer 9107
      sb.append("txnId:");
9108
      sb.append(this.txnId);
420 ashish 9109
      first = false;
9110
      sb.append(")");
9111
      return sb.toString();
9112
    }
9113
 
3430 rajveer 9114
    public void validate() throws org.apache.thrift.TException {
420 ashish 9115
      // check for required fields
9116
    }
9117
 
3430 rajveer 9118
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9119
      try {
9120
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9121
      } catch (org.apache.thrift.TException te) {
9122
        throw new java.io.IOException(te);
9123
      }
9124
    }
9125
 
9126
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9127
      try {
9128
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9129
        __isset_bit_vector = new BitSet(1);
9130
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9131
      } catch (org.apache.thrift.TException te) {
9132
        throw new java.io.IOException(te);
9133
      }
9134
    }
9135
 
420 ashish 9136
  }
9137
 
3430 rajveer 9138
  public static class getPaymentForTxnId_result implements org.apache.thrift.TBase<getPaymentForTxnId_result, getPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
9139
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForTxnId_result");
420 ashish 9140
 
3430 rajveer 9141
    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);
9142
    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 9143
 
3430 rajveer 9144
    private List<Payment> success; // required
9145
    private PaymentException pe; // required
420 ashish 9146
 
9147
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9148
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 9149
      SUCCESS((short)0, "success"),
9150
      PE((short)1, "pe");
9151
 
9152
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9153
 
9154
      static {
9155
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9156
          byName.put(field.getFieldName(), field);
9157
        }
9158
      }
9159
 
9160
      /**
9161
       * Find the _Fields constant that matches fieldId, or null if its not found.
9162
       */
9163
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9164
        switch(fieldId) {
9165
          case 0: // SUCCESS
9166
            return SUCCESS;
9167
          case 1: // PE
9168
            return PE;
9169
          default:
9170
            return null;
9171
        }
420 ashish 9172
      }
9173
 
9174
      /**
9175
       * Find the _Fields constant that matches fieldId, throwing an exception
9176
       * if it is not found.
9177
       */
9178
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9179
        _Fields fields = findByThriftId(fieldId);
9180
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9181
        return fields;
9182
      }
9183
 
9184
      /**
9185
       * Find the _Fields constant that matches name, or null if its not found.
9186
       */
9187
      public static _Fields findByName(String name) {
9188
        return byName.get(name);
9189
      }
9190
 
9191
      private final short _thriftId;
9192
      private final String _fieldName;
9193
 
9194
      _Fields(short thriftId, String fieldName) {
9195
        _thriftId = thriftId;
9196
        _fieldName = fieldName;
9197
      }
9198
 
9199
      public short getThriftFieldId() {
9200
        return _thriftId;
9201
      }
9202
 
9203
      public String getFieldName() {
9204
        return _fieldName;
9205
      }
9206
    }
9207
 
9208
    // isset id assignments
9209
 
3430 rajveer 9210
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 9211
    static {
3430 rajveer 9212
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9213
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9214
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9215
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
9216
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForTxnId_result.class, metaDataMap);
420 ashish 9220
    }
9221
 
695 rajveer 9222
    public getPaymentForTxnId_result() {
420 ashish 9223
    }
9224
 
695 rajveer 9225
    public getPaymentForTxnId_result(
9226
      List<Payment> success,
420 ashish 9227
      PaymentException pe)
9228
    {
9229
      this();
9230
      this.success = success;
9231
      this.pe = pe;
9232
    }
9233
 
9234
    /**
9235
     * Performs a deep copy on <i>other</i>.
9236
     */
695 rajveer 9237
    public getPaymentForTxnId_result(getPaymentForTxnId_result other) {
420 ashish 9238
      if (other.isSetSuccess()) {
695 rajveer 9239
        List<Payment> __this__success = new ArrayList<Payment>();
9240
        for (Payment other_element : other.success) {
9241
          __this__success.add(new Payment(other_element));
9242
        }
9243
        this.success = __this__success;
420 ashish 9244
      }
9245
      if (other.isSetPe()) {
9246
        this.pe = new PaymentException(other.pe);
9247
      }
9248
    }
9249
 
695 rajveer 9250
    public getPaymentForTxnId_result deepCopy() {
9251
      return new getPaymentForTxnId_result(this);
420 ashish 9252
    }
9253
 
3430 rajveer 9254
    @Override
9255
    public void clear() {
9256
      this.success = null;
9257
      this.pe = null;
420 ashish 9258
    }
9259
 
695 rajveer 9260
    public int getSuccessSize() {
9261
      return (this.success == null) ? 0 : this.success.size();
9262
    }
9263
 
9264
    public java.util.Iterator<Payment> getSuccessIterator() {
9265
      return (this.success == null) ? null : this.success.iterator();
9266
    }
9267
 
9268
    public void addToSuccess(Payment elem) {
9269
      if (this.success == null) {
9270
        this.success = new ArrayList<Payment>();
9271
      }
9272
      this.success.add(elem);
9273
    }
9274
 
9275
    public List<Payment> getSuccess() {
420 ashish 9276
      return this.success;
9277
    }
9278
 
3430 rajveer 9279
    public void setSuccess(List<Payment> success) {
420 ashish 9280
      this.success = success;
9281
    }
9282
 
9283
    public void unsetSuccess() {
9284
      this.success = null;
9285
    }
9286
 
3430 rajveer 9287
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
420 ashish 9288
    public boolean isSetSuccess() {
9289
      return this.success != null;
9290
    }
9291
 
9292
    public void setSuccessIsSet(boolean value) {
9293
      if (!value) {
9294
        this.success = null;
9295
      }
9296
    }
9297
 
9298
    public PaymentException getPe() {
9299
      return this.pe;
9300
    }
9301
 
3430 rajveer 9302
    public void setPe(PaymentException pe) {
420 ashish 9303
      this.pe = pe;
9304
    }
9305
 
9306
    public void unsetPe() {
9307
      this.pe = null;
9308
    }
9309
 
3430 rajveer 9310
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 9311
    public boolean isSetPe() {
9312
      return this.pe != null;
9313
    }
9314
 
9315
    public void setPeIsSet(boolean value) {
9316
      if (!value) {
9317
        this.pe = null;
9318
      }
9319
    }
9320
 
9321
    public void setFieldValue(_Fields field, Object value) {
9322
      switch (field) {
9323
      case SUCCESS:
9324
        if (value == null) {
9325
          unsetSuccess();
9326
        } else {
695 rajveer 9327
          setSuccess((List<Payment>)value);
420 ashish 9328
        }
9329
        break;
9330
 
9331
      case PE:
9332
        if (value == null) {
9333
          unsetPe();
9334
        } else {
9335
          setPe((PaymentException)value);
9336
        }
9337
        break;
9338
 
9339
      }
9340
    }
9341
 
9342
    public Object getFieldValue(_Fields field) {
9343
      switch (field) {
9344
      case SUCCESS:
9345
        return getSuccess();
9346
 
9347
      case PE:
9348
        return getPe();
9349
 
9350
      }
9351
      throw new IllegalStateException();
9352
    }
9353
 
3430 rajveer 9354
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9355
    public boolean isSet(_Fields field) {
9356
      if (field == null) {
9357
        throw new IllegalArgumentException();
9358
      }
420 ashish 9359
 
9360
      switch (field) {
9361
      case SUCCESS:
9362
        return isSetSuccess();
9363
      case PE:
9364
        return isSetPe();
9365
      }
9366
      throw new IllegalStateException();
9367
    }
9368
 
9369
    @Override
9370
    public boolean equals(Object that) {
9371
      if (that == null)
9372
        return false;
695 rajveer 9373
      if (that instanceof getPaymentForTxnId_result)
9374
        return this.equals((getPaymentForTxnId_result)that);
420 ashish 9375
      return false;
9376
    }
9377
 
695 rajveer 9378
    public boolean equals(getPaymentForTxnId_result that) {
420 ashish 9379
      if (that == null)
9380
        return false;
9381
 
9382
      boolean this_present_success = true && this.isSetSuccess();
9383
      boolean that_present_success = true && that.isSetSuccess();
9384
      if (this_present_success || that_present_success) {
9385
        if (!(this_present_success && that_present_success))
9386
          return false;
9387
        if (!this.success.equals(that.success))
9388
          return false;
9389
      }
9390
 
9391
      boolean this_present_pe = true && this.isSetPe();
9392
      boolean that_present_pe = true && that.isSetPe();
9393
      if (this_present_pe || that_present_pe) {
9394
        if (!(this_present_pe && that_present_pe))
9395
          return false;
9396
        if (!this.pe.equals(that.pe))
9397
          return false;
9398
      }
9399
 
9400
      return true;
9401
    }
9402
 
9403
    @Override
9404
    public int hashCode() {
9405
      return 0;
9406
    }
9407
 
695 rajveer 9408
    public int compareTo(getPaymentForTxnId_result other) {
9409
      if (!getClass().equals(other.getClass())) {
9410
        return getClass().getName().compareTo(other.getClass().getName());
9411
      }
9412
 
9413
      int lastComparison = 0;
9414
      getPaymentForTxnId_result typedOther = (getPaymentForTxnId_result)other;
9415
 
3430 rajveer 9416
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 9417
      if (lastComparison != 0) {
9418
        return lastComparison;
9419
      }
3430 rajveer 9420
      if (isSetSuccess()) {
9421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9422
        if (lastComparison != 0) {
9423
          return lastComparison;
9424
        }
695 rajveer 9425
      }
3430 rajveer 9426
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
695 rajveer 9427
      if (lastComparison != 0) {
9428
        return lastComparison;
9429
      }
3430 rajveer 9430
      if (isSetPe()) {
9431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
9432
        if (lastComparison != 0) {
9433
          return lastComparison;
9434
        }
695 rajveer 9435
      }
9436
      return 0;
9437
    }
9438
 
3430 rajveer 9439
    public _Fields fieldForId(int fieldId) {
9440
      return _Fields.findByThriftId(fieldId);
9441
    }
9442
 
9443
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9444
      org.apache.thrift.protocol.TField field;
420 ashish 9445
      iprot.readStructBegin();
9446
      while (true)
9447
      {
9448
        field = iprot.readFieldBegin();
3430 rajveer 9449
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 9450
          break;
9451
        }
3430 rajveer 9452
        switch (field.id) {
9453
          case 0: // SUCCESS
9454
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9455
              {
4600 varun.gupt 9456
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
9457
                this.success = new ArrayList<Payment>(_list28.size);
9458
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
695 rajveer 9459
                {
4600 varun.gupt 9460
                  Payment _elem30; // required
9461
                  _elem30 = new Payment();
9462
                  _elem30.read(iprot);
9463
                  this.success.add(_elem30);
695 rajveer 9464
                }
3430 rajveer 9465
                iprot.readListEnd();
420 ashish 9466
              }
3430 rajveer 9467
            } else { 
9468
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9469
            }
9470
            break;
9471
          case 1: // PE
9472
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9473
              this.pe = new PaymentException();
9474
              this.pe.read(iprot);
9475
            } else { 
9476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9477
            }
9478
            break;
9479
          default:
9480
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 9481
        }
3430 rajveer 9482
        iprot.readFieldEnd();
420 ashish 9483
      }
9484
      iprot.readStructEnd();
9485
      validate();
9486
    }
9487
 
3430 rajveer 9488
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 9489
      oprot.writeStructBegin(STRUCT_DESC);
9490
 
9491
      if (this.isSetSuccess()) {
9492
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
695 rajveer 9493
        {
3430 rajveer 9494
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4600 varun.gupt 9495
          for (Payment _iter31 : this.success)
695 rajveer 9496
          {
4600 varun.gupt 9497
            _iter31.write(oprot);
695 rajveer 9498
          }
9499
          oprot.writeListEnd();
9500
        }
420 ashish 9501
        oprot.writeFieldEnd();
9502
      } else if (this.isSetPe()) {
9503
        oprot.writeFieldBegin(PE_FIELD_DESC);
9504
        this.pe.write(oprot);
9505
        oprot.writeFieldEnd();
9506
      }
9507
      oprot.writeFieldStop();
9508
      oprot.writeStructEnd();
9509
    }
9510
 
9511
    @Override
9512
    public String toString() {
695 rajveer 9513
      StringBuilder sb = new StringBuilder("getPaymentForTxnId_result(");
420 ashish 9514
      boolean first = true;
9515
 
9516
      sb.append("success:");
9517
      if (this.success == null) {
9518
        sb.append("null");
9519
      } else {
9520
        sb.append(this.success);
9521
      }
9522
      first = false;
9523
      if (!first) sb.append(", ");
9524
      sb.append("pe:");
9525
      if (this.pe == null) {
9526
        sb.append("null");
9527
      } else {
9528
        sb.append(this.pe);
9529
      }
9530
      first = false;
9531
      sb.append(")");
9532
      return sb.toString();
9533
    }
9534
 
3430 rajveer 9535
    public void validate() throws org.apache.thrift.TException {
420 ashish 9536
      // check for required fields
9537
    }
9538
 
3430 rajveer 9539
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9540
      try {
9541
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9542
      } catch (org.apache.thrift.TException te) {
9543
        throw new java.io.IOException(te);
9544
      }
9545
    }
9546
 
9547
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9548
      try {
9549
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9550
      } catch (org.apache.thrift.TException te) {
9551
        throw new java.io.IOException(te);
9552
      }
9553
    }
9554
 
420 ashish 9555
  }
9556
 
7049 anupam.sin 9557
  public static class getPaymentForRechargeTxnId_args implements org.apache.thrift.TBase<getPaymentForRechargeTxnId_args, getPaymentForRechargeTxnId_args._Fields>, java.io.Serializable, Cloneable   {
9558
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForRechargeTxnId_args");
9559
 
9560
    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);
9561
 
9562
    private long txnId; // required
9563
 
9564
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9565
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9566
      TXN_ID((short)1, "txnId");
9567
 
9568
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9569
 
9570
      static {
9571
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9572
          byName.put(field.getFieldName(), field);
9573
        }
9574
      }
9575
 
9576
      /**
9577
       * Find the _Fields constant that matches fieldId, or null if its not found.
9578
       */
9579
      public static _Fields findByThriftId(int fieldId) {
9580
        switch(fieldId) {
9581
          case 1: // TXN_ID
9582
            return TXN_ID;
9583
          default:
9584
            return null;
9585
        }
9586
      }
9587
 
9588
      /**
9589
       * Find the _Fields constant that matches fieldId, throwing an exception
9590
       * if it is not found.
9591
       */
9592
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9593
        _Fields fields = findByThriftId(fieldId);
9594
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9595
        return fields;
9596
      }
9597
 
9598
      /**
9599
       * Find the _Fields constant that matches name, or null if its not found.
9600
       */
9601
      public static _Fields findByName(String name) {
9602
        return byName.get(name);
9603
      }
9604
 
9605
      private final short _thriftId;
9606
      private final String _fieldName;
9607
 
9608
      _Fields(short thriftId, String fieldName) {
9609
        _thriftId = thriftId;
9610
        _fieldName = fieldName;
9611
      }
9612
 
9613
      public short getThriftFieldId() {
9614
        return _thriftId;
9615
      }
9616
 
9617
      public String getFieldName() {
9618
        return _fieldName;
9619
      }
9620
    }
9621
 
9622
    // isset id assignments
9623
    private static final int __TXNID_ISSET_ID = 0;
9624
    private BitSet __isset_bit_vector = new BitSet(1);
9625
 
9626
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9627
    static {
9628
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9629
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9630
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9631
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9632
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForRechargeTxnId_args.class, metaDataMap);
9633
    }
9634
 
9635
    public getPaymentForRechargeTxnId_args() {
9636
    }
9637
 
9638
    public getPaymentForRechargeTxnId_args(
9639
      long txnId)
9640
    {
9641
      this();
9642
      this.txnId = txnId;
9643
      setTxnIdIsSet(true);
9644
    }
9645
 
9646
    /**
9647
     * Performs a deep copy on <i>other</i>.
9648
     */
9649
    public getPaymentForRechargeTxnId_args(getPaymentForRechargeTxnId_args other) {
9650
      __isset_bit_vector.clear();
9651
      __isset_bit_vector.or(other.__isset_bit_vector);
9652
      this.txnId = other.txnId;
9653
    }
9654
 
9655
    public getPaymentForRechargeTxnId_args deepCopy() {
9656
      return new getPaymentForRechargeTxnId_args(this);
9657
    }
9658
 
9659
    @Override
9660
    public void clear() {
9661
      setTxnIdIsSet(false);
9662
      this.txnId = 0;
9663
    }
9664
 
9665
    public long getTxnId() {
9666
      return this.txnId;
9667
    }
9668
 
9669
    public void setTxnId(long txnId) {
9670
      this.txnId = txnId;
9671
      setTxnIdIsSet(true);
9672
    }
9673
 
9674
    public void unsetTxnId() {
9675
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
9676
    }
9677
 
9678
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
9679
    public boolean isSetTxnId() {
9680
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
9681
    }
9682
 
9683
    public void setTxnIdIsSet(boolean value) {
9684
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
9685
    }
9686
 
9687
    public void setFieldValue(_Fields field, Object value) {
9688
      switch (field) {
9689
      case TXN_ID:
9690
        if (value == null) {
9691
          unsetTxnId();
9692
        } else {
9693
          setTxnId((Long)value);
9694
        }
9695
        break;
9696
 
9697
      }
9698
    }
9699
 
9700
    public Object getFieldValue(_Fields field) {
9701
      switch (field) {
9702
      case TXN_ID:
9703
        return Long.valueOf(getTxnId());
9704
 
9705
      }
9706
      throw new IllegalStateException();
9707
    }
9708
 
9709
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9710
    public boolean isSet(_Fields field) {
9711
      if (field == null) {
9712
        throw new IllegalArgumentException();
9713
      }
9714
 
9715
      switch (field) {
9716
      case TXN_ID:
9717
        return isSetTxnId();
9718
      }
9719
      throw new IllegalStateException();
9720
    }
9721
 
9722
    @Override
9723
    public boolean equals(Object that) {
9724
      if (that == null)
9725
        return false;
9726
      if (that instanceof getPaymentForRechargeTxnId_args)
9727
        return this.equals((getPaymentForRechargeTxnId_args)that);
9728
      return false;
9729
    }
9730
 
9731
    public boolean equals(getPaymentForRechargeTxnId_args that) {
9732
      if (that == null)
9733
        return false;
9734
 
9735
      boolean this_present_txnId = true;
9736
      boolean that_present_txnId = true;
9737
      if (this_present_txnId || that_present_txnId) {
9738
        if (!(this_present_txnId && that_present_txnId))
9739
          return false;
9740
        if (this.txnId != that.txnId)
9741
          return false;
9742
      }
9743
 
9744
      return true;
9745
    }
9746
 
9747
    @Override
9748
    public int hashCode() {
9749
      return 0;
9750
    }
9751
 
9752
    public int compareTo(getPaymentForRechargeTxnId_args other) {
9753
      if (!getClass().equals(other.getClass())) {
9754
        return getClass().getName().compareTo(other.getClass().getName());
9755
      }
9756
 
9757
      int lastComparison = 0;
9758
      getPaymentForRechargeTxnId_args typedOther = (getPaymentForRechargeTxnId_args)other;
9759
 
9760
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
9761
      if (lastComparison != 0) {
9762
        return lastComparison;
9763
      }
9764
      if (isSetTxnId()) {
9765
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
9766
        if (lastComparison != 0) {
9767
          return lastComparison;
9768
        }
9769
      }
9770
      return 0;
9771
    }
9772
 
9773
    public _Fields fieldForId(int fieldId) {
9774
      return _Fields.findByThriftId(fieldId);
9775
    }
9776
 
9777
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9778
      org.apache.thrift.protocol.TField field;
9779
      iprot.readStructBegin();
9780
      while (true)
9781
      {
9782
        field = iprot.readFieldBegin();
9783
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9784
          break;
9785
        }
9786
        switch (field.id) {
9787
          case 1: // TXN_ID
9788
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9789
              this.txnId = iprot.readI64();
9790
              setTxnIdIsSet(true);
9791
            } else { 
9792
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9793
            }
9794
            break;
9795
          default:
9796
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9797
        }
9798
        iprot.readFieldEnd();
9799
      }
9800
      iprot.readStructEnd();
9801
      validate();
9802
    }
9803
 
9804
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9805
      validate();
9806
 
9807
      oprot.writeStructBegin(STRUCT_DESC);
9808
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
9809
      oprot.writeI64(this.txnId);
9810
      oprot.writeFieldEnd();
9811
      oprot.writeFieldStop();
9812
      oprot.writeStructEnd();
9813
    }
9814
 
9815
    @Override
9816
    public String toString() {
9817
      StringBuilder sb = new StringBuilder("getPaymentForRechargeTxnId_args(");
9818
      boolean first = true;
9819
 
9820
      sb.append("txnId:");
9821
      sb.append(this.txnId);
9822
      first = false;
9823
      sb.append(")");
9824
      return sb.toString();
9825
    }
9826
 
9827
    public void validate() throws org.apache.thrift.TException {
9828
      // check for required fields
9829
    }
9830
 
9831
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9832
      try {
9833
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9834
      } catch (org.apache.thrift.TException te) {
9835
        throw new java.io.IOException(te);
9836
      }
9837
    }
9838
 
9839
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9840
      try {
9841
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9842
        __isset_bit_vector = new BitSet(1);
9843
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9844
      } catch (org.apache.thrift.TException te) {
9845
        throw new java.io.IOException(te);
9846
      }
9847
    }
9848
 
9849
  }
9850
 
9851
  public static class getPaymentForRechargeTxnId_result implements org.apache.thrift.TBase<getPaymentForRechargeTxnId_result, getPaymentForRechargeTxnId_result._Fields>, java.io.Serializable, Cloneable   {
9852
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentForRechargeTxnId_result");
9853
 
9854
    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);
9855
    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);
9856
 
9857
    private List<Payment> success; // required
9858
    private PaymentException pe; // required
9859
 
9860
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9861
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9862
      SUCCESS((short)0, "success"),
9863
      PE((short)1, "pe");
9864
 
9865
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9866
 
9867
      static {
9868
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9869
          byName.put(field.getFieldName(), field);
9870
        }
9871
      }
9872
 
9873
      /**
9874
       * Find the _Fields constant that matches fieldId, or null if its not found.
9875
       */
9876
      public static _Fields findByThriftId(int fieldId) {
9877
        switch(fieldId) {
9878
          case 0: // SUCCESS
9879
            return SUCCESS;
9880
          case 1: // PE
9881
            return PE;
9882
          default:
9883
            return null;
9884
        }
9885
      }
9886
 
9887
      /**
9888
       * Find the _Fields constant that matches fieldId, throwing an exception
9889
       * if it is not found.
9890
       */
9891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9892
        _Fields fields = findByThriftId(fieldId);
9893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9894
        return fields;
9895
      }
9896
 
9897
      /**
9898
       * Find the _Fields constant that matches name, or null if its not found.
9899
       */
9900
      public static _Fields findByName(String name) {
9901
        return byName.get(name);
9902
      }
9903
 
9904
      private final short _thriftId;
9905
      private final String _fieldName;
9906
 
9907
      _Fields(short thriftId, String fieldName) {
9908
        _thriftId = thriftId;
9909
        _fieldName = fieldName;
9910
      }
9911
 
9912
      public short getThriftFieldId() {
9913
        return _thriftId;
9914
      }
9915
 
9916
      public String getFieldName() {
9917
        return _fieldName;
9918
      }
9919
    }
9920
 
9921
    // isset id assignments
9922
 
9923
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9924
    static {
9925
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9926
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9927
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9928
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class))));
9929
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentForRechargeTxnId_result.class, metaDataMap);
9933
    }
9934
 
9935
    public getPaymentForRechargeTxnId_result() {
9936
    }
9937
 
9938
    public getPaymentForRechargeTxnId_result(
9939
      List<Payment> success,
9940
      PaymentException pe)
9941
    {
9942
      this();
9943
      this.success = success;
9944
      this.pe = pe;
9945
    }
9946
 
9947
    /**
9948
     * Performs a deep copy on <i>other</i>.
9949
     */
9950
    public getPaymentForRechargeTxnId_result(getPaymentForRechargeTxnId_result other) {
9951
      if (other.isSetSuccess()) {
9952
        List<Payment> __this__success = new ArrayList<Payment>();
9953
        for (Payment other_element : other.success) {
9954
          __this__success.add(new Payment(other_element));
9955
        }
9956
        this.success = __this__success;
9957
      }
9958
      if (other.isSetPe()) {
9959
        this.pe = new PaymentException(other.pe);
9960
      }
9961
    }
9962
 
9963
    public getPaymentForRechargeTxnId_result deepCopy() {
9964
      return new getPaymentForRechargeTxnId_result(this);
9965
    }
9966
 
9967
    @Override
9968
    public void clear() {
9969
      this.success = null;
9970
      this.pe = null;
9971
    }
9972
 
9973
    public int getSuccessSize() {
9974
      return (this.success == null) ? 0 : this.success.size();
9975
    }
9976
 
9977
    public java.util.Iterator<Payment> getSuccessIterator() {
9978
      return (this.success == null) ? null : this.success.iterator();
9979
    }
9980
 
9981
    public void addToSuccess(Payment elem) {
9982
      if (this.success == null) {
9983
        this.success = new ArrayList<Payment>();
9984
      }
9985
      this.success.add(elem);
9986
    }
9987
 
9988
    public List<Payment> getSuccess() {
9989
      return this.success;
9990
    }
9991
 
9992
    public void setSuccess(List<Payment> success) {
9993
      this.success = success;
9994
    }
9995
 
9996
    public void unsetSuccess() {
9997
      this.success = null;
9998
    }
9999
 
10000
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10001
    public boolean isSetSuccess() {
10002
      return this.success != null;
10003
    }
10004
 
10005
    public void setSuccessIsSet(boolean value) {
10006
      if (!value) {
10007
        this.success = null;
10008
      }
10009
    }
10010
 
10011
    public PaymentException getPe() {
10012
      return this.pe;
10013
    }
10014
 
10015
    public void setPe(PaymentException pe) {
10016
      this.pe = pe;
10017
    }
10018
 
10019
    public void unsetPe() {
10020
      this.pe = null;
10021
    }
10022
 
10023
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
10024
    public boolean isSetPe() {
10025
      return this.pe != null;
10026
    }
10027
 
10028
    public void setPeIsSet(boolean value) {
10029
      if (!value) {
10030
        this.pe = null;
10031
      }
10032
    }
10033
 
10034
    public void setFieldValue(_Fields field, Object value) {
10035
      switch (field) {
10036
      case SUCCESS:
10037
        if (value == null) {
10038
          unsetSuccess();
10039
        } else {
10040
          setSuccess((List<Payment>)value);
10041
        }
10042
        break;
10043
 
10044
      case PE:
10045
        if (value == null) {
10046
          unsetPe();
10047
        } else {
10048
          setPe((PaymentException)value);
10049
        }
10050
        break;
10051
 
10052
      }
10053
    }
10054
 
10055
    public Object getFieldValue(_Fields field) {
10056
      switch (field) {
10057
      case SUCCESS:
10058
        return getSuccess();
10059
 
10060
      case PE:
10061
        return getPe();
10062
 
10063
      }
10064
      throw new IllegalStateException();
10065
    }
10066
 
10067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10068
    public boolean isSet(_Fields field) {
10069
      if (field == null) {
10070
        throw new IllegalArgumentException();
10071
      }
10072
 
10073
      switch (field) {
10074
      case SUCCESS:
10075
        return isSetSuccess();
10076
      case PE:
10077
        return isSetPe();
10078
      }
10079
      throw new IllegalStateException();
10080
    }
10081
 
10082
    @Override
10083
    public boolean equals(Object that) {
10084
      if (that == null)
10085
        return false;
10086
      if (that instanceof getPaymentForRechargeTxnId_result)
10087
        return this.equals((getPaymentForRechargeTxnId_result)that);
10088
      return false;
10089
    }
10090
 
10091
    public boolean equals(getPaymentForRechargeTxnId_result that) {
10092
      if (that == null)
10093
        return false;
10094
 
10095
      boolean this_present_success = true && this.isSetSuccess();
10096
      boolean that_present_success = true && that.isSetSuccess();
10097
      if (this_present_success || that_present_success) {
10098
        if (!(this_present_success && that_present_success))
10099
          return false;
10100
        if (!this.success.equals(that.success))
10101
          return false;
10102
      }
10103
 
10104
      boolean this_present_pe = true && this.isSetPe();
10105
      boolean that_present_pe = true && that.isSetPe();
10106
      if (this_present_pe || that_present_pe) {
10107
        if (!(this_present_pe && that_present_pe))
10108
          return false;
10109
        if (!this.pe.equals(that.pe))
10110
          return false;
10111
      }
10112
 
10113
      return true;
10114
    }
10115
 
10116
    @Override
10117
    public int hashCode() {
10118
      return 0;
10119
    }
10120
 
10121
    public int compareTo(getPaymentForRechargeTxnId_result other) {
10122
      if (!getClass().equals(other.getClass())) {
10123
        return getClass().getName().compareTo(other.getClass().getName());
10124
      }
10125
 
10126
      int lastComparison = 0;
10127
      getPaymentForRechargeTxnId_result typedOther = (getPaymentForRechargeTxnId_result)other;
10128
 
10129
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10130
      if (lastComparison != 0) {
10131
        return lastComparison;
10132
      }
10133
      if (isSetSuccess()) {
10134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10135
        if (lastComparison != 0) {
10136
          return lastComparison;
10137
        }
10138
      }
10139
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
10140
      if (lastComparison != 0) {
10141
        return lastComparison;
10142
      }
10143
      if (isSetPe()) {
10144
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
10145
        if (lastComparison != 0) {
10146
          return lastComparison;
10147
        }
10148
      }
10149
      return 0;
10150
    }
10151
 
10152
    public _Fields fieldForId(int fieldId) {
10153
      return _Fields.findByThriftId(fieldId);
10154
    }
10155
 
10156
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10157
      org.apache.thrift.protocol.TField field;
10158
      iprot.readStructBegin();
10159
      while (true)
10160
      {
10161
        field = iprot.readFieldBegin();
10162
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10163
          break;
10164
        }
10165
        switch (field.id) {
10166
          case 0: // SUCCESS
10167
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10168
              {
10169
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
10170
                this.success = new ArrayList<Payment>(_list32.size);
10171
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
10172
                {
10173
                  Payment _elem34; // required
10174
                  _elem34 = new Payment();
10175
                  _elem34.read(iprot);
10176
                  this.success.add(_elem34);
10177
                }
10178
                iprot.readListEnd();
10179
              }
10180
            } else { 
10181
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10182
            }
10183
            break;
10184
          case 1: // PE
10185
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10186
              this.pe = new PaymentException();
10187
              this.pe.read(iprot);
10188
            } else { 
10189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10190
            }
10191
            break;
10192
          default:
10193
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10194
        }
10195
        iprot.readFieldEnd();
10196
      }
10197
      iprot.readStructEnd();
10198
      validate();
10199
    }
10200
 
10201
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10202
      oprot.writeStructBegin(STRUCT_DESC);
10203
 
10204
      if (this.isSetSuccess()) {
10205
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10206
        {
10207
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
10208
          for (Payment _iter35 : this.success)
10209
          {
10210
            _iter35.write(oprot);
10211
          }
10212
          oprot.writeListEnd();
10213
        }
10214
        oprot.writeFieldEnd();
10215
      } else if (this.isSetPe()) {
10216
        oprot.writeFieldBegin(PE_FIELD_DESC);
10217
        this.pe.write(oprot);
10218
        oprot.writeFieldEnd();
10219
      }
10220
      oprot.writeFieldStop();
10221
      oprot.writeStructEnd();
10222
    }
10223
 
10224
    @Override
10225
    public String toString() {
10226
      StringBuilder sb = new StringBuilder("getPaymentForRechargeTxnId_result(");
10227
      boolean first = true;
10228
 
10229
      sb.append("success:");
10230
      if (this.success == null) {
10231
        sb.append("null");
10232
      } else {
10233
        sb.append(this.success);
10234
      }
10235
      first = false;
10236
      if (!first) sb.append(", ");
10237
      sb.append("pe:");
10238
      if (this.pe == null) {
10239
        sb.append("null");
10240
      } else {
10241
        sb.append(this.pe);
10242
      }
10243
      first = false;
10244
      sb.append(")");
10245
      return sb.toString();
10246
    }
10247
 
10248
    public void validate() throws org.apache.thrift.TException {
10249
      // check for required fields
10250
    }
10251
 
10252
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10253
      try {
10254
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10255
      } catch (org.apache.thrift.TException te) {
10256
        throw new java.io.IOException(te);
10257
      }
10258
    }
10259
 
10260
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10261
      try {
10262
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10263
      } catch (org.apache.thrift.TException te) {
10264
        throw new java.io.IOException(te);
10265
      }
10266
    }
10267
 
10268
  }
10269
 
4600 varun.gupt 10270
  public static class getSuccessfulPaymentForTxnId_args implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_args, getSuccessfulPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
10271
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_args");
10272
 
10273
    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);
10274
 
10275
    private long txnId; // required
10276
 
10277
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10278
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10279
      TXN_ID((short)1, "txnId");
10280
 
10281
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10282
 
10283
      static {
10284
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10285
          byName.put(field.getFieldName(), field);
10286
        }
10287
      }
10288
 
10289
      /**
10290
       * Find the _Fields constant that matches fieldId, or null if its not found.
10291
       */
10292
      public static _Fields findByThriftId(int fieldId) {
10293
        switch(fieldId) {
10294
          case 1: // TXN_ID
10295
            return TXN_ID;
10296
          default:
10297
            return null;
10298
        }
10299
      }
10300
 
10301
      /**
10302
       * Find the _Fields constant that matches fieldId, throwing an exception
10303
       * if it is not found.
10304
       */
10305
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10306
        _Fields fields = findByThriftId(fieldId);
10307
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10308
        return fields;
10309
      }
10310
 
10311
      /**
10312
       * Find the _Fields constant that matches name, or null if its not found.
10313
       */
10314
      public static _Fields findByName(String name) {
10315
        return byName.get(name);
10316
      }
10317
 
10318
      private final short _thriftId;
10319
      private final String _fieldName;
10320
 
10321
      _Fields(short thriftId, String fieldName) {
10322
        _thriftId = thriftId;
10323
        _fieldName = fieldName;
10324
      }
10325
 
10326
      public short getThriftFieldId() {
10327
        return _thriftId;
10328
      }
10329
 
10330
      public String getFieldName() {
10331
        return _fieldName;
10332
      }
10333
    }
10334
 
10335
    // isset id assignments
10336
    private static final int __TXNID_ISSET_ID = 0;
10337
    private BitSet __isset_bit_vector = new BitSet(1);
10338
 
10339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10340
    static {
10341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10342
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_args.class, metaDataMap);
10346
    }
10347
 
10348
    public getSuccessfulPaymentForTxnId_args() {
10349
    }
10350
 
10351
    public getSuccessfulPaymentForTxnId_args(
10352
      long txnId)
10353
    {
10354
      this();
10355
      this.txnId = txnId;
10356
      setTxnIdIsSet(true);
10357
    }
10358
 
10359
    /**
10360
     * Performs a deep copy on <i>other</i>.
10361
     */
10362
    public getSuccessfulPaymentForTxnId_args(getSuccessfulPaymentForTxnId_args other) {
10363
      __isset_bit_vector.clear();
10364
      __isset_bit_vector.or(other.__isset_bit_vector);
10365
      this.txnId = other.txnId;
10366
    }
10367
 
10368
    public getSuccessfulPaymentForTxnId_args deepCopy() {
10369
      return new getSuccessfulPaymentForTxnId_args(this);
10370
    }
10371
 
10372
    @Override
10373
    public void clear() {
10374
      setTxnIdIsSet(false);
10375
      this.txnId = 0;
10376
    }
10377
 
10378
    public long getTxnId() {
10379
      return this.txnId;
10380
    }
10381
 
10382
    public void setTxnId(long txnId) {
10383
      this.txnId = txnId;
10384
      setTxnIdIsSet(true);
10385
    }
10386
 
10387
    public void unsetTxnId() {
10388
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
10389
    }
10390
 
10391
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
10392
    public boolean isSetTxnId() {
10393
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
10394
    }
10395
 
10396
    public void setTxnIdIsSet(boolean value) {
10397
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
10398
    }
10399
 
10400
    public void setFieldValue(_Fields field, Object value) {
10401
      switch (field) {
10402
      case TXN_ID:
10403
        if (value == null) {
10404
          unsetTxnId();
10405
        } else {
10406
          setTxnId((Long)value);
10407
        }
10408
        break;
10409
 
10410
      }
10411
    }
10412
 
10413
    public Object getFieldValue(_Fields field) {
10414
      switch (field) {
10415
      case TXN_ID:
10416
        return Long.valueOf(getTxnId());
10417
 
10418
      }
10419
      throw new IllegalStateException();
10420
    }
10421
 
10422
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10423
    public boolean isSet(_Fields field) {
10424
      if (field == null) {
10425
        throw new IllegalArgumentException();
10426
      }
10427
 
10428
      switch (field) {
10429
      case TXN_ID:
10430
        return isSetTxnId();
10431
      }
10432
      throw new IllegalStateException();
10433
    }
10434
 
10435
    @Override
10436
    public boolean equals(Object that) {
10437
      if (that == null)
10438
        return false;
10439
      if (that instanceof getSuccessfulPaymentForTxnId_args)
10440
        return this.equals((getSuccessfulPaymentForTxnId_args)that);
10441
      return false;
10442
    }
10443
 
10444
    public boolean equals(getSuccessfulPaymentForTxnId_args that) {
10445
      if (that == null)
10446
        return false;
10447
 
10448
      boolean this_present_txnId = true;
10449
      boolean that_present_txnId = true;
10450
      if (this_present_txnId || that_present_txnId) {
10451
        if (!(this_present_txnId && that_present_txnId))
10452
          return false;
10453
        if (this.txnId != that.txnId)
10454
          return false;
10455
      }
10456
 
10457
      return true;
10458
    }
10459
 
10460
    @Override
10461
    public int hashCode() {
10462
      return 0;
10463
    }
10464
 
10465
    public int compareTo(getSuccessfulPaymentForTxnId_args other) {
10466
      if (!getClass().equals(other.getClass())) {
10467
        return getClass().getName().compareTo(other.getClass().getName());
10468
      }
10469
 
10470
      int lastComparison = 0;
10471
      getSuccessfulPaymentForTxnId_args typedOther = (getSuccessfulPaymentForTxnId_args)other;
10472
 
10473
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
10474
      if (lastComparison != 0) {
10475
        return lastComparison;
10476
      }
10477
      if (isSetTxnId()) {
10478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
10479
        if (lastComparison != 0) {
10480
          return lastComparison;
10481
        }
10482
      }
10483
      return 0;
10484
    }
10485
 
10486
    public _Fields fieldForId(int fieldId) {
10487
      return _Fields.findByThriftId(fieldId);
10488
    }
10489
 
10490
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10491
      org.apache.thrift.protocol.TField field;
10492
      iprot.readStructBegin();
10493
      while (true)
10494
      {
10495
        field = iprot.readFieldBegin();
10496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10497
          break;
10498
        }
10499
        switch (field.id) {
10500
          case 1: // TXN_ID
10501
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10502
              this.txnId = iprot.readI64();
10503
              setTxnIdIsSet(true);
10504
            } else { 
10505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10506
            }
10507
            break;
10508
          default:
10509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10510
        }
10511
        iprot.readFieldEnd();
10512
      }
10513
      iprot.readStructEnd();
10514
      validate();
10515
    }
10516
 
10517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10518
      validate();
10519
 
10520
      oprot.writeStructBegin(STRUCT_DESC);
10521
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
10522
      oprot.writeI64(this.txnId);
10523
      oprot.writeFieldEnd();
10524
      oprot.writeFieldStop();
10525
      oprot.writeStructEnd();
10526
    }
10527
 
10528
    @Override
10529
    public String toString() {
10530
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_args(");
10531
      boolean first = true;
10532
 
10533
      sb.append("txnId:");
10534
      sb.append(this.txnId);
10535
      first = false;
10536
      sb.append(")");
10537
      return sb.toString();
10538
    }
10539
 
10540
    public void validate() throws org.apache.thrift.TException {
10541
      // check for required fields
10542
    }
10543
 
10544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10545
      try {
10546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10547
      } catch (org.apache.thrift.TException te) {
10548
        throw new java.io.IOException(te);
10549
      }
10550
    }
10551
 
10552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10553
      try {
10554
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10555
        __isset_bit_vector = new BitSet(1);
10556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10557
      } catch (org.apache.thrift.TException te) {
10558
        throw new java.io.IOException(te);
10559
      }
10560
    }
10561
 
10562
  }
10563
 
10564
  public static class getSuccessfulPaymentForTxnId_result implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_result, getSuccessfulPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
10565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_result");
10566
 
10567
    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);
10568
    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);
10569
 
10570
    private Payment success; // required
10571
    private PaymentException pe; // required
10572
 
10573
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10574
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10575
      SUCCESS((short)0, "success"),
10576
      PE((short)1, "pe");
10577
 
10578
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10579
 
10580
      static {
10581
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10582
          byName.put(field.getFieldName(), field);
10583
        }
10584
      }
10585
 
10586
      /**
10587
       * Find the _Fields constant that matches fieldId, or null if its not found.
10588
       */
10589
      public static _Fields findByThriftId(int fieldId) {
10590
        switch(fieldId) {
10591
          case 0: // SUCCESS
10592
            return SUCCESS;
10593
          case 1: // PE
10594
            return PE;
10595
          default:
10596
            return null;
10597
        }
10598
      }
10599
 
10600
      /**
10601
       * Find the _Fields constant that matches fieldId, throwing an exception
10602
       * if it is not found.
10603
       */
10604
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10605
        _Fields fields = findByThriftId(fieldId);
10606
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10607
        return fields;
10608
      }
10609
 
10610
      /**
10611
       * Find the _Fields constant that matches name, or null if its not found.
10612
       */
10613
      public static _Fields findByName(String name) {
10614
        return byName.get(name);
10615
      }
10616
 
10617
      private final short _thriftId;
10618
      private final String _fieldName;
10619
 
10620
      _Fields(short thriftId, String fieldName) {
10621
        _thriftId = thriftId;
10622
        _fieldName = fieldName;
10623
      }
10624
 
10625
      public short getThriftFieldId() {
10626
        return _thriftId;
10627
      }
10628
 
10629
      public String getFieldName() {
10630
        return _fieldName;
10631
      }
10632
    }
10633
 
10634
    // isset id assignments
10635
 
10636
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10637
    static {
10638
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10639
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10640
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
10641
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10642
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10643
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10644
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_result.class, metaDataMap);
10645
    }
10646
 
10647
    public getSuccessfulPaymentForTxnId_result() {
10648
    }
10649
 
10650
    public getSuccessfulPaymentForTxnId_result(
10651
      Payment success,
10652
      PaymentException pe)
10653
    {
10654
      this();
10655
      this.success = success;
10656
      this.pe = pe;
10657
    }
10658
 
10659
    /**
10660
     * Performs a deep copy on <i>other</i>.
10661
     */
10662
    public getSuccessfulPaymentForTxnId_result(getSuccessfulPaymentForTxnId_result other) {
10663
      if (other.isSetSuccess()) {
10664
        this.success = new Payment(other.success);
10665
      }
10666
      if (other.isSetPe()) {
10667
        this.pe = new PaymentException(other.pe);
10668
      }
10669
    }
10670
 
10671
    public getSuccessfulPaymentForTxnId_result deepCopy() {
10672
      return new getSuccessfulPaymentForTxnId_result(this);
10673
    }
10674
 
10675
    @Override
10676
    public void clear() {
10677
      this.success = null;
10678
      this.pe = null;
10679
    }
10680
 
10681
    public Payment getSuccess() {
10682
      return this.success;
10683
    }
10684
 
10685
    public void setSuccess(Payment success) {
10686
      this.success = success;
10687
    }
10688
 
10689
    public void unsetSuccess() {
10690
      this.success = null;
10691
    }
10692
 
10693
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10694
    public boolean isSetSuccess() {
10695
      return this.success != null;
10696
    }
10697
 
10698
    public void setSuccessIsSet(boolean value) {
10699
      if (!value) {
10700
        this.success = null;
10701
      }
10702
    }
10703
 
10704
    public PaymentException getPe() {
10705
      return this.pe;
10706
    }
10707
 
10708
    public void setPe(PaymentException pe) {
10709
      this.pe = pe;
10710
    }
10711
 
10712
    public void unsetPe() {
10713
      this.pe = null;
10714
    }
10715
 
10716
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
10717
    public boolean isSetPe() {
10718
      return this.pe != null;
10719
    }
10720
 
10721
    public void setPeIsSet(boolean value) {
10722
      if (!value) {
10723
        this.pe = null;
10724
      }
10725
    }
10726
 
10727
    public void setFieldValue(_Fields field, Object value) {
10728
      switch (field) {
10729
      case SUCCESS:
10730
        if (value == null) {
10731
          unsetSuccess();
10732
        } else {
10733
          setSuccess((Payment)value);
10734
        }
10735
        break;
10736
 
10737
      case PE:
10738
        if (value == null) {
10739
          unsetPe();
10740
        } else {
10741
          setPe((PaymentException)value);
10742
        }
10743
        break;
10744
 
10745
      }
10746
    }
10747
 
10748
    public Object getFieldValue(_Fields field) {
10749
      switch (field) {
10750
      case SUCCESS:
10751
        return getSuccess();
10752
 
10753
      case PE:
10754
        return getPe();
10755
 
10756
      }
10757
      throw new IllegalStateException();
10758
    }
10759
 
10760
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10761
    public boolean isSet(_Fields field) {
10762
      if (field == null) {
10763
        throw new IllegalArgumentException();
10764
      }
10765
 
10766
      switch (field) {
10767
      case SUCCESS:
10768
        return isSetSuccess();
10769
      case PE:
10770
        return isSetPe();
10771
      }
10772
      throw new IllegalStateException();
10773
    }
10774
 
10775
    @Override
10776
    public boolean equals(Object that) {
10777
      if (that == null)
10778
        return false;
10779
      if (that instanceof getSuccessfulPaymentForTxnId_result)
10780
        return this.equals((getSuccessfulPaymentForTxnId_result)that);
10781
      return false;
10782
    }
10783
 
10784
    public boolean equals(getSuccessfulPaymentForTxnId_result that) {
10785
      if (that == null)
10786
        return false;
10787
 
10788
      boolean this_present_success = true && this.isSetSuccess();
10789
      boolean that_present_success = true && that.isSetSuccess();
10790
      if (this_present_success || that_present_success) {
10791
        if (!(this_present_success && that_present_success))
10792
          return false;
10793
        if (!this.success.equals(that.success))
10794
          return false;
10795
      }
10796
 
10797
      boolean this_present_pe = true && this.isSetPe();
10798
      boolean that_present_pe = true && that.isSetPe();
10799
      if (this_present_pe || that_present_pe) {
10800
        if (!(this_present_pe && that_present_pe))
10801
          return false;
10802
        if (!this.pe.equals(that.pe))
10803
          return false;
10804
      }
10805
 
10806
      return true;
10807
    }
10808
 
10809
    @Override
10810
    public int hashCode() {
10811
      return 0;
10812
    }
10813
 
10814
    public int compareTo(getSuccessfulPaymentForTxnId_result other) {
10815
      if (!getClass().equals(other.getClass())) {
10816
        return getClass().getName().compareTo(other.getClass().getName());
10817
      }
10818
 
10819
      int lastComparison = 0;
10820
      getSuccessfulPaymentForTxnId_result typedOther = (getSuccessfulPaymentForTxnId_result)other;
10821
 
10822
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10823
      if (lastComparison != 0) {
10824
        return lastComparison;
10825
      }
10826
      if (isSetSuccess()) {
10827
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10828
        if (lastComparison != 0) {
10829
          return lastComparison;
10830
        }
10831
      }
10832
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
10833
      if (lastComparison != 0) {
10834
        return lastComparison;
10835
      }
10836
      if (isSetPe()) {
10837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
10838
        if (lastComparison != 0) {
10839
          return lastComparison;
10840
        }
10841
      }
10842
      return 0;
10843
    }
10844
 
10845
    public _Fields fieldForId(int fieldId) {
10846
      return _Fields.findByThriftId(fieldId);
10847
    }
10848
 
10849
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10850
      org.apache.thrift.protocol.TField field;
10851
      iprot.readStructBegin();
10852
      while (true)
10853
      {
10854
        field = iprot.readFieldBegin();
10855
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10856
          break;
10857
        }
10858
        switch (field.id) {
10859
          case 0: // SUCCESS
10860
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10861
              this.success = new Payment();
10862
              this.success.read(iprot);
10863
            } else { 
10864
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10865
            }
10866
            break;
10867
          case 1: // PE
10868
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10869
              this.pe = new PaymentException();
10870
              this.pe.read(iprot);
10871
            } else { 
10872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10873
            }
10874
            break;
10875
          default:
10876
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10877
        }
10878
        iprot.readFieldEnd();
10879
      }
10880
      iprot.readStructEnd();
10881
      validate();
10882
    }
10883
 
10884
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10885
      oprot.writeStructBegin(STRUCT_DESC);
10886
 
10887
      if (this.isSetSuccess()) {
10888
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10889
        this.success.write(oprot);
10890
        oprot.writeFieldEnd();
10891
      } else if (this.isSetPe()) {
10892
        oprot.writeFieldBegin(PE_FIELD_DESC);
10893
        this.pe.write(oprot);
10894
        oprot.writeFieldEnd();
10895
      }
10896
      oprot.writeFieldStop();
10897
      oprot.writeStructEnd();
10898
    }
10899
 
10900
    @Override
10901
    public String toString() {
10902
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_result(");
10903
      boolean first = true;
10904
 
10905
      sb.append("success:");
10906
      if (this.success == null) {
10907
        sb.append("null");
10908
      } else {
10909
        sb.append(this.success);
10910
      }
10911
      first = false;
10912
      if (!first) sb.append(", ");
10913
      sb.append("pe:");
10914
      if (this.pe == null) {
10915
        sb.append("null");
10916
      } else {
10917
        sb.append(this.pe);
10918
      }
10919
      first = false;
10920
      sb.append(")");
10921
      return sb.toString();
10922
    }
10923
 
10924
    public void validate() throws org.apache.thrift.TException {
10925
      // check for required fields
10926
    }
10927
 
10928
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10929
      try {
10930
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10931
      } catch (org.apache.thrift.TException te) {
10932
        throw new java.io.IOException(te);
10933
      }
10934
    }
10935
 
10936
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10937
      try {
10938
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10939
      } catch (org.apache.thrift.TException te) {
10940
        throw new java.io.IOException(te);
10941
      }
10942
    }
10943
 
10944
  }
10945
 
3430 rajveer 10946
  public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable   {
10947
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
420 ashish 10948
 
3430 rajveer 10949
    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);
10950
    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);
10951
    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);
10952
    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);
10953
    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);
10954
    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);
10955
    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);
10956
    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);
10957
    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);
10958
    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);
10959
    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);
10960
    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 10961
 
3430 rajveer 10962
    private long id; // required
10963
    private String gatewayPaymentId; // required
10964
    private String sessionId; // required
10965
    private String gatewayTxnStatus; // required
10966
    private String description; // required
10967
    private String gatewayTxnId; // required
10968
    private String authCode; // required
10969
    private String referenceCode; // required
10970
    private String errorCode; // required
10971
    private PaymentStatus status; // required
10972
    private String gatewayTxnDate; // required
10973
    private List<Attribute> attributes; // required
420 ashish 10974
 
10975
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10976
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
420 ashish 10977
      ID((short)1, "id"),
695 rajveer 10978
      GATEWAY_PAYMENT_ID((short)2, "gatewayPaymentId"),
10979
      SESSION_ID((short)3, "sessionId"),
10980
      GATEWAY_TXN_STATUS((short)4, "gatewayTxnStatus"),
10981
      DESCRIPTION((short)5, "description"),
10982
      GATEWAY_TXN_ID((short)6, "gatewayTxnId"),
10983
      AUTH_CODE((short)7, "authCode"),
10984
      REFERENCE_CODE((short)8, "referenceCode"),
10985
      ERROR_CODE((short)9, "errorCode"),
10986
      /**
10987
       * 
10988
       * @see PaymentStatus
10989
       */
10990
      STATUS((short)10, "status"),
1119 rajveer 10991
      GATEWAY_TXN_DATE((short)11, "gatewayTxnDate"),
10992
      ATTRIBUTES((short)12, "attributes");
420 ashish 10993
 
10994
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10995
 
10996
      static {
10997
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10998
          byName.put(field.getFieldName(), field);
10999
        }
11000
      }
11001
 
11002
      /**
11003
       * Find the _Fields constant that matches fieldId, or null if its not found.
11004
       */
11005
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11006
        switch(fieldId) {
11007
          case 1: // ID
11008
            return ID;
11009
          case 2: // GATEWAY_PAYMENT_ID
11010
            return GATEWAY_PAYMENT_ID;
11011
          case 3: // SESSION_ID
11012
            return SESSION_ID;
11013
          case 4: // GATEWAY_TXN_STATUS
11014
            return GATEWAY_TXN_STATUS;
11015
          case 5: // DESCRIPTION
11016
            return DESCRIPTION;
11017
          case 6: // GATEWAY_TXN_ID
11018
            return GATEWAY_TXN_ID;
11019
          case 7: // AUTH_CODE
11020
            return AUTH_CODE;
11021
          case 8: // REFERENCE_CODE
11022
            return REFERENCE_CODE;
11023
          case 9: // ERROR_CODE
11024
            return ERROR_CODE;
11025
          case 10: // STATUS
11026
            return STATUS;
11027
          case 11: // GATEWAY_TXN_DATE
11028
            return GATEWAY_TXN_DATE;
11029
          case 12: // ATTRIBUTES
11030
            return ATTRIBUTES;
11031
          default:
11032
            return null;
11033
        }
420 ashish 11034
      }
11035
 
11036
      /**
11037
       * Find the _Fields constant that matches fieldId, throwing an exception
11038
       * if it is not found.
11039
       */
11040
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11041
        _Fields fields = findByThriftId(fieldId);
11042
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11043
        return fields;
11044
      }
11045
 
11046
      /**
11047
       * Find the _Fields constant that matches name, or null if its not found.
11048
       */
11049
      public static _Fields findByName(String name) {
11050
        return byName.get(name);
11051
      }
11052
 
11053
      private final short _thriftId;
11054
      private final String _fieldName;
11055
 
11056
      _Fields(short thriftId, String fieldName) {
11057
        _thriftId = thriftId;
11058
        _fieldName = fieldName;
11059
      }
11060
 
11061
      public short getThriftFieldId() {
11062
        return _thriftId;
11063
      }
11064
 
11065
      public String getFieldName() {
11066
        return _fieldName;
11067
      }
11068
    }
11069
 
11070
    // isset id assignments
11071
    private static final int __ID_ISSET_ID = 0;
11072
    private BitSet __isset_bit_vector = new BitSet(1);
11073
 
3430 rajveer 11074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 11075
    static {
3430 rajveer 11076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11077
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11078
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11079
      tmpMap.put(_Fields.GATEWAY_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11080
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11081
      tmpMap.put(_Fields.SESSION_ID, new org.apache.thrift.meta_data.FieldMetaData("sessionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11082
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11083
      tmpMap.put(_Fields.GATEWAY_TXN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11084
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11085
      tmpMap.put(_Fields.DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("description", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11087
      tmpMap.put(_Fields.GATEWAY_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11088
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11089
      tmpMap.put(_Fields.AUTH_CODE, new org.apache.thrift.meta_data.FieldMetaData("authCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11090
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11091
      tmpMap.put(_Fields.REFERENCE_CODE, new org.apache.thrift.meta_data.FieldMetaData("referenceCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11092
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11093
      tmpMap.put(_Fields.ERROR_CODE, new org.apache.thrift.meta_data.FieldMetaData("errorCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11095
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11096
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
11097
      tmpMap.put(_Fields.GATEWAY_TXN_DATE, new org.apache.thrift.meta_data.FieldMetaData("gatewayTxnDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11098
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11099
      tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11100
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11101
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
11102
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11103
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_args.class, metaDataMap);
420 ashish 11104
    }
11105
 
695 rajveer 11106
    public updatePaymentDetails_args() {
420 ashish 11107
    }
11108
 
695 rajveer 11109
    public updatePaymentDetails_args(
420 ashish 11110
      long id,
695 rajveer 11111
      String gatewayPaymentId,
11112
      String sessionId,
11113
      String gatewayTxnStatus,
11114
      String description,
11115
      String gatewayTxnId,
11116
      String authCode,
11117
      String referenceCode,
11118
      String errorCode,
11119
      PaymentStatus status,
1119 rajveer 11120
      String gatewayTxnDate,
695 rajveer 11121
      List<Attribute> attributes)
420 ashish 11122
    {
11123
      this();
11124
      this.id = id;
11125
      setIdIsSet(true);
695 rajveer 11126
      this.gatewayPaymentId = gatewayPaymentId;
11127
      this.sessionId = sessionId;
11128
      this.gatewayTxnStatus = gatewayTxnStatus;
11129
      this.description = description;
11130
      this.gatewayTxnId = gatewayTxnId;
11131
      this.authCode = authCode;
11132
      this.referenceCode = referenceCode;
11133
      this.errorCode = errorCode;
11134
      this.status = status;
1119 rajveer 11135
      this.gatewayTxnDate = gatewayTxnDate;
695 rajveer 11136
      this.attributes = attributes;
420 ashish 11137
    }
11138
 
11139
    /**
11140
     * Performs a deep copy on <i>other</i>.
11141
     */
695 rajveer 11142
    public updatePaymentDetails_args(updatePaymentDetails_args other) {
420 ashish 11143
      __isset_bit_vector.clear();
11144
      __isset_bit_vector.or(other.__isset_bit_vector);
11145
      this.id = other.id;
695 rajveer 11146
      if (other.isSetGatewayPaymentId()) {
11147
        this.gatewayPaymentId = other.gatewayPaymentId;
420 ashish 11148
      }
695 rajveer 11149
      if (other.isSetSessionId()) {
11150
        this.sessionId = other.sessionId;
420 ashish 11151
      }
695 rajveer 11152
      if (other.isSetGatewayTxnStatus()) {
11153
        this.gatewayTxnStatus = other.gatewayTxnStatus;
420 ashish 11154
      }
695 rajveer 11155
      if (other.isSetDescription()) {
11156
        this.description = other.description;
420 ashish 11157
      }
695 rajveer 11158
      if (other.isSetGatewayTxnId()) {
11159
        this.gatewayTxnId = other.gatewayTxnId;
420 ashish 11160
      }
695 rajveer 11161
      if (other.isSetAuthCode()) {
11162
        this.authCode = other.authCode;
420 ashish 11163
      }
695 rajveer 11164
      if (other.isSetReferenceCode()) {
11165
        this.referenceCode = other.referenceCode;
420 ashish 11166
      }
695 rajveer 11167
      if (other.isSetErrorCode()) {
11168
        this.errorCode = other.errorCode;
11169
      }
11170
      if (other.isSetStatus()) {
11171
        this.status = other.status;
11172
      }
1119 rajveer 11173
      if (other.isSetGatewayTxnDate()) {
11174
        this.gatewayTxnDate = other.gatewayTxnDate;
11175
      }
695 rajveer 11176
      if (other.isSetAttributes()) {
11177
        List<Attribute> __this__attributes = new ArrayList<Attribute>();
11178
        for (Attribute other_element : other.attributes) {
11179
          __this__attributes.add(new Attribute(other_element));
11180
        }
11181
        this.attributes = __this__attributes;
11182
      }
420 ashish 11183
    }
11184
 
695 rajveer 11185
    public updatePaymentDetails_args deepCopy() {
11186
      return new updatePaymentDetails_args(this);
420 ashish 11187
    }
11188
 
3430 rajveer 11189
    @Override
11190
    public void clear() {
11191
      setIdIsSet(false);
11192
      this.id = 0;
11193
      this.gatewayPaymentId = null;
11194
      this.sessionId = null;
11195
      this.gatewayTxnStatus = null;
11196
      this.description = null;
11197
      this.gatewayTxnId = null;
11198
      this.authCode = null;
11199
      this.referenceCode = null;
11200
      this.errorCode = null;
11201
      this.status = null;
11202
      this.gatewayTxnDate = null;
11203
      this.attributes = null;
420 ashish 11204
    }
11205
 
11206
    public long getId() {
11207
      return this.id;
11208
    }
11209
 
3430 rajveer 11210
    public void setId(long id) {
420 ashish 11211
      this.id = id;
11212
      setIdIsSet(true);
11213
    }
11214
 
11215
    public void unsetId() {
11216
      __isset_bit_vector.clear(__ID_ISSET_ID);
11217
    }
11218
 
3430 rajveer 11219
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
420 ashish 11220
    public boolean isSetId() {
11221
      return __isset_bit_vector.get(__ID_ISSET_ID);
11222
    }
11223
 
11224
    public void setIdIsSet(boolean value) {
11225
      __isset_bit_vector.set(__ID_ISSET_ID, value);
11226
    }
11227
 
695 rajveer 11228
    public String getGatewayPaymentId() {
11229
      return this.gatewayPaymentId;
420 ashish 11230
    }
11231
 
3430 rajveer 11232
    public void setGatewayPaymentId(String gatewayPaymentId) {
695 rajveer 11233
      this.gatewayPaymentId = gatewayPaymentId;
420 ashish 11234
    }
11235
 
695 rajveer 11236
    public void unsetGatewayPaymentId() {
11237
      this.gatewayPaymentId = null;
420 ashish 11238
    }
11239
 
3430 rajveer 11240
    /** Returns true if field gatewayPaymentId is set (has been assigned a value) and false otherwise */
695 rajveer 11241
    public boolean isSetGatewayPaymentId() {
11242
      return this.gatewayPaymentId != null;
420 ashish 11243
    }
11244
 
695 rajveer 11245
    public void setGatewayPaymentIdIsSet(boolean value) {
420 ashish 11246
      if (!value) {
695 rajveer 11247
        this.gatewayPaymentId = null;
420 ashish 11248
      }
11249
    }
11250
 
695 rajveer 11251
    public String getSessionId() {
11252
      return this.sessionId;
420 ashish 11253
    }
11254
 
3430 rajveer 11255
    public void setSessionId(String sessionId) {
695 rajveer 11256
      this.sessionId = sessionId;
420 ashish 11257
    }
11258
 
695 rajveer 11259
    public void unsetSessionId() {
11260
      this.sessionId = null;
420 ashish 11261
    }
11262
 
3430 rajveer 11263
    /** Returns true if field sessionId is set (has been assigned a value) and false otherwise */
695 rajveer 11264
    public boolean isSetSessionId() {
11265
      return this.sessionId != null;
420 ashish 11266
    }
11267
 
695 rajveer 11268
    public void setSessionIdIsSet(boolean value) {
420 ashish 11269
      if (!value) {
695 rajveer 11270
        this.sessionId = null;
420 ashish 11271
      }
11272
    }
11273
 
695 rajveer 11274
    public String getGatewayTxnStatus() {
11275
      return this.gatewayTxnStatus;
420 ashish 11276
    }
11277
 
3430 rajveer 11278
    public void setGatewayTxnStatus(String gatewayTxnStatus) {
695 rajveer 11279
      this.gatewayTxnStatus = gatewayTxnStatus;
420 ashish 11280
    }
11281
 
695 rajveer 11282
    public void unsetGatewayTxnStatus() {
11283
      this.gatewayTxnStatus = null;
420 ashish 11284
    }
11285
 
3430 rajveer 11286
    /** Returns true if field gatewayTxnStatus is set (has been assigned a value) and false otherwise */
695 rajveer 11287
    public boolean isSetGatewayTxnStatus() {
11288
      return this.gatewayTxnStatus != null;
420 ashish 11289
    }
11290
 
695 rajveer 11291
    public void setGatewayTxnStatusIsSet(boolean value) {
420 ashish 11292
      if (!value) {
695 rajveer 11293
        this.gatewayTxnStatus = null;
420 ashish 11294
      }
11295
    }
11296
 
695 rajveer 11297
    public String getDescription() {
11298
      return this.description;
420 ashish 11299
    }
11300
 
3430 rajveer 11301
    public void setDescription(String description) {
695 rajveer 11302
      this.description = description;
420 ashish 11303
    }
11304
 
695 rajveer 11305
    public void unsetDescription() {
11306
      this.description = null;
420 ashish 11307
    }
11308
 
3430 rajveer 11309
    /** Returns true if field description is set (has been assigned a value) and false otherwise */
695 rajveer 11310
    public boolean isSetDescription() {
11311
      return this.description != null;
420 ashish 11312
    }
11313
 
695 rajveer 11314
    public void setDescriptionIsSet(boolean value) {
420 ashish 11315
      if (!value) {
695 rajveer 11316
        this.description = null;
420 ashish 11317
      }
11318
    }
11319
 
695 rajveer 11320
    public String getGatewayTxnId() {
11321
      return this.gatewayTxnId;
420 ashish 11322
    }
11323
 
3430 rajveer 11324
    public void setGatewayTxnId(String gatewayTxnId) {
695 rajveer 11325
      this.gatewayTxnId = gatewayTxnId;
420 ashish 11326
    }
11327
 
695 rajveer 11328
    public void unsetGatewayTxnId() {
11329
      this.gatewayTxnId = null;
420 ashish 11330
    }
11331
 
3430 rajveer 11332
    /** Returns true if field gatewayTxnId is set (has been assigned a value) and false otherwise */
695 rajveer 11333
    public boolean isSetGatewayTxnId() {
11334
      return this.gatewayTxnId != null;
420 ashish 11335
    }
11336
 
695 rajveer 11337
    public void setGatewayTxnIdIsSet(boolean value) {
420 ashish 11338
      if (!value) {
695 rajveer 11339
        this.gatewayTxnId = null;
420 ashish 11340
      }
11341
    }
11342
 
695 rajveer 11343
    public String getAuthCode() {
11344
      return this.authCode;
420 ashish 11345
    }
11346
 
3430 rajveer 11347
    public void setAuthCode(String authCode) {
695 rajveer 11348
      this.authCode = authCode;
420 ashish 11349
    }
11350
 
695 rajveer 11351
    public void unsetAuthCode() {
11352
      this.authCode = null;
420 ashish 11353
    }
11354
 
3430 rajveer 11355
    /** Returns true if field authCode is set (has been assigned a value) and false otherwise */
695 rajveer 11356
    public boolean isSetAuthCode() {
11357
      return this.authCode != null;
420 ashish 11358
    }
11359
 
695 rajveer 11360
    public void setAuthCodeIsSet(boolean value) {
420 ashish 11361
      if (!value) {
695 rajveer 11362
        this.authCode = null;
420 ashish 11363
      }
11364
    }
11365
 
695 rajveer 11366
    public String getReferenceCode() {
11367
      return this.referenceCode;
420 ashish 11368
    }
11369
 
3430 rajveer 11370
    public void setReferenceCode(String referenceCode) {
695 rajveer 11371
      this.referenceCode = referenceCode;
420 ashish 11372
    }
11373
 
695 rajveer 11374
    public void unsetReferenceCode() {
11375
      this.referenceCode = null;
420 ashish 11376
    }
11377
 
3430 rajveer 11378
    /** Returns true if field referenceCode is set (has been assigned a value) and false otherwise */
695 rajveer 11379
    public boolean isSetReferenceCode() {
11380
      return this.referenceCode != null;
420 ashish 11381
    }
11382
 
695 rajveer 11383
    public void setReferenceCodeIsSet(boolean value) {
420 ashish 11384
      if (!value) {
695 rajveer 11385
        this.referenceCode = null;
420 ashish 11386
      }
11387
    }
11388
 
695 rajveer 11389
    public String getErrorCode() {
11390
      return this.errorCode;
11391
    }
11392
 
3430 rajveer 11393
    public void setErrorCode(String errorCode) {
695 rajveer 11394
      this.errorCode = errorCode;
11395
    }
11396
 
11397
    public void unsetErrorCode() {
11398
      this.errorCode = null;
11399
    }
11400
 
3430 rajveer 11401
    /** Returns true if field errorCode is set (has been assigned a value) and false otherwise */
695 rajveer 11402
    public boolean isSetErrorCode() {
11403
      return this.errorCode != null;
11404
    }
11405
 
11406
    public void setErrorCodeIsSet(boolean value) {
11407
      if (!value) {
11408
        this.errorCode = null;
11409
      }
11410
    }
11411
 
11412
    /**
11413
     * 
11414
     * @see PaymentStatus
11415
     */
11416
    public PaymentStatus getStatus() {
11417
      return this.status;
11418
    }
11419
 
11420
    /**
11421
     * 
11422
     * @see PaymentStatus
11423
     */
3430 rajveer 11424
    public void setStatus(PaymentStatus status) {
695 rajveer 11425
      this.status = status;
11426
    }
11427
 
11428
    public void unsetStatus() {
11429
      this.status = null;
11430
    }
11431
 
3430 rajveer 11432
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
695 rajveer 11433
    public boolean isSetStatus() {
11434
      return this.status != null;
11435
    }
11436
 
11437
    public void setStatusIsSet(boolean value) {
11438
      if (!value) {
11439
        this.status = null;
11440
      }
11441
    }
11442
 
1119 rajveer 11443
    public String getGatewayTxnDate() {
11444
      return this.gatewayTxnDate;
11445
    }
11446
 
3430 rajveer 11447
    public void setGatewayTxnDate(String gatewayTxnDate) {
1119 rajveer 11448
      this.gatewayTxnDate = gatewayTxnDate;
11449
    }
11450
 
11451
    public void unsetGatewayTxnDate() {
11452
      this.gatewayTxnDate = null;
11453
    }
11454
 
3430 rajveer 11455
    /** Returns true if field gatewayTxnDate is set (has been assigned a value) and false otherwise */
1119 rajveer 11456
    public boolean isSetGatewayTxnDate() {
11457
      return this.gatewayTxnDate != null;
11458
    }
11459
 
11460
    public void setGatewayTxnDateIsSet(boolean value) {
11461
      if (!value) {
11462
        this.gatewayTxnDate = null;
11463
      }
11464
    }
11465
 
695 rajveer 11466
    public int getAttributesSize() {
11467
      return (this.attributes == null) ? 0 : this.attributes.size();
11468
    }
11469
 
11470
    public java.util.Iterator<Attribute> getAttributesIterator() {
11471
      return (this.attributes == null) ? null : this.attributes.iterator();
11472
    }
11473
 
11474
    public void addToAttributes(Attribute elem) {
11475
      if (this.attributes == null) {
11476
        this.attributes = new ArrayList<Attribute>();
11477
      }
11478
      this.attributes.add(elem);
11479
    }
11480
 
11481
    public List<Attribute> getAttributes() {
11482
      return this.attributes;
11483
    }
11484
 
3430 rajveer 11485
    public void setAttributes(List<Attribute> attributes) {
695 rajveer 11486
      this.attributes = attributes;
11487
    }
11488
 
11489
    public void unsetAttributes() {
11490
      this.attributes = null;
11491
    }
11492
 
3430 rajveer 11493
    /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
695 rajveer 11494
    public boolean isSetAttributes() {
11495
      return this.attributes != null;
11496
    }
11497
 
11498
    public void setAttributesIsSet(boolean value) {
11499
      if (!value) {
11500
        this.attributes = null;
11501
      }
11502
    }
11503
 
420 ashish 11504
    public void setFieldValue(_Fields field, Object value) {
11505
      switch (field) {
11506
      case ID:
11507
        if (value == null) {
11508
          unsetId();
11509
        } else {
11510
          setId((Long)value);
11511
        }
11512
        break;
11513
 
695 rajveer 11514
      case GATEWAY_PAYMENT_ID:
420 ashish 11515
        if (value == null) {
695 rajveer 11516
          unsetGatewayPaymentId();
420 ashish 11517
        } else {
695 rajveer 11518
          setGatewayPaymentId((String)value);
420 ashish 11519
        }
11520
        break;
11521
 
695 rajveer 11522
      case SESSION_ID:
420 ashish 11523
        if (value == null) {
695 rajveer 11524
          unsetSessionId();
420 ashish 11525
        } else {
695 rajveer 11526
          setSessionId((String)value);
420 ashish 11527
        }
11528
        break;
11529
 
695 rajveer 11530
      case GATEWAY_TXN_STATUS:
420 ashish 11531
        if (value == null) {
695 rajveer 11532
          unsetGatewayTxnStatus();
420 ashish 11533
        } else {
695 rajveer 11534
          setGatewayTxnStatus((String)value);
420 ashish 11535
        }
11536
        break;
11537
 
695 rajveer 11538
      case DESCRIPTION:
420 ashish 11539
        if (value == null) {
695 rajveer 11540
          unsetDescription();
420 ashish 11541
        } else {
695 rajveer 11542
          setDescription((String)value);
420 ashish 11543
        }
11544
        break;
11545
 
695 rajveer 11546
      case GATEWAY_TXN_ID:
420 ashish 11547
        if (value == null) {
695 rajveer 11548
          unsetGatewayTxnId();
420 ashish 11549
        } else {
695 rajveer 11550
          setGatewayTxnId((String)value);
420 ashish 11551
        }
11552
        break;
11553
 
11554
      case AUTH_CODE:
11555
        if (value == null) {
695 rajveer 11556
          unsetAuthCode();
420 ashish 11557
        } else {
695 rajveer 11558
          setAuthCode((String)value);
420 ashish 11559
        }
11560
        break;
11561
 
695 rajveer 11562
      case REFERENCE_CODE:
420 ashish 11563
        if (value == null) {
695 rajveer 11564
          unsetReferenceCode();
420 ashish 11565
        } else {
695 rajveer 11566
          setReferenceCode((String)value);
420 ashish 11567
        }
11568
        break;
11569
 
695 rajveer 11570
      case ERROR_CODE:
11571
        if (value == null) {
11572
          unsetErrorCode();
11573
        } else {
11574
          setErrorCode((String)value);
11575
        }
11576
        break;
11577
 
11578
      case STATUS:
11579
        if (value == null) {
11580
          unsetStatus();
11581
        } else {
11582
          setStatus((PaymentStatus)value);
11583
        }
11584
        break;
11585
 
1119 rajveer 11586
      case GATEWAY_TXN_DATE:
11587
        if (value == null) {
11588
          unsetGatewayTxnDate();
11589
        } else {
11590
          setGatewayTxnDate((String)value);
11591
        }
11592
        break;
11593
 
695 rajveer 11594
      case ATTRIBUTES:
11595
        if (value == null) {
11596
          unsetAttributes();
11597
        } else {
11598
          setAttributes((List<Attribute>)value);
11599
        }
11600
        break;
11601
 
420 ashish 11602
      }
11603
    }
11604
 
11605
    public Object getFieldValue(_Fields field) {
11606
      switch (field) {
11607
      case ID:
3430 rajveer 11608
        return Long.valueOf(getId());
420 ashish 11609
 
695 rajveer 11610
      case GATEWAY_PAYMENT_ID:
11611
        return getGatewayPaymentId();
420 ashish 11612
 
695 rajveer 11613
      case SESSION_ID:
11614
        return getSessionId();
420 ashish 11615
 
695 rajveer 11616
      case GATEWAY_TXN_STATUS:
11617
        return getGatewayTxnStatus();
420 ashish 11618
 
695 rajveer 11619
      case DESCRIPTION:
11620
        return getDescription();
420 ashish 11621
 
695 rajveer 11622
      case GATEWAY_TXN_ID:
11623
        return getGatewayTxnId();
420 ashish 11624
 
11625
      case AUTH_CODE:
695 rajveer 11626
        return getAuthCode();
420 ashish 11627
 
695 rajveer 11628
      case REFERENCE_CODE:
11629
        return getReferenceCode();
420 ashish 11630
 
695 rajveer 11631
      case ERROR_CODE:
11632
        return getErrorCode();
11633
 
11634
      case STATUS:
11635
        return getStatus();
11636
 
1119 rajveer 11637
      case GATEWAY_TXN_DATE:
11638
        return getGatewayTxnDate();
11639
 
695 rajveer 11640
      case ATTRIBUTES:
11641
        return getAttributes();
11642
 
420 ashish 11643
      }
11644
      throw new IllegalStateException();
11645
    }
11646
 
3430 rajveer 11647
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11648
    public boolean isSet(_Fields field) {
11649
      if (field == null) {
11650
        throw new IllegalArgumentException();
11651
      }
420 ashish 11652
 
11653
      switch (field) {
11654
      case ID:
11655
        return isSetId();
695 rajveer 11656
      case GATEWAY_PAYMENT_ID:
11657
        return isSetGatewayPaymentId();
420 ashish 11658
      case SESSION_ID:
695 rajveer 11659
        return isSetSessionId();
11660
      case GATEWAY_TXN_STATUS:
11661
        return isSetGatewayTxnStatus();
11662
      case DESCRIPTION:
11663
        return isSetDescription();
11664
      case GATEWAY_TXN_ID:
11665
        return isSetGatewayTxnId();
420 ashish 11666
      case AUTH_CODE:
695 rajveer 11667
        return isSetAuthCode();
11668
      case REFERENCE_CODE:
11669
        return isSetReferenceCode();
11670
      case ERROR_CODE:
11671
        return isSetErrorCode();
11672
      case STATUS:
11673
        return isSetStatus();
1119 rajveer 11674
      case GATEWAY_TXN_DATE:
11675
        return isSetGatewayTxnDate();
695 rajveer 11676
      case ATTRIBUTES:
11677
        return isSetAttributes();
420 ashish 11678
      }
11679
      throw new IllegalStateException();
11680
    }
11681
 
11682
    @Override
11683
    public boolean equals(Object that) {
11684
      if (that == null)
11685
        return false;
695 rajveer 11686
      if (that instanceof updatePaymentDetails_args)
11687
        return this.equals((updatePaymentDetails_args)that);
420 ashish 11688
      return false;
11689
    }
11690
 
695 rajveer 11691
    public boolean equals(updatePaymentDetails_args that) {
420 ashish 11692
      if (that == null)
11693
        return false;
11694
 
11695
      boolean this_present_id = true;
11696
      boolean that_present_id = true;
11697
      if (this_present_id || that_present_id) {
11698
        if (!(this_present_id && that_present_id))
11699
          return false;
11700
        if (this.id != that.id)
11701
          return false;
11702
      }
11703
 
695 rajveer 11704
      boolean this_present_gatewayPaymentId = true && this.isSetGatewayPaymentId();
11705
      boolean that_present_gatewayPaymentId = true && that.isSetGatewayPaymentId();
11706
      if (this_present_gatewayPaymentId || that_present_gatewayPaymentId) {
11707
        if (!(this_present_gatewayPaymentId && that_present_gatewayPaymentId))
420 ashish 11708
          return false;
695 rajveer 11709
        if (!this.gatewayPaymentId.equals(that.gatewayPaymentId))
420 ashish 11710
          return false;
11711
      }
11712
 
695 rajveer 11713
      boolean this_present_sessionId = true && this.isSetSessionId();
11714
      boolean that_present_sessionId = true && that.isSetSessionId();
11715
      if (this_present_sessionId || that_present_sessionId) {
11716
        if (!(this_present_sessionId && that_present_sessionId))
420 ashish 11717
          return false;
695 rajveer 11718
        if (!this.sessionId.equals(that.sessionId))
420 ashish 11719
          return false;
11720
      }
11721
 
695 rajveer 11722
      boolean this_present_gatewayTxnStatus = true && this.isSetGatewayTxnStatus();
11723
      boolean that_present_gatewayTxnStatus = true && that.isSetGatewayTxnStatus();
11724
      if (this_present_gatewayTxnStatus || that_present_gatewayTxnStatus) {
11725
        if (!(this_present_gatewayTxnStatus && that_present_gatewayTxnStatus))
420 ashish 11726
          return false;
695 rajveer 11727
        if (!this.gatewayTxnStatus.equals(that.gatewayTxnStatus))
420 ashish 11728
          return false;
11729
      }
11730
 
695 rajveer 11731
      boolean this_present_description = true && this.isSetDescription();
11732
      boolean that_present_description = true && that.isSetDescription();
11733
      if (this_present_description || that_present_description) {
11734
        if (!(this_present_description && that_present_description))
420 ashish 11735
          return false;
695 rajveer 11736
        if (!this.description.equals(that.description))
420 ashish 11737
          return false;
11738
      }
11739
 
695 rajveer 11740
      boolean this_present_gatewayTxnId = true && this.isSetGatewayTxnId();
11741
      boolean that_present_gatewayTxnId = true && that.isSetGatewayTxnId();
11742
      if (this_present_gatewayTxnId || that_present_gatewayTxnId) {
11743
        if (!(this_present_gatewayTxnId && that_present_gatewayTxnId))
420 ashish 11744
          return false;
695 rajveer 11745
        if (!this.gatewayTxnId.equals(that.gatewayTxnId))
420 ashish 11746
          return false;
11747
      }
11748
 
695 rajveer 11749
      boolean this_present_authCode = true && this.isSetAuthCode();
11750
      boolean that_present_authCode = true && that.isSetAuthCode();
11751
      if (this_present_authCode || that_present_authCode) {
11752
        if (!(this_present_authCode && that_present_authCode))
420 ashish 11753
          return false;
695 rajveer 11754
        if (!this.authCode.equals(that.authCode))
420 ashish 11755
          return false;
11756
      }
11757
 
695 rajveer 11758
      boolean this_present_referenceCode = true && this.isSetReferenceCode();
11759
      boolean that_present_referenceCode = true && that.isSetReferenceCode();
11760
      if (this_present_referenceCode || that_present_referenceCode) {
11761
        if (!(this_present_referenceCode && that_present_referenceCode))
420 ashish 11762
          return false;
695 rajveer 11763
        if (!this.referenceCode.equals(that.referenceCode))
420 ashish 11764
          return false;
11765
      }
11766
 
695 rajveer 11767
      boolean this_present_errorCode = true && this.isSetErrorCode();
11768
      boolean that_present_errorCode = true && that.isSetErrorCode();
11769
      if (this_present_errorCode || that_present_errorCode) {
11770
        if (!(this_present_errorCode && that_present_errorCode))
11771
          return false;
11772
        if (!this.errorCode.equals(that.errorCode))
11773
          return false;
11774
      }
11775
 
11776
      boolean this_present_status = true && this.isSetStatus();
11777
      boolean that_present_status = true && that.isSetStatus();
11778
      if (this_present_status || that_present_status) {
11779
        if (!(this_present_status && that_present_status))
11780
          return false;
11781
        if (!this.status.equals(that.status))
11782
          return false;
11783
      }
11784
 
1119 rajveer 11785
      boolean this_present_gatewayTxnDate = true && this.isSetGatewayTxnDate();
11786
      boolean that_present_gatewayTxnDate = true && that.isSetGatewayTxnDate();
11787
      if (this_present_gatewayTxnDate || that_present_gatewayTxnDate) {
11788
        if (!(this_present_gatewayTxnDate && that_present_gatewayTxnDate))
11789
          return false;
11790
        if (!this.gatewayTxnDate.equals(that.gatewayTxnDate))
11791
          return false;
11792
      }
11793
 
695 rajveer 11794
      boolean this_present_attributes = true && this.isSetAttributes();
11795
      boolean that_present_attributes = true && that.isSetAttributes();
11796
      if (this_present_attributes || that_present_attributes) {
11797
        if (!(this_present_attributes && that_present_attributes))
11798
          return false;
11799
        if (!this.attributes.equals(that.attributes))
11800
          return false;
11801
      }
11802
 
420 ashish 11803
      return true;
11804
    }
11805
 
11806
    @Override
11807
    public int hashCode() {
11808
      return 0;
11809
    }
11810
 
695 rajveer 11811
    public int compareTo(updatePaymentDetails_args other) {
420 ashish 11812
      if (!getClass().equals(other.getClass())) {
11813
        return getClass().getName().compareTo(other.getClass().getName());
11814
      }
11815
 
11816
      int lastComparison = 0;
695 rajveer 11817
      updatePaymentDetails_args typedOther = (updatePaymentDetails_args)other;
420 ashish 11818
 
3430 rajveer 11819
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
420 ashish 11820
      if (lastComparison != 0) {
11821
        return lastComparison;
11822
      }
3430 rajveer 11823
      if (isSetId()) {
11824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
11825
        if (lastComparison != 0) {
11826
          return lastComparison;
11827
        }
420 ashish 11828
      }
3430 rajveer 11829
      lastComparison = Boolean.valueOf(isSetGatewayPaymentId()).compareTo(typedOther.isSetGatewayPaymentId());
420 ashish 11830
      if (lastComparison != 0) {
11831
        return lastComparison;
11832
      }
3430 rajveer 11833
      if (isSetGatewayPaymentId()) {
11834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayPaymentId, typedOther.gatewayPaymentId);
11835
        if (lastComparison != 0) {
11836
          return lastComparison;
11837
        }
420 ashish 11838
      }
3430 rajveer 11839
      lastComparison = Boolean.valueOf(isSetSessionId()).compareTo(typedOther.isSetSessionId());
420 ashish 11840
      if (lastComparison != 0) {
11841
        return lastComparison;
11842
      }
3430 rajveer 11843
      if (isSetSessionId()) {
11844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sessionId, typedOther.sessionId);
11845
        if (lastComparison != 0) {
11846
          return lastComparison;
11847
        }
420 ashish 11848
      }
3430 rajveer 11849
      lastComparison = Boolean.valueOf(isSetGatewayTxnStatus()).compareTo(typedOther.isSetGatewayTxnStatus());
420 ashish 11850
      if (lastComparison != 0) {
11851
        return lastComparison;
11852
      }
3430 rajveer 11853
      if (isSetGatewayTxnStatus()) {
11854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnStatus, typedOther.gatewayTxnStatus);
11855
        if (lastComparison != 0) {
11856
          return lastComparison;
11857
        }
420 ashish 11858
      }
3430 rajveer 11859
      lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
420 ashish 11860
      if (lastComparison != 0) {
11861
        return lastComparison;
11862
      }
3430 rajveer 11863
      if (isSetDescription()) {
11864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, typedOther.description);
11865
        if (lastComparison != 0) {
11866
          return lastComparison;
11867
        }
420 ashish 11868
      }
3430 rajveer 11869
      lastComparison = Boolean.valueOf(isSetGatewayTxnId()).compareTo(typedOther.isSetGatewayTxnId());
420 ashish 11870
      if (lastComparison != 0) {
11871
        return lastComparison;
11872
      }
3430 rajveer 11873
      if (isSetGatewayTxnId()) {
11874
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnId, typedOther.gatewayTxnId);
11875
        if (lastComparison != 0) {
11876
          return lastComparison;
11877
        }
420 ashish 11878
      }
3430 rajveer 11879
      lastComparison = Boolean.valueOf(isSetAuthCode()).compareTo(typedOther.isSetAuthCode());
420 ashish 11880
      if (lastComparison != 0) {
11881
        return lastComparison;
11882
      }
3430 rajveer 11883
      if (isSetAuthCode()) {
11884
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.authCode, typedOther.authCode);
11885
        if (lastComparison != 0) {
11886
          return lastComparison;
11887
        }
420 ashish 11888
      }
3430 rajveer 11889
      lastComparison = Boolean.valueOf(isSetReferenceCode()).compareTo(typedOther.isSetReferenceCode());
420 ashish 11890
      if (lastComparison != 0) {
11891
        return lastComparison;
11892
      }
3430 rajveer 11893
      if (isSetReferenceCode()) {
11894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.referenceCode, typedOther.referenceCode);
11895
        if (lastComparison != 0) {
11896
          return lastComparison;
11897
        }
420 ashish 11898
      }
3430 rajveer 11899
      lastComparison = Boolean.valueOf(isSetErrorCode()).compareTo(typedOther.isSetErrorCode());
695 rajveer 11900
      if (lastComparison != 0) {
11901
        return lastComparison;
11902
      }
3430 rajveer 11903
      if (isSetErrorCode()) {
11904
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errorCode, typedOther.errorCode);
11905
        if (lastComparison != 0) {
11906
          return lastComparison;
11907
        }
695 rajveer 11908
      }
3430 rajveer 11909
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
695 rajveer 11910
      if (lastComparison != 0) {
11911
        return lastComparison;
11912
      }
3430 rajveer 11913
      if (isSetStatus()) {
11914
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
11915
        if (lastComparison != 0) {
11916
          return lastComparison;
11917
        }
695 rajveer 11918
      }
3430 rajveer 11919
      lastComparison = Boolean.valueOf(isSetGatewayTxnDate()).compareTo(typedOther.isSetGatewayTxnDate());
1119 rajveer 11920
      if (lastComparison != 0) {
11921
        return lastComparison;
11922
      }
3430 rajveer 11923
      if (isSetGatewayTxnDate()) {
11924
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gatewayTxnDate, typedOther.gatewayTxnDate);
11925
        if (lastComparison != 0) {
11926
          return lastComparison;
11927
        }
1119 rajveer 11928
      }
3430 rajveer 11929
      lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
695 rajveer 11930
      if (lastComparison != 0) {
11931
        return lastComparison;
11932
      }
3430 rajveer 11933
      if (isSetAttributes()) {
11934
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
11935
        if (lastComparison != 0) {
11936
          return lastComparison;
11937
        }
695 rajveer 11938
      }
420 ashish 11939
      return 0;
11940
    }
11941
 
3430 rajveer 11942
    public _Fields fieldForId(int fieldId) {
11943
      return _Fields.findByThriftId(fieldId);
11944
    }
11945
 
11946
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11947
      org.apache.thrift.protocol.TField field;
420 ashish 11948
      iprot.readStructBegin();
11949
      while (true)
11950
      {
11951
        field = iprot.readFieldBegin();
3430 rajveer 11952
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 11953
          break;
11954
        }
3430 rajveer 11955
        switch (field.id) {
11956
          case 1: // ID
11957
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11958
              this.id = iprot.readI64();
11959
              setIdIsSet(true);
11960
            } else { 
11961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11962
            }
11963
            break;
11964
          case 2: // GATEWAY_PAYMENT_ID
11965
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11966
              this.gatewayPaymentId = iprot.readString();
11967
            } else { 
11968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11969
            }
11970
            break;
11971
          case 3: // SESSION_ID
11972
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11973
              this.sessionId = iprot.readString();
11974
            } else { 
11975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11976
            }
11977
            break;
11978
          case 4: // GATEWAY_TXN_STATUS
11979
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11980
              this.gatewayTxnStatus = iprot.readString();
11981
            } else { 
11982
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11983
            }
11984
            break;
11985
          case 5: // DESCRIPTION
11986
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11987
              this.description = iprot.readString();
11988
            } else { 
11989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11990
            }
11991
            break;
11992
          case 6: // GATEWAY_TXN_ID
11993
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11994
              this.gatewayTxnId = iprot.readString();
11995
            } else { 
11996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11997
            }
11998
            break;
11999
          case 7: // AUTH_CODE
12000
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12001
              this.authCode = iprot.readString();
12002
            } else { 
12003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12004
            }
12005
            break;
12006
          case 8: // REFERENCE_CODE
12007
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12008
              this.referenceCode = iprot.readString();
12009
            } else { 
12010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12011
            }
12012
            break;
12013
          case 9: // ERROR_CODE
12014
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12015
              this.errorCode = iprot.readString();
12016
            } else { 
12017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12018
            }
12019
            break;
12020
          case 10: // STATUS
12021
            if (field.type == org.apache.thrift.protocol.TType.I32) {
12022
              this.status = PaymentStatus.findByValue(iprot.readI32());
12023
            } else { 
12024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12025
            }
12026
            break;
12027
          case 11: // GATEWAY_TXN_DATE
12028
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12029
              this.gatewayTxnDate = iprot.readString();
12030
            } else { 
12031
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12032
            }
12033
            break;
12034
          case 12: // ATTRIBUTES
12035
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12036
              {
7049 anupam.sin 12037
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
12038
                this.attributes = new ArrayList<Attribute>(_list36.size);
12039
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
695 rajveer 12040
                {
7049 anupam.sin 12041
                  Attribute _elem38; // required
12042
                  _elem38 = new Attribute();
12043
                  _elem38.read(iprot);
12044
                  this.attributes.add(_elem38);
695 rajveer 12045
                }
3430 rajveer 12046
                iprot.readListEnd();
695 rajveer 12047
              }
3430 rajveer 12048
            } else { 
12049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12050
            }
12051
            break;
12052
          default:
12053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 12054
        }
3430 rajveer 12055
        iprot.readFieldEnd();
420 ashish 12056
      }
12057
      iprot.readStructEnd();
12058
      validate();
12059
    }
12060
 
3430 rajveer 12061
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 12062
      validate();
12063
 
12064
      oprot.writeStructBegin(STRUCT_DESC);
12065
      oprot.writeFieldBegin(ID_FIELD_DESC);
12066
      oprot.writeI64(this.id);
12067
      oprot.writeFieldEnd();
695 rajveer 12068
      if (this.gatewayPaymentId != null) {
12069
        oprot.writeFieldBegin(GATEWAY_PAYMENT_ID_FIELD_DESC);
12070
        oprot.writeString(this.gatewayPaymentId);
420 ashish 12071
        oprot.writeFieldEnd();
12072
      }
695 rajveer 12073
      if (this.sessionId != null) {
12074
        oprot.writeFieldBegin(SESSION_ID_FIELD_DESC);
12075
        oprot.writeString(this.sessionId);
420 ashish 12076
        oprot.writeFieldEnd();
12077
      }
695 rajveer 12078
      if (this.gatewayTxnStatus != null) {
12079
        oprot.writeFieldBegin(GATEWAY_TXN_STATUS_FIELD_DESC);
12080
        oprot.writeString(this.gatewayTxnStatus);
420 ashish 12081
        oprot.writeFieldEnd();
12082
      }
695 rajveer 12083
      if (this.description != null) {
12084
        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
12085
        oprot.writeString(this.description);
420 ashish 12086
        oprot.writeFieldEnd();
12087
      }
695 rajveer 12088
      if (this.gatewayTxnId != null) {
12089
        oprot.writeFieldBegin(GATEWAY_TXN_ID_FIELD_DESC);
12090
        oprot.writeString(this.gatewayTxnId);
420 ashish 12091
        oprot.writeFieldEnd();
12092
      }
695 rajveer 12093
      if (this.authCode != null) {
420 ashish 12094
        oprot.writeFieldBegin(AUTH_CODE_FIELD_DESC);
695 rajveer 12095
        oprot.writeString(this.authCode);
420 ashish 12096
        oprot.writeFieldEnd();
12097
      }
695 rajveer 12098
      if (this.referenceCode != null) {
12099
        oprot.writeFieldBegin(REFERENCE_CODE_FIELD_DESC);
12100
        oprot.writeString(this.referenceCode);
420 ashish 12101
        oprot.writeFieldEnd();
12102
      }
695 rajveer 12103
      if (this.errorCode != null) {
12104
        oprot.writeFieldBegin(ERROR_CODE_FIELD_DESC);
12105
        oprot.writeString(this.errorCode);
12106
        oprot.writeFieldEnd();
12107
      }
12108
      if (this.status != null) {
12109
        oprot.writeFieldBegin(STATUS_FIELD_DESC);
12110
        oprot.writeI32(this.status.getValue());
12111
        oprot.writeFieldEnd();
12112
      }
1119 rajveer 12113
      if (this.gatewayTxnDate != null) {
12114
        oprot.writeFieldBegin(GATEWAY_TXN_DATE_FIELD_DESC);
12115
        oprot.writeString(this.gatewayTxnDate);
12116
        oprot.writeFieldEnd();
12117
      }
695 rajveer 12118
      if (this.attributes != null) {
12119
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
12120
        {
3430 rajveer 12121
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
7049 anupam.sin 12122
          for (Attribute _iter39 : this.attributes)
695 rajveer 12123
          {
7049 anupam.sin 12124
            _iter39.write(oprot);
695 rajveer 12125
          }
12126
          oprot.writeListEnd();
12127
        }
12128
        oprot.writeFieldEnd();
12129
      }
420 ashish 12130
      oprot.writeFieldStop();
12131
      oprot.writeStructEnd();
12132
    }
12133
 
12134
    @Override
12135
    public String toString() {
695 rajveer 12136
      StringBuilder sb = new StringBuilder("updatePaymentDetails_args(");
420 ashish 12137
      boolean first = true;
12138
 
12139
      sb.append("id:");
12140
      sb.append(this.id);
12141
      first = false;
12142
      if (!first) sb.append(", ");
695 rajveer 12143
      sb.append("gatewayPaymentId:");
12144
      if (this.gatewayPaymentId == null) {
420 ashish 12145
        sb.append("null");
12146
      } else {
695 rajveer 12147
        sb.append(this.gatewayPaymentId);
420 ashish 12148
      }
12149
      first = false;
12150
      if (!first) sb.append(", ");
695 rajveer 12151
      sb.append("sessionId:");
12152
      if (this.sessionId == null) {
420 ashish 12153
        sb.append("null");
12154
      } else {
695 rajveer 12155
        sb.append(this.sessionId);
420 ashish 12156
      }
12157
      first = false;
12158
      if (!first) sb.append(", ");
695 rajveer 12159
      sb.append("gatewayTxnStatus:");
12160
      if (this.gatewayTxnStatus == null) {
420 ashish 12161
        sb.append("null");
12162
      } else {
695 rajveer 12163
        sb.append(this.gatewayTxnStatus);
420 ashish 12164
      }
12165
      first = false;
12166
      if (!first) sb.append(", ");
695 rajveer 12167
      sb.append("description:");
12168
      if (this.description == null) {
420 ashish 12169
        sb.append("null");
12170
      } else {
695 rajveer 12171
        sb.append(this.description);
420 ashish 12172
      }
12173
      first = false;
12174
      if (!first) sb.append(", ");
695 rajveer 12175
      sb.append("gatewayTxnId:");
12176
      if (this.gatewayTxnId == null) {
420 ashish 12177
        sb.append("null");
12178
      } else {
695 rajveer 12179
        sb.append(this.gatewayTxnId);
420 ashish 12180
      }
12181
      first = false;
12182
      if (!first) sb.append(", ");
695 rajveer 12183
      sb.append("authCode:");
12184
      if (this.authCode == null) {
420 ashish 12185
        sb.append("null");
12186
      } else {
695 rajveer 12187
        sb.append(this.authCode);
420 ashish 12188
      }
12189
      first = false;
12190
      if (!first) sb.append(", ");
695 rajveer 12191
      sb.append("referenceCode:");
12192
      if (this.referenceCode == null) {
420 ashish 12193
        sb.append("null");
12194
      } else {
695 rajveer 12195
        sb.append(this.referenceCode);
420 ashish 12196
      }
12197
      first = false;
695 rajveer 12198
      if (!first) sb.append(", ");
12199
      sb.append("errorCode:");
12200
      if (this.errorCode == null) {
12201
        sb.append("null");
12202
      } else {
12203
        sb.append(this.errorCode);
12204
      }
12205
      first = false;
12206
      if (!first) sb.append(", ");
12207
      sb.append("status:");
12208
      if (this.status == null) {
12209
        sb.append("null");
12210
      } else {
12211
        sb.append(this.status);
12212
      }
12213
      first = false;
12214
      if (!first) sb.append(", ");
1119 rajveer 12215
      sb.append("gatewayTxnDate:");
12216
      if (this.gatewayTxnDate == null) {
12217
        sb.append("null");
12218
      } else {
12219
        sb.append(this.gatewayTxnDate);
12220
      }
12221
      first = false;
12222
      if (!first) sb.append(", ");
695 rajveer 12223
      sb.append("attributes:");
12224
      if (this.attributes == null) {
12225
        sb.append("null");
12226
      } else {
12227
        sb.append(this.attributes);
12228
      }
12229
      first = false;
420 ashish 12230
      sb.append(")");
12231
      return sb.toString();
12232
    }
12233
 
3430 rajveer 12234
    public void validate() throws org.apache.thrift.TException {
420 ashish 12235
      // check for required fields
12236
    }
12237
 
3430 rajveer 12238
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12239
      try {
12240
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12241
      } catch (org.apache.thrift.TException te) {
12242
        throw new java.io.IOException(te);
12243
      }
12244
    }
12245
 
12246
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12247
      try {
12248
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12249
        __isset_bit_vector = new BitSet(1);
12250
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12251
      } catch (org.apache.thrift.TException te) {
12252
        throw new java.io.IOException(te);
12253
      }
12254
    }
12255
 
420 ashish 12256
  }
12257
 
3430 rajveer 12258
  public static class updatePaymentDetails_result implements org.apache.thrift.TBase<updatePaymentDetails_result, updatePaymentDetails_result._Fields>, java.io.Serializable, Cloneable   {
12259
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_result");
420 ashish 12260
 
3430 rajveer 12261
    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);
12262
    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 12263
 
3430 rajveer 12264
    private boolean success; // required
12265
    private PaymentException pe; // required
420 ashish 12266
 
12267
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12268
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
695 rajveer 12269
      SUCCESS((short)0, "success"),
420 ashish 12270
      PE((short)1, "pe");
12271
 
12272
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12273
 
12274
      static {
12275
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12276
          byName.put(field.getFieldName(), field);
12277
        }
12278
      }
12279
 
12280
      /**
12281
       * Find the _Fields constant that matches fieldId, or null if its not found.
12282
       */
12283
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12284
        switch(fieldId) {
12285
          case 0: // SUCCESS
12286
            return SUCCESS;
12287
          case 1: // PE
12288
            return PE;
12289
          default:
12290
            return null;
12291
        }
420 ashish 12292
      }
12293
 
12294
      /**
12295
       * Find the _Fields constant that matches fieldId, throwing an exception
12296
       * if it is not found.
12297
       */
12298
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12299
        _Fields fields = findByThriftId(fieldId);
12300
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12301
        return fields;
12302
      }
12303
 
12304
      /**
12305
       * Find the _Fields constant that matches name, or null if its not found.
12306
       */
12307
      public static _Fields findByName(String name) {
12308
        return byName.get(name);
12309
      }
12310
 
12311
      private final short _thriftId;
12312
      private final String _fieldName;
12313
 
12314
      _Fields(short thriftId, String fieldName) {
12315
        _thriftId = thriftId;
12316
        _fieldName = fieldName;
12317
      }
12318
 
12319
      public short getThriftFieldId() {
12320
        return _thriftId;
12321
      }
12322
 
12323
      public String getFieldName() {
12324
        return _fieldName;
12325
      }
12326
    }
12327
 
12328
    // isset id assignments
695 rajveer 12329
    private static final int __SUCCESS_ISSET_ID = 0;
12330
    private BitSet __isset_bit_vector = new BitSet(1);
420 ashish 12331
 
3430 rajveer 12332
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
420 ashish 12333
    static {
3430 rajveer 12334
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12335
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12336
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12337
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12338
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12339
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12340
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePaymentDetails_result.class, metaDataMap);
420 ashish 12341
    }
12342
 
695 rajveer 12343
    public updatePaymentDetails_result() {
420 ashish 12344
    }
12345
 
695 rajveer 12346
    public updatePaymentDetails_result(
12347
      boolean success,
420 ashish 12348
      PaymentException pe)
12349
    {
12350
      this();
695 rajveer 12351
      this.success = success;
12352
      setSuccessIsSet(true);
420 ashish 12353
      this.pe = pe;
12354
    }
12355
 
12356
    /**
12357
     * Performs a deep copy on <i>other</i>.
12358
     */
695 rajveer 12359
    public updatePaymentDetails_result(updatePaymentDetails_result other) {
12360
      __isset_bit_vector.clear();
12361
      __isset_bit_vector.or(other.__isset_bit_vector);
12362
      this.success = other.success;
420 ashish 12363
      if (other.isSetPe()) {
12364
        this.pe = new PaymentException(other.pe);
12365
      }
12366
    }
12367
 
695 rajveer 12368
    public updatePaymentDetails_result deepCopy() {
12369
      return new updatePaymentDetails_result(this);
420 ashish 12370
    }
12371
 
3430 rajveer 12372
    @Override
12373
    public void clear() {
12374
      setSuccessIsSet(false);
12375
      this.success = false;
12376
      this.pe = null;
420 ashish 12377
    }
12378
 
695 rajveer 12379
    public boolean isSuccess() {
12380
      return this.success;
12381
    }
12382
 
3430 rajveer 12383
    public void setSuccess(boolean success) {
695 rajveer 12384
      this.success = success;
12385
      setSuccessIsSet(true);
12386
    }
12387
 
12388
    public void unsetSuccess() {
12389
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12390
    }
12391
 
3430 rajveer 12392
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
695 rajveer 12393
    public boolean isSetSuccess() {
12394
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12395
    }
12396
 
12397
    public void setSuccessIsSet(boolean value) {
12398
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12399
    }
12400
 
420 ashish 12401
    public PaymentException getPe() {
12402
      return this.pe;
12403
    }
12404
 
3430 rajveer 12405
    public void setPe(PaymentException pe) {
420 ashish 12406
      this.pe = pe;
12407
    }
12408
 
12409
    public void unsetPe() {
12410
      this.pe = null;
12411
    }
12412
 
3430 rajveer 12413
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
420 ashish 12414
    public boolean isSetPe() {
12415
      return this.pe != null;
12416
    }
12417
 
12418
    public void setPeIsSet(boolean value) {
12419
      if (!value) {
12420
        this.pe = null;
12421
      }
12422
    }
12423
 
12424
    public void setFieldValue(_Fields field, Object value) {
12425
      switch (field) {
695 rajveer 12426
      case SUCCESS:
12427
        if (value == null) {
12428
          unsetSuccess();
12429
        } else {
12430
          setSuccess((Boolean)value);
12431
        }
12432
        break;
12433
 
420 ashish 12434
      case PE:
12435
        if (value == null) {
12436
          unsetPe();
12437
        } else {
12438
          setPe((PaymentException)value);
12439
        }
12440
        break;
12441
 
12442
      }
12443
    }
12444
 
12445
    public Object getFieldValue(_Fields field) {
12446
      switch (field) {
695 rajveer 12447
      case SUCCESS:
3430 rajveer 12448
        return Boolean.valueOf(isSuccess());
695 rajveer 12449
 
420 ashish 12450
      case PE:
12451
        return getPe();
12452
 
12453
      }
12454
      throw new IllegalStateException();
12455
    }
12456
 
3430 rajveer 12457
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12458
    public boolean isSet(_Fields field) {
12459
      if (field == null) {
12460
        throw new IllegalArgumentException();
12461
      }
420 ashish 12462
 
12463
      switch (field) {
695 rajveer 12464
      case SUCCESS:
12465
        return isSetSuccess();
420 ashish 12466
      case PE:
12467
        return isSetPe();
12468
      }
12469
      throw new IllegalStateException();
12470
    }
12471
 
12472
    @Override
12473
    public boolean equals(Object that) {
12474
      if (that == null)
12475
        return false;
695 rajveer 12476
      if (that instanceof updatePaymentDetails_result)
12477
        return this.equals((updatePaymentDetails_result)that);
420 ashish 12478
      return false;
12479
    }
12480
 
695 rajveer 12481
    public boolean equals(updatePaymentDetails_result that) {
420 ashish 12482
      if (that == null)
12483
        return false;
12484
 
695 rajveer 12485
      boolean this_present_success = true;
12486
      boolean that_present_success = true;
12487
      if (this_present_success || that_present_success) {
12488
        if (!(this_present_success && that_present_success))
12489
          return false;
12490
        if (this.success != that.success)
12491
          return false;
12492
      }
12493
 
420 ashish 12494
      boolean this_present_pe = true && this.isSetPe();
12495
      boolean that_present_pe = true && that.isSetPe();
12496
      if (this_present_pe || that_present_pe) {
12497
        if (!(this_present_pe && that_present_pe))
12498
          return false;
12499
        if (!this.pe.equals(that.pe))
12500
          return false;
12501
      }
12502
 
12503
      return true;
12504
    }
12505
 
12506
    @Override
12507
    public int hashCode() {
12508
      return 0;
12509
    }
12510
 
695 rajveer 12511
    public int compareTo(updatePaymentDetails_result other) {
420 ashish 12512
      if (!getClass().equals(other.getClass())) {
12513
        return getClass().getName().compareTo(other.getClass().getName());
12514
      }
12515
 
12516
      int lastComparison = 0;
695 rajveer 12517
      updatePaymentDetails_result typedOther = (updatePaymentDetails_result)other;
420 ashish 12518
 
3430 rajveer 12519
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
695 rajveer 12520
      if (lastComparison != 0) {
12521
        return lastComparison;
12522
      }
3430 rajveer 12523
      if (isSetSuccess()) {
12524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12525
        if (lastComparison != 0) {
12526
          return lastComparison;
12527
        }
695 rajveer 12528
      }
3430 rajveer 12529
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
420 ashish 12530
      if (lastComparison != 0) {
12531
        return lastComparison;
12532
      }
3430 rajveer 12533
      if (isSetPe()) {
12534
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
12535
        if (lastComparison != 0) {
12536
          return lastComparison;
12537
        }
420 ashish 12538
      }
12539
      return 0;
12540
    }
12541
 
3430 rajveer 12542
    public _Fields fieldForId(int fieldId) {
12543
      return _Fields.findByThriftId(fieldId);
12544
    }
12545
 
12546
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12547
      org.apache.thrift.protocol.TField field;
420 ashish 12548
      iprot.readStructBegin();
12549
      while (true)
12550
      {
12551
        field = iprot.readFieldBegin();
3430 rajveer 12552
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
420 ashish 12553
          break;
12554
        }
3430 rajveer 12555
        switch (field.id) {
12556
          case 0: // SUCCESS
12557
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12558
              this.success = iprot.readBool();
12559
              setSuccessIsSet(true);
12560
            } else { 
12561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12562
            }
12563
            break;
12564
          case 1: // PE
12565
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12566
              this.pe = new PaymentException();
12567
              this.pe.read(iprot);
12568
            } else { 
12569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12570
            }
12571
            break;
12572
          default:
12573
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
420 ashish 12574
        }
3430 rajveer 12575
        iprot.readFieldEnd();
420 ashish 12576
      }
12577
      iprot.readStructEnd();
12578
      validate();
12579
    }
12580
 
3430 rajveer 12581
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
420 ashish 12582
      oprot.writeStructBegin(STRUCT_DESC);
12583
 
695 rajveer 12584
      if (this.isSetSuccess()) {
12585
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12586
        oprot.writeBool(this.success);
12587
        oprot.writeFieldEnd();
12588
      } else if (this.isSetPe()) {
420 ashish 12589
        oprot.writeFieldBegin(PE_FIELD_DESC);
12590
        this.pe.write(oprot);
12591
        oprot.writeFieldEnd();
12592
      }
12593
      oprot.writeFieldStop();
12594
      oprot.writeStructEnd();
12595
    }
12596
 
12597
    @Override
12598
    public String toString() {
695 rajveer 12599
      StringBuilder sb = new StringBuilder("updatePaymentDetails_result(");
420 ashish 12600
      boolean first = true;
12601
 
695 rajveer 12602
      sb.append("success:");
12603
      sb.append(this.success);
12604
      first = false;
12605
      if (!first) sb.append(", ");
420 ashish 12606
      sb.append("pe:");
12607
      if (this.pe == null) {
12608
        sb.append("null");
12609
      } else {
12610
        sb.append(this.pe);
12611
      }
12612
      first = false;
12613
      sb.append(")");
12614
      return sb.toString();
12615
    }
12616
 
3430 rajveer 12617
    public void validate() throws org.apache.thrift.TException {
420 ashish 12618
      // check for required fields
12619
    }
12620
 
3430 rajveer 12621
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12622
      try {
12623
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12624
      } catch (org.apache.thrift.TException te) {
12625
        throw new java.io.IOException(te);
12626
      }
12627
    }
12628
 
12629
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12630
      try {
12631
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12632
      } catch (org.apache.thrift.TException te) {
12633
        throw new java.io.IOException(te);
12634
      }
12635
    }
12636
 
420 ashish 12637
  }
12638
 
3430 rajveer 12639
  public static class getSuccessfulPaymentsAmountRange_args implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_args, getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable   {
12640
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_args");
1629 ankur.sing 12641
 
12642
 
12643
 
12644
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12645
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 12646
;
12647
 
12648
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12649
 
12650
      static {
12651
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12652
          byName.put(field.getFieldName(), field);
12653
        }
12654
      }
12655
 
12656
      /**
12657
       * Find the _Fields constant that matches fieldId, or null if its not found.
12658
       */
12659
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12660
        switch(fieldId) {
12661
          default:
12662
            return null;
12663
        }
1629 ankur.sing 12664
      }
12665
 
12666
      /**
12667
       * Find the _Fields constant that matches fieldId, throwing an exception
12668
       * if it is not found.
12669
       */
12670
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12671
        _Fields fields = findByThriftId(fieldId);
12672
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12673
        return fields;
12674
      }
12675
 
12676
      /**
12677
       * Find the _Fields constant that matches name, or null if its not found.
12678
       */
12679
      public static _Fields findByName(String name) {
12680
        return byName.get(name);
12681
      }
12682
 
12683
      private final short _thriftId;
12684
      private final String _fieldName;
12685
 
12686
      _Fields(short thriftId, String fieldName) {
12687
        _thriftId = thriftId;
12688
        _fieldName = fieldName;
12689
      }
12690
 
12691
      public short getThriftFieldId() {
12692
        return _thriftId;
12693
      }
12694
 
12695
      public String getFieldName() {
12696
        return _fieldName;
12697
      }
12698
    }
3430 rajveer 12699
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 12700
    static {
3430 rajveer 12701
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12702
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12703
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
1629 ankur.sing 12704
    }
12705
 
1731 ankur.sing 12706
    public getSuccessfulPaymentsAmountRange_args() {
1629 ankur.sing 12707
    }
12708
 
12709
    /**
12710
     * Performs a deep copy on <i>other</i>.
12711
     */
1731 ankur.sing 12712
    public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 12713
    }
12714
 
1731 ankur.sing 12715
    public getSuccessfulPaymentsAmountRange_args deepCopy() {
12716
      return new getSuccessfulPaymentsAmountRange_args(this);
1629 ankur.sing 12717
    }
12718
 
3430 rajveer 12719
    @Override
12720
    public void clear() {
1629 ankur.sing 12721
    }
12722
 
12723
    public void setFieldValue(_Fields field, Object value) {
12724
      switch (field) {
12725
      }
12726
    }
12727
 
12728
    public Object getFieldValue(_Fields field) {
12729
      switch (field) {
12730
      }
12731
      throw new IllegalStateException();
12732
    }
12733
 
3430 rajveer 12734
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12735
    public boolean isSet(_Fields field) {
12736
      if (field == null) {
12737
        throw new IllegalArgumentException();
12738
      }
1629 ankur.sing 12739
 
12740
      switch (field) {
12741
      }
12742
      throw new IllegalStateException();
12743
    }
12744
 
12745
    @Override
12746
    public boolean equals(Object that) {
12747
      if (that == null)
12748
        return false;
1731 ankur.sing 12749
      if (that instanceof getSuccessfulPaymentsAmountRange_args)
12750
        return this.equals((getSuccessfulPaymentsAmountRange_args)that);
1629 ankur.sing 12751
      return false;
12752
    }
12753
 
1731 ankur.sing 12754
    public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
1629 ankur.sing 12755
      if (that == null)
12756
        return false;
12757
 
12758
      return true;
12759
    }
12760
 
12761
    @Override
12762
    public int hashCode() {
12763
      return 0;
12764
    }
12765
 
1731 ankur.sing 12766
    public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
1629 ankur.sing 12767
      if (!getClass().equals(other.getClass())) {
12768
        return getClass().getName().compareTo(other.getClass().getName());
12769
      }
12770
 
12771
      int lastComparison = 0;
1731 ankur.sing 12772
      getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
1629 ankur.sing 12773
 
12774
      return 0;
12775
    }
12776
 
3430 rajveer 12777
    public _Fields fieldForId(int fieldId) {
12778
      return _Fields.findByThriftId(fieldId);
12779
    }
12780
 
12781
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12782
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 12783
      iprot.readStructBegin();
12784
      while (true)
12785
      {
12786
        field = iprot.readFieldBegin();
3430 rajveer 12787
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 12788
          break;
12789
        }
3430 rajveer 12790
        switch (field.id) {
12791
          default:
12792
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 12793
        }
3430 rajveer 12794
        iprot.readFieldEnd();
1629 ankur.sing 12795
      }
12796
      iprot.readStructEnd();
12797
      validate();
12798
    }
12799
 
3430 rajveer 12800
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 12801
      validate();
12802
 
12803
      oprot.writeStructBegin(STRUCT_DESC);
12804
      oprot.writeFieldStop();
12805
      oprot.writeStructEnd();
12806
    }
12807
 
12808
    @Override
12809
    public String toString() {
1731 ankur.sing 12810
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
1629 ankur.sing 12811
      boolean first = true;
12812
 
12813
      sb.append(")");
12814
      return sb.toString();
12815
    }
12816
 
3430 rajveer 12817
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 12818
      // check for required fields
12819
    }
12820
 
3430 rajveer 12821
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12822
      try {
12823
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12824
      } catch (org.apache.thrift.TException te) {
12825
        throw new java.io.IOException(te);
12826
      }
12827
    }
12828
 
12829
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12830
      try {
12831
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12832
      } catch (org.apache.thrift.TException te) {
12833
        throw new java.io.IOException(te);
12834
      }
12835
    }
12836
 
1629 ankur.sing 12837
  }
12838
 
3430 rajveer 12839
  public static class getSuccessfulPaymentsAmountRange_result implements org.apache.thrift.TBase<getSuccessfulPaymentsAmountRange_result, getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable   {
12840
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentsAmountRange_result");
1629 ankur.sing 12841
 
3430 rajveer 12842
    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 12843
 
3430 rajveer 12844
    private List<Double> success; // required
1629 ankur.sing 12845
 
12846
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12847
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1629 ankur.sing 12848
      SUCCESS((short)0, "success");
12849
 
12850
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12851
 
12852
      static {
12853
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12854
          byName.put(field.getFieldName(), field);
12855
        }
12856
      }
12857
 
12858
      /**
12859
       * Find the _Fields constant that matches fieldId, or null if its not found.
12860
       */
12861
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12862
        switch(fieldId) {
12863
          case 0: // SUCCESS
12864
            return SUCCESS;
12865
          default:
12866
            return null;
12867
        }
1629 ankur.sing 12868
      }
12869
 
12870
      /**
12871
       * Find the _Fields constant that matches fieldId, throwing an exception
12872
       * if it is not found.
12873
       */
12874
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12875
        _Fields fields = findByThriftId(fieldId);
12876
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12877
        return fields;
12878
      }
12879
 
12880
      /**
12881
       * Find the _Fields constant that matches name, or null if its not found.
12882
       */
12883
      public static _Fields findByName(String name) {
12884
        return byName.get(name);
12885
      }
12886
 
12887
      private final short _thriftId;
12888
      private final String _fieldName;
12889
 
12890
      _Fields(short thriftId, String fieldName) {
12891
        _thriftId = thriftId;
12892
        _fieldName = fieldName;
12893
      }
12894
 
12895
      public short getThriftFieldId() {
12896
        return _thriftId;
12897
      }
12898
 
12899
      public String getFieldName() {
12900
        return _fieldName;
12901
      }
12902
    }
12903
 
12904
    // isset id assignments
12905
 
3430 rajveer 12906
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1629 ankur.sing 12907
    static {
3430 rajveer 12908
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12909
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12910
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
12911
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE))));
12912
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12913
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
1629 ankur.sing 12914
    }
12915
 
1731 ankur.sing 12916
    public getSuccessfulPaymentsAmountRange_result() {
1629 ankur.sing 12917
    }
12918
 
1731 ankur.sing 12919
    public getSuccessfulPaymentsAmountRange_result(
12920
      List<Double> success)
1629 ankur.sing 12921
    {
12922
      this();
12923
      this.success = success;
12924
    }
12925
 
12926
    /**
12927
     * Performs a deep copy on <i>other</i>.
12928
     */
1731 ankur.sing 12929
    public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
12930
      if (other.isSetSuccess()) {
12931
        List<Double> __this__success = new ArrayList<Double>();
12932
        for (Double other_element : other.success) {
12933
          __this__success.add(other_element);
1629 ankur.sing 12934
        }
1731 ankur.sing 12935
        this.success = __this__success;
1629 ankur.sing 12936
      }
12937
    }
12938
 
1731 ankur.sing 12939
    public getSuccessfulPaymentsAmountRange_result deepCopy() {
12940
      return new getSuccessfulPaymentsAmountRange_result(this);
1629 ankur.sing 12941
    }
12942
 
3430 rajveer 12943
    @Override
12944
    public void clear() {
12945
      this.success = null;
1629 ankur.sing 12946
    }
12947
 
1731 ankur.sing 12948
    public int getSuccessSize() {
12949
      return (this.success == null) ? 0 : this.success.size();
1629 ankur.sing 12950
    }
12951
 
1731 ankur.sing 12952
    public java.util.Iterator<Double> getSuccessIterator() {
12953
      return (this.success == null) ? null : this.success.iterator();
1629 ankur.sing 12954
    }
12955
 
1731 ankur.sing 12956
    public void addToSuccess(double elem) {
12957
      if (this.success == null) {
12958
        this.success = new ArrayList<Double>();
1629 ankur.sing 12959
      }
1731 ankur.sing 12960
      this.success.add(elem);
1629 ankur.sing 12961
    }
12962
 
1731 ankur.sing 12963
    public List<Double> getSuccess() {
1629 ankur.sing 12964
      return this.success;
12965
    }
12966
 
3430 rajveer 12967
    public void setSuccess(List<Double> success) {
1629 ankur.sing 12968
      this.success = success;
12969
    }
12970
 
12971
    public void unsetSuccess() {
1731 ankur.sing 12972
      this.success = null;
1629 ankur.sing 12973
    }
12974
 
3430 rajveer 12975
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1629 ankur.sing 12976
    public boolean isSetSuccess() {
1731 ankur.sing 12977
      return this.success != null;
1629 ankur.sing 12978
    }
12979
 
12980
    public void setSuccessIsSet(boolean value) {
1731 ankur.sing 12981
      if (!value) {
12982
        this.success = null;
12983
      }
1629 ankur.sing 12984
    }
12985
 
12986
    public void setFieldValue(_Fields field, Object value) {
12987
      switch (field) {
12988
      case SUCCESS:
12989
        if (value == null) {
12990
          unsetSuccess();
12991
        } else {
1731 ankur.sing 12992
          setSuccess((List<Double>)value);
1629 ankur.sing 12993
        }
12994
        break;
12995
 
12996
      }
12997
    }
12998
 
12999
    public Object getFieldValue(_Fields field) {
13000
      switch (field) {
13001
      case SUCCESS:
1731 ankur.sing 13002
        return getSuccess();
1629 ankur.sing 13003
 
13004
      }
13005
      throw new IllegalStateException();
13006
    }
13007
 
3430 rajveer 13008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13009
    public boolean isSet(_Fields field) {
13010
      if (field == null) {
13011
        throw new IllegalArgumentException();
13012
      }
1629 ankur.sing 13013
 
13014
      switch (field) {
13015
      case SUCCESS:
13016
        return isSetSuccess();
13017
      }
13018
      throw new IllegalStateException();
13019
    }
13020
 
13021
    @Override
13022
    public boolean equals(Object that) {
13023
      if (that == null)
13024
        return false;
1731 ankur.sing 13025
      if (that instanceof getSuccessfulPaymentsAmountRange_result)
13026
        return this.equals((getSuccessfulPaymentsAmountRange_result)that);
1629 ankur.sing 13027
      return false;
13028
    }
13029
 
1731 ankur.sing 13030
    public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
1629 ankur.sing 13031
      if (that == null)
13032
        return false;
13033
 
1731 ankur.sing 13034
      boolean this_present_success = true && this.isSetSuccess();
13035
      boolean that_present_success = true && that.isSetSuccess();
1629 ankur.sing 13036
      if (this_present_success || that_present_success) {
13037
        if (!(this_present_success && that_present_success))
13038
          return false;
1731 ankur.sing 13039
        if (!this.success.equals(that.success))
1629 ankur.sing 13040
          return false;
13041
      }
13042
 
13043
      return true;
13044
    }
13045
 
13046
    @Override
13047
    public int hashCode() {
13048
      return 0;
13049
    }
13050
 
1731 ankur.sing 13051
    public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
1629 ankur.sing 13052
      if (!getClass().equals(other.getClass())) {
13053
        return getClass().getName().compareTo(other.getClass().getName());
13054
      }
13055
 
13056
      int lastComparison = 0;
1731 ankur.sing 13057
      getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
1629 ankur.sing 13058
 
3430 rajveer 13059
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1629 ankur.sing 13060
      if (lastComparison != 0) {
13061
        return lastComparison;
13062
      }
3430 rajveer 13063
      if (isSetSuccess()) {
13064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13065
        if (lastComparison != 0) {
13066
          return lastComparison;
13067
        }
1629 ankur.sing 13068
      }
13069
      return 0;
13070
    }
13071
 
3430 rajveer 13072
    public _Fields fieldForId(int fieldId) {
13073
      return _Fields.findByThriftId(fieldId);
13074
    }
13075
 
13076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13077
      org.apache.thrift.protocol.TField field;
1629 ankur.sing 13078
      iprot.readStructBegin();
13079
      while (true)
13080
      {
13081
        field = iprot.readFieldBegin();
3430 rajveer 13082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1629 ankur.sing 13083
          break;
13084
        }
3430 rajveer 13085
        switch (field.id) {
13086
          case 0: // SUCCESS
13087
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13088
              {
7049 anupam.sin 13089
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
13090
                this.success = new ArrayList<Double>(_list40.size);
13091
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
1731 ankur.sing 13092
                {
7049 anupam.sin 13093
                  double _elem42; // required
13094
                  _elem42 = iprot.readDouble();
13095
                  this.success.add(_elem42);
1731 ankur.sing 13096
                }
3430 rajveer 13097
                iprot.readListEnd();
1629 ankur.sing 13098
              }
3430 rajveer 13099
            } else { 
13100
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13101
            }
13102
            break;
13103
          default:
13104
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1629 ankur.sing 13105
        }
3430 rajveer 13106
        iprot.readFieldEnd();
1629 ankur.sing 13107
      }
13108
      iprot.readStructEnd();
13109
      validate();
13110
    }
13111
 
3430 rajveer 13112
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1629 ankur.sing 13113
      oprot.writeStructBegin(STRUCT_DESC);
13114
 
13115
      if (this.isSetSuccess()) {
13116
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1731 ankur.sing 13117
        {
3430 rajveer 13118
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
7049 anupam.sin 13119
          for (double _iter43 : this.success)
1731 ankur.sing 13120
          {
7049 anupam.sin 13121
            oprot.writeDouble(_iter43);
1731 ankur.sing 13122
          }
13123
          oprot.writeListEnd();
13124
        }
1629 ankur.sing 13125
        oprot.writeFieldEnd();
13126
      }
13127
      oprot.writeFieldStop();
13128
      oprot.writeStructEnd();
13129
    }
13130
 
13131
    @Override
13132
    public String toString() {
1731 ankur.sing 13133
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
1629 ankur.sing 13134
      boolean first = true;
13135
 
13136
      sb.append("success:");
1731 ankur.sing 13137
      if (this.success == null) {
13138
        sb.append("null");
13139
      } else {
13140
        sb.append(this.success);
13141
      }
1629 ankur.sing 13142
      first = false;
13143
      sb.append(")");
13144
      return sb.toString();
13145
    }
13146
 
3430 rajveer 13147
    public void validate() throws org.apache.thrift.TException {
1629 ankur.sing 13148
      // check for required fields
13149
    }
13150
 
3430 rajveer 13151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13152
      try {
13153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13154
      } catch (org.apache.thrift.TException te) {
13155
        throw new java.io.IOException(te);
13156
      }
13157
    }
13158
 
13159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13160
      try {
13161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13162
      } catch (org.apache.thrift.TException te) {
13163
        throw new java.io.IOException(te);
13164
      }
13165
    }
13166
 
1629 ankur.sing 13167
  }
13168
 
3430 rajveer 13169
  public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
13170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
2462 chandransh 13171
 
3430 rajveer 13172
    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);
10269 amit.gupta 13173
    private static final org.apache.thrift.protocol.TField IS_MOBILE_FIELD_DESC = new org.apache.thrift.protocol.TField("isMobile", org.apache.thrift.protocol.TType.BOOL, (short)2);
2462 chandransh 13174
 
3430 rajveer 13175
    private long merchantPaymentId; // required
10269 amit.gupta 13176
    private boolean isMobile; // required
2462 chandransh 13177
 
13178
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13179
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10269 amit.gupta 13180
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
13181
      IS_MOBILE((short)2, "isMobile");
2462 chandransh 13182
 
13183
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13184
 
13185
      static {
13186
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13187
          byName.put(field.getFieldName(), field);
13188
        }
13189
      }
13190
 
13191
      /**
13192
       * Find the _Fields constant that matches fieldId, or null if its not found.
13193
       */
13194
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13195
        switch(fieldId) {
13196
          case 1: // MERCHANT_PAYMENT_ID
13197
            return MERCHANT_PAYMENT_ID;
10269 amit.gupta 13198
          case 2: // IS_MOBILE
13199
            return IS_MOBILE;
3430 rajveer 13200
          default:
13201
            return null;
13202
        }
2462 chandransh 13203
      }
13204
 
13205
      /**
13206
       * Find the _Fields constant that matches fieldId, throwing an exception
13207
       * if it is not found.
13208
       */
13209
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13210
        _Fields fields = findByThriftId(fieldId);
13211
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13212
        return fields;
13213
      }
13214
 
13215
      /**
13216
       * Find the _Fields constant that matches name, or null if its not found.
13217
       */
13218
      public static _Fields findByName(String name) {
13219
        return byName.get(name);
13220
      }
13221
 
13222
      private final short _thriftId;
13223
      private final String _fieldName;
13224
 
13225
      _Fields(short thriftId, String fieldName) {
13226
        _thriftId = thriftId;
13227
        _fieldName = fieldName;
13228
      }
13229
 
13230
      public short getThriftFieldId() {
13231
        return _thriftId;
13232
      }
13233
 
13234
      public String getFieldName() {
13235
        return _fieldName;
13236
      }
13237
    }
13238
 
13239
    // isset id assignments
13240
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
10269 amit.gupta 13241
    private static final int __ISMOBILE_ISSET_ID = 1;
13242
    private BitSet __isset_bit_vector = new BitSet(2);
2462 chandransh 13243
 
3430 rajveer 13244
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 13245
    static {
3430 rajveer 13246
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13247
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13248
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10269 amit.gupta 13249
      tmpMap.put(_Fields.IS_MOBILE, new org.apache.thrift.meta_data.FieldMetaData("isMobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13250
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 13251
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13252
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
2462 chandransh 13253
    }
13254
 
3010 chandransh 13255
    public initializeHdfcPayment_args() {
2462 chandransh 13256
    }
13257
 
3010 chandransh 13258
    public initializeHdfcPayment_args(
10269 amit.gupta 13259
      long merchantPaymentId,
13260
      boolean isMobile)
2462 chandransh 13261
    {
13262
      this();
13263
      this.merchantPaymentId = merchantPaymentId;
13264
      setMerchantPaymentIdIsSet(true);
10269 amit.gupta 13265
      this.isMobile = isMobile;
13266
      setIsMobileIsSet(true);
2462 chandransh 13267
    }
13268
 
13269
    /**
13270
     * Performs a deep copy on <i>other</i>.
13271
     */
3010 chandransh 13272
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
2462 chandransh 13273
      __isset_bit_vector.clear();
13274
      __isset_bit_vector.or(other.__isset_bit_vector);
13275
      this.merchantPaymentId = other.merchantPaymentId;
10269 amit.gupta 13276
      this.isMobile = other.isMobile;
2462 chandransh 13277
    }
13278
 
3010 chandransh 13279
    public initializeHdfcPayment_args deepCopy() {
13280
      return new initializeHdfcPayment_args(this);
2462 chandransh 13281
    }
13282
 
3430 rajveer 13283
    @Override
13284
    public void clear() {
13285
      setMerchantPaymentIdIsSet(false);
13286
      this.merchantPaymentId = 0;
10269 amit.gupta 13287
      setIsMobileIsSet(false);
13288
      this.isMobile = false;
2462 chandransh 13289
    }
13290
 
13291
    public long getMerchantPaymentId() {
13292
      return this.merchantPaymentId;
13293
    }
13294
 
3430 rajveer 13295
    public void setMerchantPaymentId(long merchantPaymentId) {
2462 chandransh 13296
      this.merchantPaymentId = merchantPaymentId;
13297
      setMerchantPaymentIdIsSet(true);
13298
    }
13299
 
13300
    public void unsetMerchantPaymentId() {
13301
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
13302
    }
13303
 
3430 rajveer 13304
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
2462 chandransh 13305
    public boolean isSetMerchantPaymentId() {
13306
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
13307
    }
13308
 
13309
    public void setMerchantPaymentIdIsSet(boolean value) {
13310
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
13311
    }
13312
 
10269 amit.gupta 13313
    public boolean isIsMobile() {
13314
      return this.isMobile;
13315
    }
13316
 
13317
    public void setIsMobile(boolean isMobile) {
13318
      this.isMobile = isMobile;
13319
      setIsMobileIsSet(true);
13320
    }
13321
 
13322
    public void unsetIsMobile() {
13323
      __isset_bit_vector.clear(__ISMOBILE_ISSET_ID);
13324
    }
13325
 
13326
    /** Returns true if field isMobile is set (has been assigned a value) and false otherwise */
13327
    public boolean isSetIsMobile() {
13328
      return __isset_bit_vector.get(__ISMOBILE_ISSET_ID);
13329
    }
13330
 
13331
    public void setIsMobileIsSet(boolean value) {
13332
      __isset_bit_vector.set(__ISMOBILE_ISSET_ID, value);
13333
    }
13334
 
2462 chandransh 13335
    public void setFieldValue(_Fields field, Object value) {
13336
      switch (field) {
13337
      case MERCHANT_PAYMENT_ID:
13338
        if (value == null) {
13339
          unsetMerchantPaymentId();
13340
        } else {
13341
          setMerchantPaymentId((Long)value);
13342
        }
13343
        break;
13344
 
10269 amit.gupta 13345
      case IS_MOBILE:
13346
        if (value == null) {
13347
          unsetIsMobile();
13348
        } else {
13349
          setIsMobile((Boolean)value);
13350
        }
13351
        break;
13352
 
2462 chandransh 13353
      }
13354
    }
13355
 
13356
    public Object getFieldValue(_Fields field) {
13357
      switch (field) {
13358
      case MERCHANT_PAYMENT_ID:
3430 rajveer 13359
        return Long.valueOf(getMerchantPaymentId());
2462 chandransh 13360
 
10269 amit.gupta 13361
      case IS_MOBILE:
13362
        return Boolean.valueOf(isIsMobile());
13363
 
2462 chandransh 13364
      }
13365
      throw new IllegalStateException();
13366
    }
13367
 
3430 rajveer 13368
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13369
    public boolean isSet(_Fields field) {
13370
      if (field == null) {
13371
        throw new IllegalArgumentException();
13372
      }
2462 chandransh 13373
 
13374
      switch (field) {
13375
      case MERCHANT_PAYMENT_ID:
13376
        return isSetMerchantPaymentId();
10269 amit.gupta 13377
      case IS_MOBILE:
13378
        return isSetIsMobile();
2462 chandransh 13379
      }
13380
      throw new IllegalStateException();
13381
    }
13382
 
13383
    @Override
13384
    public boolean equals(Object that) {
13385
      if (that == null)
13386
        return false;
3010 chandransh 13387
      if (that instanceof initializeHdfcPayment_args)
13388
        return this.equals((initializeHdfcPayment_args)that);
2462 chandransh 13389
      return false;
13390
    }
13391
 
3010 chandransh 13392
    public boolean equals(initializeHdfcPayment_args that) {
2462 chandransh 13393
      if (that == null)
13394
        return false;
13395
 
13396
      boolean this_present_merchantPaymentId = true;
13397
      boolean that_present_merchantPaymentId = true;
13398
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
13399
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
13400
          return false;
13401
        if (this.merchantPaymentId != that.merchantPaymentId)
13402
          return false;
13403
      }
13404
 
10269 amit.gupta 13405
      boolean this_present_isMobile = true;
13406
      boolean that_present_isMobile = true;
13407
      if (this_present_isMobile || that_present_isMobile) {
13408
        if (!(this_present_isMobile && that_present_isMobile))
13409
          return false;
13410
        if (this.isMobile != that.isMobile)
13411
          return false;
13412
      }
13413
 
2462 chandransh 13414
      return true;
13415
    }
13416
 
13417
    @Override
13418
    public int hashCode() {
13419
      return 0;
13420
    }
13421
 
3010 chandransh 13422
    public int compareTo(initializeHdfcPayment_args other) {
2462 chandransh 13423
      if (!getClass().equals(other.getClass())) {
13424
        return getClass().getName().compareTo(other.getClass().getName());
13425
      }
13426
 
13427
      int lastComparison = 0;
3010 chandransh 13428
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
2462 chandransh 13429
 
3430 rajveer 13430
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
2462 chandransh 13431
      if (lastComparison != 0) {
13432
        return lastComparison;
13433
      }
3430 rajveer 13434
      if (isSetMerchantPaymentId()) {
13435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
13436
        if (lastComparison != 0) {
13437
          return lastComparison;
13438
        }
2462 chandransh 13439
      }
10269 amit.gupta 13440
      lastComparison = Boolean.valueOf(isSetIsMobile()).compareTo(typedOther.isSetIsMobile());
13441
      if (lastComparison != 0) {
13442
        return lastComparison;
13443
      }
13444
      if (isSetIsMobile()) {
13445
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isMobile, typedOther.isMobile);
13446
        if (lastComparison != 0) {
13447
          return lastComparison;
13448
        }
13449
      }
2462 chandransh 13450
      return 0;
13451
    }
13452
 
3430 rajveer 13453
    public _Fields fieldForId(int fieldId) {
13454
      return _Fields.findByThriftId(fieldId);
13455
    }
13456
 
13457
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13458
      org.apache.thrift.protocol.TField field;
2462 chandransh 13459
      iprot.readStructBegin();
13460
      while (true)
13461
      {
13462
        field = iprot.readFieldBegin();
3430 rajveer 13463
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 13464
          break;
13465
        }
3430 rajveer 13466
        switch (field.id) {
13467
          case 1: // MERCHANT_PAYMENT_ID
13468
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13469
              this.merchantPaymentId = iprot.readI64();
13470
              setMerchantPaymentIdIsSet(true);
13471
            } else { 
13472
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13473
            }
13474
            break;
10269 amit.gupta 13475
          case 2: // IS_MOBILE
13476
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13477
              this.isMobile = iprot.readBool();
13478
              setIsMobileIsSet(true);
13479
            } else { 
13480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13481
            }
13482
            break;
3430 rajveer 13483
          default:
13484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 13485
        }
3430 rajveer 13486
        iprot.readFieldEnd();
2462 chandransh 13487
      }
13488
      iprot.readStructEnd();
13489
      validate();
13490
    }
13491
 
3430 rajveer 13492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 13493
      validate();
13494
 
13495
      oprot.writeStructBegin(STRUCT_DESC);
13496
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
13497
      oprot.writeI64(this.merchantPaymentId);
13498
      oprot.writeFieldEnd();
10269 amit.gupta 13499
      oprot.writeFieldBegin(IS_MOBILE_FIELD_DESC);
13500
      oprot.writeBool(this.isMobile);
13501
      oprot.writeFieldEnd();
2462 chandransh 13502
      oprot.writeFieldStop();
13503
      oprot.writeStructEnd();
13504
    }
13505
 
13506
    @Override
13507
    public String toString() {
3010 chandransh 13508
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
2462 chandransh 13509
      boolean first = true;
13510
 
13511
      sb.append("merchantPaymentId:");
13512
      sb.append(this.merchantPaymentId);
13513
      first = false;
10269 amit.gupta 13514
      if (!first) sb.append(", ");
13515
      sb.append("isMobile:");
13516
      sb.append(this.isMobile);
13517
      first = false;
2462 chandransh 13518
      sb.append(")");
13519
      return sb.toString();
13520
    }
13521
 
3430 rajveer 13522
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 13523
      // check for required fields
13524
    }
13525
 
3430 rajveer 13526
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13527
      try {
13528
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13529
      } catch (org.apache.thrift.TException te) {
13530
        throw new java.io.IOException(te);
13531
      }
13532
    }
13533
 
13534
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13535
      try {
13536
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13537
      } catch (org.apache.thrift.TException te) {
13538
        throw new java.io.IOException(te);
13539
      }
13540
    }
13541
 
2462 chandransh 13542
  }
13543
 
3430 rajveer 13544
  public static class initializeHdfcPayment_result implements org.apache.thrift.TBase<initializeHdfcPayment_result, initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
13545
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_result");
2462 chandransh 13546
 
3430 rajveer 13547
    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);
13548
    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 13549
 
3430 rajveer 13550
    private String success; // required
13551
    private PaymentException pe; // required
2462 chandransh 13552
 
13553
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13554
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 13555
      SUCCESS((short)0, "success"),
13556
      PE((short)1, "pe");
13557
 
13558
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13559
 
13560
      static {
13561
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13562
          byName.put(field.getFieldName(), field);
13563
        }
13564
      }
13565
 
13566
      /**
13567
       * Find the _Fields constant that matches fieldId, or null if its not found.
13568
       */
13569
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13570
        switch(fieldId) {
13571
          case 0: // SUCCESS
13572
            return SUCCESS;
13573
          case 1: // PE
13574
            return PE;
13575
          default:
13576
            return null;
13577
        }
2462 chandransh 13578
      }
13579
 
13580
      /**
13581
       * Find the _Fields constant that matches fieldId, throwing an exception
13582
       * if it is not found.
13583
       */
13584
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13585
        _Fields fields = findByThriftId(fieldId);
13586
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13587
        return fields;
13588
      }
13589
 
13590
      /**
13591
       * Find the _Fields constant that matches name, or null if its not found.
13592
       */
13593
      public static _Fields findByName(String name) {
13594
        return byName.get(name);
13595
      }
13596
 
13597
      private final short _thriftId;
13598
      private final String _fieldName;
13599
 
13600
      _Fields(short thriftId, String fieldName) {
13601
        _thriftId = thriftId;
13602
        _fieldName = fieldName;
13603
      }
13604
 
13605
      public short getThriftFieldId() {
13606
        return _thriftId;
13607
      }
13608
 
13609
      public String getFieldName() {
13610
        return _fieldName;
13611
      }
13612
    }
13613
 
13614
    // isset id assignments
13615
 
3430 rajveer 13616
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 13617
    static {
3430 rajveer 13618
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13619
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13620
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13621
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13622
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13623
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13624
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
2462 chandransh 13625
    }
13626
 
3010 chandransh 13627
    public initializeHdfcPayment_result() {
2462 chandransh 13628
    }
13629
 
3010 chandransh 13630
    public initializeHdfcPayment_result(
13631
      String success,
2462 chandransh 13632
      PaymentException pe)
13633
    {
13634
      this();
13635
      this.success = success;
13636
      this.pe = pe;
13637
    }
13638
 
13639
    /**
13640
     * Performs a deep copy on <i>other</i>.
13641
     */
3010 chandransh 13642
    public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
2462 chandransh 13643
      if (other.isSetSuccess()) {
3010 chandransh 13644
        this.success = other.success;
2462 chandransh 13645
      }
13646
      if (other.isSetPe()) {
13647
        this.pe = new PaymentException(other.pe);
13648
      }
13649
    }
13650
 
3010 chandransh 13651
    public initializeHdfcPayment_result deepCopy() {
13652
      return new initializeHdfcPayment_result(this);
2462 chandransh 13653
    }
13654
 
3430 rajveer 13655
    @Override
13656
    public void clear() {
13657
      this.success = null;
13658
      this.pe = null;
2462 chandransh 13659
    }
13660
 
3010 chandransh 13661
    public String getSuccess() {
2462 chandransh 13662
      return this.success;
13663
    }
13664
 
3430 rajveer 13665
    public void setSuccess(String success) {
2462 chandransh 13666
      this.success = success;
13667
    }
13668
 
13669
    public void unsetSuccess() {
13670
      this.success = null;
13671
    }
13672
 
3430 rajveer 13673
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 13674
    public boolean isSetSuccess() {
13675
      return this.success != null;
13676
    }
13677
 
13678
    public void setSuccessIsSet(boolean value) {
13679
      if (!value) {
13680
        this.success = null;
13681
      }
13682
    }
13683
 
13684
    public PaymentException getPe() {
13685
      return this.pe;
13686
    }
13687
 
3430 rajveer 13688
    public void setPe(PaymentException pe) {
2462 chandransh 13689
      this.pe = pe;
13690
    }
13691
 
13692
    public void unsetPe() {
13693
      this.pe = null;
13694
    }
13695
 
3430 rajveer 13696
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 13697
    public boolean isSetPe() {
13698
      return this.pe != null;
13699
    }
13700
 
13701
    public void setPeIsSet(boolean value) {
13702
      if (!value) {
13703
        this.pe = null;
13704
      }
13705
    }
13706
 
13707
    public void setFieldValue(_Fields field, Object value) {
13708
      switch (field) {
13709
      case SUCCESS:
13710
        if (value == null) {
13711
          unsetSuccess();
13712
        } else {
3010 chandransh 13713
          setSuccess((String)value);
2462 chandransh 13714
        }
13715
        break;
13716
 
13717
      case PE:
13718
        if (value == null) {
13719
          unsetPe();
13720
        } else {
13721
          setPe((PaymentException)value);
13722
        }
13723
        break;
13724
 
13725
      }
13726
    }
13727
 
13728
    public Object getFieldValue(_Fields field) {
13729
      switch (field) {
13730
      case SUCCESS:
13731
        return getSuccess();
13732
 
13733
      case PE:
13734
        return getPe();
13735
 
13736
      }
13737
      throw new IllegalStateException();
13738
    }
13739
 
3430 rajveer 13740
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13741
    public boolean isSet(_Fields field) {
13742
      if (field == null) {
13743
        throw new IllegalArgumentException();
13744
      }
2462 chandransh 13745
 
13746
      switch (field) {
13747
      case SUCCESS:
13748
        return isSetSuccess();
13749
      case PE:
13750
        return isSetPe();
13751
      }
13752
      throw new IllegalStateException();
13753
    }
13754
 
13755
    @Override
13756
    public boolean equals(Object that) {
13757
      if (that == null)
13758
        return false;
3010 chandransh 13759
      if (that instanceof initializeHdfcPayment_result)
13760
        return this.equals((initializeHdfcPayment_result)that);
2462 chandransh 13761
      return false;
13762
    }
13763
 
3010 chandransh 13764
    public boolean equals(initializeHdfcPayment_result that) {
2462 chandransh 13765
      if (that == null)
13766
        return false;
13767
 
13768
      boolean this_present_success = true && this.isSetSuccess();
13769
      boolean that_present_success = true && that.isSetSuccess();
13770
      if (this_present_success || that_present_success) {
13771
        if (!(this_present_success && that_present_success))
13772
          return false;
13773
        if (!this.success.equals(that.success))
13774
          return false;
13775
      }
13776
 
13777
      boolean this_present_pe = true && this.isSetPe();
13778
      boolean that_present_pe = true && that.isSetPe();
13779
      if (this_present_pe || that_present_pe) {
13780
        if (!(this_present_pe && that_present_pe))
13781
          return false;
13782
        if (!this.pe.equals(that.pe))
13783
          return false;
13784
      }
13785
 
13786
      return true;
13787
    }
13788
 
13789
    @Override
13790
    public int hashCode() {
13791
      return 0;
13792
    }
13793
 
3010 chandransh 13794
    public int compareTo(initializeHdfcPayment_result other) {
13795
      if (!getClass().equals(other.getClass())) {
13796
        return getClass().getName().compareTo(other.getClass().getName());
13797
      }
13798
 
13799
      int lastComparison = 0;
13800
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
13801
 
3430 rajveer 13802
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3010 chandransh 13803
      if (lastComparison != 0) {
13804
        return lastComparison;
13805
      }
3430 rajveer 13806
      if (isSetSuccess()) {
13807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13808
        if (lastComparison != 0) {
13809
          return lastComparison;
13810
        }
3010 chandransh 13811
      }
3430 rajveer 13812
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
3010 chandransh 13813
      if (lastComparison != 0) {
13814
        return lastComparison;
13815
      }
3430 rajveer 13816
      if (isSetPe()) {
13817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
13818
        if (lastComparison != 0) {
13819
          return lastComparison;
13820
        }
3010 chandransh 13821
      }
13822
      return 0;
13823
    }
13824
 
3430 rajveer 13825
    public _Fields fieldForId(int fieldId) {
13826
      return _Fields.findByThriftId(fieldId);
13827
    }
13828
 
13829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13830
      org.apache.thrift.protocol.TField field;
2462 chandransh 13831
      iprot.readStructBegin();
13832
      while (true)
13833
      {
13834
        field = iprot.readFieldBegin();
3430 rajveer 13835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 13836
          break;
13837
        }
3430 rajveer 13838
        switch (field.id) {
13839
          case 0: // SUCCESS
13840
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13841
              this.success = iprot.readString();
13842
            } else { 
13843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13844
            }
13845
            break;
13846
          case 1: // PE
13847
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13848
              this.pe = new PaymentException();
13849
              this.pe.read(iprot);
13850
            } else { 
13851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13852
            }
13853
            break;
13854
          default:
13855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 13856
        }
3430 rajveer 13857
        iprot.readFieldEnd();
2462 chandransh 13858
      }
13859
      iprot.readStructEnd();
13860
      validate();
13861
    }
13862
 
3430 rajveer 13863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 13864
      oprot.writeStructBegin(STRUCT_DESC);
13865
 
13866
      if (this.isSetSuccess()) {
13867
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 13868
        oprot.writeString(this.success);
2462 chandransh 13869
        oprot.writeFieldEnd();
13870
      } else if (this.isSetPe()) {
13871
        oprot.writeFieldBegin(PE_FIELD_DESC);
13872
        this.pe.write(oprot);
13873
        oprot.writeFieldEnd();
13874
      }
13875
      oprot.writeFieldStop();
13876
      oprot.writeStructEnd();
13877
    }
13878
 
13879
    @Override
13880
    public String toString() {
3010 chandransh 13881
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
2462 chandransh 13882
      boolean first = true;
13883
 
13884
      sb.append("success:");
13885
      if (this.success == null) {
13886
        sb.append("null");
13887
      } else {
13888
        sb.append(this.success);
13889
      }
13890
      first = false;
13891
      if (!first) sb.append(", ");
13892
      sb.append("pe:");
13893
      if (this.pe == null) {
13894
        sb.append("null");
13895
      } else {
13896
        sb.append(this.pe);
13897
      }
13898
      first = false;
13899
      sb.append(")");
13900
      return sb.toString();
13901
    }
13902
 
3430 rajveer 13903
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 13904
      // check for required fields
13905
    }
13906
 
3430 rajveer 13907
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13908
      try {
13909
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13910
      } catch (org.apache.thrift.TException te) {
13911
        throw new java.io.IOException(te);
13912
      }
13913
    }
13914
 
13915
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13916
      try {
13917
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13918
      } catch (org.apache.thrift.TException te) {
13919
        throw new java.io.IOException(te);
13920
      }
13921
    }
13922
 
2462 chandransh 13923
  }
13924
 
6050 anupam.sin 13925
  public static class doHdfcPaymentForDigitalOrder_args implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_args, doHdfcPaymentForDigitalOrder_args._Fields>, java.io.Serializable, Cloneable   {
13926
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_args");
13927
 
13928
    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);
13929
    private static final org.apache.thrift.protocol.TField RECHARGE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("rechargeOrderId", org.apache.thrift.protocol.TType.I64, (short)2);
10269 amit.gupta 13930
    private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)3);
13931
    private static final org.apache.thrift.protocol.TField IS_MOBILE_FIELD_DESC = new org.apache.thrift.protocol.TField("isMobile", org.apache.thrift.protocol.TType.BOOL, (short)4);
6050 anupam.sin 13932
 
13933
    private long merchantPaymentId; // required
13934
    private long rechargeOrderId; // required
6228 anupam.sin 13935
    private String phone; // required
10269 amit.gupta 13936
    private boolean isMobile; // required
6050 anupam.sin 13937
 
13938
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13939
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13940
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
6228 anupam.sin 13941
      RECHARGE_ORDER_ID((short)2, "rechargeOrderId"),
10269 amit.gupta 13942
      PHONE((short)3, "phone"),
13943
      IS_MOBILE((short)4, "isMobile");
6050 anupam.sin 13944
 
13945
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13946
 
13947
      static {
13948
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13949
          byName.put(field.getFieldName(), field);
13950
        }
13951
      }
13952
 
13953
      /**
13954
       * Find the _Fields constant that matches fieldId, or null if its not found.
13955
       */
13956
      public static _Fields findByThriftId(int fieldId) {
13957
        switch(fieldId) {
13958
          case 1: // MERCHANT_PAYMENT_ID
13959
            return MERCHANT_PAYMENT_ID;
13960
          case 2: // RECHARGE_ORDER_ID
13961
            return RECHARGE_ORDER_ID;
10269 amit.gupta 13962
          case 3: // PHONE
6228 anupam.sin 13963
            return PHONE;
10269 amit.gupta 13964
          case 4: // IS_MOBILE
13965
            return IS_MOBILE;
6050 anupam.sin 13966
          default:
13967
            return null;
13968
        }
13969
      }
13970
 
13971
      /**
13972
       * Find the _Fields constant that matches fieldId, throwing an exception
13973
       * if it is not found.
13974
       */
13975
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13976
        _Fields fields = findByThriftId(fieldId);
13977
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13978
        return fields;
13979
      }
13980
 
13981
      /**
13982
       * Find the _Fields constant that matches name, or null if its not found.
13983
       */
13984
      public static _Fields findByName(String name) {
13985
        return byName.get(name);
13986
      }
13987
 
13988
      private final short _thriftId;
13989
      private final String _fieldName;
13990
 
13991
      _Fields(short thriftId, String fieldName) {
13992
        _thriftId = thriftId;
13993
        _fieldName = fieldName;
13994
      }
13995
 
13996
      public short getThriftFieldId() {
13997
        return _thriftId;
13998
      }
13999
 
14000
      public String getFieldName() {
14001
        return _fieldName;
14002
      }
14003
    }
14004
 
14005
    // isset id assignments
14006
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
14007
    private static final int __RECHARGEORDERID_ISSET_ID = 1;
10269 amit.gupta 14008
    private static final int __ISMOBILE_ISSET_ID = 2;
14009
    private BitSet __isset_bit_vector = new BitSet(3);
6050 anupam.sin 14010
 
14011
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14012
    static {
14013
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14014
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14015
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14016
      tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14017
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6228 anupam.sin 14018
      tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14019
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10269 amit.gupta 14020
      tmpMap.put(_Fields.IS_MOBILE, new org.apache.thrift.meta_data.FieldMetaData("isMobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
6050 anupam.sin 14022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
14024
    }
14025
 
14026
    public doHdfcPaymentForDigitalOrder_args() {
14027
    }
14028
 
14029
    public doHdfcPaymentForDigitalOrder_args(
14030
      long merchantPaymentId,
6228 anupam.sin 14031
      long rechargeOrderId,
10269 amit.gupta 14032
      String phone,
14033
      boolean isMobile)
6050 anupam.sin 14034
    {
14035
      this();
14036
      this.merchantPaymentId = merchantPaymentId;
14037
      setMerchantPaymentIdIsSet(true);
14038
      this.rechargeOrderId = rechargeOrderId;
14039
      setRechargeOrderIdIsSet(true);
6228 anupam.sin 14040
      this.phone = phone;
10269 amit.gupta 14041
      this.isMobile = isMobile;
14042
      setIsMobileIsSet(true);
6050 anupam.sin 14043
    }
14044
 
14045
    /**
14046
     * Performs a deep copy on <i>other</i>.
14047
     */
14048
    public doHdfcPaymentForDigitalOrder_args(doHdfcPaymentForDigitalOrder_args other) {
14049
      __isset_bit_vector.clear();
14050
      __isset_bit_vector.or(other.__isset_bit_vector);
14051
      this.merchantPaymentId = other.merchantPaymentId;
14052
      this.rechargeOrderId = other.rechargeOrderId;
6228 anupam.sin 14053
      if (other.isSetPhone()) {
14054
        this.phone = other.phone;
14055
      }
10269 amit.gupta 14056
      this.isMobile = other.isMobile;
6050 anupam.sin 14057
    }
14058
 
14059
    public doHdfcPaymentForDigitalOrder_args deepCopy() {
14060
      return new doHdfcPaymentForDigitalOrder_args(this);
14061
    }
14062
 
14063
    @Override
14064
    public void clear() {
14065
      setMerchantPaymentIdIsSet(false);
14066
      this.merchantPaymentId = 0;
14067
      setRechargeOrderIdIsSet(false);
14068
      this.rechargeOrderId = 0;
6228 anupam.sin 14069
      this.phone = null;
10269 amit.gupta 14070
      setIsMobileIsSet(false);
14071
      this.isMobile = false;
6050 anupam.sin 14072
    }
14073
 
14074
    public long getMerchantPaymentId() {
14075
      return this.merchantPaymentId;
14076
    }
14077
 
14078
    public void setMerchantPaymentId(long merchantPaymentId) {
14079
      this.merchantPaymentId = merchantPaymentId;
14080
      setMerchantPaymentIdIsSet(true);
14081
    }
14082
 
14083
    public void unsetMerchantPaymentId() {
14084
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
14085
    }
14086
 
14087
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
14088
    public boolean isSetMerchantPaymentId() {
14089
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
14090
    }
14091
 
14092
    public void setMerchantPaymentIdIsSet(boolean value) {
14093
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
14094
    }
14095
 
14096
    public long getRechargeOrderId() {
14097
      return this.rechargeOrderId;
14098
    }
14099
 
14100
    public void setRechargeOrderId(long rechargeOrderId) {
14101
      this.rechargeOrderId = rechargeOrderId;
14102
      setRechargeOrderIdIsSet(true);
14103
    }
14104
 
14105
    public void unsetRechargeOrderId() {
14106
      __isset_bit_vector.clear(__RECHARGEORDERID_ISSET_ID);
14107
    }
14108
 
14109
    /** Returns true if field rechargeOrderId is set (has been assigned a value) and false otherwise */
14110
    public boolean isSetRechargeOrderId() {
14111
      return __isset_bit_vector.get(__RECHARGEORDERID_ISSET_ID);
14112
    }
14113
 
14114
    public void setRechargeOrderIdIsSet(boolean value) {
14115
      __isset_bit_vector.set(__RECHARGEORDERID_ISSET_ID, value);
14116
    }
14117
 
6228 anupam.sin 14118
    public String getPhone() {
14119
      return this.phone;
14120
    }
14121
 
14122
    public void setPhone(String phone) {
14123
      this.phone = phone;
14124
    }
14125
 
14126
    public void unsetPhone() {
14127
      this.phone = null;
14128
    }
14129
 
14130
    /** Returns true if field phone is set (has been assigned a value) and false otherwise */
14131
    public boolean isSetPhone() {
14132
      return this.phone != null;
14133
    }
14134
 
14135
    public void setPhoneIsSet(boolean value) {
14136
      if (!value) {
14137
        this.phone = null;
14138
      }
14139
    }
14140
 
10269 amit.gupta 14141
    public boolean isIsMobile() {
14142
      return this.isMobile;
14143
    }
14144
 
14145
    public void setIsMobile(boolean isMobile) {
14146
      this.isMobile = isMobile;
14147
      setIsMobileIsSet(true);
14148
    }
14149
 
14150
    public void unsetIsMobile() {
14151
      __isset_bit_vector.clear(__ISMOBILE_ISSET_ID);
14152
    }
14153
 
14154
    /** Returns true if field isMobile is set (has been assigned a value) and false otherwise */
14155
    public boolean isSetIsMobile() {
14156
      return __isset_bit_vector.get(__ISMOBILE_ISSET_ID);
14157
    }
14158
 
14159
    public void setIsMobileIsSet(boolean value) {
14160
      __isset_bit_vector.set(__ISMOBILE_ISSET_ID, value);
14161
    }
14162
 
6050 anupam.sin 14163
    public void setFieldValue(_Fields field, Object value) {
14164
      switch (field) {
14165
      case MERCHANT_PAYMENT_ID:
14166
        if (value == null) {
14167
          unsetMerchantPaymentId();
14168
        } else {
14169
          setMerchantPaymentId((Long)value);
14170
        }
14171
        break;
14172
 
14173
      case RECHARGE_ORDER_ID:
14174
        if (value == null) {
14175
          unsetRechargeOrderId();
14176
        } else {
14177
          setRechargeOrderId((Long)value);
14178
        }
14179
        break;
14180
 
6228 anupam.sin 14181
      case PHONE:
14182
        if (value == null) {
14183
          unsetPhone();
14184
        } else {
14185
          setPhone((String)value);
14186
        }
14187
        break;
14188
 
10269 amit.gupta 14189
      case IS_MOBILE:
14190
        if (value == null) {
14191
          unsetIsMobile();
14192
        } else {
14193
          setIsMobile((Boolean)value);
14194
        }
14195
        break;
14196
 
6050 anupam.sin 14197
      }
14198
    }
14199
 
14200
    public Object getFieldValue(_Fields field) {
14201
      switch (field) {
14202
      case MERCHANT_PAYMENT_ID:
14203
        return Long.valueOf(getMerchantPaymentId());
14204
 
14205
      case RECHARGE_ORDER_ID:
14206
        return Long.valueOf(getRechargeOrderId());
14207
 
6228 anupam.sin 14208
      case PHONE:
14209
        return getPhone();
14210
 
10269 amit.gupta 14211
      case IS_MOBILE:
14212
        return Boolean.valueOf(isIsMobile());
14213
 
6050 anupam.sin 14214
      }
14215
      throw new IllegalStateException();
14216
    }
14217
 
14218
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14219
    public boolean isSet(_Fields field) {
14220
      if (field == null) {
14221
        throw new IllegalArgumentException();
14222
      }
14223
 
14224
      switch (field) {
14225
      case MERCHANT_PAYMENT_ID:
14226
        return isSetMerchantPaymentId();
14227
      case RECHARGE_ORDER_ID:
14228
        return isSetRechargeOrderId();
6228 anupam.sin 14229
      case PHONE:
14230
        return isSetPhone();
10269 amit.gupta 14231
      case IS_MOBILE:
14232
        return isSetIsMobile();
6050 anupam.sin 14233
      }
14234
      throw new IllegalStateException();
14235
    }
14236
 
14237
    @Override
14238
    public boolean equals(Object that) {
14239
      if (that == null)
14240
        return false;
14241
      if (that instanceof doHdfcPaymentForDigitalOrder_args)
14242
        return this.equals((doHdfcPaymentForDigitalOrder_args)that);
14243
      return false;
14244
    }
14245
 
14246
    public boolean equals(doHdfcPaymentForDigitalOrder_args that) {
14247
      if (that == null)
14248
        return false;
14249
 
14250
      boolean this_present_merchantPaymentId = true;
14251
      boolean that_present_merchantPaymentId = true;
14252
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
14253
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
14254
          return false;
14255
        if (this.merchantPaymentId != that.merchantPaymentId)
14256
          return false;
14257
      }
14258
 
14259
      boolean this_present_rechargeOrderId = true;
14260
      boolean that_present_rechargeOrderId = true;
14261
      if (this_present_rechargeOrderId || that_present_rechargeOrderId) {
14262
        if (!(this_present_rechargeOrderId && that_present_rechargeOrderId))
14263
          return false;
14264
        if (this.rechargeOrderId != that.rechargeOrderId)
14265
          return false;
14266
      }
14267
 
6228 anupam.sin 14268
      boolean this_present_phone = true && this.isSetPhone();
14269
      boolean that_present_phone = true && that.isSetPhone();
14270
      if (this_present_phone || that_present_phone) {
14271
        if (!(this_present_phone && that_present_phone))
14272
          return false;
14273
        if (!this.phone.equals(that.phone))
14274
          return false;
14275
      }
14276
 
10269 amit.gupta 14277
      boolean this_present_isMobile = true;
14278
      boolean that_present_isMobile = true;
14279
      if (this_present_isMobile || that_present_isMobile) {
14280
        if (!(this_present_isMobile && that_present_isMobile))
14281
          return false;
14282
        if (this.isMobile != that.isMobile)
14283
          return false;
14284
      }
14285
 
6050 anupam.sin 14286
      return true;
14287
    }
14288
 
14289
    @Override
14290
    public int hashCode() {
14291
      return 0;
14292
    }
14293
 
14294
    public int compareTo(doHdfcPaymentForDigitalOrder_args other) {
14295
      if (!getClass().equals(other.getClass())) {
14296
        return getClass().getName().compareTo(other.getClass().getName());
14297
      }
14298
 
14299
      int lastComparison = 0;
14300
      doHdfcPaymentForDigitalOrder_args typedOther = (doHdfcPaymentForDigitalOrder_args)other;
14301
 
14302
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
14303
      if (lastComparison != 0) {
14304
        return lastComparison;
14305
      }
14306
      if (isSetMerchantPaymentId()) {
14307
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
14308
        if (lastComparison != 0) {
14309
          return lastComparison;
14310
        }
14311
      }
14312
      lastComparison = Boolean.valueOf(isSetRechargeOrderId()).compareTo(typedOther.isSetRechargeOrderId());
14313
      if (lastComparison != 0) {
14314
        return lastComparison;
14315
      }
14316
      if (isSetRechargeOrderId()) {
14317
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.rechargeOrderId, typedOther.rechargeOrderId);
14318
        if (lastComparison != 0) {
14319
          return lastComparison;
14320
        }
14321
      }
6228 anupam.sin 14322
      lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());
14323
      if (lastComparison != 0) {
14324
        return lastComparison;
14325
      }
14326
      if (isSetPhone()) {
14327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
14328
        if (lastComparison != 0) {
14329
          return lastComparison;
14330
        }
14331
      }
10269 amit.gupta 14332
      lastComparison = Boolean.valueOf(isSetIsMobile()).compareTo(typedOther.isSetIsMobile());
14333
      if (lastComparison != 0) {
14334
        return lastComparison;
14335
      }
14336
      if (isSetIsMobile()) {
14337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isMobile, typedOther.isMobile);
14338
        if (lastComparison != 0) {
14339
          return lastComparison;
14340
        }
14341
      }
6050 anupam.sin 14342
      return 0;
14343
    }
14344
 
14345
    public _Fields fieldForId(int fieldId) {
14346
      return _Fields.findByThriftId(fieldId);
14347
    }
14348
 
14349
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14350
      org.apache.thrift.protocol.TField field;
14351
      iprot.readStructBegin();
14352
      while (true)
14353
      {
14354
        field = iprot.readFieldBegin();
14355
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14356
          break;
14357
        }
14358
        switch (field.id) {
14359
          case 1: // MERCHANT_PAYMENT_ID
14360
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14361
              this.merchantPaymentId = iprot.readI64();
14362
              setMerchantPaymentIdIsSet(true);
14363
            } else { 
14364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14365
            }
14366
            break;
14367
          case 2: // RECHARGE_ORDER_ID
14368
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14369
              this.rechargeOrderId = iprot.readI64();
14370
              setRechargeOrderIdIsSet(true);
14371
            } else { 
14372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14373
            }
14374
            break;
10269 amit.gupta 14375
          case 3: // PHONE
6228 anupam.sin 14376
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14377
              this.phone = iprot.readString();
14378
            } else { 
14379
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14380
            }
14381
            break;
10269 amit.gupta 14382
          case 4: // IS_MOBILE
14383
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
14384
              this.isMobile = iprot.readBool();
14385
              setIsMobileIsSet(true);
14386
            } else { 
14387
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14388
            }
14389
            break;
6050 anupam.sin 14390
          default:
14391
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14392
        }
14393
        iprot.readFieldEnd();
14394
      }
14395
      iprot.readStructEnd();
14396
      validate();
14397
    }
14398
 
14399
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14400
      validate();
14401
 
14402
      oprot.writeStructBegin(STRUCT_DESC);
10269 amit.gupta 14403
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
14404
      oprot.writeI64(this.merchantPaymentId);
14405
      oprot.writeFieldEnd();
14406
      oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
14407
      oprot.writeI64(this.rechargeOrderId);
14408
      oprot.writeFieldEnd();
6228 anupam.sin 14409
      if (this.phone != null) {
14410
        oprot.writeFieldBegin(PHONE_FIELD_DESC);
14411
        oprot.writeString(this.phone);
14412
        oprot.writeFieldEnd();
14413
      }
10269 amit.gupta 14414
      oprot.writeFieldBegin(IS_MOBILE_FIELD_DESC);
14415
      oprot.writeBool(this.isMobile);
6050 anupam.sin 14416
      oprot.writeFieldEnd();
14417
      oprot.writeFieldStop();
14418
      oprot.writeStructEnd();
14419
    }
14420
 
14421
    @Override
14422
    public String toString() {
14423
      StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_args(");
14424
      boolean first = true;
14425
 
14426
      sb.append("merchantPaymentId:");
14427
      sb.append(this.merchantPaymentId);
14428
      first = false;
14429
      if (!first) sb.append(", ");
14430
      sb.append("rechargeOrderId:");
14431
      sb.append(this.rechargeOrderId);
14432
      first = false;
6228 anupam.sin 14433
      if (!first) sb.append(", ");
14434
      sb.append("phone:");
14435
      if (this.phone == null) {
14436
        sb.append("null");
14437
      } else {
14438
        sb.append(this.phone);
14439
      }
14440
      first = false;
10269 amit.gupta 14441
      if (!first) sb.append(", ");
14442
      sb.append("isMobile:");
14443
      sb.append(this.isMobile);
14444
      first = false;
6050 anupam.sin 14445
      sb.append(")");
14446
      return sb.toString();
14447
    }
14448
 
14449
    public void validate() throws org.apache.thrift.TException {
14450
      // check for required fields
14451
    }
14452
 
14453
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14454
      try {
14455
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14456
      } catch (org.apache.thrift.TException te) {
14457
        throw new java.io.IOException(te);
14458
      }
14459
    }
14460
 
14461
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14462
      try {
14463
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14464
      } catch (org.apache.thrift.TException te) {
14465
        throw new java.io.IOException(te);
14466
      }
14467
    }
14468
 
14469
  }
14470
 
14471
  public static class doHdfcPaymentForDigitalOrder_result implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_result, doHdfcPaymentForDigitalOrder_result._Fields>, java.io.Serializable, Cloneable   {
14472
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_result");
14473
 
14474
    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);
14475
    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);
14476
 
14477
    private String success; // required
14478
    private PaymentException pe; // required
14479
 
14480
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14481
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14482
      SUCCESS((short)0, "success"),
14483
      PE((short)1, "pe");
14484
 
14485
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14486
 
14487
      static {
14488
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14489
          byName.put(field.getFieldName(), field);
14490
        }
14491
      }
14492
 
14493
      /**
14494
       * Find the _Fields constant that matches fieldId, or null if its not found.
14495
       */
14496
      public static _Fields findByThriftId(int fieldId) {
14497
        switch(fieldId) {
14498
          case 0: // SUCCESS
14499
            return SUCCESS;
14500
          case 1: // PE
14501
            return PE;
14502
          default:
14503
            return null;
14504
        }
14505
      }
14506
 
14507
      /**
14508
       * Find the _Fields constant that matches fieldId, throwing an exception
14509
       * if it is not found.
14510
       */
14511
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14512
        _Fields fields = findByThriftId(fieldId);
14513
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14514
        return fields;
14515
      }
14516
 
14517
      /**
14518
       * Find the _Fields constant that matches name, or null if its not found.
14519
       */
14520
      public static _Fields findByName(String name) {
14521
        return byName.get(name);
14522
      }
14523
 
14524
      private final short _thriftId;
14525
      private final String _fieldName;
14526
 
14527
      _Fields(short thriftId, String fieldName) {
14528
        _thriftId = thriftId;
14529
        _fieldName = fieldName;
14530
      }
14531
 
14532
      public short getThriftFieldId() {
14533
        return _thriftId;
14534
      }
14535
 
14536
      public String getFieldName() {
14537
        return _fieldName;
14538
      }
14539
    }
14540
 
14541
    // isset id assignments
14542
 
14543
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14544
    static {
14545
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14546
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14547
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14548
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14549
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14550
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14551
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_result.class, metaDataMap);
14552
    }
14553
 
14554
    public doHdfcPaymentForDigitalOrder_result() {
14555
    }
14556
 
14557
    public doHdfcPaymentForDigitalOrder_result(
14558
      String success,
14559
      PaymentException pe)
14560
    {
14561
      this();
14562
      this.success = success;
14563
      this.pe = pe;
14564
    }
14565
 
14566
    /**
14567
     * Performs a deep copy on <i>other</i>.
14568
     */
14569
    public doHdfcPaymentForDigitalOrder_result(doHdfcPaymentForDigitalOrder_result other) {
14570
      if (other.isSetSuccess()) {
14571
        this.success = other.success;
14572
      }
14573
      if (other.isSetPe()) {
14574
        this.pe = new PaymentException(other.pe);
14575
      }
14576
    }
14577
 
14578
    public doHdfcPaymentForDigitalOrder_result deepCopy() {
14579
      return new doHdfcPaymentForDigitalOrder_result(this);
14580
    }
14581
 
14582
    @Override
14583
    public void clear() {
14584
      this.success = null;
14585
      this.pe = null;
14586
    }
14587
 
14588
    public String getSuccess() {
14589
      return this.success;
14590
    }
14591
 
14592
    public void setSuccess(String success) {
14593
      this.success = success;
14594
    }
14595
 
14596
    public void unsetSuccess() {
14597
      this.success = null;
14598
    }
14599
 
14600
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
14601
    public boolean isSetSuccess() {
14602
      return this.success != null;
14603
    }
14604
 
14605
    public void setSuccessIsSet(boolean value) {
14606
      if (!value) {
14607
        this.success = null;
14608
      }
14609
    }
14610
 
14611
    public PaymentException getPe() {
14612
      return this.pe;
14613
    }
14614
 
14615
    public void setPe(PaymentException pe) {
14616
      this.pe = pe;
14617
    }
14618
 
14619
    public void unsetPe() {
14620
      this.pe = null;
14621
    }
14622
 
14623
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
14624
    public boolean isSetPe() {
14625
      return this.pe != null;
14626
    }
14627
 
14628
    public void setPeIsSet(boolean value) {
14629
      if (!value) {
14630
        this.pe = null;
14631
      }
14632
    }
14633
 
14634
    public void setFieldValue(_Fields field, Object value) {
14635
      switch (field) {
14636
      case SUCCESS:
14637
        if (value == null) {
14638
          unsetSuccess();
14639
        } else {
14640
          setSuccess((String)value);
14641
        }
14642
        break;
14643
 
14644
      case PE:
14645
        if (value == null) {
14646
          unsetPe();
14647
        } else {
14648
          setPe((PaymentException)value);
14649
        }
14650
        break;
14651
 
14652
      }
14653
    }
14654
 
14655
    public Object getFieldValue(_Fields field) {
14656
      switch (field) {
14657
      case SUCCESS:
14658
        return getSuccess();
14659
 
14660
      case PE:
14661
        return getPe();
14662
 
14663
      }
14664
      throw new IllegalStateException();
14665
    }
14666
 
14667
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14668
    public boolean isSet(_Fields field) {
14669
      if (field == null) {
14670
        throw new IllegalArgumentException();
14671
      }
14672
 
14673
      switch (field) {
14674
      case SUCCESS:
14675
        return isSetSuccess();
14676
      case PE:
14677
        return isSetPe();
14678
      }
14679
      throw new IllegalStateException();
14680
    }
14681
 
14682
    @Override
14683
    public boolean equals(Object that) {
14684
      if (that == null)
14685
        return false;
14686
      if (that instanceof doHdfcPaymentForDigitalOrder_result)
14687
        return this.equals((doHdfcPaymentForDigitalOrder_result)that);
14688
      return false;
14689
    }
14690
 
14691
    public boolean equals(doHdfcPaymentForDigitalOrder_result that) {
14692
      if (that == null)
14693
        return false;
14694
 
14695
      boolean this_present_success = true && this.isSetSuccess();
14696
      boolean that_present_success = true && that.isSetSuccess();
14697
      if (this_present_success || that_present_success) {
14698
        if (!(this_present_success && that_present_success))
14699
          return false;
14700
        if (!this.success.equals(that.success))
14701
          return false;
14702
      }
14703
 
14704
      boolean this_present_pe = true && this.isSetPe();
14705
      boolean that_present_pe = true && that.isSetPe();
14706
      if (this_present_pe || that_present_pe) {
14707
        if (!(this_present_pe && that_present_pe))
14708
          return false;
14709
        if (!this.pe.equals(that.pe))
14710
          return false;
14711
      }
14712
 
14713
      return true;
14714
    }
14715
 
14716
    @Override
14717
    public int hashCode() {
14718
      return 0;
14719
    }
14720
 
14721
    public int compareTo(doHdfcPaymentForDigitalOrder_result other) {
14722
      if (!getClass().equals(other.getClass())) {
14723
        return getClass().getName().compareTo(other.getClass().getName());
14724
      }
14725
 
14726
      int lastComparison = 0;
14727
      doHdfcPaymentForDigitalOrder_result typedOther = (doHdfcPaymentForDigitalOrder_result)other;
14728
 
14729
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14730
      if (lastComparison != 0) {
14731
        return lastComparison;
14732
      }
14733
      if (isSetSuccess()) {
14734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14735
        if (lastComparison != 0) {
14736
          return lastComparison;
14737
        }
14738
      }
14739
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
14740
      if (lastComparison != 0) {
14741
        return lastComparison;
14742
      }
14743
      if (isSetPe()) {
14744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
14745
        if (lastComparison != 0) {
14746
          return lastComparison;
14747
        }
14748
      }
14749
      return 0;
14750
    }
14751
 
14752
    public _Fields fieldForId(int fieldId) {
14753
      return _Fields.findByThriftId(fieldId);
14754
    }
14755
 
14756
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14757
      org.apache.thrift.protocol.TField field;
14758
      iprot.readStructBegin();
14759
      while (true)
14760
      {
14761
        field = iprot.readFieldBegin();
14762
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14763
          break;
14764
        }
14765
        switch (field.id) {
14766
          case 0: // SUCCESS
14767
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14768
              this.success = iprot.readString();
14769
            } else { 
14770
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14771
            }
14772
            break;
14773
          case 1: // PE
14774
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14775
              this.pe = new PaymentException();
14776
              this.pe.read(iprot);
14777
            } else { 
14778
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14779
            }
14780
            break;
14781
          default:
14782
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14783
        }
14784
        iprot.readFieldEnd();
14785
      }
14786
      iprot.readStructEnd();
14787
      validate();
14788
    }
14789
 
14790
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14791
      oprot.writeStructBegin(STRUCT_DESC);
14792
 
14793
      if (this.isSetSuccess()) {
14794
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14795
        oprot.writeString(this.success);
14796
        oprot.writeFieldEnd();
14797
      } else if (this.isSetPe()) {
14798
        oprot.writeFieldBegin(PE_FIELD_DESC);
14799
        this.pe.write(oprot);
14800
        oprot.writeFieldEnd();
14801
      }
14802
      oprot.writeFieldStop();
14803
      oprot.writeStructEnd();
14804
    }
14805
 
14806
    @Override
14807
    public String toString() {
14808
      StringBuilder sb = new StringBuilder("doHdfcPaymentForDigitalOrder_result(");
14809
      boolean first = true;
14810
 
14811
      sb.append("success:");
14812
      if (this.success == null) {
14813
        sb.append("null");
14814
      } else {
14815
        sb.append(this.success);
14816
      }
14817
      first = false;
14818
      if (!first) sb.append(", ");
14819
      sb.append("pe:");
14820
      if (this.pe == null) {
14821
        sb.append("null");
14822
      } else {
14823
        sb.append(this.pe);
14824
      }
14825
      first = false;
14826
      sb.append(")");
14827
      return sb.toString();
14828
    }
14829
 
14830
    public void validate() throws org.apache.thrift.TException {
14831
      // check for required fields
14832
    }
14833
 
14834
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14835
      try {
14836
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14837
      } catch (org.apache.thrift.TException te) {
14838
        throw new java.io.IOException(te);
14839
      }
14840
    }
14841
 
14842
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14843
      try {
14844
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14845
      } catch (org.apache.thrift.TException te) {
14846
        throw new java.io.IOException(te);
14847
      }
14848
    }
14849
 
14850
  }
14851
 
3616 chandransh 14852
  public static class initializeHdfcEmiPayment_args implements org.apache.thrift.TBase<initializeHdfcEmiPayment_args, initializeHdfcEmiPayment_args._Fields>, java.io.Serializable, Cloneable   {
14853
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_args");
14854
 
14855
    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);
10269 amit.gupta 14856
    private static final org.apache.thrift.protocol.TField IS_MOBILE_FIELD_DESC = new org.apache.thrift.protocol.TField("isMobile", org.apache.thrift.protocol.TType.BOOL, (short)2);
3616 chandransh 14857
 
14858
    private long merchantPaymentId; // required
10269 amit.gupta 14859
    private boolean isMobile; // required
3616 chandransh 14860
 
14861
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14862
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10269 amit.gupta 14863
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
14864
      IS_MOBILE((short)2, "isMobile");
3616 chandransh 14865
 
14866
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14867
 
14868
      static {
14869
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14870
          byName.put(field.getFieldName(), field);
14871
        }
14872
      }
14873
 
14874
      /**
14875
       * Find the _Fields constant that matches fieldId, or null if its not found.
14876
       */
14877
      public static _Fields findByThriftId(int fieldId) {
14878
        switch(fieldId) {
14879
          case 1: // MERCHANT_PAYMENT_ID
14880
            return MERCHANT_PAYMENT_ID;
10269 amit.gupta 14881
          case 2: // IS_MOBILE
14882
            return IS_MOBILE;
3616 chandransh 14883
          default:
14884
            return null;
14885
        }
14886
      }
14887
 
14888
      /**
14889
       * Find the _Fields constant that matches fieldId, throwing an exception
14890
       * if it is not found.
14891
       */
14892
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14893
        _Fields fields = findByThriftId(fieldId);
14894
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14895
        return fields;
14896
      }
14897
 
14898
      /**
14899
       * Find the _Fields constant that matches name, or null if its not found.
14900
       */
14901
      public static _Fields findByName(String name) {
14902
        return byName.get(name);
14903
      }
14904
 
14905
      private final short _thriftId;
14906
      private final String _fieldName;
14907
 
14908
      _Fields(short thriftId, String fieldName) {
14909
        _thriftId = thriftId;
14910
        _fieldName = fieldName;
14911
      }
14912
 
14913
      public short getThriftFieldId() {
14914
        return _thriftId;
14915
      }
14916
 
14917
      public String getFieldName() {
14918
        return _fieldName;
14919
      }
14920
    }
14921
 
14922
    // isset id assignments
14923
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
10269 amit.gupta 14924
    private static final int __ISMOBILE_ISSET_ID = 1;
14925
    private BitSet __isset_bit_vector = new BitSet(2);
3616 chandransh 14926
 
14927
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14928
    static {
14929
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14930
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14931
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10269 amit.gupta 14932
      tmpMap.put(_Fields.IS_MOBILE, new org.apache.thrift.meta_data.FieldMetaData("isMobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14933
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3616 chandransh 14934
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14935
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_args.class, metaDataMap);
14936
    }
14937
 
14938
    public initializeHdfcEmiPayment_args() {
14939
    }
14940
 
14941
    public initializeHdfcEmiPayment_args(
10269 amit.gupta 14942
      long merchantPaymentId,
14943
      boolean isMobile)
3616 chandransh 14944
    {
14945
      this();
14946
      this.merchantPaymentId = merchantPaymentId;
14947
      setMerchantPaymentIdIsSet(true);
10269 amit.gupta 14948
      this.isMobile = isMobile;
14949
      setIsMobileIsSet(true);
3616 chandransh 14950
    }
14951
 
14952
    /**
14953
     * Performs a deep copy on <i>other</i>.
14954
     */
14955
    public initializeHdfcEmiPayment_args(initializeHdfcEmiPayment_args other) {
14956
      __isset_bit_vector.clear();
14957
      __isset_bit_vector.or(other.__isset_bit_vector);
14958
      this.merchantPaymentId = other.merchantPaymentId;
10269 amit.gupta 14959
      this.isMobile = other.isMobile;
3616 chandransh 14960
    }
14961
 
14962
    public initializeHdfcEmiPayment_args deepCopy() {
14963
      return new initializeHdfcEmiPayment_args(this);
14964
    }
14965
 
14966
    @Override
14967
    public void clear() {
14968
      setMerchantPaymentIdIsSet(false);
14969
      this.merchantPaymentId = 0;
10269 amit.gupta 14970
      setIsMobileIsSet(false);
14971
      this.isMobile = false;
3616 chandransh 14972
    }
14973
 
14974
    public long getMerchantPaymentId() {
14975
      return this.merchantPaymentId;
14976
    }
14977
 
14978
    public void setMerchantPaymentId(long merchantPaymentId) {
14979
      this.merchantPaymentId = merchantPaymentId;
14980
      setMerchantPaymentIdIsSet(true);
14981
    }
14982
 
14983
    public void unsetMerchantPaymentId() {
14984
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
14985
    }
14986
 
14987
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
14988
    public boolean isSetMerchantPaymentId() {
14989
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
14990
    }
14991
 
14992
    public void setMerchantPaymentIdIsSet(boolean value) {
14993
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
14994
    }
14995
 
10269 amit.gupta 14996
    public boolean isIsMobile() {
14997
      return this.isMobile;
14998
    }
14999
 
15000
    public void setIsMobile(boolean isMobile) {
15001
      this.isMobile = isMobile;
15002
      setIsMobileIsSet(true);
15003
    }
15004
 
15005
    public void unsetIsMobile() {
15006
      __isset_bit_vector.clear(__ISMOBILE_ISSET_ID);
15007
    }
15008
 
15009
    /** Returns true if field isMobile is set (has been assigned a value) and false otherwise */
15010
    public boolean isSetIsMobile() {
15011
      return __isset_bit_vector.get(__ISMOBILE_ISSET_ID);
15012
    }
15013
 
15014
    public void setIsMobileIsSet(boolean value) {
15015
      __isset_bit_vector.set(__ISMOBILE_ISSET_ID, value);
15016
    }
15017
 
3616 chandransh 15018
    public void setFieldValue(_Fields field, Object value) {
15019
      switch (field) {
15020
      case MERCHANT_PAYMENT_ID:
15021
        if (value == null) {
15022
          unsetMerchantPaymentId();
15023
        } else {
15024
          setMerchantPaymentId((Long)value);
15025
        }
15026
        break;
15027
 
10269 amit.gupta 15028
      case IS_MOBILE:
15029
        if (value == null) {
15030
          unsetIsMobile();
15031
        } else {
15032
          setIsMobile((Boolean)value);
15033
        }
15034
        break;
15035
 
3616 chandransh 15036
      }
15037
    }
15038
 
15039
    public Object getFieldValue(_Fields field) {
15040
      switch (field) {
15041
      case MERCHANT_PAYMENT_ID:
15042
        return Long.valueOf(getMerchantPaymentId());
15043
 
10269 amit.gupta 15044
      case IS_MOBILE:
15045
        return Boolean.valueOf(isIsMobile());
15046
 
3616 chandransh 15047
      }
15048
      throw new IllegalStateException();
15049
    }
15050
 
15051
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15052
    public boolean isSet(_Fields field) {
15053
      if (field == null) {
15054
        throw new IllegalArgumentException();
15055
      }
15056
 
15057
      switch (field) {
15058
      case MERCHANT_PAYMENT_ID:
15059
        return isSetMerchantPaymentId();
10269 amit.gupta 15060
      case IS_MOBILE:
15061
        return isSetIsMobile();
3616 chandransh 15062
      }
15063
      throw new IllegalStateException();
15064
    }
15065
 
15066
    @Override
15067
    public boolean equals(Object that) {
15068
      if (that == null)
15069
        return false;
15070
      if (that instanceof initializeHdfcEmiPayment_args)
15071
        return this.equals((initializeHdfcEmiPayment_args)that);
15072
      return false;
15073
    }
15074
 
15075
    public boolean equals(initializeHdfcEmiPayment_args that) {
15076
      if (that == null)
15077
        return false;
15078
 
15079
      boolean this_present_merchantPaymentId = true;
15080
      boolean that_present_merchantPaymentId = true;
15081
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
15082
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
15083
          return false;
15084
        if (this.merchantPaymentId != that.merchantPaymentId)
15085
          return false;
15086
      }
15087
 
10269 amit.gupta 15088
      boolean this_present_isMobile = true;
15089
      boolean that_present_isMobile = true;
15090
      if (this_present_isMobile || that_present_isMobile) {
15091
        if (!(this_present_isMobile && that_present_isMobile))
15092
          return false;
15093
        if (this.isMobile != that.isMobile)
15094
          return false;
15095
      }
15096
 
3616 chandransh 15097
      return true;
15098
    }
15099
 
15100
    @Override
15101
    public int hashCode() {
15102
      return 0;
15103
    }
15104
 
15105
    public int compareTo(initializeHdfcEmiPayment_args other) {
15106
      if (!getClass().equals(other.getClass())) {
15107
        return getClass().getName().compareTo(other.getClass().getName());
15108
      }
15109
 
15110
      int lastComparison = 0;
15111
      initializeHdfcEmiPayment_args typedOther = (initializeHdfcEmiPayment_args)other;
15112
 
15113
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
15114
      if (lastComparison != 0) {
15115
        return lastComparison;
15116
      }
15117
      if (isSetMerchantPaymentId()) {
15118
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
15119
        if (lastComparison != 0) {
15120
          return lastComparison;
15121
        }
15122
      }
10269 amit.gupta 15123
      lastComparison = Boolean.valueOf(isSetIsMobile()).compareTo(typedOther.isSetIsMobile());
15124
      if (lastComparison != 0) {
15125
        return lastComparison;
15126
      }
15127
      if (isSetIsMobile()) {
15128
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isMobile, typedOther.isMobile);
15129
        if (lastComparison != 0) {
15130
          return lastComparison;
15131
        }
15132
      }
3616 chandransh 15133
      return 0;
15134
    }
15135
 
15136
    public _Fields fieldForId(int fieldId) {
15137
      return _Fields.findByThriftId(fieldId);
15138
    }
15139
 
15140
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15141
      org.apache.thrift.protocol.TField field;
15142
      iprot.readStructBegin();
15143
      while (true)
15144
      {
15145
        field = iprot.readFieldBegin();
15146
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15147
          break;
15148
        }
15149
        switch (field.id) {
15150
          case 1: // MERCHANT_PAYMENT_ID
15151
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15152
              this.merchantPaymentId = iprot.readI64();
15153
              setMerchantPaymentIdIsSet(true);
15154
            } else { 
15155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15156
            }
15157
            break;
10269 amit.gupta 15158
          case 2: // IS_MOBILE
15159
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
15160
              this.isMobile = iprot.readBool();
15161
              setIsMobileIsSet(true);
15162
            } else { 
15163
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15164
            }
15165
            break;
3616 chandransh 15166
          default:
15167
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15168
        }
15169
        iprot.readFieldEnd();
15170
      }
15171
      iprot.readStructEnd();
15172
      validate();
15173
    }
15174
 
15175
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15176
      validate();
15177
 
15178
      oprot.writeStructBegin(STRUCT_DESC);
15179
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
15180
      oprot.writeI64(this.merchantPaymentId);
15181
      oprot.writeFieldEnd();
10269 amit.gupta 15182
      oprot.writeFieldBegin(IS_MOBILE_FIELD_DESC);
15183
      oprot.writeBool(this.isMobile);
15184
      oprot.writeFieldEnd();
3616 chandransh 15185
      oprot.writeFieldStop();
15186
      oprot.writeStructEnd();
15187
    }
15188
 
15189
    @Override
15190
    public String toString() {
15191
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_args(");
15192
      boolean first = true;
15193
 
15194
      sb.append("merchantPaymentId:");
15195
      sb.append(this.merchantPaymentId);
15196
      first = false;
10269 amit.gupta 15197
      if (!first) sb.append(", ");
15198
      sb.append("isMobile:");
15199
      sb.append(this.isMobile);
15200
      first = false;
3616 chandransh 15201
      sb.append(")");
15202
      return sb.toString();
15203
    }
15204
 
15205
    public void validate() throws org.apache.thrift.TException {
15206
      // check for required fields
15207
    }
15208
 
15209
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15210
      try {
15211
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15212
      } catch (org.apache.thrift.TException te) {
15213
        throw new java.io.IOException(te);
15214
      }
15215
    }
15216
 
15217
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15218
      try {
15219
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15220
      } catch (org.apache.thrift.TException te) {
15221
        throw new java.io.IOException(te);
15222
      }
15223
    }
15224
 
15225
  }
15226
 
15227
  public static class initializeHdfcEmiPayment_result implements org.apache.thrift.TBase<initializeHdfcEmiPayment_result, initializeHdfcEmiPayment_result._Fields>, java.io.Serializable, Cloneable   {
15228
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_result");
15229
 
15230
    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);
15231
    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);
15232
 
15233
    private String success; // required
15234
    private PaymentException pe; // required
15235
 
15236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15237
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15238
      SUCCESS((short)0, "success"),
15239
      PE((short)1, "pe");
15240
 
15241
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15242
 
15243
      static {
15244
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15245
          byName.put(field.getFieldName(), field);
15246
        }
15247
      }
15248
 
15249
      /**
15250
       * Find the _Fields constant that matches fieldId, or null if its not found.
15251
       */
15252
      public static _Fields findByThriftId(int fieldId) {
15253
        switch(fieldId) {
15254
          case 0: // SUCCESS
15255
            return SUCCESS;
15256
          case 1: // PE
15257
            return PE;
15258
          default:
15259
            return null;
15260
        }
15261
      }
15262
 
15263
      /**
15264
       * Find the _Fields constant that matches fieldId, throwing an exception
15265
       * if it is not found.
15266
       */
15267
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15268
        _Fields fields = findByThriftId(fieldId);
15269
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15270
        return fields;
15271
      }
15272
 
15273
      /**
15274
       * Find the _Fields constant that matches name, or null if its not found.
15275
       */
15276
      public static _Fields findByName(String name) {
15277
        return byName.get(name);
15278
      }
15279
 
15280
      private final short _thriftId;
15281
      private final String _fieldName;
15282
 
15283
      _Fields(short thriftId, String fieldName) {
15284
        _thriftId = thriftId;
15285
        _fieldName = fieldName;
15286
      }
15287
 
15288
      public short getThriftFieldId() {
15289
        return _thriftId;
15290
      }
15291
 
15292
      public String getFieldName() {
15293
        return _fieldName;
15294
      }
15295
    }
15296
 
15297
    // isset id assignments
15298
 
15299
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15300
    static {
15301
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15302
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15303
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15304
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15305
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15306
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15307
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_result.class, metaDataMap);
15308
    }
15309
 
15310
    public initializeHdfcEmiPayment_result() {
15311
    }
15312
 
15313
    public initializeHdfcEmiPayment_result(
15314
      String success,
15315
      PaymentException pe)
15316
    {
15317
      this();
15318
      this.success = success;
15319
      this.pe = pe;
15320
    }
15321
 
15322
    /**
15323
     * Performs a deep copy on <i>other</i>.
15324
     */
15325
    public initializeHdfcEmiPayment_result(initializeHdfcEmiPayment_result other) {
15326
      if (other.isSetSuccess()) {
15327
        this.success = other.success;
15328
      }
15329
      if (other.isSetPe()) {
15330
        this.pe = new PaymentException(other.pe);
15331
      }
15332
    }
15333
 
15334
    public initializeHdfcEmiPayment_result deepCopy() {
15335
      return new initializeHdfcEmiPayment_result(this);
15336
    }
15337
 
15338
    @Override
15339
    public void clear() {
15340
      this.success = null;
15341
      this.pe = null;
15342
    }
15343
 
15344
    public String getSuccess() {
15345
      return this.success;
15346
    }
15347
 
15348
    public void setSuccess(String success) {
15349
      this.success = success;
15350
    }
15351
 
15352
    public void unsetSuccess() {
15353
      this.success = null;
15354
    }
15355
 
15356
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
15357
    public boolean isSetSuccess() {
15358
      return this.success != null;
15359
    }
15360
 
15361
    public void setSuccessIsSet(boolean value) {
15362
      if (!value) {
15363
        this.success = null;
15364
      }
15365
    }
15366
 
15367
    public PaymentException getPe() {
15368
      return this.pe;
15369
    }
15370
 
15371
    public void setPe(PaymentException pe) {
15372
      this.pe = pe;
15373
    }
15374
 
15375
    public void unsetPe() {
15376
      this.pe = null;
15377
    }
15378
 
15379
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
15380
    public boolean isSetPe() {
15381
      return this.pe != null;
15382
    }
15383
 
15384
    public void setPeIsSet(boolean value) {
15385
      if (!value) {
15386
        this.pe = null;
15387
      }
15388
    }
15389
 
15390
    public void setFieldValue(_Fields field, Object value) {
15391
      switch (field) {
15392
      case SUCCESS:
15393
        if (value == null) {
15394
          unsetSuccess();
15395
        } else {
15396
          setSuccess((String)value);
15397
        }
15398
        break;
15399
 
15400
      case PE:
15401
        if (value == null) {
15402
          unsetPe();
15403
        } else {
15404
          setPe((PaymentException)value);
15405
        }
15406
        break;
15407
 
15408
      }
15409
    }
15410
 
15411
    public Object getFieldValue(_Fields field) {
15412
      switch (field) {
15413
      case SUCCESS:
15414
        return getSuccess();
15415
 
15416
      case PE:
15417
        return getPe();
15418
 
15419
      }
15420
      throw new IllegalStateException();
15421
    }
15422
 
15423
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15424
    public boolean isSet(_Fields field) {
15425
      if (field == null) {
15426
        throw new IllegalArgumentException();
15427
      }
15428
 
15429
      switch (field) {
15430
      case SUCCESS:
15431
        return isSetSuccess();
15432
      case PE:
15433
        return isSetPe();
15434
      }
15435
      throw new IllegalStateException();
15436
    }
15437
 
15438
    @Override
15439
    public boolean equals(Object that) {
15440
      if (that == null)
15441
        return false;
15442
      if (that instanceof initializeHdfcEmiPayment_result)
15443
        return this.equals((initializeHdfcEmiPayment_result)that);
15444
      return false;
15445
    }
15446
 
15447
    public boolean equals(initializeHdfcEmiPayment_result that) {
15448
      if (that == null)
15449
        return false;
15450
 
15451
      boolean this_present_success = true && this.isSetSuccess();
15452
      boolean that_present_success = true && that.isSetSuccess();
15453
      if (this_present_success || that_present_success) {
15454
        if (!(this_present_success && that_present_success))
15455
          return false;
15456
        if (!this.success.equals(that.success))
15457
          return false;
15458
      }
15459
 
15460
      boolean this_present_pe = true && this.isSetPe();
15461
      boolean that_present_pe = true && that.isSetPe();
15462
      if (this_present_pe || that_present_pe) {
15463
        if (!(this_present_pe && that_present_pe))
15464
          return false;
15465
        if (!this.pe.equals(that.pe))
15466
          return false;
15467
      }
15468
 
15469
      return true;
15470
    }
15471
 
15472
    @Override
15473
    public int hashCode() {
15474
      return 0;
15475
    }
15476
 
15477
    public int compareTo(initializeHdfcEmiPayment_result other) {
15478
      if (!getClass().equals(other.getClass())) {
15479
        return getClass().getName().compareTo(other.getClass().getName());
15480
      }
15481
 
15482
      int lastComparison = 0;
15483
      initializeHdfcEmiPayment_result typedOther = (initializeHdfcEmiPayment_result)other;
15484
 
15485
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
15486
      if (lastComparison != 0) {
15487
        return lastComparison;
15488
      }
15489
      if (isSetSuccess()) {
15490
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15491
        if (lastComparison != 0) {
15492
          return lastComparison;
15493
        }
15494
      }
15495
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
15496
      if (lastComparison != 0) {
15497
        return lastComparison;
15498
      }
15499
      if (isSetPe()) {
15500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
15501
        if (lastComparison != 0) {
15502
          return lastComparison;
15503
        }
15504
      }
15505
      return 0;
15506
    }
15507
 
15508
    public _Fields fieldForId(int fieldId) {
15509
      return _Fields.findByThriftId(fieldId);
15510
    }
15511
 
15512
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15513
      org.apache.thrift.protocol.TField field;
15514
      iprot.readStructBegin();
15515
      while (true)
15516
      {
15517
        field = iprot.readFieldBegin();
15518
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15519
          break;
15520
        }
15521
        switch (field.id) {
15522
          case 0: // SUCCESS
15523
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15524
              this.success = iprot.readString();
15525
            } else { 
15526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15527
            }
15528
            break;
15529
          case 1: // PE
15530
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15531
              this.pe = new PaymentException();
15532
              this.pe.read(iprot);
15533
            } else { 
15534
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15535
            }
15536
            break;
15537
          default:
15538
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15539
        }
15540
        iprot.readFieldEnd();
15541
      }
15542
      iprot.readStructEnd();
15543
      validate();
15544
    }
15545
 
15546
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15547
      oprot.writeStructBegin(STRUCT_DESC);
15548
 
15549
      if (this.isSetSuccess()) {
15550
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15551
        oprot.writeString(this.success);
15552
        oprot.writeFieldEnd();
15553
      } else if (this.isSetPe()) {
15554
        oprot.writeFieldBegin(PE_FIELD_DESC);
15555
        this.pe.write(oprot);
15556
        oprot.writeFieldEnd();
15557
      }
15558
      oprot.writeFieldStop();
15559
      oprot.writeStructEnd();
15560
    }
15561
 
15562
    @Override
15563
    public String toString() {
15564
      StringBuilder sb = new StringBuilder("initializeHdfcEmiPayment_result(");
15565
      boolean first = true;
15566
 
15567
      sb.append("success:");
15568
      if (this.success == null) {
15569
        sb.append("null");
15570
      } else {
15571
        sb.append(this.success);
15572
      }
15573
      first = false;
15574
      if (!first) sb.append(", ");
15575
      sb.append("pe:");
15576
      if (this.pe == null) {
15577
        sb.append("null");
15578
      } else {
15579
        sb.append(this.pe);
15580
      }
15581
      first = false;
15582
      sb.append(")");
15583
      return sb.toString();
15584
    }
15585
 
15586
    public void validate() throws org.apache.thrift.TException {
15587
      // check for required fields
15588
    }
15589
 
15590
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15591
      try {
15592
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15593
      } catch (org.apache.thrift.TException te) {
15594
        throw new java.io.IOException(te);
15595
      }
15596
    }
15597
 
15598
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15599
      try {
15600
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15601
      } catch (org.apache.thrift.TException te) {
15602
        throw new java.io.IOException(te);
15603
      }
15604
    }
15605
 
15606
  }
15607
 
3430 rajveer 15608
  public static class createRefund_args implements org.apache.thrift.TBase<createRefund_args, createRefund_args._Fields>, java.io.Serializable, Cloneable   {
15609
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_args");
2462 chandransh 15610
 
3430 rajveer 15611
    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);
15612
    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);
15613
    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 15614
 
3430 rajveer 15615
    private long orderId; // required
15616
    private long merchantTxnId; // required
15617
    private double amount; // required
2462 chandransh 15618
 
15619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15620
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3010 chandransh 15621
      ORDER_ID((short)1, "orderId"),
15622
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
15623
      AMOUNT((short)3, "amount");
2462 chandransh 15624
 
15625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15626
 
15627
      static {
15628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15629
          byName.put(field.getFieldName(), field);
15630
        }
15631
      }
15632
 
15633
      /**
15634
       * Find the _Fields constant that matches fieldId, or null if its not found.
15635
       */
15636
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15637
        switch(fieldId) {
15638
          case 1: // ORDER_ID
15639
            return ORDER_ID;
15640
          case 2: // MERCHANT_TXN_ID
15641
            return MERCHANT_TXN_ID;
15642
          case 3: // AMOUNT
15643
            return AMOUNT;
15644
          default:
15645
            return null;
15646
        }
2462 chandransh 15647
      }
15648
 
15649
      /**
15650
       * Find the _Fields constant that matches fieldId, throwing an exception
15651
       * if it is not found.
15652
       */
15653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15654
        _Fields fields = findByThriftId(fieldId);
15655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15656
        return fields;
15657
      }
15658
 
15659
      /**
15660
       * Find the _Fields constant that matches name, or null if its not found.
15661
       */
15662
      public static _Fields findByName(String name) {
15663
        return byName.get(name);
15664
      }
15665
 
15666
      private final short _thriftId;
15667
      private final String _fieldName;
15668
 
15669
      _Fields(short thriftId, String fieldName) {
15670
        _thriftId = thriftId;
15671
        _fieldName = fieldName;
15672
      }
15673
 
15674
      public short getThriftFieldId() {
15675
        return _thriftId;
15676
      }
15677
 
15678
      public String getFieldName() {
15679
        return _fieldName;
15680
      }
15681
    }
15682
 
15683
    // isset id assignments
3010 chandransh 15684
    private static final int __ORDERID_ISSET_ID = 0;
15685
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
15686
    private static final int __AMOUNT_ISSET_ID = 2;
15687
    private BitSet __isset_bit_vector = new BitSet(3);
2462 chandransh 15688
 
3430 rajveer 15689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 15690
    static {
3430 rajveer 15691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15692
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15694
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15695
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15696
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15697
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
15698
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15699
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
2462 chandransh 15700
    }
15701
 
3010 chandransh 15702
    public createRefund_args() {
2462 chandransh 15703
    }
15704
 
3010 chandransh 15705
    public createRefund_args(
15706
      long orderId,
15707
      long merchantTxnId,
15708
      double amount)
2462 chandransh 15709
    {
15710
      this();
3010 chandransh 15711
      this.orderId = orderId;
15712
      setOrderIdIsSet(true);
15713
      this.merchantTxnId = merchantTxnId;
15714
      setMerchantTxnIdIsSet(true);
15715
      this.amount = amount;
15716
      setAmountIsSet(true);
2462 chandransh 15717
    }
15718
 
15719
    /**
15720
     * Performs a deep copy on <i>other</i>.
15721
     */
3010 chandransh 15722
    public createRefund_args(createRefund_args other) {
2462 chandransh 15723
      __isset_bit_vector.clear();
15724
      __isset_bit_vector.or(other.__isset_bit_vector);
3010 chandransh 15725
      this.orderId = other.orderId;
15726
      this.merchantTxnId = other.merchantTxnId;
15727
      this.amount = other.amount;
2462 chandransh 15728
    }
15729
 
3010 chandransh 15730
    public createRefund_args deepCopy() {
15731
      return new createRefund_args(this);
2462 chandransh 15732
    }
15733
 
3430 rajveer 15734
    @Override
15735
    public void clear() {
15736
      setOrderIdIsSet(false);
15737
      this.orderId = 0;
15738
      setMerchantTxnIdIsSet(false);
15739
      this.merchantTxnId = 0;
15740
      setAmountIsSet(false);
15741
      this.amount = 0.0;
2462 chandransh 15742
    }
15743
 
3010 chandransh 15744
    public long getOrderId() {
15745
      return this.orderId;
2462 chandransh 15746
    }
15747
 
3430 rajveer 15748
    public void setOrderId(long orderId) {
3010 chandransh 15749
      this.orderId = orderId;
15750
      setOrderIdIsSet(true);
2462 chandransh 15751
    }
15752
 
3010 chandransh 15753
    public void unsetOrderId() {
15754
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
2462 chandransh 15755
    }
15756
 
3430 rajveer 15757
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
3010 chandransh 15758
    public boolean isSetOrderId() {
15759
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
2462 chandransh 15760
    }
15761
 
3010 chandransh 15762
    public void setOrderIdIsSet(boolean value) {
15763
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
2462 chandransh 15764
    }
15765
 
3010 chandransh 15766
    public long getMerchantTxnId() {
15767
      return this.merchantTxnId;
15768
    }
15769
 
3430 rajveer 15770
    public void setMerchantTxnId(long merchantTxnId) {
3010 chandransh 15771
      this.merchantTxnId = merchantTxnId;
15772
      setMerchantTxnIdIsSet(true);
15773
    }
15774
 
15775
    public void unsetMerchantTxnId() {
15776
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
15777
    }
15778
 
3430 rajveer 15779
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
3010 chandransh 15780
    public boolean isSetMerchantTxnId() {
15781
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
15782
    }
15783
 
15784
    public void setMerchantTxnIdIsSet(boolean value) {
15785
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
15786
    }
15787
 
15788
    public double getAmount() {
15789
      return this.amount;
15790
    }
15791
 
3430 rajveer 15792
    public void setAmount(double amount) {
3010 chandransh 15793
      this.amount = amount;
15794
      setAmountIsSet(true);
15795
    }
15796
 
15797
    public void unsetAmount() {
15798
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
15799
    }
15800
 
3430 rajveer 15801
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
3010 chandransh 15802
    public boolean isSetAmount() {
15803
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
15804
    }
15805
 
15806
    public void setAmountIsSet(boolean value) {
15807
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
15808
    }
15809
 
2462 chandransh 15810
    public void setFieldValue(_Fields field, Object value) {
15811
      switch (field) {
3010 chandransh 15812
      case ORDER_ID:
2462 chandransh 15813
        if (value == null) {
3010 chandransh 15814
          unsetOrderId();
2462 chandransh 15815
        } else {
3010 chandransh 15816
          setOrderId((Long)value);
2462 chandransh 15817
        }
15818
        break;
15819
 
3010 chandransh 15820
      case MERCHANT_TXN_ID:
15821
        if (value == null) {
15822
          unsetMerchantTxnId();
15823
        } else {
15824
          setMerchantTxnId((Long)value);
15825
        }
15826
        break;
15827
 
15828
      case AMOUNT:
15829
        if (value == null) {
15830
          unsetAmount();
15831
        } else {
15832
          setAmount((Double)value);
15833
        }
15834
        break;
15835
 
2462 chandransh 15836
      }
15837
    }
15838
 
15839
    public Object getFieldValue(_Fields field) {
15840
      switch (field) {
3010 chandransh 15841
      case ORDER_ID:
3430 rajveer 15842
        return Long.valueOf(getOrderId());
2462 chandransh 15843
 
3010 chandransh 15844
      case MERCHANT_TXN_ID:
3430 rajveer 15845
        return Long.valueOf(getMerchantTxnId());
3010 chandransh 15846
 
15847
      case AMOUNT:
3430 rajveer 15848
        return Double.valueOf(getAmount());
3010 chandransh 15849
 
2462 chandransh 15850
      }
15851
      throw new IllegalStateException();
15852
    }
15853
 
3430 rajveer 15854
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15855
    public boolean isSet(_Fields field) {
15856
      if (field == null) {
15857
        throw new IllegalArgumentException();
15858
      }
2462 chandransh 15859
 
15860
      switch (field) {
3010 chandransh 15861
      case ORDER_ID:
15862
        return isSetOrderId();
15863
      case MERCHANT_TXN_ID:
15864
        return isSetMerchantTxnId();
15865
      case AMOUNT:
15866
        return isSetAmount();
2462 chandransh 15867
      }
15868
      throw new IllegalStateException();
15869
    }
15870
 
15871
    @Override
15872
    public boolean equals(Object that) {
15873
      if (that == null)
15874
        return false;
3010 chandransh 15875
      if (that instanceof createRefund_args)
15876
        return this.equals((createRefund_args)that);
2462 chandransh 15877
      return false;
15878
    }
15879
 
3010 chandransh 15880
    public boolean equals(createRefund_args that) {
2462 chandransh 15881
      if (that == null)
15882
        return false;
15883
 
3010 chandransh 15884
      boolean this_present_orderId = true;
15885
      boolean that_present_orderId = true;
15886
      if (this_present_orderId || that_present_orderId) {
15887
        if (!(this_present_orderId && that_present_orderId))
2462 chandransh 15888
          return false;
3010 chandransh 15889
        if (this.orderId != that.orderId)
2462 chandransh 15890
          return false;
15891
      }
15892
 
3010 chandransh 15893
      boolean this_present_merchantTxnId = true;
15894
      boolean that_present_merchantTxnId = true;
15895
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
15896
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
15897
          return false;
15898
        if (this.merchantTxnId != that.merchantTxnId)
15899
          return false;
15900
      }
15901
 
15902
      boolean this_present_amount = true;
15903
      boolean that_present_amount = true;
15904
      if (this_present_amount || that_present_amount) {
15905
        if (!(this_present_amount && that_present_amount))
15906
          return false;
15907
        if (this.amount != that.amount)
15908
          return false;
15909
      }
15910
 
2462 chandransh 15911
      return true;
15912
    }
15913
 
15914
    @Override
15915
    public int hashCode() {
15916
      return 0;
15917
    }
15918
 
3010 chandransh 15919
    public int compareTo(createRefund_args other) {
2462 chandransh 15920
      if (!getClass().equals(other.getClass())) {
15921
        return getClass().getName().compareTo(other.getClass().getName());
15922
      }
15923
 
15924
      int lastComparison = 0;
3010 chandransh 15925
      createRefund_args typedOther = (createRefund_args)other;
2462 chandransh 15926
 
3430 rajveer 15927
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
2462 chandransh 15928
      if (lastComparison != 0) {
15929
        return lastComparison;
15930
      }
3430 rajveer 15931
      if (isSetOrderId()) {
15932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
15933
        if (lastComparison != 0) {
15934
          return lastComparison;
15935
        }
2462 chandransh 15936
      }
3430 rajveer 15937
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
3010 chandransh 15938
      if (lastComparison != 0) {
15939
        return lastComparison;
15940
      }
3430 rajveer 15941
      if (isSetMerchantTxnId()) {
15942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
15943
        if (lastComparison != 0) {
15944
          return lastComparison;
15945
        }
3010 chandransh 15946
      }
3430 rajveer 15947
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
3010 chandransh 15948
      if (lastComparison != 0) {
15949
        return lastComparison;
15950
      }
3430 rajveer 15951
      if (isSetAmount()) {
15952
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
15953
        if (lastComparison != 0) {
15954
          return lastComparison;
15955
        }
3010 chandransh 15956
      }
2462 chandransh 15957
      return 0;
15958
    }
15959
 
3430 rajveer 15960
    public _Fields fieldForId(int fieldId) {
15961
      return _Fields.findByThriftId(fieldId);
15962
    }
15963
 
15964
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15965
      org.apache.thrift.protocol.TField field;
2462 chandransh 15966
      iprot.readStructBegin();
15967
      while (true)
15968
      {
15969
        field = iprot.readFieldBegin();
3430 rajveer 15970
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 15971
          break;
15972
        }
3430 rajveer 15973
        switch (field.id) {
15974
          case 1: // ORDER_ID
15975
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15976
              this.orderId = iprot.readI64();
15977
              setOrderIdIsSet(true);
15978
            } else { 
15979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15980
            }
15981
            break;
15982
          case 2: // MERCHANT_TXN_ID
15983
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15984
              this.merchantTxnId = iprot.readI64();
15985
              setMerchantTxnIdIsSet(true);
15986
            } else { 
15987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15988
            }
15989
            break;
15990
          case 3: // AMOUNT
15991
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
15992
              this.amount = iprot.readDouble();
15993
              setAmountIsSet(true);
15994
            } else { 
15995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15996
            }
15997
            break;
15998
          default:
15999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 16000
        }
3430 rajveer 16001
        iprot.readFieldEnd();
2462 chandransh 16002
      }
16003
      iprot.readStructEnd();
16004
      validate();
16005
    }
16006
 
3430 rajveer 16007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 16008
      validate();
16009
 
16010
      oprot.writeStructBegin(STRUCT_DESC);
3010 chandransh 16011
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
16012
      oprot.writeI64(this.orderId);
2462 chandransh 16013
      oprot.writeFieldEnd();
3010 chandransh 16014
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
16015
      oprot.writeI64(this.merchantTxnId);
16016
      oprot.writeFieldEnd();
16017
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
16018
      oprot.writeDouble(this.amount);
16019
      oprot.writeFieldEnd();
2462 chandransh 16020
      oprot.writeFieldStop();
16021
      oprot.writeStructEnd();
16022
    }
16023
 
16024
    @Override
16025
    public String toString() {
3010 chandransh 16026
      StringBuilder sb = new StringBuilder("createRefund_args(");
2462 chandransh 16027
      boolean first = true;
16028
 
3010 chandransh 16029
      sb.append("orderId:");
16030
      sb.append(this.orderId);
2462 chandransh 16031
      first = false;
3010 chandransh 16032
      if (!first) sb.append(", ");
16033
      sb.append("merchantTxnId:");
16034
      sb.append(this.merchantTxnId);
16035
      first = false;
16036
      if (!first) sb.append(", ");
16037
      sb.append("amount:");
16038
      sb.append(this.amount);
16039
      first = false;
2462 chandransh 16040
      sb.append(")");
16041
      return sb.toString();
16042
    }
16043
 
3430 rajveer 16044
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 16045
      // check for required fields
16046
    }
16047
 
3430 rajveer 16048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16049
      try {
16050
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16051
      } catch (org.apache.thrift.TException te) {
16052
        throw new java.io.IOException(te);
16053
      }
16054
    }
16055
 
16056
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16057
      try {
16058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16059
      } catch (org.apache.thrift.TException te) {
16060
        throw new java.io.IOException(te);
16061
      }
16062
    }
16063
 
2462 chandransh 16064
  }
16065
 
3430 rajveer 16066
  public static class createRefund_result implements org.apache.thrift.TBase<createRefund_result, createRefund_result._Fields>, java.io.Serializable, Cloneable   {
16067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createRefund_result");
2462 chandransh 16068
 
3430 rajveer 16069
    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);
16070
    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 16071
 
3430 rajveer 16072
    private long success; // required
16073
    private PaymentException pe; // required
2462 chandransh 16074
 
16075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2462 chandransh 16077
      SUCCESS((short)0, "success"),
16078
      PE((short)1, "pe");
16079
 
16080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16081
 
16082
      static {
16083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16084
          byName.put(field.getFieldName(), field);
16085
        }
16086
      }
16087
 
16088
      /**
16089
       * Find the _Fields constant that matches fieldId, or null if its not found.
16090
       */
16091
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16092
        switch(fieldId) {
16093
          case 0: // SUCCESS
16094
            return SUCCESS;
16095
          case 1: // PE
16096
            return PE;
16097
          default:
16098
            return null;
16099
        }
2462 chandransh 16100
      }
16101
 
16102
      /**
16103
       * Find the _Fields constant that matches fieldId, throwing an exception
16104
       * if it is not found.
16105
       */
16106
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16107
        _Fields fields = findByThriftId(fieldId);
16108
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16109
        return fields;
16110
      }
16111
 
16112
      /**
16113
       * Find the _Fields constant that matches name, or null if its not found.
16114
       */
16115
      public static _Fields findByName(String name) {
16116
        return byName.get(name);
16117
      }
16118
 
16119
      private final short _thriftId;
16120
      private final String _fieldName;
16121
 
16122
      _Fields(short thriftId, String fieldName) {
16123
        _thriftId = thriftId;
16124
        _fieldName = fieldName;
16125
      }
16126
 
16127
      public short getThriftFieldId() {
16128
        return _thriftId;
16129
      }
16130
 
16131
      public String getFieldName() {
16132
        return _fieldName;
16133
      }
16134
    }
16135
 
16136
    // isset id assignments
3010 chandransh 16137
    private static final int __SUCCESS_ISSET_ID = 0;
16138
    private BitSet __isset_bit_vector = new BitSet(1);
2462 chandransh 16139
 
3430 rajveer 16140
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2462 chandransh 16141
    static {
3430 rajveer 16142
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16143
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
16145
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16146
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16147
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16148
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
2462 chandransh 16149
    }
16150
 
3010 chandransh 16151
    public createRefund_result() {
2462 chandransh 16152
    }
16153
 
3010 chandransh 16154
    public createRefund_result(
16155
      long success,
2462 chandransh 16156
      PaymentException pe)
16157
    {
16158
      this();
16159
      this.success = success;
3010 chandransh 16160
      setSuccessIsSet(true);
2462 chandransh 16161
      this.pe = pe;
16162
    }
16163
 
16164
    /**
16165
     * Performs a deep copy on <i>other</i>.
16166
     */
3010 chandransh 16167
    public createRefund_result(createRefund_result other) {
16168
      __isset_bit_vector.clear();
16169
      __isset_bit_vector.or(other.__isset_bit_vector);
16170
      this.success = other.success;
2462 chandransh 16171
      if (other.isSetPe()) {
16172
        this.pe = new PaymentException(other.pe);
16173
      }
16174
    }
16175
 
3010 chandransh 16176
    public createRefund_result deepCopy() {
16177
      return new createRefund_result(this);
2462 chandransh 16178
    }
16179
 
3430 rajveer 16180
    @Override
16181
    public void clear() {
16182
      setSuccessIsSet(false);
16183
      this.success = 0;
16184
      this.pe = null;
2462 chandransh 16185
    }
16186
 
3010 chandransh 16187
    public long getSuccess() {
2462 chandransh 16188
      return this.success;
16189
    }
16190
 
3430 rajveer 16191
    public void setSuccess(long success) {
2462 chandransh 16192
      this.success = success;
3010 chandransh 16193
      setSuccessIsSet(true);
2462 chandransh 16194
    }
16195
 
16196
    public void unsetSuccess() {
3010 chandransh 16197
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2462 chandransh 16198
    }
16199
 
3430 rajveer 16200
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2462 chandransh 16201
    public boolean isSetSuccess() {
3010 chandransh 16202
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2462 chandransh 16203
    }
16204
 
16205
    public void setSuccessIsSet(boolean value) {
3010 chandransh 16206
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2462 chandransh 16207
    }
16208
 
16209
    public PaymentException getPe() {
16210
      return this.pe;
16211
    }
16212
 
3430 rajveer 16213
    public void setPe(PaymentException pe) {
2462 chandransh 16214
      this.pe = pe;
16215
    }
16216
 
16217
    public void unsetPe() {
16218
      this.pe = null;
16219
    }
16220
 
3430 rajveer 16221
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2462 chandransh 16222
    public boolean isSetPe() {
16223
      return this.pe != null;
16224
    }
16225
 
16226
    public void setPeIsSet(boolean value) {
16227
      if (!value) {
16228
        this.pe = null;
16229
      }
16230
    }
16231
 
16232
    public void setFieldValue(_Fields field, Object value) {
16233
      switch (field) {
16234
      case SUCCESS:
16235
        if (value == null) {
16236
          unsetSuccess();
16237
        } else {
3010 chandransh 16238
          setSuccess((Long)value);
2462 chandransh 16239
        }
16240
        break;
16241
 
16242
      case PE:
16243
        if (value == null) {
16244
          unsetPe();
16245
        } else {
16246
          setPe((PaymentException)value);
16247
        }
16248
        break;
16249
 
16250
      }
16251
    }
16252
 
16253
    public Object getFieldValue(_Fields field) {
16254
      switch (field) {
16255
      case SUCCESS:
3430 rajveer 16256
        return Long.valueOf(getSuccess());
2462 chandransh 16257
 
16258
      case PE:
16259
        return getPe();
16260
 
16261
      }
16262
      throw new IllegalStateException();
16263
    }
16264
 
3430 rajveer 16265
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16266
    public boolean isSet(_Fields field) {
16267
      if (field == null) {
16268
        throw new IllegalArgumentException();
16269
      }
2462 chandransh 16270
 
16271
      switch (field) {
16272
      case SUCCESS:
16273
        return isSetSuccess();
16274
      case PE:
16275
        return isSetPe();
16276
      }
16277
      throw new IllegalStateException();
16278
    }
16279
 
16280
    @Override
16281
    public boolean equals(Object that) {
16282
      if (that == null)
16283
        return false;
3010 chandransh 16284
      if (that instanceof createRefund_result)
16285
        return this.equals((createRefund_result)that);
2462 chandransh 16286
      return false;
16287
    }
16288
 
3010 chandransh 16289
    public boolean equals(createRefund_result that) {
2462 chandransh 16290
      if (that == null)
16291
        return false;
16292
 
3010 chandransh 16293
      boolean this_present_success = true;
16294
      boolean that_present_success = true;
2462 chandransh 16295
      if (this_present_success || that_present_success) {
16296
        if (!(this_present_success && that_present_success))
16297
          return false;
3010 chandransh 16298
        if (this.success != that.success)
2462 chandransh 16299
          return false;
16300
      }
16301
 
16302
      boolean this_present_pe = true && this.isSetPe();
16303
      boolean that_present_pe = true && that.isSetPe();
16304
      if (this_present_pe || that_present_pe) {
16305
        if (!(this_present_pe && that_present_pe))
16306
          return false;
16307
        if (!this.pe.equals(that.pe))
16308
          return false;
16309
      }
16310
 
16311
      return true;
16312
    }
16313
 
16314
    @Override
16315
    public int hashCode() {
16316
      return 0;
16317
    }
16318
 
3010 chandransh 16319
    public int compareTo(createRefund_result other) {
2462 chandransh 16320
      if (!getClass().equals(other.getClass())) {
16321
        return getClass().getName().compareTo(other.getClass().getName());
16322
      }
16323
 
16324
      int lastComparison = 0;
3010 chandransh 16325
      createRefund_result typedOther = (createRefund_result)other;
2462 chandransh 16326
 
3430 rajveer 16327
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2462 chandransh 16328
      if (lastComparison != 0) {
16329
        return lastComparison;
16330
      }
3430 rajveer 16331
      if (isSetSuccess()) {
16332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16333
        if (lastComparison != 0) {
16334
          return lastComparison;
16335
        }
2462 chandransh 16336
      }
3430 rajveer 16337
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2462 chandransh 16338
      if (lastComparison != 0) {
16339
        return lastComparison;
16340
      }
3430 rajveer 16341
      if (isSetPe()) {
16342
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
16343
        if (lastComparison != 0) {
16344
          return lastComparison;
16345
        }
2462 chandransh 16346
      }
16347
      return 0;
16348
    }
16349
 
3430 rajveer 16350
    public _Fields fieldForId(int fieldId) {
16351
      return _Fields.findByThriftId(fieldId);
16352
    }
16353
 
16354
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16355
      org.apache.thrift.protocol.TField field;
2462 chandransh 16356
      iprot.readStructBegin();
16357
      while (true)
16358
      {
16359
        field = iprot.readFieldBegin();
3430 rajveer 16360
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2462 chandransh 16361
          break;
16362
        }
3430 rajveer 16363
        switch (field.id) {
16364
          case 0: // SUCCESS
16365
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16366
              this.success = iprot.readI64();
16367
              setSuccessIsSet(true);
16368
            } else { 
16369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16370
            }
16371
            break;
16372
          case 1: // PE
16373
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16374
              this.pe = new PaymentException();
16375
              this.pe.read(iprot);
16376
            } else { 
16377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16378
            }
16379
            break;
16380
          default:
16381
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2462 chandransh 16382
        }
3430 rajveer 16383
        iprot.readFieldEnd();
2462 chandransh 16384
      }
16385
      iprot.readStructEnd();
16386
      validate();
16387
    }
16388
 
3430 rajveer 16389
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2462 chandransh 16390
      oprot.writeStructBegin(STRUCT_DESC);
16391
 
16392
      if (this.isSetSuccess()) {
16393
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 16394
        oprot.writeI64(this.success);
2462 chandransh 16395
        oprot.writeFieldEnd();
16396
      } else if (this.isSetPe()) {
16397
        oprot.writeFieldBegin(PE_FIELD_DESC);
16398
        this.pe.write(oprot);
16399
        oprot.writeFieldEnd();
16400
      }
16401
      oprot.writeFieldStop();
16402
      oprot.writeStructEnd();
16403
    }
16404
 
16405
    @Override
16406
    public String toString() {
3010 chandransh 16407
      StringBuilder sb = new StringBuilder("createRefund_result(");
2462 chandransh 16408
      boolean first = true;
16409
 
16410
      sb.append("success:");
3010 chandransh 16411
      sb.append(this.success);
2462 chandransh 16412
      first = false;
16413
      if (!first) sb.append(", ");
16414
      sb.append("pe:");
16415
      if (this.pe == null) {
16416
        sb.append("null");
16417
      } else {
16418
        sb.append(this.pe);
16419
      }
16420
      first = false;
16421
      sb.append(")");
16422
      return sb.toString();
16423
    }
16424
 
3430 rajveer 16425
    public void validate() throws org.apache.thrift.TException {
2462 chandransh 16426
      // check for required fields
16427
    }
16428
 
3430 rajveer 16429
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16430
      try {
16431
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16432
      } catch (org.apache.thrift.TException te) {
16433
        throw new java.io.IOException(te);
16434
      }
16435
    }
16436
 
16437
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16438
      try {
16439
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16440
      } catch (org.apache.thrift.TException te) {
16441
        throw new java.io.IOException(te);
16442
      }
16443
    }
16444
 
2462 chandransh 16445
  }
16446
 
3430 rajveer 16447
  public static class capturePayment_args implements org.apache.thrift.TBase<capturePayment_args, capturePayment_args._Fields>, java.io.Serializable, Cloneable   {
16448
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_args");
2690 chandransh 16449
 
3430 rajveer 16450
    private static final org.apache.thrift.protocol.TField MERCHANT_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("merchantTxnId", org.apache.thrift.protocol.TType.I64, (short)1);
8618 rajveer 16451
    private static final org.apache.thrift.protocol.TField IS_DIGITAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDigital", org.apache.thrift.protocol.TType.BOOL, (short)2);
2690 chandransh 16452
 
3430 rajveer 16453
    private long merchantTxnId; // required
8618 rajveer 16454
    private boolean isDigital; // required
2690 chandransh 16455
 
16456
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16457
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8618 rajveer 16458
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
16459
      IS_DIGITAL((short)2, "isDigital");
2690 chandransh 16460
 
16461
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16462
 
16463
      static {
16464
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16465
          byName.put(field.getFieldName(), field);
16466
        }
16467
      }
16468
 
16469
      /**
16470
       * Find the _Fields constant that matches fieldId, or null if its not found.
16471
       */
16472
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16473
        switch(fieldId) {
16474
          case 1: // MERCHANT_TXN_ID
16475
            return MERCHANT_TXN_ID;
8618 rajveer 16476
          case 2: // IS_DIGITAL
16477
            return IS_DIGITAL;
3430 rajveer 16478
          default:
16479
            return null;
16480
        }
2690 chandransh 16481
      }
16482
 
16483
      /**
16484
       * Find the _Fields constant that matches fieldId, throwing an exception
16485
       * if it is not found.
16486
       */
16487
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16488
        _Fields fields = findByThriftId(fieldId);
16489
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16490
        return fields;
16491
      }
16492
 
16493
      /**
16494
       * Find the _Fields constant that matches name, or null if its not found.
16495
       */
16496
      public static _Fields findByName(String name) {
16497
        return byName.get(name);
16498
      }
16499
 
16500
      private final short _thriftId;
16501
      private final String _fieldName;
16502
 
16503
      _Fields(short thriftId, String fieldName) {
16504
        _thriftId = thriftId;
16505
        _fieldName = fieldName;
16506
      }
16507
 
16508
      public short getThriftFieldId() {
16509
        return _thriftId;
16510
      }
16511
 
16512
      public String getFieldName() {
16513
        return _fieldName;
16514
      }
16515
    }
16516
 
16517
    // isset id assignments
3010 chandransh 16518
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
8618 rajveer 16519
    private static final int __ISDIGITAL_ISSET_ID = 1;
16520
    private BitSet __isset_bit_vector = new BitSet(2);
2690 chandransh 16521
 
3430 rajveer 16522
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 16523
    static {
3430 rajveer 16524
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16525
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16526
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8618 rajveer 16527
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16528
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
3430 rajveer 16529
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16530
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
2690 chandransh 16531
    }
16532
 
3010 chandransh 16533
    public capturePayment_args() {
2690 chandransh 16534
    }
16535
 
3010 chandransh 16536
    public capturePayment_args(
8618 rajveer 16537
      long merchantTxnId,
16538
      boolean isDigital)
2690 chandransh 16539
    {
16540
      this();
16541
      this.merchantTxnId = merchantTxnId;
16542
      setMerchantTxnIdIsSet(true);
8618 rajveer 16543
      this.isDigital = isDigital;
16544
      setIsDigitalIsSet(true);
2690 chandransh 16545
    }
16546
 
16547
    /**
16548
     * Performs a deep copy on <i>other</i>.
16549
     */
3010 chandransh 16550
    public capturePayment_args(capturePayment_args other) {
2690 chandransh 16551
      __isset_bit_vector.clear();
16552
      __isset_bit_vector.or(other.__isset_bit_vector);
16553
      this.merchantTxnId = other.merchantTxnId;
8618 rajveer 16554
      this.isDigital = other.isDigital;
2690 chandransh 16555
    }
16556
 
3010 chandransh 16557
    public capturePayment_args deepCopy() {
16558
      return new capturePayment_args(this);
2690 chandransh 16559
    }
16560
 
3430 rajveer 16561
    @Override
16562
    public void clear() {
16563
      setMerchantTxnIdIsSet(false);
16564
      this.merchantTxnId = 0;
8618 rajveer 16565
      setIsDigitalIsSet(false);
16566
      this.isDigital = false;
2690 chandransh 16567
    }
16568
 
16569
    public long getMerchantTxnId() {
16570
      return this.merchantTxnId;
16571
    }
16572
 
3430 rajveer 16573
    public void setMerchantTxnId(long merchantTxnId) {
2690 chandransh 16574
      this.merchantTxnId = merchantTxnId;
16575
      setMerchantTxnIdIsSet(true);
16576
    }
16577
 
16578
    public void unsetMerchantTxnId() {
16579
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
16580
    }
16581
 
3430 rajveer 16582
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
2690 chandransh 16583
    public boolean isSetMerchantTxnId() {
16584
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
16585
    }
16586
 
16587
    public void setMerchantTxnIdIsSet(boolean value) {
16588
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
16589
    }
16590
 
8618 rajveer 16591
    public boolean isIsDigital() {
16592
      return this.isDigital;
16593
    }
16594
 
16595
    public void setIsDigital(boolean isDigital) {
16596
      this.isDigital = isDigital;
16597
      setIsDigitalIsSet(true);
16598
    }
16599
 
16600
    public void unsetIsDigital() {
16601
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
16602
    }
16603
 
16604
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
16605
    public boolean isSetIsDigital() {
16606
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
16607
    }
16608
 
16609
    public void setIsDigitalIsSet(boolean value) {
16610
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
16611
    }
16612
 
2690 chandransh 16613
    public void setFieldValue(_Fields field, Object value) {
16614
      switch (field) {
16615
      case MERCHANT_TXN_ID:
16616
        if (value == null) {
16617
          unsetMerchantTxnId();
16618
        } else {
16619
          setMerchantTxnId((Long)value);
16620
        }
16621
        break;
16622
 
8618 rajveer 16623
      case IS_DIGITAL:
16624
        if (value == null) {
16625
          unsetIsDigital();
16626
        } else {
16627
          setIsDigital((Boolean)value);
16628
        }
16629
        break;
16630
 
2690 chandransh 16631
      }
16632
    }
16633
 
16634
    public Object getFieldValue(_Fields field) {
16635
      switch (field) {
16636
      case MERCHANT_TXN_ID:
3430 rajveer 16637
        return Long.valueOf(getMerchantTxnId());
2690 chandransh 16638
 
8618 rajveer 16639
      case IS_DIGITAL:
16640
        return Boolean.valueOf(isIsDigital());
16641
 
2690 chandransh 16642
      }
16643
      throw new IllegalStateException();
16644
    }
16645
 
3430 rajveer 16646
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16647
    public boolean isSet(_Fields field) {
16648
      if (field == null) {
16649
        throw new IllegalArgumentException();
16650
      }
2690 chandransh 16651
 
16652
      switch (field) {
16653
      case MERCHANT_TXN_ID:
16654
        return isSetMerchantTxnId();
8618 rajveer 16655
      case IS_DIGITAL:
16656
        return isSetIsDigital();
2690 chandransh 16657
      }
16658
      throw new IllegalStateException();
16659
    }
16660
 
16661
    @Override
16662
    public boolean equals(Object that) {
16663
      if (that == null)
16664
        return false;
3010 chandransh 16665
      if (that instanceof capturePayment_args)
16666
        return this.equals((capturePayment_args)that);
2690 chandransh 16667
      return false;
16668
    }
16669
 
3010 chandransh 16670
    public boolean equals(capturePayment_args that) {
2690 chandransh 16671
      if (that == null)
16672
        return false;
16673
 
16674
      boolean this_present_merchantTxnId = true;
16675
      boolean that_present_merchantTxnId = true;
16676
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
16677
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
16678
          return false;
16679
        if (this.merchantTxnId != that.merchantTxnId)
16680
          return false;
16681
      }
16682
 
8618 rajveer 16683
      boolean this_present_isDigital = true;
16684
      boolean that_present_isDigital = true;
16685
      if (this_present_isDigital || that_present_isDigital) {
16686
        if (!(this_present_isDigital && that_present_isDigital))
16687
          return false;
16688
        if (this.isDigital != that.isDigital)
16689
          return false;
16690
      }
16691
 
2690 chandransh 16692
      return true;
16693
    }
16694
 
16695
    @Override
16696
    public int hashCode() {
16697
      return 0;
16698
    }
16699
 
3010 chandransh 16700
    public int compareTo(capturePayment_args other) {
2690 chandransh 16701
      if (!getClass().equals(other.getClass())) {
16702
        return getClass().getName().compareTo(other.getClass().getName());
16703
      }
16704
 
16705
      int lastComparison = 0;
3010 chandransh 16706
      capturePayment_args typedOther = (capturePayment_args)other;
2690 chandransh 16707
 
3430 rajveer 16708
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
2690 chandransh 16709
      if (lastComparison != 0) {
16710
        return lastComparison;
16711
      }
3430 rajveer 16712
      if (isSetMerchantTxnId()) {
16713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
16714
        if (lastComparison != 0) {
16715
          return lastComparison;
16716
        }
2690 chandransh 16717
      }
8618 rajveer 16718
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
16719
      if (lastComparison != 0) {
16720
        return lastComparison;
16721
      }
16722
      if (isSetIsDigital()) {
16723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
16724
        if (lastComparison != 0) {
16725
          return lastComparison;
16726
        }
16727
      }
2690 chandransh 16728
      return 0;
16729
    }
16730
 
3430 rajveer 16731
    public _Fields fieldForId(int fieldId) {
16732
      return _Fields.findByThriftId(fieldId);
16733
    }
16734
 
16735
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16736
      org.apache.thrift.protocol.TField field;
2690 chandransh 16737
      iprot.readStructBegin();
16738
      while (true)
16739
      {
16740
        field = iprot.readFieldBegin();
3430 rajveer 16741
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 16742
          break;
16743
        }
3430 rajveer 16744
        switch (field.id) {
16745
          case 1: // MERCHANT_TXN_ID
16746
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16747
              this.merchantTxnId = iprot.readI64();
16748
              setMerchantTxnIdIsSet(true);
16749
            } else { 
16750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16751
            }
16752
            break;
8618 rajveer 16753
          case 2: // IS_DIGITAL
16754
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
16755
              this.isDigital = iprot.readBool();
16756
              setIsDigitalIsSet(true);
16757
            } else { 
16758
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16759
            }
16760
            break;
3430 rajveer 16761
          default:
16762
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 16763
        }
3430 rajveer 16764
        iprot.readFieldEnd();
2690 chandransh 16765
      }
16766
      iprot.readStructEnd();
16767
      validate();
16768
    }
16769
 
3430 rajveer 16770
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 16771
      validate();
16772
 
16773
      oprot.writeStructBegin(STRUCT_DESC);
16774
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
16775
      oprot.writeI64(this.merchantTxnId);
16776
      oprot.writeFieldEnd();
8618 rajveer 16777
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
16778
      oprot.writeBool(this.isDigital);
16779
      oprot.writeFieldEnd();
2690 chandransh 16780
      oprot.writeFieldStop();
16781
      oprot.writeStructEnd();
16782
    }
16783
 
16784
    @Override
16785
    public String toString() {
3010 chandransh 16786
      StringBuilder sb = new StringBuilder("capturePayment_args(");
2690 chandransh 16787
      boolean first = true;
16788
 
16789
      sb.append("merchantTxnId:");
16790
      sb.append(this.merchantTxnId);
16791
      first = false;
8618 rajveer 16792
      if (!first) sb.append(", ");
16793
      sb.append("isDigital:");
16794
      sb.append(this.isDigital);
16795
      first = false;
2690 chandransh 16796
      sb.append(")");
16797
      return sb.toString();
16798
    }
16799
 
3430 rajveer 16800
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 16801
      // check for required fields
16802
    }
16803
 
3430 rajveer 16804
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16805
      try {
16806
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16807
      } catch (org.apache.thrift.TException te) {
16808
        throw new java.io.IOException(te);
16809
      }
16810
    }
16811
 
16812
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16813
      try {
16814
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16815
      } catch (org.apache.thrift.TException te) {
16816
        throw new java.io.IOException(te);
16817
      }
16818
    }
16819
 
2690 chandransh 16820
  }
16821
 
3430 rajveer 16822
  public static class capturePayment_result implements org.apache.thrift.TBase<capturePayment_result, capturePayment_result._Fields>, java.io.Serializable, Cloneable   {
16823
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("capturePayment_result");
2690 chandransh 16824
 
3430 rajveer 16825
    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);
16826
    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 16827
 
3430 rajveer 16828
    private boolean success; // required
16829
    private PaymentException pe; // required
2690 chandransh 16830
 
16831
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16832
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690 chandransh 16833
      SUCCESS((short)0, "success"),
16834
      PE((short)1, "pe");
16835
 
16836
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16837
 
16838
      static {
16839
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16840
          byName.put(field.getFieldName(), field);
16841
        }
16842
      }
16843
 
16844
      /**
16845
       * Find the _Fields constant that matches fieldId, or null if its not found.
16846
       */
16847
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16848
        switch(fieldId) {
16849
          case 0: // SUCCESS
16850
            return SUCCESS;
16851
          case 1: // PE
16852
            return PE;
16853
          default:
16854
            return null;
16855
        }
2690 chandransh 16856
      }
16857
 
16858
      /**
16859
       * Find the _Fields constant that matches fieldId, throwing an exception
16860
       * if it is not found.
16861
       */
16862
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16863
        _Fields fields = findByThriftId(fieldId);
16864
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16865
        return fields;
16866
      }
16867
 
16868
      /**
16869
       * Find the _Fields constant that matches name, or null if its not found.
16870
       */
16871
      public static _Fields findByName(String name) {
16872
        return byName.get(name);
16873
      }
16874
 
16875
      private final short _thriftId;
16876
      private final String _fieldName;
16877
 
16878
      _Fields(short thriftId, String fieldName) {
16879
        _thriftId = thriftId;
16880
        _fieldName = fieldName;
16881
      }
16882
 
16883
      public short getThriftFieldId() {
16884
        return _thriftId;
16885
      }
16886
 
16887
      public String getFieldName() {
16888
        return _fieldName;
16889
      }
16890
    }
16891
 
16892
    // isset id assignments
16893
    private static final int __SUCCESS_ISSET_ID = 0;
16894
    private BitSet __isset_bit_vector = new BitSet(1);
16895
 
3430 rajveer 16896
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2690 chandransh 16897
    static {
3430 rajveer 16898
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16899
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16900
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
16901
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16902
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16903
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16904
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
2690 chandransh 16905
    }
16906
 
3010 chandransh 16907
    public capturePayment_result() {
2690 chandransh 16908
    }
16909
 
3010 chandransh 16910
    public capturePayment_result(
16911
      boolean success,
2690 chandransh 16912
      PaymentException pe)
16913
    {
16914
      this();
16915
      this.success = success;
16916
      setSuccessIsSet(true);
16917
      this.pe = pe;
16918
    }
16919
 
16920
    /**
16921
     * Performs a deep copy on <i>other</i>.
16922
     */
3010 chandransh 16923
    public capturePayment_result(capturePayment_result other) {
2690 chandransh 16924
      __isset_bit_vector.clear();
16925
      __isset_bit_vector.or(other.__isset_bit_vector);
16926
      this.success = other.success;
16927
      if (other.isSetPe()) {
16928
        this.pe = new PaymentException(other.pe);
16929
      }
16930
    }
16931
 
3010 chandransh 16932
    public capturePayment_result deepCopy() {
16933
      return new capturePayment_result(this);
2690 chandransh 16934
    }
16935
 
3430 rajveer 16936
    @Override
16937
    public void clear() {
16938
      setSuccessIsSet(false);
16939
      this.success = false;
16940
      this.pe = null;
2690 chandransh 16941
    }
16942
 
3010 chandransh 16943
    public boolean isSuccess() {
2690 chandransh 16944
      return this.success;
16945
    }
16946
 
3430 rajveer 16947
    public void setSuccess(boolean success) {
2690 chandransh 16948
      this.success = success;
16949
      setSuccessIsSet(true);
16950
    }
16951
 
16952
    public void unsetSuccess() {
16953
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
16954
    }
16955
 
3430 rajveer 16956
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2690 chandransh 16957
    public boolean isSetSuccess() {
16958
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
16959
    }
16960
 
16961
    public void setSuccessIsSet(boolean value) {
16962
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
16963
    }
16964
 
16965
    public PaymentException getPe() {
16966
      return this.pe;
16967
    }
16968
 
3430 rajveer 16969
    public void setPe(PaymentException pe) {
2690 chandransh 16970
      this.pe = pe;
16971
    }
16972
 
16973
    public void unsetPe() {
16974
      this.pe = null;
16975
    }
16976
 
3430 rajveer 16977
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
2690 chandransh 16978
    public boolean isSetPe() {
16979
      return this.pe != null;
16980
    }
16981
 
16982
    public void setPeIsSet(boolean value) {
16983
      if (!value) {
16984
        this.pe = null;
16985
      }
16986
    }
16987
 
16988
    public void setFieldValue(_Fields field, Object value) {
16989
      switch (field) {
16990
      case SUCCESS:
16991
        if (value == null) {
16992
          unsetSuccess();
16993
        } else {
3010 chandransh 16994
          setSuccess((Boolean)value);
2690 chandransh 16995
        }
16996
        break;
16997
 
16998
      case PE:
16999
        if (value == null) {
17000
          unsetPe();
17001
        } else {
17002
          setPe((PaymentException)value);
17003
        }
17004
        break;
17005
 
17006
      }
17007
    }
17008
 
17009
    public Object getFieldValue(_Fields field) {
17010
      switch (field) {
17011
      case SUCCESS:
3430 rajveer 17012
        return Boolean.valueOf(isSuccess());
2690 chandransh 17013
 
17014
      case PE:
17015
        return getPe();
17016
 
17017
      }
17018
      throw new IllegalStateException();
17019
    }
17020
 
3430 rajveer 17021
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17022
    public boolean isSet(_Fields field) {
17023
      if (field == null) {
17024
        throw new IllegalArgumentException();
17025
      }
2690 chandransh 17026
 
17027
      switch (field) {
17028
      case SUCCESS:
17029
        return isSetSuccess();
17030
      case PE:
17031
        return isSetPe();
17032
      }
17033
      throw new IllegalStateException();
17034
    }
17035
 
17036
    @Override
17037
    public boolean equals(Object that) {
17038
      if (that == null)
17039
        return false;
3010 chandransh 17040
      if (that instanceof capturePayment_result)
17041
        return this.equals((capturePayment_result)that);
2690 chandransh 17042
      return false;
17043
    }
17044
 
3010 chandransh 17045
    public boolean equals(capturePayment_result that) {
2690 chandransh 17046
      if (that == null)
17047
        return false;
17048
 
17049
      boolean this_present_success = true;
17050
      boolean that_present_success = true;
17051
      if (this_present_success || that_present_success) {
17052
        if (!(this_present_success && that_present_success))
17053
          return false;
17054
        if (this.success != that.success)
17055
          return false;
17056
      }
17057
 
17058
      boolean this_present_pe = true && this.isSetPe();
17059
      boolean that_present_pe = true && that.isSetPe();
17060
      if (this_present_pe || that_present_pe) {
17061
        if (!(this_present_pe && that_present_pe))
17062
          return false;
17063
        if (!this.pe.equals(that.pe))
17064
          return false;
17065
      }
17066
 
17067
      return true;
17068
    }
17069
 
17070
    @Override
17071
    public int hashCode() {
17072
      return 0;
17073
    }
17074
 
3010 chandransh 17075
    public int compareTo(capturePayment_result other) {
2690 chandransh 17076
      if (!getClass().equals(other.getClass())) {
17077
        return getClass().getName().compareTo(other.getClass().getName());
17078
      }
17079
 
17080
      int lastComparison = 0;
3010 chandransh 17081
      capturePayment_result typedOther = (capturePayment_result)other;
2690 chandransh 17082
 
3430 rajveer 17083
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2690 chandransh 17084
      if (lastComparison != 0) {
17085
        return lastComparison;
17086
      }
3430 rajveer 17087
      if (isSetSuccess()) {
17088
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17089
        if (lastComparison != 0) {
17090
          return lastComparison;
17091
        }
2690 chandransh 17092
      }
3430 rajveer 17093
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
2690 chandransh 17094
      if (lastComparison != 0) {
17095
        return lastComparison;
17096
      }
3430 rajveer 17097
      if (isSetPe()) {
17098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
17099
        if (lastComparison != 0) {
17100
          return lastComparison;
17101
        }
2690 chandransh 17102
      }
17103
      return 0;
17104
    }
17105
 
3430 rajveer 17106
    public _Fields fieldForId(int fieldId) {
17107
      return _Fields.findByThriftId(fieldId);
17108
    }
17109
 
17110
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17111
      org.apache.thrift.protocol.TField field;
2690 chandransh 17112
      iprot.readStructBegin();
17113
      while (true)
17114
      {
17115
        field = iprot.readFieldBegin();
3430 rajveer 17116
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2690 chandransh 17117
          break;
17118
        }
3430 rajveer 17119
        switch (field.id) {
17120
          case 0: // SUCCESS
17121
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17122
              this.success = iprot.readBool();
17123
              setSuccessIsSet(true);
17124
            } else { 
17125
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17126
            }
17127
            break;
17128
          case 1: // PE
17129
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17130
              this.pe = new PaymentException();
17131
              this.pe.read(iprot);
17132
            } else { 
17133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17134
            }
17135
            break;
17136
          default:
17137
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2690 chandransh 17138
        }
3430 rajveer 17139
        iprot.readFieldEnd();
2690 chandransh 17140
      }
17141
      iprot.readStructEnd();
17142
      validate();
17143
    }
17144
 
3430 rajveer 17145
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2690 chandransh 17146
      oprot.writeStructBegin(STRUCT_DESC);
17147
 
17148
      if (this.isSetSuccess()) {
17149
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3010 chandransh 17150
        oprot.writeBool(this.success);
2690 chandransh 17151
        oprot.writeFieldEnd();
17152
      } else if (this.isSetPe()) {
17153
        oprot.writeFieldBegin(PE_FIELD_DESC);
17154
        this.pe.write(oprot);
17155
        oprot.writeFieldEnd();
17156
      }
17157
      oprot.writeFieldStop();
17158
      oprot.writeStructEnd();
17159
    }
17160
 
17161
    @Override
17162
    public String toString() {
3010 chandransh 17163
      StringBuilder sb = new StringBuilder("capturePayment_result(");
2690 chandransh 17164
      boolean first = true;
17165
 
17166
      sb.append("success:");
17167
      sb.append(this.success);
17168
      first = false;
17169
      if (!first) sb.append(", ");
17170
      sb.append("pe:");
17171
      if (this.pe == null) {
17172
        sb.append("null");
17173
      } else {
17174
        sb.append(this.pe);
17175
      }
17176
      first = false;
17177
      sb.append(")");
17178
      return sb.toString();
17179
    }
17180
 
3430 rajveer 17181
    public void validate() throws org.apache.thrift.TException {
2690 chandransh 17182
      // check for required fields
17183
    }
17184
 
3430 rajveer 17185
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17186
      try {
17187
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17188
      } catch (org.apache.thrift.TException te) {
17189
        throw new java.io.IOException(te);
17190
      }
17191
    }
17192
 
17193
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17194
      try {
17195
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17196
      } catch (org.apache.thrift.TException te) {
17197
        throw new java.io.IOException(te);
17198
      }
17199
    }
17200
 
2690 chandransh 17201
  }
17202
 
6486 rajveer 17203
  public static class refundPayment_args implements org.apache.thrift.TBase<refundPayment_args, refundPayment_args._Fields>, java.io.Serializable, Cloneable   {
17204
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundPayment_args");
17205
 
17206
    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);
17207
    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);
17208
    private static final org.apache.thrift.protocol.TField IS_DIGITAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDigital", org.apache.thrift.protocol.TType.BOOL, (short)3);
17209
 
17210
    private long merchantTxnId; // required
17211
    private double amount; // required
17212
    private boolean isDigital; // required
17213
 
17214
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17215
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17216
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
17217
      AMOUNT((short)2, "amount"),
17218
      IS_DIGITAL((short)3, "isDigital");
17219
 
17220
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17221
 
17222
      static {
17223
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17224
          byName.put(field.getFieldName(), field);
17225
        }
17226
      }
17227
 
17228
      /**
17229
       * Find the _Fields constant that matches fieldId, or null if its not found.
17230
       */
17231
      public static _Fields findByThriftId(int fieldId) {
17232
        switch(fieldId) {
17233
          case 1: // MERCHANT_TXN_ID
17234
            return MERCHANT_TXN_ID;
17235
          case 2: // AMOUNT
17236
            return AMOUNT;
17237
          case 3: // IS_DIGITAL
17238
            return IS_DIGITAL;
17239
          default:
17240
            return null;
17241
        }
17242
      }
17243
 
17244
      /**
17245
       * Find the _Fields constant that matches fieldId, throwing an exception
17246
       * if it is not found.
17247
       */
17248
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17249
        _Fields fields = findByThriftId(fieldId);
17250
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17251
        return fields;
17252
      }
17253
 
17254
      /**
17255
       * Find the _Fields constant that matches name, or null if its not found.
17256
       */
17257
      public static _Fields findByName(String name) {
17258
        return byName.get(name);
17259
      }
17260
 
17261
      private final short _thriftId;
17262
      private final String _fieldName;
17263
 
17264
      _Fields(short thriftId, String fieldName) {
17265
        _thriftId = thriftId;
17266
        _fieldName = fieldName;
17267
      }
17268
 
17269
      public short getThriftFieldId() {
17270
        return _thriftId;
17271
      }
17272
 
17273
      public String getFieldName() {
17274
        return _fieldName;
17275
      }
17276
    }
17277
 
17278
    // isset id assignments
17279
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
17280
    private static final int __AMOUNT_ISSET_ID = 1;
17281
    private static final int __ISDIGITAL_ISSET_ID = 2;
17282
    private BitSet __isset_bit_vector = new BitSet(3);
17283
 
17284
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17285
    static {
17286
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17287
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17288
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
17289
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
17291
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17292
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17293
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17294
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundPayment_args.class, metaDataMap);
17295
    }
17296
 
17297
    public refundPayment_args() {
17298
    }
17299
 
17300
    public refundPayment_args(
17301
      long merchantTxnId,
17302
      double amount,
17303
      boolean isDigital)
17304
    {
17305
      this();
17306
      this.merchantTxnId = merchantTxnId;
17307
      setMerchantTxnIdIsSet(true);
17308
      this.amount = amount;
17309
      setAmountIsSet(true);
17310
      this.isDigital = isDigital;
17311
      setIsDigitalIsSet(true);
17312
    }
17313
 
17314
    /**
17315
     * Performs a deep copy on <i>other</i>.
17316
     */
17317
    public refundPayment_args(refundPayment_args other) {
17318
      __isset_bit_vector.clear();
17319
      __isset_bit_vector.or(other.__isset_bit_vector);
17320
      this.merchantTxnId = other.merchantTxnId;
17321
      this.amount = other.amount;
17322
      this.isDigital = other.isDigital;
17323
    }
17324
 
17325
    public refundPayment_args deepCopy() {
17326
      return new refundPayment_args(this);
17327
    }
17328
 
17329
    @Override
17330
    public void clear() {
17331
      setMerchantTxnIdIsSet(false);
17332
      this.merchantTxnId = 0;
17333
      setAmountIsSet(false);
17334
      this.amount = 0.0;
17335
      setIsDigitalIsSet(false);
17336
      this.isDigital = false;
17337
    }
17338
 
17339
    public long getMerchantTxnId() {
17340
      return this.merchantTxnId;
17341
    }
17342
 
17343
    public void setMerchantTxnId(long merchantTxnId) {
17344
      this.merchantTxnId = merchantTxnId;
17345
      setMerchantTxnIdIsSet(true);
17346
    }
17347
 
17348
    public void unsetMerchantTxnId() {
17349
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
17350
    }
17351
 
17352
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
17353
    public boolean isSetMerchantTxnId() {
17354
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
17355
    }
17356
 
17357
    public void setMerchantTxnIdIsSet(boolean value) {
17358
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
17359
    }
17360
 
17361
    public double getAmount() {
17362
      return this.amount;
17363
    }
17364
 
17365
    public void setAmount(double amount) {
17366
      this.amount = amount;
17367
      setAmountIsSet(true);
17368
    }
17369
 
17370
    public void unsetAmount() {
17371
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
17372
    }
17373
 
17374
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
17375
    public boolean isSetAmount() {
17376
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
17377
    }
17378
 
17379
    public void setAmountIsSet(boolean value) {
17380
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
17381
    }
17382
 
17383
    public boolean isIsDigital() {
17384
      return this.isDigital;
17385
    }
17386
 
17387
    public void setIsDigital(boolean isDigital) {
17388
      this.isDigital = isDigital;
17389
      setIsDigitalIsSet(true);
17390
    }
17391
 
17392
    public void unsetIsDigital() {
17393
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
17394
    }
17395
 
17396
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
17397
    public boolean isSetIsDigital() {
17398
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
17399
    }
17400
 
17401
    public void setIsDigitalIsSet(boolean value) {
17402
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
17403
    }
17404
 
17405
    public void setFieldValue(_Fields field, Object value) {
17406
      switch (field) {
17407
      case MERCHANT_TXN_ID:
17408
        if (value == null) {
17409
          unsetMerchantTxnId();
17410
        } else {
17411
          setMerchantTxnId((Long)value);
17412
        }
17413
        break;
17414
 
17415
      case AMOUNT:
17416
        if (value == null) {
17417
          unsetAmount();
17418
        } else {
17419
          setAmount((Double)value);
17420
        }
17421
        break;
17422
 
17423
      case IS_DIGITAL:
17424
        if (value == null) {
17425
          unsetIsDigital();
17426
        } else {
17427
          setIsDigital((Boolean)value);
17428
        }
17429
        break;
17430
 
17431
      }
17432
    }
17433
 
17434
    public Object getFieldValue(_Fields field) {
17435
      switch (field) {
17436
      case MERCHANT_TXN_ID:
17437
        return Long.valueOf(getMerchantTxnId());
17438
 
17439
      case AMOUNT:
17440
        return Double.valueOf(getAmount());
17441
 
17442
      case IS_DIGITAL:
17443
        return Boolean.valueOf(isIsDigital());
17444
 
17445
      }
17446
      throw new IllegalStateException();
17447
    }
17448
 
17449
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17450
    public boolean isSet(_Fields field) {
17451
      if (field == null) {
17452
        throw new IllegalArgumentException();
17453
      }
17454
 
17455
      switch (field) {
17456
      case MERCHANT_TXN_ID:
17457
        return isSetMerchantTxnId();
17458
      case AMOUNT:
17459
        return isSetAmount();
17460
      case IS_DIGITAL:
17461
        return isSetIsDigital();
17462
      }
17463
      throw new IllegalStateException();
17464
    }
17465
 
17466
    @Override
17467
    public boolean equals(Object that) {
17468
      if (that == null)
17469
        return false;
17470
      if (that instanceof refundPayment_args)
17471
        return this.equals((refundPayment_args)that);
17472
      return false;
17473
    }
17474
 
17475
    public boolean equals(refundPayment_args that) {
17476
      if (that == null)
17477
        return false;
17478
 
17479
      boolean this_present_merchantTxnId = true;
17480
      boolean that_present_merchantTxnId = true;
17481
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
17482
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
17483
          return false;
17484
        if (this.merchantTxnId != that.merchantTxnId)
17485
          return false;
17486
      }
17487
 
17488
      boolean this_present_amount = true;
17489
      boolean that_present_amount = true;
17490
      if (this_present_amount || that_present_amount) {
17491
        if (!(this_present_amount && that_present_amount))
17492
          return false;
17493
        if (this.amount != that.amount)
17494
          return false;
17495
      }
17496
 
17497
      boolean this_present_isDigital = true;
17498
      boolean that_present_isDigital = true;
17499
      if (this_present_isDigital || that_present_isDigital) {
17500
        if (!(this_present_isDigital && that_present_isDigital))
17501
          return false;
17502
        if (this.isDigital != that.isDigital)
17503
          return false;
17504
      }
17505
 
17506
      return true;
17507
    }
17508
 
17509
    @Override
17510
    public int hashCode() {
17511
      return 0;
17512
    }
17513
 
17514
    public int compareTo(refundPayment_args other) {
17515
      if (!getClass().equals(other.getClass())) {
17516
        return getClass().getName().compareTo(other.getClass().getName());
17517
      }
17518
 
17519
      int lastComparison = 0;
17520
      refundPayment_args typedOther = (refundPayment_args)other;
17521
 
17522
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
17523
      if (lastComparison != 0) {
17524
        return lastComparison;
17525
      }
17526
      if (isSetMerchantTxnId()) {
17527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
17528
        if (lastComparison != 0) {
17529
          return lastComparison;
17530
        }
17531
      }
17532
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
17533
      if (lastComparison != 0) {
17534
        return lastComparison;
17535
      }
17536
      if (isSetAmount()) {
17537
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
17538
        if (lastComparison != 0) {
17539
          return lastComparison;
17540
        }
17541
      }
17542
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
17543
      if (lastComparison != 0) {
17544
        return lastComparison;
17545
      }
17546
      if (isSetIsDigital()) {
17547
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
17548
        if (lastComparison != 0) {
17549
          return lastComparison;
17550
        }
17551
      }
17552
      return 0;
17553
    }
17554
 
17555
    public _Fields fieldForId(int fieldId) {
17556
      return _Fields.findByThriftId(fieldId);
17557
    }
17558
 
17559
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17560
      org.apache.thrift.protocol.TField field;
17561
      iprot.readStructBegin();
17562
      while (true)
17563
      {
17564
        field = iprot.readFieldBegin();
17565
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17566
          break;
17567
        }
17568
        switch (field.id) {
17569
          case 1: // MERCHANT_TXN_ID
17570
            if (field.type == org.apache.thrift.protocol.TType.I64) {
17571
              this.merchantTxnId = iprot.readI64();
17572
              setMerchantTxnIdIsSet(true);
17573
            } else { 
17574
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17575
            }
17576
            break;
17577
          case 2: // AMOUNT
17578
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
17579
              this.amount = iprot.readDouble();
17580
              setAmountIsSet(true);
17581
            } else { 
17582
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17583
            }
17584
            break;
17585
          case 3: // IS_DIGITAL
17586
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17587
              this.isDigital = iprot.readBool();
17588
              setIsDigitalIsSet(true);
17589
            } else { 
17590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17591
            }
17592
            break;
17593
          default:
17594
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17595
        }
17596
        iprot.readFieldEnd();
17597
      }
17598
      iprot.readStructEnd();
17599
      validate();
17600
    }
17601
 
17602
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17603
      validate();
17604
 
17605
      oprot.writeStructBegin(STRUCT_DESC);
17606
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
17607
      oprot.writeI64(this.merchantTxnId);
17608
      oprot.writeFieldEnd();
17609
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
17610
      oprot.writeDouble(this.amount);
17611
      oprot.writeFieldEnd();
17612
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
17613
      oprot.writeBool(this.isDigital);
17614
      oprot.writeFieldEnd();
17615
      oprot.writeFieldStop();
17616
      oprot.writeStructEnd();
17617
    }
17618
 
17619
    @Override
17620
    public String toString() {
17621
      StringBuilder sb = new StringBuilder("refundPayment_args(");
17622
      boolean first = true;
17623
 
17624
      sb.append("merchantTxnId:");
17625
      sb.append(this.merchantTxnId);
17626
      first = false;
17627
      if (!first) sb.append(", ");
17628
      sb.append("amount:");
17629
      sb.append(this.amount);
17630
      first = false;
17631
      if (!first) sb.append(", ");
17632
      sb.append("isDigital:");
17633
      sb.append(this.isDigital);
17634
      first = false;
17635
      sb.append(")");
17636
      return sb.toString();
17637
    }
17638
 
17639
    public void validate() throws org.apache.thrift.TException {
17640
      // check for required fields
17641
    }
17642
 
17643
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17644
      try {
17645
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17646
      } catch (org.apache.thrift.TException te) {
17647
        throw new java.io.IOException(te);
17648
      }
17649
    }
17650
 
17651
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17652
      try {
17653
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17654
      } catch (org.apache.thrift.TException te) {
17655
        throw new java.io.IOException(te);
17656
      }
17657
    }
17658
 
17659
  }
17660
 
17661
  public static class refundPayment_result implements org.apache.thrift.TBase<refundPayment_result, refundPayment_result._Fields>, java.io.Serializable, Cloneable   {
17662
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("refundPayment_result");
17663
 
17664
    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);
17665
    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);
17666
 
17667
    private boolean success; // required
17668
    private PaymentException pe; // required
17669
 
17670
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17671
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17672
      SUCCESS((short)0, "success"),
17673
      PE((short)1, "pe");
17674
 
17675
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17676
 
17677
      static {
17678
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17679
          byName.put(field.getFieldName(), field);
17680
        }
17681
      }
17682
 
17683
      /**
17684
       * Find the _Fields constant that matches fieldId, or null if its not found.
17685
       */
17686
      public static _Fields findByThriftId(int fieldId) {
17687
        switch(fieldId) {
17688
          case 0: // SUCCESS
17689
            return SUCCESS;
17690
          case 1: // PE
17691
            return PE;
17692
          default:
17693
            return null;
17694
        }
17695
      }
17696
 
17697
      /**
17698
       * Find the _Fields constant that matches fieldId, throwing an exception
17699
       * if it is not found.
17700
       */
17701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17702
        _Fields fields = findByThriftId(fieldId);
17703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17704
        return fields;
17705
      }
17706
 
17707
      /**
17708
       * Find the _Fields constant that matches name, or null if its not found.
17709
       */
17710
      public static _Fields findByName(String name) {
17711
        return byName.get(name);
17712
      }
17713
 
17714
      private final short _thriftId;
17715
      private final String _fieldName;
17716
 
17717
      _Fields(short thriftId, String fieldName) {
17718
        _thriftId = thriftId;
17719
        _fieldName = fieldName;
17720
      }
17721
 
17722
      public short getThriftFieldId() {
17723
        return _thriftId;
17724
      }
17725
 
17726
      public String getFieldName() {
17727
        return _fieldName;
17728
      }
17729
    }
17730
 
17731
    // isset id assignments
17732
    private static final int __SUCCESS_ISSET_ID = 0;
17733
    private BitSet __isset_bit_vector = new BitSet(1);
17734
 
17735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17736
    static {
17737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17738
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17739
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17740
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17741
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17742
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17743
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(refundPayment_result.class, metaDataMap);
17744
    }
17745
 
17746
    public refundPayment_result() {
17747
    }
17748
 
17749
    public refundPayment_result(
17750
      boolean success,
17751
      PaymentException pe)
17752
    {
17753
      this();
17754
      this.success = success;
17755
      setSuccessIsSet(true);
17756
      this.pe = pe;
17757
    }
17758
 
17759
    /**
17760
     * Performs a deep copy on <i>other</i>.
17761
     */
17762
    public refundPayment_result(refundPayment_result other) {
17763
      __isset_bit_vector.clear();
17764
      __isset_bit_vector.or(other.__isset_bit_vector);
17765
      this.success = other.success;
17766
      if (other.isSetPe()) {
17767
        this.pe = new PaymentException(other.pe);
17768
      }
17769
    }
17770
 
17771
    public refundPayment_result deepCopy() {
17772
      return new refundPayment_result(this);
17773
    }
17774
 
17775
    @Override
17776
    public void clear() {
17777
      setSuccessIsSet(false);
17778
      this.success = false;
17779
      this.pe = null;
17780
    }
17781
 
17782
    public boolean isSuccess() {
17783
      return this.success;
17784
    }
17785
 
17786
    public void setSuccess(boolean success) {
17787
      this.success = success;
17788
      setSuccessIsSet(true);
17789
    }
17790
 
17791
    public void unsetSuccess() {
17792
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17793
    }
17794
 
17795
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17796
    public boolean isSetSuccess() {
17797
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17798
    }
17799
 
17800
    public void setSuccessIsSet(boolean value) {
17801
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17802
    }
17803
 
17804
    public PaymentException getPe() {
17805
      return this.pe;
17806
    }
17807
 
17808
    public void setPe(PaymentException pe) {
17809
      this.pe = pe;
17810
    }
17811
 
17812
    public void unsetPe() {
17813
      this.pe = null;
17814
    }
17815
 
17816
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
17817
    public boolean isSetPe() {
17818
      return this.pe != null;
17819
    }
17820
 
17821
    public void setPeIsSet(boolean value) {
17822
      if (!value) {
17823
        this.pe = null;
17824
      }
17825
    }
17826
 
17827
    public void setFieldValue(_Fields field, Object value) {
17828
      switch (field) {
17829
      case SUCCESS:
17830
        if (value == null) {
17831
          unsetSuccess();
17832
        } else {
17833
          setSuccess((Boolean)value);
17834
        }
17835
        break;
17836
 
17837
      case PE:
17838
        if (value == null) {
17839
          unsetPe();
17840
        } else {
17841
          setPe((PaymentException)value);
17842
        }
17843
        break;
17844
 
17845
      }
17846
    }
17847
 
17848
    public Object getFieldValue(_Fields field) {
17849
      switch (field) {
17850
      case SUCCESS:
17851
        return Boolean.valueOf(isSuccess());
17852
 
17853
      case PE:
17854
        return getPe();
17855
 
17856
      }
17857
      throw new IllegalStateException();
17858
    }
17859
 
17860
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17861
    public boolean isSet(_Fields field) {
17862
      if (field == null) {
17863
        throw new IllegalArgumentException();
17864
      }
17865
 
17866
      switch (field) {
17867
      case SUCCESS:
17868
        return isSetSuccess();
17869
      case PE:
17870
        return isSetPe();
17871
      }
17872
      throw new IllegalStateException();
17873
    }
17874
 
17875
    @Override
17876
    public boolean equals(Object that) {
17877
      if (that == null)
17878
        return false;
17879
      if (that instanceof refundPayment_result)
17880
        return this.equals((refundPayment_result)that);
17881
      return false;
17882
    }
17883
 
17884
    public boolean equals(refundPayment_result that) {
17885
      if (that == null)
17886
        return false;
17887
 
17888
      boolean this_present_success = true;
17889
      boolean that_present_success = true;
17890
      if (this_present_success || that_present_success) {
17891
        if (!(this_present_success && that_present_success))
17892
          return false;
17893
        if (this.success != that.success)
17894
          return false;
17895
      }
17896
 
17897
      boolean this_present_pe = true && this.isSetPe();
17898
      boolean that_present_pe = true && that.isSetPe();
17899
      if (this_present_pe || that_present_pe) {
17900
        if (!(this_present_pe && that_present_pe))
17901
          return false;
17902
        if (!this.pe.equals(that.pe))
17903
          return false;
17904
      }
17905
 
17906
      return true;
17907
    }
17908
 
17909
    @Override
17910
    public int hashCode() {
17911
      return 0;
17912
    }
17913
 
17914
    public int compareTo(refundPayment_result other) {
17915
      if (!getClass().equals(other.getClass())) {
17916
        return getClass().getName().compareTo(other.getClass().getName());
17917
      }
17918
 
17919
      int lastComparison = 0;
17920
      refundPayment_result typedOther = (refundPayment_result)other;
17921
 
17922
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17923
      if (lastComparison != 0) {
17924
        return lastComparison;
17925
      }
17926
      if (isSetSuccess()) {
17927
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17928
        if (lastComparison != 0) {
17929
          return lastComparison;
17930
        }
17931
      }
17932
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
17933
      if (lastComparison != 0) {
17934
        return lastComparison;
17935
      }
17936
      if (isSetPe()) {
17937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
17938
        if (lastComparison != 0) {
17939
          return lastComparison;
17940
        }
17941
      }
17942
      return 0;
17943
    }
17944
 
17945
    public _Fields fieldForId(int fieldId) {
17946
      return _Fields.findByThriftId(fieldId);
17947
    }
17948
 
17949
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17950
      org.apache.thrift.protocol.TField field;
17951
      iprot.readStructBegin();
17952
      while (true)
17953
      {
17954
        field = iprot.readFieldBegin();
17955
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17956
          break;
17957
        }
17958
        switch (field.id) {
17959
          case 0: // SUCCESS
17960
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17961
              this.success = iprot.readBool();
17962
              setSuccessIsSet(true);
17963
            } else { 
17964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17965
            }
17966
            break;
17967
          case 1: // PE
17968
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17969
              this.pe = new PaymentException();
17970
              this.pe.read(iprot);
17971
            } else { 
17972
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17973
            }
17974
            break;
17975
          default:
17976
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17977
        }
17978
        iprot.readFieldEnd();
17979
      }
17980
      iprot.readStructEnd();
17981
      validate();
17982
    }
17983
 
17984
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17985
      oprot.writeStructBegin(STRUCT_DESC);
17986
 
17987
      if (this.isSetSuccess()) {
17988
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17989
        oprot.writeBool(this.success);
17990
        oprot.writeFieldEnd();
17991
      } else if (this.isSetPe()) {
17992
        oprot.writeFieldBegin(PE_FIELD_DESC);
17993
        this.pe.write(oprot);
17994
        oprot.writeFieldEnd();
17995
      }
17996
      oprot.writeFieldStop();
17997
      oprot.writeStructEnd();
17998
    }
17999
 
18000
    @Override
18001
    public String toString() {
18002
      StringBuilder sb = new StringBuilder("refundPayment_result(");
18003
      boolean first = true;
18004
 
18005
      sb.append("success:");
18006
      sb.append(this.success);
18007
      first = false;
18008
      if (!first) sb.append(", ");
18009
      sb.append("pe:");
18010
      if (this.pe == null) {
18011
        sb.append("null");
18012
      } else {
18013
        sb.append(this.pe);
18014
      }
18015
      first = false;
18016
      sb.append(")");
18017
      return sb.toString();
18018
    }
18019
 
18020
    public void validate() throws org.apache.thrift.TException {
18021
      // check for required fields
18022
    }
18023
 
18024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18025
      try {
18026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18027
      } catch (org.apache.thrift.TException te) {
18028
        throw new java.io.IOException(te);
18029
      }
18030
    }
18031
 
18032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18033
      try {
18034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18035
      } catch (org.apache.thrift.TException te) {
18036
        throw new java.io.IOException(te);
18037
      }
18038
    }
18039
 
18040
  }
18041
 
3956 chandransh 18042
  public static class partiallyCapturePayment_args implements org.apache.thrift.TBase<partiallyCapturePayment_args, partiallyCapturePayment_args._Fields>, java.io.Serializable, Cloneable   {
18043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_args");
18044
 
18045
    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);
18046
    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);
18047
    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);
18048
    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);
18049
    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);
18050
 
18051
    private long merchantTxnId; // required
18052
    private double amount; // required
18053
    private String xferBy; // required
18054
    private String xferTxnId; // required
18055
    private long xferDate; // required
18056
 
18057
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18058
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18059
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
18060
      AMOUNT((short)2, "amount"),
18061
      XFER_BY((short)3, "xferBy"),
18062
      XFER_TXN_ID((short)4, "xferTxnId"),
18063
      XFER_DATE((short)5, "xferDate");
18064
 
18065
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18066
 
18067
      static {
18068
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18069
          byName.put(field.getFieldName(), field);
18070
        }
18071
      }
18072
 
18073
      /**
18074
       * Find the _Fields constant that matches fieldId, or null if its not found.
18075
       */
18076
      public static _Fields findByThriftId(int fieldId) {
18077
        switch(fieldId) {
18078
          case 1: // MERCHANT_TXN_ID
18079
            return MERCHANT_TXN_ID;
18080
          case 2: // AMOUNT
18081
            return AMOUNT;
18082
          case 3: // XFER_BY
18083
            return XFER_BY;
18084
          case 4: // XFER_TXN_ID
18085
            return XFER_TXN_ID;
18086
          case 5: // XFER_DATE
18087
            return XFER_DATE;
18088
          default:
18089
            return null;
18090
        }
18091
      }
18092
 
18093
      /**
18094
       * Find the _Fields constant that matches fieldId, throwing an exception
18095
       * if it is not found.
18096
       */
18097
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18098
        _Fields fields = findByThriftId(fieldId);
18099
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18100
        return fields;
18101
      }
18102
 
18103
      /**
18104
       * Find the _Fields constant that matches name, or null if its not found.
18105
       */
18106
      public static _Fields findByName(String name) {
18107
        return byName.get(name);
18108
      }
18109
 
18110
      private final short _thriftId;
18111
      private final String _fieldName;
18112
 
18113
      _Fields(short thriftId, String fieldName) {
18114
        _thriftId = thriftId;
18115
        _fieldName = fieldName;
18116
      }
18117
 
18118
      public short getThriftFieldId() {
18119
        return _thriftId;
18120
      }
18121
 
18122
      public String getFieldName() {
18123
        return _fieldName;
18124
      }
18125
    }
18126
 
18127
    // isset id assignments
18128
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
18129
    private static final int __AMOUNT_ISSET_ID = 1;
18130
    private static final int __XFERDATE_ISSET_ID = 2;
18131
    private BitSet __isset_bit_vector = new BitSet(3);
18132
 
18133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18134
    static {
18135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18136
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18137
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18138
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18139
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
18140
      tmpMap.put(_Fields.XFER_BY, new org.apache.thrift.meta_data.FieldMetaData("xferBy", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18141
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18142
      tmpMap.put(_Fields.XFER_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("xferTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18143
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18144
      tmpMap.put(_Fields.XFER_DATE, new org.apache.thrift.meta_data.FieldMetaData("xferDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18145
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
18146
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18147
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_args.class, metaDataMap);
18148
    }
18149
 
18150
    public partiallyCapturePayment_args() {
18151
    }
18152
 
18153
    public partiallyCapturePayment_args(
18154
      long merchantTxnId,
18155
      double amount,
18156
      String xferBy,
18157
      String xferTxnId,
18158
      long xferDate)
18159
    {
18160
      this();
18161
      this.merchantTxnId = merchantTxnId;
18162
      setMerchantTxnIdIsSet(true);
18163
      this.amount = amount;
18164
      setAmountIsSet(true);
18165
      this.xferBy = xferBy;
18166
      this.xferTxnId = xferTxnId;
18167
      this.xferDate = xferDate;
18168
      setXferDateIsSet(true);
18169
    }
18170
 
18171
    /**
18172
     * Performs a deep copy on <i>other</i>.
18173
     */
18174
    public partiallyCapturePayment_args(partiallyCapturePayment_args other) {
18175
      __isset_bit_vector.clear();
18176
      __isset_bit_vector.or(other.__isset_bit_vector);
18177
      this.merchantTxnId = other.merchantTxnId;
18178
      this.amount = other.amount;
18179
      if (other.isSetXferBy()) {
18180
        this.xferBy = other.xferBy;
18181
      }
18182
      if (other.isSetXferTxnId()) {
18183
        this.xferTxnId = other.xferTxnId;
18184
      }
18185
      this.xferDate = other.xferDate;
18186
    }
18187
 
18188
    public partiallyCapturePayment_args deepCopy() {
18189
      return new partiallyCapturePayment_args(this);
18190
    }
18191
 
18192
    @Override
18193
    public void clear() {
18194
      setMerchantTxnIdIsSet(false);
18195
      this.merchantTxnId = 0;
18196
      setAmountIsSet(false);
18197
      this.amount = 0.0;
18198
      this.xferBy = null;
18199
      this.xferTxnId = null;
18200
      setXferDateIsSet(false);
18201
      this.xferDate = 0;
18202
    }
18203
 
18204
    public long getMerchantTxnId() {
18205
      return this.merchantTxnId;
18206
    }
18207
 
18208
    public void setMerchantTxnId(long merchantTxnId) {
18209
      this.merchantTxnId = merchantTxnId;
18210
      setMerchantTxnIdIsSet(true);
18211
    }
18212
 
18213
    public void unsetMerchantTxnId() {
18214
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
18215
    }
18216
 
18217
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
18218
    public boolean isSetMerchantTxnId() {
18219
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
18220
    }
18221
 
18222
    public void setMerchantTxnIdIsSet(boolean value) {
18223
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
18224
    }
18225
 
18226
    public double getAmount() {
18227
      return this.amount;
18228
    }
18229
 
18230
    public void setAmount(double amount) {
18231
      this.amount = amount;
18232
      setAmountIsSet(true);
18233
    }
18234
 
18235
    public void unsetAmount() {
18236
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
18237
    }
18238
 
18239
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
18240
    public boolean isSetAmount() {
18241
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
18242
    }
18243
 
18244
    public void setAmountIsSet(boolean value) {
18245
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
18246
    }
18247
 
18248
    public String getXferBy() {
18249
      return this.xferBy;
18250
    }
18251
 
18252
    public void setXferBy(String xferBy) {
18253
      this.xferBy = xferBy;
18254
    }
18255
 
18256
    public void unsetXferBy() {
18257
      this.xferBy = null;
18258
    }
18259
 
18260
    /** Returns true if field xferBy is set (has been assigned a value) and false otherwise */
18261
    public boolean isSetXferBy() {
18262
      return this.xferBy != null;
18263
    }
18264
 
18265
    public void setXferByIsSet(boolean value) {
18266
      if (!value) {
18267
        this.xferBy = null;
18268
      }
18269
    }
18270
 
18271
    public String getXferTxnId() {
18272
      return this.xferTxnId;
18273
    }
18274
 
18275
    public void setXferTxnId(String xferTxnId) {
18276
      this.xferTxnId = xferTxnId;
18277
    }
18278
 
18279
    public void unsetXferTxnId() {
18280
      this.xferTxnId = null;
18281
    }
18282
 
18283
    /** Returns true if field xferTxnId is set (has been assigned a value) and false otherwise */
18284
    public boolean isSetXferTxnId() {
18285
      return this.xferTxnId != null;
18286
    }
18287
 
18288
    public void setXferTxnIdIsSet(boolean value) {
18289
      if (!value) {
18290
        this.xferTxnId = null;
18291
      }
18292
    }
18293
 
18294
    public long getXferDate() {
18295
      return this.xferDate;
18296
    }
18297
 
18298
    public void setXferDate(long xferDate) {
18299
      this.xferDate = xferDate;
18300
      setXferDateIsSet(true);
18301
    }
18302
 
18303
    public void unsetXferDate() {
18304
      __isset_bit_vector.clear(__XFERDATE_ISSET_ID);
18305
    }
18306
 
18307
    /** Returns true if field xferDate is set (has been assigned a value) and false otherwise */
18308
    public boolean isSetXferDate() {
18309
      return __isset_bit_vector.get(__XFERDATE_ISSET_ID);
18310
    }
18311
 
18312
    public void setXferDateIsSet(boolean value) {
18313
      __isset_bit_vector.set(__XFERDATE_ISSET_ID, value);
18314
    }
18315
 
18316
    public void setFieldValue(_Fields field, Object value) {
18317
      switch (field) {
18318
      case MERCHANT_TXN_ID:
18319
        if (value == null) {
18320
          unsetMerchantTxnId();
18321
        } else {
18322
          setMerchantTxnId((Long)value);
18323
        }
18324
        break;
18325
 
18326
      case AMOUNT:
18327
        if (value == null) {
18328
          unsetAmount();
18329
        } else {
18330
          setAmount((Double)value);
18331
        }
18332
        break;
18333
 
18334
      case XFER_BY:
18335
        if (value == null) {
18336
          unsetXferBy();
18337
        } else {
18338
          setXferBy((String)value);
18339
        }
18340
        break;
18341
 
18342
      case XFER_TXN_ID:
18343
        if (value == null) {
18344
          unsetXferTxnId();
18345
        } else {
18346
          setXferTxnId((String)value);
18347
        }
18348
        break;
18349
 
18350
      case XFER_DATE:
18351
        if (value == null) {
18352
          unsetXferDate();
18353
        } else {
18354
          setXferDate((Long)value);
18355
        }
18356
        break;
18357
 
18358
      }
18359
    }
18360
 
18361
    public Object getFieldValue(_Fields field) {
18362
      switch (field) {
18363
      case MERCHANT_TXN_ID:
18364
        return Long.valueOf(getMerchantTxnId());
18365
 
18366
      case AMOUNT:
18367
        return Double.valueOf(getAmount());
18368
 
18369
      case XFER_BY:
18370
        return getXferBy();
18371
 
18372
      case XFER_TXN_ID:
18373
        return getXferTxnId();
18374
 
18375
      case XFER_DATE:
18376
        return Long.valueOf(getXferDate());
18377
 
18378
      }
18379
      throw new IllegalStateException();
18380
    }
18381
 
18382
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18383
    public boolean isSet(_Fields field) {
18384
      if (field == null) {
18385
        throw new IllegalArgumentException();
18386
      }
18387
 
18388
      switch (field) {
18389
      case MERCHANT_TXN_ID:
18390
        return isSetMerchantTxnId();
18391
      case AMOUNT:
18392
        return isSetAmount();
18393
      case XFER_BY:
18394
        return isSetXferBy();
18395
      case XFER_TXN_ID:
18396
        return isSetXferTxnId();
18397
      case XFER_DATE:
18398
        return isSetXferDate();
18399
      }
18400
      throw new IllegalStateException();
18401
    }
18402
 
18403
    @Override
18404
    public boolean equals(Object that) {
18405
      if (that == null)
18406
        return false;
18407
      if (that instanceof partiallyCapturePayment_args)
18408
        return this.equals((partiallyCapturePayment_args)that);
18409
      return false;
18410
    }
18411
 
18412
    public boolean equals(partiallyCapturePayment_args that) {
18413
      if (that == null)
18414
        return false;
18415
 
18416
      boolean this_present_merchantTxnId = true;
18417
      boolean that_present_merchantTxnId = true;
18418
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
18419
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
18420
          return false;
18421
        if (this.merchantTxnId != that.merchantTxnId)
18422
          return false;
18423
      }
18424
 
18425
      boolean this_present_amount = true;
18426
      boolean that_present_amount = true;
18427
      if (this_present_amount || that_present_amount) {
18428
        if (!(this_present_amount && that_present_amount))
18429
          return false;
18430
        if (this.amount != that.amount)
18431
          return false;
18432
      }
18433
 
18434
      boolean this_present_xferBy = true && this.isSetXferBy();
18435
      boolean that_present_xferBy = true && that.isSetXferBy();
18436
      if (this_present_xferBy || that_present_xferBy) {
18437
        if (!(this_present_xferBy && that_present_xferBy))
18438
          return false;
18439
        if (!this.xferBy.equals(that.xferBy))
18440
          return false;
18441
      }
18442
 
18443
      boolean this_present_xferTxnId = true && this.isSetXferTxnId();
18444
      boolean that_present_xferTxnId = true && that.isSetXferTxnId();
18445
      if (this_present_xferTxnId || that_present_xferTxnId) {
18446
        if (!(this_present_xferTxnId && that_present_xferTxnId))
18447
          return false;
18448
        if (!this.xferTxnId.equals(that.xferTxnId))
18449
          return false;
18450
      }
18451
 
18452
      boolean this_present_xferDate = true;
18453
      boolean that_present_xferDate = true;
18454
      if (this_present_xferDate || that_present_xferDate) {
18455
        if (!(this_present_xferDate && that_present_xferDate))
18456
          return false;
18457
        if (this.xferDate != that.xferDate)
18458
          return false;
18459
      }
18460
 
18461
      return true;
18462
    }
18463
 
18464
    @Override
18465
    public int hashCode() {
18466
      return 0;
18467
    }
18468
 
18469
    public int compareTo(partiallyCapturePayment_args other) {
18470
      if (!getClass().equals(other.getClass())) {
18471
        return getClass().getName().compareTo(other.getClass().getName());
18472
      }
18473
 
18474
      int lastComparison = 0;
18475
      partiallyCapturePayment_args typedOther = (partiallyCapturePayment_args)other;
18476
 
18477
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
18478
      if (lastComparison != 0) {
18479
        return lastComparison;
18480
      }
18481
      if (isSetMerchantTxnId()) {
18482
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
18483
        if (lastComparison != 0) {
18484
          return lastComparison;
18485
        }
18486
      }
18487
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
18488
      if (lastComparison != 0) {
18489
        return lastComparison;
18490
      }
18491
      if (isSetAmount()) {
18492
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
18493
        if (lastComparison != 0) {
18494
          return lastComparison;
18495
        }
18496
      }
18497
      lastComparison = Boolean.valueOf(isSetXferBy()).compareTo(typedOther.isSetXferBy());
18498
      if (lastComparison != 0) {
18499
        return lastComparison;
18500
      }
18501
      if (isSetXferBy()) {
18502
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferBy, typedOther.xferBy);
18503
        if (lastComparison != 0) {
18504
          return lastComparison;
18505
        }
18506
      }
18507
      lastComparison = Boolean.valueOf(isSetXferTxnId()).compareTo(typedOther.isSetXferTxnId());
18508
      if (lastComparison != 0) {
18509
        return lastComparison;
18510
      }
18511
      if (isSetXferTxnId()) {
18512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferTxnId, typedOther.xferTxnId);
18513
        if (lastComparison != 0) {
18514
          return lastComparison;
18515
        }
18516
      }
18517
      lastComparison = Boolean.valueOf(isSetXferDate()).compareTo(typedOther.isSetXferDate());
18518
      if (lastComparison != 0) {
18519
        return lastComparison;
18520
      }
18521
      if (isSetXferDate()) {
18522
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.xferDate, typedOther.xferDate);
18523
        if (lastComparison != 0) {
18524
          return lastComparison;
18525
        }
18526
      }
18527
      return 0;
18528
    }
18529
 
18530
    public _Fields fieldForId(int fieldId) {
18531
      return _Fields.findByThriftId(fieldId);
18532
    }
18533
 
18534
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18535
      org.apache.thrift.protocol.TField field;
18536
      iprot.readStructBegin();
18537
      while (true)
18538
      {
18539
        field = iprot.readFieldBegin();
18540
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18541
          break;
18542
        }
18543
        switch (field.id) {
18544
          case 1: // MERCHANT_TXN_ID
18545
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18546
              this.merchantTxnId = iprot.readI64();
18547
              setMerchantTxnIdIsSet(true);
18548
            } else { 
18549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18550
            }
18551
            break;
18552
          case 2: // AMOUNT
18553
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
18554
              this.amount = iprot.readDouble();
18555
              setAmountIsSet(true);
18556
            } else { 
18557
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18558
            }
18559
            break;
18560
          case 3: // XFER_BY
18561
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18562
              this.xferBy = iprot.readString();
18563
            } else { 
18564
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18565
            }
18566
            break;
18567
          case 4: // XFER_TXN_ID
18568
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18569
              this.xferTxnId = iprot.readString();
18570
            } else { 
18571
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18572
            }
18573
            break;
18574
          case 5: // XFER_DATE
18575
            if (field.type == org.apache.thrift.protocol.TType.I64) {
18576
              this.xferDate = iprot.readI64();
18577
              setXferDateIsSet(true);
18578
            } else { 
18579
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18580
            }
18581
            break;
18582
          default:
18583
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18584
        }
18585
        iprot.readFieldEnd();
18586
      }
18587
      iprot.readStructEnd();
18588
      validate();
18589
    }
18590
 
18591
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18592
      validate();
18593
 
18594
      oprot.writeStructBegin(STRUCT_DESC);
18595
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
18596
      oprot.writeI64(this.merchantTxnId);
18597
      oprot.writeFieldEnd();
18598
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
18599
      oprot.writeDouble(this.amount);
18600
      oprot.writeFieldEnd();
18601
      if (this.xferBy != null) {
18602
        oprot.writeFieldBegin(XFER_BY_FIELD_DESC);
18603
        oprot.writeString(this.xferBy);
18604
        oprot.writeFieldEnd();
18605
      }
18606
      if (this.xferTxnId != null) {
18607
        oprot.writeFieldBegin(XFER_TXN_ID_FIELD_DESC);
18608
        oprot.writeString(this.xferTxnId);
18609
        oprot.writeFieldEnd();
18610
      }
18611
      oprot.writeFieldBegin(XFER_DATE_FIELD_DESC);
18612
      oprot.writeI64(this.xferDate);
18613
      oprot.writeFieldEnd();
18614
      oprot.writeFieldStop();
18615
      oprot.writeStructEnd();
18616
    }
18617
 
18618
    @Override
18619
    public String toString() {
18620
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_args(");
18621
      boolean first = true;
18622
 
18623
      sb.append("merchantTxnId:");
18624
      sb.append(this.merchantTxnId);
18625
      first = false;
18626
      if (!first) sb.append(", ");
18627
      sb.append("amount:");
18628
      sb.append(this.amount);
18629
      first = false;
18630
      if (!first) sb.append(", ");
18631
      sb.append("xferBy:");
18632
      if (this.xferBy == null) {
18633
        sb.append("null");
18634
      } else {
18635
        sb.append(this.xferBy);
18636
      }
18637
      first = false;
18638
      if (!first) sb.append(", ");
18639
      sb.append("xferTxnId:");
18640
      if (this.xferTxnId == null) {
18641
        sb.append("null");
18642
      } else {
18643
        sb.append(this.xferTxnId);
18644
      }
18645
      first = false;
18646
      if (!first) sb.append(", ");
18647
      sb.append("xferDate:");
18648
      sb.append(this.xferDate);
18649
      first = false;
18650
      sb.append(")");
18651
      return sb.toString();
18652
    }
18653
 
18654
    public void validate() throws org.apache.thrift.TException {
18655
      // check for required fields
18656
    }
18657
 
18658
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18659
      try {
18660
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18661
      } catch (org.apache.thrift.TException te) {
18662
        throw new java.io.IOException(te);
18663
      }
18664
    }
18665
 
18666
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18667
      try {
9506 amit.gupta 18668
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
18669
        __isset_bit_vector = new BitSet(1);
3956 chandransh 18670
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18671
      } catch (org.apache.thrift.TException te) {
18672
        throw new java.io.IOException(te);
18673
      }
18674
    }
18675
 
18676
  }
18677
 
18678
  public static class partiallyCapturePayment_result implements org.apache.thrift.TBase<partiallyCapturePayment_result, partiallyCapturePayment_result._Fields>, java.io.Serializable, Cloneable   {
18679
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("partiallyCapturePayment_result");
18680
 
18681
    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);
18682
    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);
18683
 
18684
    private boolean success; // required
18685
    private PaymentException pe; // required
18686
 
18687
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18688
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18689
      SUCCESS((short)0, "success"),
18690
      PE((short)1, "pe");
18691
 
18692
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18693
 
18694
      static {
18695
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18696
          byName.put(field.getFieldName(), field);
18697
        }
18698
      }
18699
 
18700
      /**
18701
       * Find the _Fields constant that matches fieldId, or null if its not found.
18702
       */
18703
      public static _Fields findByThriftId(int fieldId) {
18704
        switch(fieldId) {
18705
          case 0: // SUCCESS
18706
            return SUCCESS;
18707
          case 1: // PE
18708
            return PE;
18709
          default:
18710
            return null;
18711
        }
18712
      }
18713
 
18714
      /**
18715
       * Find the _Fields constant that matches fieldId, throwing an exception
18716
       * if it is not found.
18717
       */
18718
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18719
        _Fields fields = findByThriftId(fieldId);
18720
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18721
        return fields;
18722
      }
18723
 
18724
      /**
18725
       * Find the _Fields constant that matches name, or null if its not found.
18726
       */
18727
      public static _Fields findByName(String name) {
18728
        return byName.get(name);
18729
      }
18730
 
18731
      private final short _thriftId;
18732
      private final String _fieldName;
18733
 
18734
      _Fields(short thriftId, String fieldName) {
18735
        _thriftId = thriftId;
18736
        _fieldName = fieldName;
18737
      }
18738
 
18739
      public short getThriftFieldId() {
18740
        return _thriftId;
18741
      }
18742
 
18743
      public String getFieldName() {
18744
        return _fieldName;
18745
      }
18746
    }
18747
 
18748
    // isset id assignments
18749
    private static final int __SUCCESS_ISSET_ID = 0;
18750
    private BitSet __isset_bit_vector = new BitSet(1);
18751
 
18752
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18753
    static {
18754
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18755
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18756
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18757
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18758
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
18759
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18760
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(partiallyCapturePayment_result.class, metaDataMap);
18761
    }
18762
 
18763
    public partiallyCapturePayment_result() {
18764
    }
18765
 
18766
    public partiallyCapturePayment_result(
18767
      boolean success,
18768
      PaymentException pe)
18769
    {
18770
      this();
18771
      this.success = success;
18772
      setSuccessIsSet(true);
18773
      this.pe = pe;
18774
    }
18775
 
18776
    /**
18777
     * Performs a deep copy on <i>other</i>.
18778
     */
18779
    public partiallyCapturePayment_result(partiallyCapturePayment_result other) {
18780
      __isset_bit_vector.clear();
18781
      __isset_bit_vector.or(other.__isset_bit_vector);
18782
      this.success = other.success;
18783
      if (other.isSetPe()) {
18784
        this.pe = new PaymentException(other.pe);
18785
      }
18786
    }
18787
 
18788
    public partiallyCapturePayment_result deepCopy() {
18789
      return new partiallyCapturePayment_result(this);
18790
    }
18791
 
18792
    @Override
18793
    public void clear() {
18794
      setSuccessIsSet(false);
18795
      this.success = false;
18796
      this.pe = null;
18797
    }
18798
 
18799
    public boolean isSuccess() {
18800
      return this.success;
18801
    }
18802
 
18803
    public void setSuccess(boolean success) {
18804
      this.success = success;
18805
      setSuccessIsSet(true);
18806
    }
18807
 
18808
    public void unsetSuccess() {
18809
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18810
    }
18811
 
18812
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18813
    public boolean isSetSuccess() {
18814
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18815
    }
18816
 
18817
    public void setSuccessIsSet(boolean value) {
18818
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18819
    }
18820
 
18821
    public PaymentException getPe() {
18822
      return this.pe;
18823
    }
18824
 
18825
    public void setPe(PaymentException pe) {
18826
      this.pe = pe;
18827
    }
18828
 
18829
    public void unsetPe() {
18830
      this.pe = null;
18831
    }
18832
 
18833
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
18834
    public boolean isSetPe() {
18835
      return this.pe != null;
18836
    }
18837
 
18838
    public void setPeIsSet(boolean value) {
18839
      if (!value) {
18840
        this.pe = null;
18841
      }
18842
    }
18843
 
18844
    public void setFieldValue(_Fields field, Object value) {
18845
      switch (field) {
18846
      case SUCCESS:
18847
        if (value == null) {
18848
          unsetSuccess();
18849
        } else {
18850
          setSuccess((Boolean)value);
18851
        }
18852
        break;
18853
 
18854
      case PE:
18855
        if (value == null) {
18856
          unsetPe();
18857
        } else {
18858
          setPe((PaymentException)value);
18859
        }
18860
        break;
18861
 
18862
      }
18863
    }
18864
 
18865
    public Object getFieldValue(_Fields field) {
18866
      switch (field) {
18867
      case SUCCESS:
18868
        return Boolean.valueOf(isSuccess());
18869
 
18870
      case PE:
18871
        return getPe();
18872
 
18873
      }
18874
      throw new IllegalStateException();
18875
    }
18876
 
18877
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18878
    public boolean isSet(_Fields field) {
18879
      if (field == null) {
18880
        throw new IllegalArgumentException();
18881
      }
18882
 
18883
      switch (field) {
18884
      case SUCCESS:
18885
        return isSetSuccess();
18886
      case PE:
18887
        return isSetPe();
18888
      }
18889
      throw new IllegalStateException();
18890
    }
18891
 
18892
    @Override
18893
    public boolean equals(Object that) {
18894
      if (that == null)
18895
        return false;
18896
      if (that instanceof partiallyCapturePayment_result)
18897
        return this.equals((partiallyCapturePayment_result)that);
18898
      return false;
18899
    }
18900
 
18901
    public boolean equals(partiallyCapturePayment_result that) {
18902
      if (that == null)
18903
        return false;
18904
 
18905
      boolean this_present_success = true;
18906
      boolean that_present_success = true;
18907
      if (this_present_success || that_present_success) {
18908
        if (!(this_present_success && that_present_success))
18909
          return false;
18910
        if (this.success != that.success)
18911
          return false;
18912
      }
18913
 
18914
      boolean this_present_pe = true && this.isSetPe();
18915
      boolean that_present_pe = true && that.isSetPe();
18916
      if (this_present_pe || that_present_pe) {
18917
        if (!(this_present_pe && that_present_pe))
18918
          return false;
18919
        if (!this.pe.equals(that.pe))
18920
          return false;
18921
      }
18922
 
18923
      return true;
18924
    }
18925
 
18926
    @Override
18927
    public int hashCode() {
18928
      return 0;
18929
    }
18930
 
18931
    public int compareTo(partiallyCapturePayment_result other) {
18932
      if (!getClass().equals(other.getClass())) {
18933
        return getClass().getName().compareTo(other.getClass().getName());
18934
      }
18935
 
18936
      int lastComparison = 0;
18937
      partiallyCapturePayment_result typedOther = (partiallyCapturePayment_result)other;
18938
 
18939
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18940
      if (lastComparison != 0) {
18941
        return lastComparison;
18942
      }
18943
      if (isSetSuccess()) {
18944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18945
        if (lastComparison != 0) {
18946
          return lastComparison;
18947
        }
18948
      }
18949
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
18950
      if (lastComparison != 0) {
18951
        return lastComparison;
18952
      }
18953
      if (isSetPe()) {
18954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
18955
        if (lastComparison != 0) {
18956
          return lastComparison;
18957
        }
18958
      }
18959
      return 0;
18960
    }
18961
 
18962
    public _Fields fieldForId(int fieldId) {
18963
      return _Fields.findByThriftId(fieldId);
18964
    }
18965
 
18966
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18967
      org.apache.thrift.protocol.TField field;
18968
      iprot.readStructBegin();
18969
      while (true)
18970
      {
18971
        field = iprot.readFieldBegin();
18972
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18973
          break;
18974
        }
18975
        switch (field.id) {
18976
          case 0: // SUCCESS
18977
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18978
              this.success = iprot.readBool();
18979
              setSuccessIsSet(true);
18980
            } else { 
18981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18982
            }
18983
            break;
18984
          case 1: // PE
18985
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
18986
              this.pe = new PaymentException();
18987
              this.pe.read(iprot);
18988
            } else { 
18989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18990
            }
18991
            break;
18992
          default:
18993
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18994
        }
18995
        iprot.readFieldEnd();
18996
      }
18997
      iprot.readStructEnd();
18998
      validate();
18999
    }
19000
 
19001
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19002
      oprot.writeStructBegin(STRUCT_DESC);
19003
 
19004
      if (this.isSetSuccess()) {
19005
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19006
        oprot.writeBool(this.success);
19007
        oprot.writeFieldEnd();
19008
      } else if (this.isSetPe()) {
19009
        oprot.writeFieldBegin(PE_FIELD_DESC);
19010
        this.pe.write(oprot);
19011
        oprot.writeFieldEnd();
19012
      }
19013
      oprot.writeFieldStop();
19014
      oprot.writeStructEnd();
19015
    }
19016
 
19017
    @Override
19018
    public String toString() {
19019
      StringBuilder sb = new StringBuilder("partiallyCapturePayment_result(");
19020
      boolean first = true;
19021
 
19022
      sb.append("success:");
19023
      sb.append(this.success);
19024
      first = false;
19025
      if (!first) sb.append(", ");
19026
      sb.append("pe:");
19027
      if (this.pe == null) {
19028
        sb.append("null");
19029
      } else {
19030
        sb.append(this.pe);
19031
      }
19032
      first = false;
19033
      sb.append(")");
19034
      return sb.toString();
19035
    }
19036
 
19037
    public void validate() throws org.apache.thrift.TException {
19038
      // check for required fields
19039
    }
19040
 
19041
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19042
      try {
19043
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19044
      } catch (org.apache.thrift.TException te) {
19045
        throw new java.io.IOException(te);
19046
      }
19047
    }
19048
 
19049
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19050
      try {
19051
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19052
      } catch (org.apache.thrift.TException te) {
19053
        throw new java.io.IOException(te);
19054
      }
19055
    }
19056
 
19057
  }
19058
 
4008 mandeep.dh 19059
  public static class getPaymentsRequiringExtraProcessing_args implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_args, getPaymentsRequiringExtraProcessing_args._Fields>, java.io.Serializable, Cloneable   {
19060
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_args");
19061
 
19062
    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);
19063
 
19064
    private ExtraPaymentProcessingType category; // required
19065
 
19066
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19067
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19068
      /**
19069
       * 
19070
       * @see ExtraPaymentProcessingType
19071
       */
19072
      CATEGORY((short)1, "category");
19073
 
19074
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19075
 
19076
      static {
19077
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19078
          byName.put(field.getFieldName(), field);
19079
        }
19080
      }
19081
 
19082
      /**
19083
       * Find the _Fields constant that matches fieldId, or null if its not found.
19084
       */
19085
      public static _Fields findByThriftId(int fieldId) {
19086
        switch(fieldId) {
19087
          case 1: // CATEGORY
19088
            return CATEGORY;
19089
          default:
19090
            return null;
19091
        }
19092
      }
19093
 
19094
      /**
19095
       * Find the _Fields constant that matches fieldId, throwing an exception
19096
       * if it is not found.
19097
       */
19098
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19099
        _Fields fields = findByThriftId(fieldId);
19100
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19101
        return fields;
19102
      }
19103
 
19104
      /**
19105
       * Find the _Fields constant that matches name, or null if its not found.
19106
       */
19107
      public static _Fields findByName(String name) {
19108
        return byName.get(name);
19109
      }
19110
 
19111
      private final short _thriftId;
19112
      private final String _fieldName;
19113
 
19114
      _Fields(short thriftId, String fieldName) {
19115
        _thriftId = thriftId;
19116
        _fieldName = fieldName;
19117
      }
19118
 
19119
      public short getThriftFieldId() {
19120
        return _thriftId;
19121
      }
19122
 
19123
      public String getFieldName() {
19124
        return _fieldName;
19125
      }
19126
    }
19127
 
19128
    // isset id assignments
19129
 
19130
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19131
    static {
19132
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19133
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19134
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
19135
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19136
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_args.class, metaDataMap);
19137
    }
19138
 
19139
    public getPaymentsRequiringExtraProcessing_args() {
19140
    }
19141
 
19142
    public getPaymentsRequiringExtraProcessing_args(
19143
      ExtraPaymentProcessingType category)
19144
    {
19145
      this();
19146
      this.category = category;
19147
    }
19148
 
19149
    /**
19150
     * Performs a deep copy on <i>other</i>.
19151
     */
19152
    public getPaymentsRequiringExtraProcessing_args(getPaymentsRequiringExtraProcessing_args other) {
19153
      if (other.isSetCategory()) {
19154
        this.category = other.category;
19155
      }
19156
    }
19157
 
19158
    public getPaymentsRequiringExtraProcessing_args deepCopy() {
19159
      return new getPaymentsRequiringExtraProcessing_args(this);
19160
    }
19161
 
19162
    @Override
19163
    public void clear() {
19164
      this.category = null;
19165
    }
19166
 
19167
    /**
19168
     * 
19169
     * @see ExtraPaymentProcessingType
19170
     */
19171
    public ExtraPaymentProcessingType getCategory() {
19172
      return this.category;
19173
    }
19174
 
19175
    /**
19176
     * 
19177
     * @see ExtraPaymentProcessingType
19178
     */
19179
    public void setCategory(ExtraPaymentProcessingType category) {
19180
      this.category = category;
19181
    }
19182
 
19183
    public void unsetCategory() {
19184
      this.category = null;
19185
    }
19186
 
19187
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
19188
    public boolean isSetCategory() {
19189
      return this.category != null;
19190
    }
19191
 
19192
    public void setCategoryIsSet(boolean value) {
19193
      if (!value) {
19194
        this.category = null;
19195
      }
19196
    }
19197
 
19198
    public void setFieldValue(_Fields field, Object value) {
19199
      switch (field) {
19200
      case CATEGORY:
19201
        if (value == null) {
19202
          unsetCategory();
19203
        } else {
19204
          setCategory((ExtraPaymentProcessingType)value);
19205
        }
19206
        break;
19207
 
19208
      }
19209
    }
19210
 
19211
    public Object getFieldValue(_Fields field) {
19212
      switch (field) {
19213
      case CATEGORY:
19214
        return getCategory();
19215
 
19216
      }
19217
      throw new IllegalStateException();
19218
    }
19219
 
19220
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19221
    public boolean isSet(_Fields field) {
19222
      if (field == null) {
19223
        throw new IllegalArgumentException();
19224
      }
19225
 
19226
      switch (field) {
19227
      case CATEGORY:
19228
        return isSetCategory();
19229
      }
19230
      throw new IllegalStateException();
19231
    }
19232
 
19233
    @Override
19234
    public boolean equals(Object that) {
19235
      if (that == null)
19236
        return false;
19237
      if (that instanceof getPaymentsRequiringExtraProcessing_args)
19238
        return this.equals((getPaymentsRequiringExtraProcessing_args)that);
19239
      return false;
19240
    }
19241
 
19242
    public boolean equals(getPaymentsRequiringExtraProcessing_args that) {
19243
      if (that == null)
19244
        return false;
19245
 
19246
      boolean this_present_category = true && this.isSetCategory();
19247
      boolean that_present_category = true && that.isSetCategory();
19248
      if (this_present_category || that_present_category) {
19249
        if (!(this_present_category && that_present_category))
19250
          return false;
19251
        if (!this.category.equals(that.category))
19252
          return false;
19253
      }
19254
 
19255
      return true;
19256
    }
19257
 
19258
    @Override
19259
    public int hashCode() {
19260
      return 0;
19261
    }
19262
 
19263
    public int compareTo(getPaymentsRequiringExtraProcessing_args other) {
19264
      if (!getClass().equals(other.getClass())) {
19265
        return getClass().getName().compareTo(other.getClass().getName());
19266
      }
19267
 
19268
      int lastComparison = 0;
19269
      getPaymentsRequiringExtraProcessing_args typedOther = (getPaymentsRequiringExtraProcessing_args)other;
19270
 
19271
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
19272
      if (lastComparison != 0) {
19273
        return lastComparison;
19274
      }
19275
      if (isSetCategory()) {
19276
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
19277
        if (lastComparison != 0) {
19278
          return lastComparison;
19279
        }
19280
      }
19281
      return 0;
19282
    }
19283
 
19284
    public _Fields fieldForId(int fieldId) {
19285
      return _Fields.findByThriftId(fieldId);
19286
    }
19287
 
19288
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19289
      org.apache.thrift.protocol.TField field;
19290
      iprot.readStructBegin();
19291
      while (true)
19292
      {
19293
        field = iprot.readFieldBegin();
19294
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19295
          break;
19296
        }
19297
        switch (field.id) {
19298
          case 1: // CATEGORY
19299
            if (field.type == org.apache.thrift.protocol.TType.I32) {
19300
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
19301
            } else { 
19302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19303
            }
19304
            break;
19305
          default:
19306
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19307
        }
19308
        iprot.readFieldEnd();
19309
      }
19310
      iprot.readStructEnd();
19311
      validate();
19312
    }
19313
 
19314
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19315
      validate();
19316
 
19317
      oprot.writeStructBegin(STRUCT_DESC);
19318
      if (this.category != null) {
19319
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
19320
        oprot.writeI32(this.category.getValue());
19321
        oprot.writeFieldEnd();
19322
      }
19323
      oprot.writeFieldStop();
19324
      oprot.writeStructEnd();
19325
    }
19326
 
19327
    @Override
19328
    public String toString() {
19329
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_args(");
19330
      boolean first = true;
19331
 
19332
      sb.append("category:");
19333
      if (this.category == null) {
19334
        sb.append("null");
19335
      } else {
19336
        sb.append(this.category);
19337
      }
19338
      first = false;
19339
      sb.append(")");
19340
      return sb.toString();
19341
    }
19342
 
19343
    public void validate() throws org.apache.thrift.TException {
19344
      // check for required fields
19345
    }
19346
 
19347
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19348
      try {
19349
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19350
      } catch (org.apache.thrift.TException te) {
19351
        throw new java.io.IOException(te);
19352
      }
19353
    }
19354
 
19355
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19356
      try {
19357
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19358
      } catch (org.apache.thrift.TException te) {
19359
        throw new java.io.IOException(te);
19360
      }
19361
    }
19362
 
19363
  }
19364
 
19365
  public static class getPaymentsRequiringExtraProcessing_result implements org.apache.thrift.TBase<getPaymentsRequiringExtraProcessing_result, getPaymentsRequiringExtraProcessing_result._Fields>, java.io.Serializable, Cloneable   {
19366
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentsRequiringExtraProcessing_result");
19367
 
19368
    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);
19369
 
19370
    private List<Long> success; // required
19371
 
19372
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19373
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19374
      SUCCESS((short)0, "success");
19375
 
19376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19377
 
19378
      static {
19379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19380
          byName.put(field.getFieldName(), field);
19381
        }
19382
      }
19383
 
19384
      /**
19385
       * Find the _Fields constant that matches fieldId, or null if its not found.
19386
       */
19387
      public static _Fields findByThriftId(int fieldId) {
19388
        switch(fieldId) {
19389
          case 0: // SUCCESS
19390
            return SUCCESS;
19391
          default:
19392
            return null;
19393
        }
19394
      }
19395
 
19396
      /**
19397
       * Find the _Fields constant that matches fieldId, throwing an exception
19398
       * if it is not found.
19399
       */
19400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19401
        _Fields fields = findByThriftId(fieldId);
19402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19403
        return fields;
19404
      }
19405
 
19406
      /**
19407
       * Find the _Fields constant that matches name, or null if its not found.
19408
       */
19409
      public static _Fields findByName(String name) {
19410
        return byName.get(name);
19411
      }
19412
 
19413
      private final short _thriftId;
19414
      private final String _fieldName;
19415
 
19416
      _Fields(short thriftId, String fieldName) {
19417
        _thriftId = thriftId;
19418
        _fieldName = fieldName;
19419
      }
19420
 
19421
      public short getThriftFieldId() {
19422
        return _thriftId;
19423
      }
19424
 
19425
      public String getFieldName() {
19426
        return _fieldName;
19427
      }
19428
    }
19429
 
19430
    // isset id assignments
19431
 
19432
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19433
    static {
19434
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19435
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19436
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19437
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
19438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentsRequiringExtraProcessing_result.class, metaDataMap);
19440
    }
19441
 
19442
    public getPaymentsRequiringExtraProcessing_result() {
19443
    }
19444
 
19445
    public getPaymentsRequiringExtraProcessing_result(
19446
      List<Long> success)
19447
    {
19448
      this();
19449
      this.success = success;
19450
    }
19451
 
19452
    /**
19453
     * Performs a deep copy on <i>other</i>.
19454
     */
19455
    public getPaymentsRequiringExtraProcessing_result(getPaymentsRequiringExtraProcessing_result other) {
19456
      if (other.isSetSuccess()) {
19457
        List<Long> __this__success = new ArrayList<Long>();
19458
        for (Long other_element : other.success) {
19459
          __this__success.add(other_element);
19460
        }
19461
        this.success = __this__success;
19462
      }
19463
    }
19464
 
19465
    public getPaymentsRequiringExtraProcessing_result deepCopy() {
19466
      return new getPaymentsRequiringExtraProcessing_result(this);
19467
    }
19468
 
19469
    @Override
19470
    public void clear() {
19471
      this.success = null;
19472
    }
19473
 
19474
    public int getSuccessSize() {
19475
      return (this.success == null) ? 0 : this.success.size();
19476
    }
19477
 
19478
    public java.util.Iterator<Long> getSuccessIterator() {
19479
      return (this.success == null) ? null : this.success.iterator();
19480
    }
19481
 
19482
    public void addToSuccess(long elem) {
19483
      if (this.success == null) {
19484
        this.success = new ArrayList<Long>();
19485
      }
19486
      this.success.add(elem);
19487
    }
19488
 
19489
    public List<Long> getSuccess() {
19490
      return this.success;
19491
    }
19492
 
19493
    public void setSuccess(List<Long> success) {
19494
      this.success = success;
19495
    }
19496
 
19497
    public void unsetSuccess() {
19498
      this.success = null;
19499
    }
19500
 
19501
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19502
    public boolean isSetSuccess() {
19503
      return this.success != null;
19504
    }
19505
 
19506
    public void setSuccessIsSet(boolean value) {
19507
      if (!value) {
19508
        this.success = null;
19509
      }
19510
    }
19511
 
19512
    public void setFieldValue(_Fields field, Object value) {
19513
      switch (field) {
19514
      case SUCCESS:
19515
        if (value == null) {
19516
          unsetSuccess();
19517
        } else {
19518
          setSuccess((List<Long>)value);
19519
        }
19520
        break;
19521
 
19522
      }
19523
    }
19524
 
19525
    public Object getFieldValue(_Fields field) {
19526
      switch (field) {
19527
      case SUCCESS:
19528
        return getSuccess();
19529
 
19530
      }
19531
      throw new IllegalStateException();
19532
    }
19533
 
19534
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19535
    public boolean isSet(_Fields field) {
19536
      if (field == null) {
19537
        throw new IllegalArgumentException();
19538
      }
19539
 
19540
      switch (field) {
19541
      case SUCCESS:
19542
        return isSetSuccess();
19543
      }
19544
      throw new IllegalStateException();
19545
    }
19546
 
19547
    @Override
19548
    public boolean equals(Object that) {
19549
      if (that == null)
19550
        return false;
19551
      if (that instanceof getPaymentsRequiringExtraProcessing_result)
19552
        return this.equals((getPaymentsRequiringExtraProcessing_result)that);
19553
      return false;
19554
    }
19555
 
19556
    public boolean equals(getPaymentsRequiringExtraProcessing_result that) {
19557
      if (that == null)
19558
        return false;
19559
 
19560
      boolean this_present_success = true && this.isSetSuccess();
19561
      boolean that_present_success = true && that.isSetSuccess();
19562
      if (this_present_success || that_present_success) {
19563
        if (!(this_present_success && that_present_success))
19564
          return false;
19565
        if (!this.success.equals(that.success))
19566
          return false;
19567
      }
19568
 
19569
      return true;
19570
    }
19571
 
19572
    @Override
19573
    public int hashCode() {
19574
      return 0;
19575
    }
19576
 
19577
    public int compareTo(getPaymentsRequiringExtraProcessing_result other) {
19578
      if (!getClass().equals(other.getClass())) {
19579
        return getClass().getName().compareTo(other.getClass().getName());
19580
      }
19581
 
19582
      int lastComparison = 0;
19583
      getPaymentsRequiringExtraProcessing_result typedOther = (getPaymentsRequiringExtraProcessing_result)other;
19584
 
19585
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19586
      if (lastComparison != 0) {
19587
        return lastComparison;
19588
      }
19589
      if (isSetSuccess()) {
19590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19591
        if (lastComparison != 0) {
19592
          return lastComparison;
19593
        }
19594
      }
19595
      return 0;
19596
    }
19597
 
19598
    public _Fields fieldForId(int fieldId) {
19599
      return _Fields.findByThriftId(fieldId);
19600
    }
19601
 
19602
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19603
      org.apache.thrift.protocol.TField field;
19604
      iprot.readStructBegin();
19605
      while (true)
19606
      {
19607
        field = iprot.readFieldBegin();
19608
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19609
          break;
19610
        }
19611
        switch (field.id) {
19612
          case 0: // SUCCESS
19613
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19614
              {
7049 anupam.sin 19615
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
19616
                this.success = new ArrayList<Long>(_list44.size);
19617
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
4008 mandeep.dh 19618
                {
7049 anupam.sin 19619
                  long _elem46; // required
19620
                  _elem46 = iprot.readI64();
19621
                  this.success.add(_elem46);
4008 mandeep.dh 19622
                }
19623
                iprot.readListEnd();
19624
              }
19625
            } else { 
19626
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19627
            }
19628
            break;
19629
          default:
19630
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19631
        }
19632
        iprot.readFieldEnd();
19633
      }
19634
      iprot.readStructEnd();
19635
      validate();
19636
    }
19637
 
19638
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19639
      oprot.writeStructBegin(STRUCT_DESC);
19640
 
19641
      if (this.isSetSuccess()) {
19642
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19643
        {
19644
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
7049 anupam.sin 19645
          for (long _iter47 : this.success)
4008 mandeep.dh 19646
          {
7049 anupam.sin 19647
            oprot.writeI64(_iter47);
4008 mandeep.dh 19648
          }
19649
          oprot.writeListEnd();
19650
        }
19651
        oprot.writeFieldEnd();
19652
      }
19653
      oprot.writeFieldStop();
19654
      oprot.writeStructEnd();
19655
    }
19656
 
19657
    @Override
19658
    public String toString() {
19659
      StringBuilder sb = new StringBuilder("getPaymentsRequiringExtraProcessing_result(");
19660
      boolean first = true;
19661
 
19662
      sb.append("success:");
19663
      if (this.success == null) {
19664
        sb.append("null");
19665
      } else {
19666
        sb.append(this.success);
19667
      }
19668
      first = false;
19669
      sb.append(")");
19670
      return sb.toString();
19671
    }
19672
 
19673
    public void validate() throws org.apache.thrift.TException {
19674
      // check for required fields
19675
    }
19676
 
19677
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19678
      try {
19679
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19680
      } catch (org.apache.thrift.TException te) {
19681
        throw new java.io.IOException(te);
19682
      }
19683
    }
19684
 
19685
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19686
      try {
19687
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19688
      } catch (org.apache.thrift.TException te) {
19689
        throw new java.io.IOException(te);
19690
      }
19691
    }
19692
 
19693
  }
19694
 
19695
  public static class markPaymentAsProcessed_args implements org.apache.thrift.TBase<markPaymentAsProcessed_args, markPaymentAsProcessed_args._Fields>, java.io.Serializable, Cloneable   {
19696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_args");
19697
 
19698
    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);
19699
    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);
19700
 
19701
    private long paymentId; // required
19702
    private ExtraPaymentProcessingType category; // required
19703
 
19704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19705
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19706
      PAYMENT_ID((short)1, "paymentId"),
19707
      /**
19708
       * 
19709
       * @see ExtraPaymentProcessingType
19710
       */
19711
      CATEGORY((short)2, "category");
19712
 
19713
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19714
 
19715
      static {
19716
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19717
          byName.put(field.getFieldName(), field);
19718
        }
19719
      }
19720
 
19721
      /**
19722
       * Find the _Fields constant that matches fieldId, or null if its not found.
19723
       */
19724
      public static _Fields findByThriftId(int fieldId) {
19725
        switch(fieldId) {
19726
          case 1: // PAYMENT_ID
19727
            return PAYMENT_ID;
19728
          case 2: // CATEGORY
19729
            return CATEGORY;
19730
          default:
19731
            return null;
19732
        }
19733
      }
19734
 
19735
      /**
19736
       * Find the _Fields constant that matches fieldId, throwing an exception
19737
       * if it is not found.
19738
       */
19739
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19740
        _Fields fields = findByThriftId(fieldId);
19741
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19742
        return fields;
19743
      }
19744
 
19745
      /**
19746
       * Find the _Fields constant that matches name, or null if its not found.
19747
       */
19748
      public static _Fields findByName(String name) {
19749
        return byName.get(name);
19750
      }
19751
 
19752
      private final short _thriftId;
19753
      private final String _fieldName;
19754
 
19755
      _Fields(short thriftId, String fieldName) {
19756
        _thriftId = thriftId;
19757
        _fieldName = fieldName;
19758
      }
19759
 
19760
      public short getThriftFieldId() {
19761
        return _thriftId;
19762
      }
19763
 
19764
      public String getFieldName() {
19765
        return _fieldName;
19766
      }
19767
    }
19768
 
19769
    // isset id assignments
19770
    private static final int __PAYMENTID_ISSET_ID = 0;
19771
    private BitSet __isset_bit_vector = new BitSet(1);
19772
 
19773
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19774
    static {
19775
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19776
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
19778
      tmpMap.put(_Fields.CATEGORY, new org.apache.thrift.meta_data.FieldMetaData("category", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19779
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ExtraPaymentProcessingType.class)));
19780
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19781
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_args.class, metaDataMap);
19782
    }
19783
 
19784
    public markPaymentAsProcessed_args() {
19785
    }
19786
 
19787
    public markPaymentAsProcessed_args(
19788
      long paymentId,
19789
      ExtraPaymentProcessingType category)
19790
    {
19791
      this();
19792
      this.paymentId = paymentId;
19793
      setPaymentIdIsSet(true);
19794
      this.category = category;
19795
    }
19796
 
19797
    /**
19798
     * Performs a deep copy on <i>other</i>.
19799
     */
19800
    public markPaymentAsProcessed_args(markPaymentAsProcessed_args other) {
19801
      __isset_bit_vector.clear();
19802
      __isset_bit_vector.or(other.__isset_bit_vector);
19803
      this.paymentId = other.paymentId;
19804
      if (other.isSetCategory()) {
19805
        this.category = other.category;
19806
      }
19807
    }
19808
 
19809
    public markPaymentAsProcessed_args deepCopy() {
19810
      return new markPaymentAsProcessed_args(this);
19811
    }
19812
 
19813
    @Override
19814
    public void clear() {
19815
      setPaymentIdIsSet(false);
19816
      this.paymentId = 0;
19817
      this.category = null;
19818
    }
19819
 
19820
    public long getPaymentId() {
19821
      return this.paymentId;
19822
    }
19823
 
19824
    public void setPaymentId(long paymentId) {
19825
      this.paymentId = paymentId;
19826
      setPaymentIdIsSet(true);
19827
    }
19828
 
19829
    public void unsetPaymentId() {
19830
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
19831
    }
19832
 
19833
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
19834
    public boolean isSetPaymentId() {
19835
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
19836
    }
19837
 
19838
    public void setPaymentIdIsSet(boolean value) {
19839
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
19840
    }
19841
 
19842
    /**
19843
     * 
19844
     * @see ExtraPaymentProcessingType
19845
     */
19846
    public ExtraPaymentProcessingType getCategory() {
19847
      return this.category;
19848
    }
19849
 
19850
    /**
19851
     * 
19852
     * @see ExtraPaymentProcessingType
19853
     */
19854
    public void setCategory(ExtraPaymentProcessingType category) {
19855
      this.category = category;
19856
    }
19857
 
19858
    public void unsetCategory() {
19859
      this.category = null;
19860
    }
19861
 
19862
    /** Returns true if field category is set (has been assigned a value) and false otherwise */
19863
    public boolean isSetCategory() {
19864
      return this.category != null;
19865
    }
19866
 
19867
    public void setCategoryIsSet(boolean value) {
19868
      if (!value) {
19869
        this.category = null;
19870
      }
19871
    }
19872
 
19873
    public void setFieldValue(_Fields field, Object value) {
19874
      switch (field) {
19875
      case PAYMENT_ID:
19876
        if (value == null) {
19877
          unsetPaymentId();
19878
        } else {
19879
          setPaymentId((Long)value);
19880
        }
19881
        break;
19882
 
19883
      case CATEGORY:
19884
        if (value == null) {
19885
          unsetCategory();
19886
        } else {
19887
          setCategory((ExtraPaymentProcessingType)value);
19888
        }
19889
        break;
19890
 
19891
      }
19892
    }
19893
 
19894
    public Object getFieldValue(_Fields field) {
19895
      switch (field) {
19896
      case PAYMENT_ID:
19897
        return Long.valueOf(getPaymentId());
19898
 
19899
      case CATEGORY:
19900
        return getCategory();
19901
 
19902
      }
19903
      throw new IllegalStateException();
19904
    }
19905
 
19906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19907
    public boolean isSet(_Fields field) {
19908
      if (field == null) {
19909
        throw new IllegalArgumentException();
19910
      }
19911
 
19912
      switch (field) {
19913
      case PAYMENT_ID:
19914
        return isSetPaymentId();
19915
      case CATEGORY:
19916
        return isSetCategory();
19917
      }
19918
      throw new IllegalStateException();
19919
    }
19920
 
19921
    @Override
19922
    public boolean equals(Object that) {
19923
      if (that == null)
19924
        return false;
19925
      if (that instanceof markPaymentAsProcessed_args)
19926
        return this.equals((markPaymentAsProcessed_args)that);
19927
      return false;
19928
    }
19929
 
19930
    public boolean equals(markPaymentAsProcessed_args that) {
19931
      if (that == null)
19932
        return false;
19933
 
19934
      boolean this_present_paymentId = true;
19935
      boolean that_present_paymentId = true;
19936
      if (this_present_paymentId || that_present_paymentId) {
19937
        if (!(this_present_paymentId && that_present_paymentId))
19938
          return false;
19939
        if (this.paymentId != that.paymentId)
19940
          return false;
19941
      }
19942
 
19943
      boolean this_present_category = true && this.isSetCategory();
19944
      boolean that_present_category = true && that.isSetCategory();
19945
      if (this_present_category || that_present_category) {
19946
        if (!(this_present_category && that_present_category))
19947
          return false;
19948
        if (!this.category.equals(that.category))
19949
          return false;
19950
      }
19951
 
19952
      return true;
19953
    }
19954
 
19955
    @Override
19956
    public int hashCode() {
19957
      return 0;
19958
    }
19959
 
19960
    public int compareTo(markPaymentAsProcessed_args other) {
19961
      if (!getClass().equals(other.getClass())) {
19962
        return getClass().getName().compareTo(other.getClass().getName());
19963
      }
19964
 
19965
      int lastComparison = 0;
19966
      markPaymentAsProcessed_args typedOther = (markPaymentAsProcessed_args)other;
19967
 
19968
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
19969
      if (lastComparison != 0) {
19970
        return lastComparison;
19971
      }
19972
      if (isSetPaymentId()) {
19973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
19974
        if (lastComparison != 0) {
19975
          return lastComparison;
19976
        }
19977
      }
19978
      lastComparison = Boolean.valueOf(isSetCategory()).compareTo(typedOther.isSetCategory());
19979
      if (lastComparison != 0) {
19980
        return lastComparison;
19981
      }
19982
      if (isSetCategory()) {
19983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.category, typedOther.category);
19984
        if (lastComparison != 0) {
19985
          return lastComparison;
19986
        }
19987
      }
19988
      return 0;
19989
    }
19990
 
19991
    public _Fields fieldForId(int fieldId) {
19992
      return _Fields.findByThriftId(fieldId);
19993
    }
19994
 
19995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19996
      org.apache.thrift.protocol.TField field;
19997
      iprot.readStructBegin();
19998
      while (true)
19999
      {
20000
        field = iprot.readFieldBegin();
20001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20002
          break;
20003
        }
20004
        switch (field.id) {
20005
          case 1: // PAYMENT_ID
20006
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20007
              this.paymentId = iprot.readI64();
20008
              setPaymentIdIsSet(true);
20009
            } else { 
20010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20011
            }
20012
            break;
20013
          case 2: // CATEGORY
20014
            if (field.type == org.apache.thrift.protocol.TType.I32) {
20015
              this.category = ExtraPaymentProcessingType.findByValue(iprot.readI32());
20016
            } else { 
20017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20018
            }
20019
            break;
20020
          default:
20021
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20022
        }
20023
        iprot.readFieldEnd();
20024
      }
20025
      iprot.readStructEnd();
20026
      validate();
20027
    }
20028
 
20029
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20030
      validate();
20031
 
20032
      oprot.writeStructBegin(STRUCT_DESC);
20033
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
20034
      oprot.writeI64(this.paymentId);
20035
      oprot.writeFieldEnd();
20036
      if (this.category != null) {
20037
        oprot.writeFieldBegin(CATEGORY_FIELD_DESC);
20038
        oprot.writeI32(this.category.getValue());
20039
        oprot.writeFieldEnd();
20040
      }
20041
      oprot.writeFieldStop();
20042
      oprot.writeStructEnd();
20043
    }
20044
 
20045
    @Override
20046
    public String toString() {
20047
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_args(");
20048
      boolean first = true;
20049
 
20050
      sb.append("paymentId:");
20051
      sb.append(this.paymentId);
20052
      first = false;
20053
      if (!first) sb.append(", ");
20054
      sb.append("category:");
20055
      if (this.category == null) {
20056
        sb.append("null");
20057
      } else {
20058
        sb.append(this.category);
20059
      }
20060
      first = false;
20061
      sb.append(")");
20062
      return sb.toString();
20063
    }
20064
 
20065
    public void validate() throws org.apache.thrift.TException {
20066
      // check for required fields
20067
    }
20068
 
20069
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20070
      try {
20071
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20072
      } catch (org.apache.thrift.TException te) {
20073
        throw new java.io.IOException(te);
20074
      }
20075
    }
20076
 
20077
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20078
      try {
20079
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20080
      } catch (org.apache.thrift.TException te) {
20081
        throw new java.io.IOException(te);
20082
      }
20083
    }
20084
 
20085
  }
20086
 
20087
  public static class markPaymentAsProcessed_result implements org.apache.thrift.TBase<markPaymentAsProcessed_result, markPaymentAsProcessed_result._Fields>, java.io.Serializable, Cloneable   {
20088
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markPaymentAsProcessed_result");
20089
 
20090
 
20091
 
20092
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20093
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20094
;
20095
 
20096
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20097
 
20098
      static {
20099
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20100
          byName.put(field.getFieldName(), field);
20101
        }
20102
      }
20103
 
20104
      /**
20105
       * Find the _Fields constant that matches fieldId, or null if its not found.
20106
       */
20107
      public static _Fields findByThriftId(int fieldId) {
20108
        switch(fieldId) {
20109
          default:
20110
            return null;
20111
        }
20112
      }
20113
 
20114
      /**
20115
       * Find the _Fields constant that matches fieldId, throwing an exception
20116
       * if it is not found.
20117
       */
20118
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20119
        _Fields fields = findByThriftId(fieldId);
20120
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20121
        return fields;
20122
      }
20123
 
20124
      /**
20125
       * Find the _Fields constant that matches name, or null if its not found.
20126
       */
20127
      public static _Fields findByName(String name) {
20128
        return byName.get(name);
20129
      }
20130
 
20131
      private final short _thriftId;
20132
      private final String _fieldName;
20133
 
20134
      _Fields(short thriftId, String fieldName) {
20135
        _thriftId = thriftId;
20136
        _fieldName = fieldName;
20137
      }
20138
 
20139
      public short getThriftFieldId() {
20140
        return _thriftId;
20141
      }
20142
 
20143
      public String getFieldName() {
20144
        return _fieldName;
20145
      }
20146
    }
20147
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20148
    static {
20149
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20150
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20151
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markPaymentAsProcessed_result.class, metaDataMap);
20152
    }
20153
 
20154
    public markPaymentAsProcessed_result() {
20155
    }
20156
 
20157
    /**
20158
     * Performs a deep copy on <i>other</i>.
20159
     */
20160
    public markPaymentAsProcessed_result(markPaymentAsProcessed_result other) {
20161
    }
20162
 
20163
    public markPaymentAsProcessed_result deepCopy() {
20164
      return new markPaymentAsProcessed_result(this);
20165
    }
20166
 
20167
    @Override
20168
    public void clear() {
20169
    }
20170
 
20171
    public void setFieldValue(_Fields field, Object value) {
20172
      switch (field) {
20173
      }
20174
    }
20175
 
20176
    public Object getFieldValue(_Fields field) {
20177
      switch (field) {
20178
      }
20179
      throw new IllegalStateException();
20180
    }
20181
 
20182
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20183
    public boolean isSet(_Fields field) {
20184
      if (field == null) {
20185
        throw new IllegalArgumentException();
20186
      }
20187
 
20188
      switch (field) {
20189
      }
20190
      throw new IllegalStateException();
20191
    }
20192
 
20193
    @Override
20194
    public boolean equals(Object that) {
20195
      if (that == null)
20196
        return false;
20197
      if (that instanceof markPaymentAsProcessed_result)
20198
        return this.equals((markPaymentAsProcessed_result)that);
20199
      return false;
20200
    }
20201
 
20202
    public boolean equals(markPaymentAsProcessed_result that) {
20203
      if (that == null)
20204
        return false;
20205
 
20206
      return true;
20207
    }
20208
 
20209
    @Override
20210
    public int hashCode() {
20211
      return 0;
20212
    }
20213
 
20214
    public int compareTo(markPaymentAsProcessed_result other) {
20215
      if (!getClass().equals(other.getClass())) {
20216
        return getClass().getName().compareTo(other.getClass().getName());
20217
      }
20218
 
20219
      int lastComparison = 0;
20220
      markPaymentAsProcessed_result typedOther = (markPaymentAsProcessed_result)other;
20221
 
20222
      return 0;
20223
    }
20224
 
20225
    public _Fields fieldForId(int fieldId) {
20226
      return _Fields.findByThriftId(fieldId);
20227
    }
20228
 
20229
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20230
      org.apache.thrift.protocol.TField field;
20231
      iprot.readStructBegin();
20232
      while (true)
20233
      {
20234
        field = iprot.readFieldBegin();
20235
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20236
          break;
20237
        }
20238
        switch (field.id) {
20239
          default:
20240
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20241
        }
20242
        iprot.readFieldEnd();
20243
      }
20244
      iprot.readStructEnd();
20245
      validate();
20246
    }
20247
 
20248
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20249
      oprot.writeStructBegin(STRUCT_DESC);
20250
 
20251
      oprot.writeFieldStop();
20252
      oprot.writeStructEnd();
20253
    }
20254
 
20255
    @Override
20256
    public String toString() {
20257
      StringBuilder sb = new StringBuilder("markPaymentAsProcessed_result(");
20258
      boolean first = true;
20259
 
20260
      sb.append(")");
20261
      return sb.toString();
20262
    }
20263
 
20264
    public void validate() throws org.apache.thrift.TException {
20265
      // check for required fields
20266
    }
20267
 
20268
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20269
      try {
20270
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20271
      } catch (org.apache.thrift.TException te) {
20272
        throw new java.io.IOException(te);
20273
      }
20274
    }
20275
 
20276
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20277
      try {
20278
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20279
      } catch (org.apache.thrift.TException te) {
20280
        throw new java.io.IOException(te);
20281
      }
20282
    }
20283
 
20284
  }
20285
 
8914 rajveer 20286
  public static class getPaymentStatusAtGateway_args implements org.apache.thrift.TBase<getPaymentStatusAtGateway_args, getPaymentStatusAtGateway_args._Fields>, java.io.Serializable, Cloneable   {
20287
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentStatusAtGateway_args");
8907 rajveer 20288
 
20289
    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);
20290
    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);
20291
    private static final org.apache.thrift.protocol.TField IS_DIGITAL_FIELD_DESC = new org.apache.thrift.protocol.TField("isDigital", org.apache.thrift.protocol.TType.BOOL, (short)3);
20292
 
20293
    private long merchantTxnId; // required
20294
    private double amount; // required
20295
    private boolean isDigital; // required
20296
 
20297
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20298
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20299
      MERCHANT_TXN_ID((short)1, "merchantTxnId"),
20300
      AMOUNT((short)2, "amount"),
20301
      IS_DIGITAL((short)3, "isDigital");
20302
 
20303
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20304
 
20305
      static {
20306
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20307
          byName.put(field.getFieldName(), field);
20308
        }
20309
      }
20310
 
20311
      /**
20312
       * Find the _Fields constant that matches fieldId, or null if its not found.
20313
       */
20314
      public static _Fields findByThriftId(int fieldId) {
20315
        switch(fieldId) {
20316
          case 1: // MERCHANT_TXN_ID
20317
            return MERCHANT_TXN_ID;
20318
          case 2: // AMOUNT
20319
            return AMOUNT;
20320
          case 3: // IS_DIGITAL
20321
            return IS_DIGITAL;
20322
          default:
20323
            return null;
20324
        }
20325
      }
20326
 
20327
      /**
20328
       * Find the _Fields constant that matches fieldId, throwing an exception
20329
       * if it is not found.
20330
       */
20331
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20332
        _Fields fields = findByThriftId(fieldId);
20333
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20334
        return fields;
20335
      }
20336
 
20337
      /**
20338
       * Find the _Fields constant that matches name, or null if its not found.
20339
       */
20340
      public static _Fields findByName(String name) {
20341
        return byName.get(name);
20342
      }
20343
 
20344
      private final short _thriftId;
20345
      private final String _fieldName;
20346
 
20347
      _Fields(short thriftId, String fieldName) {
20348
        _thriftId = thriftId;
20349
        _fieldName = fieldName;
20350
      }
20351
 
20352
      public short getThriftFieldId() {
20353
        return _thriftId;
20354
      }
20355
 
20356
      public String getFieldName() {
20357
        return _fieldName;
20358
      }
20359
    }
20360
 
20361
    // isset id assignments
20362
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
20363
    private static final int __AMOUNT_ISSET_ID = 1;
20364
    private static final int __ISDIGITAL_ISSET_ID = 2;
20365
    private BitSet __isset_bit_vector = new BitSet(3);
20366
 
20367
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20368
    static {
20369
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20370
      tmpMap.put(_Fields.MERCHANT_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20371
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20372
      tmpMap.put(_Fields.AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20373
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
20374
      tmpMap.put(_Fields.IS_DIGITAL, new org.apache.thrift.meta_data.FieldMetaData("isDigital", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20375
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
20376
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8914 rajveer 20377
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentStatusAtGateway_args.class, metaDataMap);
8907 rajveer 20378
    }
20379
 
8914 rajveer 20380
    public getPaymentStatusAtGateway_args() {
8907 rajveer 20381
    }
20382
 
8914 rajveer 20383
    public getPaymentStatusAtGateway_args(
8907 rajveer 20384
      long merchantTxnId,
20385
      double amount,
20386
      boolean isDigital)
20387
    {
20388
      this();
20389
      this.merchantTxnId = merchantTxnId;
20390
      setMerchantTxnIdIsSet(true);
20391
      this.amount = amount;
20392
      setAmountIsSet(true);
20393
      this.isDigital = isDigital;
20394
      setIsDigitalIsSet(true);
20395
    }
20396
 
20397
    /**
20398
     * Performs a deep copy on <i>other</i>.
20399
     */
8914 rajveer 20400
    public getPaymentStatusAtGateway_args(getPaymentStatusAtGateway_args other) {
8907 rajveer 20401
      __isset_bit_vector.clear();
20402
      __isset_bit_vector.or(other.__isset_bit_vector);
20403
      this.merchantTxnId = other.merchantTxnId;
20404
      this.amount = other.amount;
20405
      this.isDigital = other.isDigital;
20406
    }
20407
 
8914 rajveer 20408
    public getPaymentStatusAtGateway_args deepCopy() {
20409
      return new getPaymentStatusAtGateway_args(this);
8907 rajveer 20410
    }
20411
 
20412
    @Override
20413
    public void clear() {
20414
      setMerchantTxnIdIsSet(false);
20415
      this.merchantTxnId = 0;
20416
      setAmountIsSet(false);
20417
      this.amount = 0.0;
20418
      setIsDigitalIsSet(false);
20419
      this.isDigital = false;
20420
    }
20421
 
20422
    public long getMerchantTxnId() {
20423
      return this.merchantTxnId;
20424
    }
20425
 
20426
    public void setMerchantTxnId(long merchantTxnId) {
20427
      this.merchantTxnId = merchantTxnId;
20428
      setMerchantTxnIdIsSet(true);
20429
    }
20430
 
20431
    public void unsetMerchantTxnId() {
20432
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
20433
    }
20434
 
20435
    /** Returns true if field merchantTxnId is set (has been assigned a value) and false otherwise */
20436
    public boolean isSetMerchantTxnId() {
20437
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
20438
    }
20439
 
20440
    public void setMerchantTxnIdIsSet(boolean value) {
20441
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
20442
    }
20443
 
20444
    public double getAmount() {
20445
      return this.amount;
20446
    }
20447
 
20448
    public void setAmount(double amount) {
20449
      this.amount = amount;
20450
      setAmountIsSet(true);
20451
    }
20452
 
20453
    public void unsetAmount() {
20454
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
20455
    }
20456
 
20457
    /** Returns true if field amount is set (has been assigned a value) and false otherwise */
20458
    public boolean isSetAmount() {
20459
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
20460
    }
20461
 
20462
    public void setAmountIsSet(boolean value) {
20463
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
20464
    }
20465
 
20466
    public boolean isIsDigital() {
20467
      return this.isDigital;
20468
    }
20469
 
20470
    public void setIsDigital(boolean isDigital) {
20471
      this.isDigital = isDigital;
20472
      setIsDigitalIsSet(true);
20473
    }
20474
 
20475
    public void unsetIsDigital() {
20476
      __isset_bit_vector.clear(__ISDIGITAL_ISSET_ID);
20477
    }
20478
 
20479
    /** Returns true if field isDigital is set (has been assigned a value) and false otherwise */
20480
    public boolean isSetIsDigital() {
20481
      return __isset_bit_vector.get(__ISDIGITAL_ISSET_ID);
20482
    }
20483
 
20484
    public void setIsDigitalIsSet(boolean value) {
20485
      __isset_bit_vector.set(__ISDIGITAL_ISSET_ID, value);
20486
    }
20487
 
20488
    public void setFieldValue(_Fields field, Object value) {
20489
      switch (field) {
20490
      case MERCHANT_TXN_ID:
20491
        if (value == null) {
20492
          unsetMerchantTxnId();
20493
        } else {
20494
          setMerchantTxnId((Long)value);
20495
        }
20496
        break;
20497
 
20498
      case AMOUNT:
20499
        if (value == null) {
20500
          unsetAmount();
20501
        } else {
20502
          setAmount((Double)value);
20503
        }
20504
        break;
20505
 
20506
      case IS_DIGITAL:
20507
        if (value == null) {
20508
          unsetIsDigital();
20509
        } else {
20510
          setIsDigital((Boolean)value);
20511
        }
20512
        break;
20513
 
20514
      }
20515
    }
20516
 
20517
    public Object getFieldValue(_Fields field) {
20518
      switch (field) {
20519
      case MERCHANT_TXN_ID:
20520
        return Long.valueOf(getMerchantTxnId());
20521
 
20522
      case AMOUNT:
20523
        return Double.valueOf(getAmount());
20524
 
20525
      case IS_DIGITAL:
20526
        return Boolean.valueOf(isIsDigital());
20527
 
20528
      }
20529
      throw new IllegalStateException();
20530
    }
20531
 
20532
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20533
    public boolean isSet(_Fields field) {
20534
      if (field == null) {
20535
        throw new IllegalArgumentException();
20536
      }
20537
 
20538
      switch (field) {
20539
      case MERCHANT_TXN_ID:
20540
        return isSetMerchantTxnId();
20541
      case AMOUNT:
20542
        return isSetAmount();
20543
      case IS_DIGITAL:
20544
        return isSetIsDigital();
20545
      }
20546
      throw new IllegalStateException();
20547
    }
20548
 
20549
    @Override
20550
    public boolean equals(Object that) {
20551
      if (that == null)
20552
        return false;
8914 rajveer 20553
      if (that instanceof getPaymentStatusAtGateway_args)
20554
        return this.equals((getPaymentStatusAtGateway_args)that);
8907 rajveer 20555
      return false;
20556
    }
20557
 
8914 rajveer 20558
    public boolean equals(getPaymentStatusAtGateway_args that) {
8907 rajveer 20559
      if (that == null)
20560
        return false;
20561
 
20562
      boolean this_present_merchantTxnId = true;
20563
      boolean that_present_merchantTxnId = true;
20564
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
20565
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
20566
          return false;
20567
        if (this.merchantTxnId != that.merchantTxnId)
20568
          return false;
20569
      }
20570
 
20571
      boolean this_present_amount = true;
20572
      boolean that_present_amount = true;
20573
      if (this_present_amount || that_present_amount) {
20574
        if (!(this_present_amount && that_present_amount))
20575
          return false;
20576
        if (this.amount != that.amount)
20577
          return false;
20578
      }
20579
 
20580
      boolean this_present_isDigital = true;
20581
      boolean that_present_isDigital = true;
20582
      if (this_present_isDigital || that_present_isDigital) {
20583
        if (!(this_present_isDigital && that_present_isDigital))
20584
          return false;
20585
        if (this.isDigital != that.isDigital)
20586
          return false;
20587
      }
20588
 
20589
      return true;
20590
    }
20591
 
20592
    @Override
20593
    public int hashCode() {
20594
      return 0;
20595
    }
20596
 
8914 rajveer 20597
    public int compareTo(getPaymentStatusAtGateway_args other) {
8907 rajveer 20598
      if (!getClass().equals(other.getClass())) {
20599
        return getClass().getName().compareTo(other.getClass().getName());
20600
      }
20601
 
20602
      int lastComparison = 0;
8914 rajveer 20603
      getPaymentStatusAtGateway_args typedOther = (getPaymentStatusAtGateway_args)other;
8907 rajveer 20604
 
20605
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(typedOther.isSetMerchantTxnId());
20606
      if (lastComparison != 0) {
20607
        return lastComparison;
20608
      }
20609
      if (isSetMerchantTxnId()) {
20610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantTxnId, typedOther.merchantTxnId);
20611
        if (lastComparison != 0) {
20612
          return lastComparison;
20613
        }
20614
      }
20615
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(typedOther.isSetAmount());
20616
      if (lastComparison != 0) {
20617
        return lastComparison;
20618
      }
20619
      if (isSetAmount()) {
20620
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amount, typedOther.amount);
20621
        if (lastComparison != 0) {
20622
          return lastComparison;
20623
        }
20624
      }
20625
      lastComparison = Boolean.valueOf(isSetIsDigital()).compareTo(typedOther.isSetIsDigital());
20626
      if (lastComparison != 0) {
20627
        return lastComparison;
20628
      }
20629
      if (isSetIsDigital()) {
20630
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isDigital, typedOther.isDigital);
20631
        if (lastComparison != 0) {
20632
          return lastComparison;
20633
        }
20634
      }
20635
      return 0;
20636
    }
20637
 
20638
    public _Fields fieldForId(int fieldId) {
20639
      return _Fields.findByThriftId(fieldId);
20640
    }
20641
 
20642
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20643
      org.apache.thrift.protocol.TField field;
20644
      iprot.readStructBegin();
20645
      while (true)
20646
      {
20647
        field = iprot.readFieldBegin();
20648
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20649
          break;
20650
        }
20651
        switch (field.id) {
20652
          case 1: // MERCHANT_TXN_ID
20653
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20654
              this.merchantTxnId = iprot.readI64();
20655
              setMerchantTxnIdIsSet(true);
20656
            } else { 
20657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20658
            }
20659
            break;
20660
          case 2: // AMOUNT
20661
            if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
20662
              this.amount = iprot.readDouble();
20663
              setAmountIsSet(true);
20664
            } else { 
20665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20666
            }
20667
            break;
20668
          case 3: // IS_DIGITAL
20669
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
20670
              this.isDigital = iprot.readBool();
20671
              setIsDigitalIsSet(true);
20672
            } else { 
20673
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20674
            }
20675
            break;
20676
          default:
20677
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20678
        }
20679
        iprot.readFieldEnd();
20680
      }
20681
      iprot.readStructEnd();
20682
      validate();
20683
    }
20684
 
20685
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20686
      validate();
20687
 
20688
      oprot.writeStructBegin(STRUCT_DESC);
20689
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
20690
      oprot.writeI64(this.merchantTxnId);
20691
      oprot.writeFieldEnd();
20692
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
20693
      oprot.writeDouble(this.amount);
20694
      oprot.writeFieldEnd();
20695
      oprot.writeFieldBegin(IS_DIGITAL_FIELD_DESC);
20696
      oprot.writeBool(this.isDigital);
20697
      oprot.writeFieldEnd();
20698
      oprot.writeFieldStop();
20699
      oprot.writeStructEnd();
20700
    }
20701
 
20702
    @Override
20703
    public String toString() {
8914 rajveer 20704
      StringBuilder sb = new StringBuilder("getPaymentStatusAtGateway_args(");
8907 rajveer 20705
      boolean first = true;
20706
 
20707
      sb.append("merchantTxnId:");
20708
      sb.append(this.merchantTxnId);
20709
      first = false;
20710
      if (!first) sb.append(", ");
20711
      sb.append("amount:");
20712
      sb.append(this.amount);
20713
      first = false;
20714
      if (!first) sb.append(", ");
20715
      sb.append("isDigital:");
20716
      sb.append(this.isDigital);
20717
      first = false;
20718
      sb.append(")");
20719
      return sb.toString();
20720
    }
20721
 
20722
    public void validate() throws org.apache.thrift.TException {
20723
      // check for required fields
20724
    }
20725
 
20726
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20727
      try {
20728
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20729
      } catch (org.apache.thrift.TException te) {
20730
        throw new java.io.IOException(te);
20731
      }
20732
    }
20733
 
20734
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20735
      try {
20736
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
20737
        __isset_bit_vector = new BitSet(1);
20738
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20739
      } catch (org.apache.thrift.TException te) {
20740
        throw new java.io.IOException(te);
20741
      }
20742
    }
20743
 
20744
  }
20745
 
8914 rajveer 20746
  public static class getPaymentStatusAtGateway_result implements org.apache.thrift.TBase<getPaymentStatusAtGateway_result, getPaymentStatusAtGateway_result._Fields>, java.io.Serializable, Cloneable   {
20747
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPaymentStatusAtGateway_result");
8907 rajveer 20748
 
8914 rajveer 20749
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
8907 rajveer 20750
    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);
20751
 
8914 rajveer 20752
    private PaymentStatus success; // required
8907 rajveer 20753
    private PaymentException pe; // required
20754
 
20755
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20756
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8914 rajveer 20757
      /**
20758
       * 
20759
       * @see PaymentStatus
20760
       */
8907 rajveer 20761
      SUCCESS((short)0, "success"),
20762
      PE((short)1, "pe");
20763
 
20764
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20765
 
20766
      static {
20767
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20768
          byName.put(field.getFieldName(), field);
20769
        }
20770
      }
20771
 
20772
      /**
20773
       * Find the _Fields constant that matches fieldId, or null if its not found.
20774
       */
20775
      public static _Fields findByThriftId(int fieldId) {
20776
        switch(fieldId) {
20777
          case 0: // SUCCESS
20778
            return SUCCESS;
20779
          case 1: // PE
20780
            return PE;
20781
          default:
20782
            return null;
20783
        }
20784
      }
20785
 
20786
      /**
20787
       * Find the _Fields constant that matches fieldId, throwing an exception
20788
       * if it is not found.
20789
       */
20790
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20791
        _Fields fields = findByThriftId(fieldId);
20792
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20793
        return fields;
20794
      }
20795
 
20796
      /**
20797
       * Find the _Fields constant that matches name, or null if its not found.
20798
       */
20799
      public static _Fields findByName(String name) {
20800
        return byName.get(name);
20801
      }
20802
 
20803
      private final short _thriftId;
20804
      private final String _fieldName;
20805
 
20806
      _Fields(short thriftId, String fieldName) {
20807
        _thriftId = thriftId;
20808
        _fieldName = fieldName;
20809
      }
20810
 
20811
      public short getThriftFieldId() {
20812
        return _thriftId;
20813
      }
20814
 
20815
      public String getFieldName() {
20816
        return _fieldName;
20817
      }
20818
    }
20819
 
20820
    // isset id assignments
20821
 
20822
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20823
    static {
20824
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20825
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8914 rajveer 20826
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PaymentStatus.class)));
8907 rajveer 20827
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20828
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20829
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8914 rajveer 20830
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPaymentStatusAtGateway_result.class, metaDataMap);
8907 rajveer 20831
    }
20832
 
8914 rajveer 20833
    public getPaymentStatusAtGateway_result() {
8907 rajveer 20834
    }
20835
 
8914 rajveer 20836
    public getPaymentStatusAtGateway_result(
20837
      PaymentStatus success,
8907 rajveer 20838
      PaymentException pe)
20839
    {
20840
      this();
20841
      this.success = success;
20842
      this.pe = pe;
20843
    }
20844
 
20845
    /**
20846
     * Performs a deep copy on <i>other</i>.
20847
     */
8914 rajveer 20848
    public getPaymentStatusAtGateway_result(getPaymentStatusAtGateway_result other) {
20849
      if (other.isSetSuccess()) {
20850
        this.success = other.success;
20851
      }
8907 rajveer 20852
      if (other.isSetPe()) {
20853
        this.pe = new PaymentException(other.pe);
20854
      }
20855
    }
20856
 
8914 rajveer 20857
    public getPaymentStatusAtGateway_result deepCopy() {
20858
      return new getPaymentStatusAtGateway_result(this);
8907 rajveer 20859
    }
20860
 
20861
    @Override
20862
    public void clear() {
8914 rajveer 20863
      this.success = null;
8907 rajveer 20864
      this.pe = null;
20865
    }
20866
 
8914 rajveer 20867
    /**
20868
     * 
20869
     * @see PaymentStatus
20870
     */
20871
    public PaymentStatus getSuccess() {
8907 rajveer 20872
      return this.success;
20873
    }
20874
 
8914 rajveer 20875
    /**
20876
     * 
20877
     * @see PaymentStatus
20878
     */
20879
    public void setSuccess(PaymentStatus success) {
8907 rajveer 20880
      this.success = success;
20881
    }
20882
 
20883
    public void unsetSuccess() {
8914 rajveer 20884
      this.success = null;
8907 rajveer 20885
    }
20886
 
20887
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20888
    public boolean isSetSuccess() {
8914 rajveer 20889
      return this.success != null;
8907 rajveer 20890
    }
20891
 
20892
    public void setSuccessIsSet(boolean value) {
8914 rajveer 20893
      if (!value) {
20894
        this.success = null;
20895
      }
8907 rajveer 20896
    }
20897
 
20898
    public PaymentException getPe() {
20899
      return this.pe;
20900
    }
20901
 
20902
    public void setPe(PaymentException pe) {
20903
      this.pe = pe;
20904
    }
20905
 
20906
    public void unsetPe() {
20907
      this.pe = null;
20908
    }
20909
 
20910
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
20911
    public boolean isSetPe() {
20912
      return this.pe != null;
20913
    }
20914
 
20915
    public void setPeIsSet(boolean value) {
20916
      if (!value) {
20917
        this.pe = null;
20918
      }
20919
    }
20920
 
20921
    public void setFieldValue(_Fields field, Object value) {
20922
      switch (field) {
20923
      case SUCCESS:
20924
        if (value == null) {
20925
          unsetSuccess();
20926
        } else {
8914 rajveer 20927
          setSuccess((PaymentStatus)value);
8907 rajveer 20928
        }
20929
        break;
20930
 
20931
      case PE:
20932
        if (value == null) {
20933
          unsetPe();
20934
        } else {
20935
          setPe((PaymentException)value);
20936
        }
20937
        break;
20938
 
20939
      }
20940
    }
20941
 
20942
    public Object getFieldValue(_Fields field) {
20943
      switch (field) {
20944
      case SUCCESS:
8914 rajveer 20945
        return getSuccess();
8907 rajveer 20946
 
20947
      case PE:
20948
        return getPe();
20949
 
20950
      }
20951
      throw new IllegalStateException();
20952
    }
20953
 
20954
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20955
    public boolean isSet(_Fields field) {
20956
      if (field == null) {
20957
        throw new IllegalArgumentException();
20958
      }
20959
 
20960
      switch (field) {
20961
      case SUCCESS:
20962
        return isSetSuccess();
20963
      case PE:
20964
        return isSetPe();
20965
      }
20966
      throw new IllegalStateException();
20967
    }
20968
 
20969
    @Override
20970
    public boolean equals(Object that) {
20971
      if (that == null)
20972
        return false;
8914 rajveer 20973
      if (that instanceof getPaymentStatusAtGateway_result)
20974
        return this.equals((getPaymentStatusAtGateway_result)that);
8907 rajveer 20975
      return false;
20976
    }
20977
 
8914 rajveer 20978
    public boolean equals(getPaymentStatusAtGateway_result that) {
8907 rajveer 20979
      if (that == null)
20980
        return false;
20981
 
8914 rajveer 20982
      boolean this_present_success = true && this.isSetSuccess();
20983
      boolean that_present_success = true && that.isSetSuccess();
8907 rajveer 20984
      if (this_present_success || that_present_success) {
20985
        if (!(this_present_success && that_present_success))
20986
          return false;
8914 rajveer 20987
        if (!this.success.equals(that.success))
8907 rajveer 20988
          return false;
20989
      }
20990
 
20991
      boolean this_present_pe = true && this.isSetPe();
20992
      boolean that_present_pe = true && that.isSetPe();
20993
      if (this_present_pe || that_present_pe) {
20994
        if (!(this_present_pe && that_present_pe))
20995
          return false;
20996
        if (!this.pe.equals(that.pe))
20997
          return false;
20998
      }
20999
 
21000
      return true;
21001
    }
21002
 
21003
    @Override
21004
    public int hashCode() {
21005
      return 0;
21006
    }
21007
 
8914 rajveer 21008
    public int compareTo(getPaymentStatusAtGateway_result other) {
8907 rajveer 21009
      if (!getClass().equals(other.getClass())) {
21010
        return getClass().getName().compareTo(other.getClass().getName());
21011
      }
21012
 
21013
      int lastComparison = 0;
8914 rajveer 21014
      getPaymentStatusAtGateway_result typedOther = (getPaymentStatusAtGateway_result)other;
8907 rajveer 21015
 
21016
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21017
      if (lastComparison != 0) {
21018
        return lastComparison;
21019
      }
21020
      if (isSetSuccess()) {
21021
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21022
        if (lastComparison != 0) {
21023
          return lastComparison;
21024
        }
21025
      }
21026
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
21027
      if (lastComparison != 0) {
21028
        return lastComparison;
21029
      }
21030
      if (isSetPe()) {
21031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
21032
        if (lastComparison != 0) {
21033
          return lastComparison;
21034
        }
21035
      }
21036
      return 0;
21037
    }
21038
 
21039
    public _Fields fieldForId(int fieldId) {
21040
      return _Fields.findByThriftId(fieldId);
21041
    }
21042
 
21043
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21044
      org.apache.thrift.protocol.TField field;
21045
      iprot.readStructBegin();
21046
      while (true)
21047
      {
21048
        field = iprot.readFieldBegin();
21049
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21050
          break;
21051
        }
21052
        switch (field.id) {
21053
          case 0: // SUCCESS
8914 rajveer 21054
            if (field.type == org.apache.thrift.protocol.TType.I32) {
21055
              this.success = PaymentStatus.findByValue(iprot.readI32());
8907 rajveer 21056
            } else { 
21057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21058
            }
21059
            break;
21060
          case 1: // PE
21061
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21062
              this.pe = new PaymentException();
21063
              this.pe.read(iprot);
21064
            } else { 
21065
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21066
            }
21067
            break;
21068
          default:
21069
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21070
        }
21071
        iprot.readFieldEnd();
21072
      }
21073
      iprot.readStructEnd();
21074
      validate();
21075
    }
21076
 
21077
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21078
      oprot.writeStructBegin(STRUCT_DESC);
21079
 
21080
      if (this.isSetSuccess()) {
21081
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8914 rajveer 21082
        oprot.writeI32(this.success.getValue());
8907 rajveer 21083
        oprot.writeFieldEnd();
21084
      } else if (this.isSetPe()) {
21085
        oprot.writeFieldBegin(PE_FIELD_DESC);
21086
        this.pe.write(oprot);
21087
        oprot.writeFieldEnd();
21088
      }
21089
      oprot.writeFieldStop();
21090
      oprot.writeStructEnd();
21091
    }
21092
 
21093
    @Override
21094
    public String toString() {
8914 rajveer 21095
      StringBuilder sb = new StringBuilder("getPaymentStatusAtGateway_result(");
8907 rajveer 21096
      boolean first = true;
21097
 
21098
      sb.append("success:");
8914 rajveer 21099
      if (this.success == null) {
21100
        sb.append("null");
21101
      } else {
21102
        sb.append(this.success);
21103
      }
8907 rajveer 21104
      first = false;
21105
      if (!first) sb.append(", ");
21106
      sb.append("pe:");
21107
      if (this.pe == null) {
21108
        sb.append("null");
21109
      } else {
21110
        sb.append(this.pe);
21111
      }
21112
      first = false;
21113
      sb.append(")");
21114
      return sb.toString();
21115
    }
21116
 
21117
    public void validate() throws org.apache.thrift.TException {
21118
      // check for required fields
21119
    }
21120
 
21121
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21122
      try {
21123
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21124
      } catch (org.apache.thrift.TException te) {
21125
        throw new java.io.IOException(te);
21126
      }
21127
    }
21128
 
21129
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21130
      try {
21131
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21132
      } catch (org.apache.thrift.TException te) {
21133
        throw new java.io.IOException(te);
21134
      }
21135
    }
21136
 
21137
  }
21138
 
18577 manish.sha 21139
  public static class getCreditorInfo_args implements org.apache.thrift.TBase<getCreditorInfo_args, getCreditorInfo_args._Fields>, java.io.Serializable, Cloneable   {
21140
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditorInfo_args");
21141
 
21142
    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);
21143
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
21144
 
21145
    private long id; // required
21146
    private String name; // required
21147
 
21148
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21149
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21150
      ID((short)1, "id"),
21151
      NAME((short)2, "name");
21152
 
21153
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21154
 
21155
      static {
21156
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21157
          byName.put(field.getFieldName(), field);
21158
        }
21159
      }
21160
 
21161
      /**
21162
       * Find the _Fields constant that matches fieldId, or null if its not found.
21163
       */
21164
      public static _Fields findByThriftId(int fieldId) {
21165
        switch(fieldId) {
21166
          case 1: // ID
21167
            return ID;
21168
          case 2: // NAME
21169
            return NAME;
21170
          default:
21171
            return null;
21172
        }
21173
      }
21174
 
21175
      /**
21176
       * Find the _Fields constant that matches fieldId, throwing an exception
21177
       * if it is not found.
21178
       */
21179
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21180
        _Fields fields = findByThriftId(fieldId);
21181
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21182
        return fields;
21183
      }
21184
 
21185
      /**
21186
       * Find the _Fields constant that matches name, or null if its not found.
21187
       */
21188
      public static _Fields findByName(String name) {
21189
        return byName.get(name);
21190
      }
21191
 
21192
      private final short _thriftId;
21193
      private final String _fieldName;
21194
 
21195
      _Fields(short thriftId, String fieldName) {
21196
        _thriftId = thriftId;
21197
        _fieldName = fieldName;
21198
      }
21199
 
21200
      public short getThriftFieldId() {
21201
        return _thriftId;
21202
      }
21203
 
21204
      public String getFieldName() {
21205
        return _fieldName;
21206
      }
21207
    }
21208
 
21209
    // isset id assignments
21210
    private static final int __ID_ISSET_ID = 0;
21211
    private BitSet __isset_bit_vector = new BitSet(1);
21212
 
21213
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21214
    static {
21215
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21216
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21218
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21220
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21221
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditorInfo_args.class, metaDataMap);
21222
    }
21223
 
21224
    public getCreditorInfo_args() {
21225
    }
21226
 
21227
    public getCreditorInfo_args(
21228
      long id,
21229
      String name)
21230
    {
21231
      this();
21232
      this.id = id;
21233
      setIdIsSet(true);
21234
      this.name = name;
21235
    }
21236
 
21237
    /**
21238
     * Performs a deep copy on <i>other</i>.
21239
     */
21240
    public getCreditorInfo_args(getCreditorInfo_args other) {
21241
      __isset_bit_vector.clear();
21242
      __isset_bit_vector.or(other.__isset_bit_vector);
21243
      this.id = other.id;
21244
      if (other.isSetName()) {
21245
        this.name = other.name;
21246
      }
21247
    }
21248
 
21249
    public getCreditorInfo_args deepCopy() {
21250
      return new getCreditorInfo_args(this);
21251
    }
21252
 
21253
    @Override
21254
    public void clear() {
21255
      setIdIsSet(false);
21256
      this.id = 0;
21257
      this.name = null;
21258
    }
21259
 
21260
    public long getId() {
21261
      return this.id;
21262
    }
21263
 
21264
    public void setId(long id) {
21265
      this.id = id;
21266
      setIdIsSet(true);
21267
    }
21268
 
21269
    public void unsetId() {
21270
      __isset_bit_vector.clear(__ID_ISSET_ID);
21271
    }
21272
 
21273
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
21274
    public boolean isSetId() {
21275
      return __isset_bit_vector.get(__ID_ISSET_ID);
21276
    }
21277
 
21278
    public void setIdIsSet(boolean value) {
21279
      __isset_bit_vector.set(__ID_ISSET_ID, value);
21280
    }
21281
 
21282
    public String getName() {
21283
      return this.name;
21284
    }
21285
 
21286
    public void setName(String name) {
21287
      this.name = name;
21288
    }
21289
 
21290
    public void unsetName() {
21291
      this.name = null;
21292
    }
21293
 
21294
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
21295
    public boolean isSetName() {
21296
      return this.name != null;
21297
    }
21298
 
21299
    public void setNameIsSet(boolean value) {
21300
      if (!value) {
21301
        this.name = null;
21302
      }
21303
    }
21304
 
21305
    public void setFieldValue(_Fields field, Object value) {
21306
      switch (field) {
21307
      case ID:
21308
        if (value == null) {
21309
          unsetId();
21310
        } else {
21311
          setId((Long)value);
21312
        }
21313
        break;
21314
 
21315
      case NAME:
21316
        if (value == null) {
21317
          unsetName();
21318
        } else {
21319
          setName((String)value);
21320
        }
21321
        break;
21322
 
21323
      }
21324
    }
21325
 
21326
    public Object getFieldValue(_Fields field) {
21327
      switch (field) {
21328
      case ID:
21329
        return Long.valueOf(getId());
21330
 
21331
      case NAME:
21332
        return getName();
21333
 
21334
      }
21335
      throw new IllegalStateException();
21336
    }
21337
 
21338
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21339
    public boolean isSet(_Fields field) {
21340
      if (field == null) {
21341
        throw new IllegalArgumentException();
21342
      }
21343
 
21344
      switch (field) {
21345
      case ID:
21346
        return isSetId();
21347
      case NAME:
21348
        return isSetName();
21349
      }
21350
      throw new IllegalStateException();
21351
    }
21352
 
21353
    @Override
21354
    public boolean equals(Object that) {
21355
      if (that == null)
21356
        return false;
21357
      if (that instanceof getCreditorInfo_args)
21358
        return this.equals((getCreditorInfo_args)that);
21359
      return false;
21360
    }
21361
 
21362
    public boolean equals(getCreditorInfo_args that) {
21363
      if (that == null)
21364
        return false;
21365
 
21366
      boolean this_present_id = true;
21367
      boolean that_present_id = true;
21368
      if (this_present_id || that_present_id) {
21369
        if (!(this_present_id && that_present_id))
21370
          return false;
21371
        if (this.id != that.id)
21372
          return false;
21373
      }
21374
 
21375
      boolean this_present_name = true && this.isSetName();
21376
      boolean that_present_name = true && that.isSetName();
21377
      if (this_present_name || that_present_name) {
21378
        if (!(this_present_name && that_present_name))
21379
          return false;
21380
        if (!this.name.equals(that.name))
21381
          return false;
21382
      }
21383
 
21384
      return true;
21385
    }
21386
 
21387
    @Override
21388
    public int hashCode() {
21389
      return 0;
21390
    }
21391
 
21392
    public int compareTo(getCreditorInfo_args other) {
21393
      if (!getClass().equals(other.getClass())) {
21394
        return getClass().getName().compareTo(other.getClass().getName());
21395
      }
21396
 
21397
      int lastComparison = 0;
21398
      getCreditorInfo_args typedOther = (getCreditorInfo_args)other;
21399
 
21400
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
21401
      if (lastComparison != 0) {
21402
        return lastComparison;
21403
      }
21404
      if (isSetId()) {
21405
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21406
        if (lastComparison != 0) {
21407
          return lastComparison;
21408
        }
21409
      }
21410
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
21411
      if (lastComparison != 0) {
21412
        return lastComparison;
21413
      }
21414
      if (isSetName()) {
21415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
21416
        if (lastComparison != 0) {
21417
          return lastComparison;
21418
        }
21419
      }
21420
      return 0;
21421
    }
21422
 
21423
    public _Fields fieldForId(int fieldId) {
21424
      return _Fields.findByThriftId(fieldId);
21425
    }
21426
 
21427
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21428
      org.apache.thrift.protocol.TField field;
21429
      iprot.readStructBegin();
21430
      while (true)
21431
      {
21432
        field = iprot.readFieldBegin();
21433
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21434
          break;
21435
        }
21436
        switch (field.id) {
21437
          case 1: // ID
21438
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21439
              this.id = iprot.readI64();
21440
              setIdIsSet(true);
21441
            } else { 
21442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21443
            }
21444
            break;
21445
          case 2: // NAME
21446
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21447
              this.name = iprot.readString();
21448
            } else { 
21449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21450
            }
21451
            break;
21452
          default:
21453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21454
        }
21455
        iprot.readFieldEnd();
21456
      }
21457
      iprot.readStructEnd();
21458
      validate();
21459
    }
21460
 
21461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21462
      validate();
21463
 
21464
      oprot.writeStructBegin(STRUCT_DESC);
21465
      oprot.writeFieldBegin(ID_FIELD_DESC);
21466
      oprot.writeI64(this.id);
21467
      oprot.writeFieldEnd();
21468
      if (this.name != null) {
21469
        oprot.writeFieldBegin(NAME_FIELD_DESC);
21470
        oprot.writeString(this.name);
21471
        oprot.writeFieldEnd();
21472
      }
21473
      oprot.writeFieldStop();
21474
      oprot.writeStructEnd();
21475
    }
21476
 
21477
    @Override
21478
    public String toString() {
21479
      StringBuilder sb = new StringBuilder("getCreditorInfo_args(");
21480
      boolean first = true;
21481
 
21482
      sb.append("id:");
21483
      sb.append(this.id);
21484
      first = false;
21485
      if (!first) sb.append(", ");
21486
      sb.append("name:");
21487
      if (this.name == null) {
21488
        sb.append("null");
21489
      } else {
21490
        sb.append(this.name);
21491
      }
21492
      first = false;
21493
      sb.append(")");
21494
      return sb.toString();
21495
    }
21496
 
21497
    public void validate() throws org.apache.thrift.TException {
21498
      // check for required fields
21499
    }
21500
 
21501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21502
      try {
21503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21504
      } catch (org.apache.thrift.TException te) {
21505
        throw new java.io.IOException(te);
21506
      }
21507
    }
21508
 
21509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21510
      try {
21511
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21512
        __isset_bit_vector = new BitSet(1);
21513
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21514
      } catch (org.apache.thrift.TException te) {
21515
        throw new java.io.IOException(te);
21516
      }
21517
    }
21518
 
21519
  }
21520
 
21521
  public static class getCreditorInfo_result implements org.apache.thrift.TBase<getCreditorInfo_result, getCreditorInfo_result._Fields>, java.io.Serializable, Cloneable   {
21522
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditorInfo_result");
21523
 
21524
    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);
21525
 
21526
    private Creditor success; // required
21527
 
21528
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21529
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21530
      SUCCESS((short)0, "success");
21531
 
21532
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21533
 
21534
      static {
21535
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21536
          byName.put(field.getFieldName(), field);
21537
        }
21538
      }
21539
 
21540
      /**
21541
       * Find the _Fields constant that matches fieldId, or null if its not found.
21542
       */
21543
      public static _Fields findByThriftId(int fieldId) {
21544
        switch(fieldId) {
21545
          case 0: // SUCCESS
21546
            return SUCCESS;
21547
          default:
21548
            return null;
21549
        }
21550
      }
21551
 
21552
      /**
21553
       * Find the _Fields constant that matches fieldId, throwing an exception
21554
       * if it is not found.
21555
       */
21556
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21557
        _Fields fields = findByThriftId(fieldId);
21558
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21559
        return fields;
21560
      }
21561
 
21562
      /**
21563
       * Find the _Fields constant that matches name, or null if its not found.
21564
       */
21565
      public static _Fields findByName(String name) {
21566
        return byName.get(name);
21567
      }
21568
 
21569
      private final short _thriftId;
21570
      private final String _fieldName;
21571
 
21572
      _Fields(short thriftId, String fieldName) {
21573
        _thriftId = thriftId;
21574
        _fieldName = fieldName;
21575
      }
21576
 
21577
      public short getThriftFieldId() {
21578
        return _thriftId;
21579
      }
21580
 
21581
      public String getFieldName() {
21582
        return _fieldName;
21583
      }
21584
    }
21585
 
21586
    // isset id assignments
21587
 
21588
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21589
    static {
21590
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21591
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21592
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Creditor.class)));
21593
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21594
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditorInfo_result.class, metaDataMap);
21595
    }
21596
 
21597
    public getCreditorInfo_result() {
21598
    }
21599
 
21600
    public getCreditorInfo_result(
21601
      Creditor success)
21602
    {
21603
      this();
21604
      this.success = success;
21605
    }
21606
 
21607
    /**
21608
     * Performs a deep copy on <i>other</i>.
21609
     */
21610
    public getCreditorInfo_result(getCreditorInfo_result other) {
21611
      if (other.isSetSuccess()) {
21612
        this.success = new Creditor(other.success);
21613
      }
21614
    }
21615
 
21616
    public getCreditorInfo_result deepCopy() {
21617
      return new getCreditorInfo_result(this);
21618
    }
21619
 
21620
    @Override
21621
    public void clear() {
21622
      this.success = null;
21623
    }
21624
 
21625
    public Creditor getSuccess() {
21626
      return this.success;
21627
    }
21628
 
21629
    public void setSuccess(Creditor success) {
21630
      this.success = success;
21631
    }
21632
 
21633
    public void unsetSuccess() {
21634
      this.success = null;
21635
    }
21636
 
21637
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21638
    public boolean isSetSuccess() {
21639
      return this.success != null;
21640
    }
21641
 
21642
    public void setSuccessIsSet(boolean value) {
21643
      if (!value) {
21644
        this.success = null;
21645
      }
21646
    }
21647
 
21648
    public void setFieldValue(_Fields field, Object value) {
21649
      switch (field) {
21650
      case SUCCESS:
21651
        if (value == null) {
21652
          unsetSuccess();
21653
        } else {
21654
          setSuccess((Creditor)value);
21655
        }
21656
        break;
21657
 
21658
      }
21659
    }
21660
 
21661
    public Object getFieldValue(_Fields field) {
21662
      switch (field) {
21663
      case SUCCESS:
21664
        return getSuccess();
21665
 
21666
      }
21667
      throw new IllegalStateException();
21668
    }
21669
 
21670
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21671
    public boolean isSet(_Fields field) {
21672
      if (field == null) {
21673
        throw new IllegalArgumentException();
21674
      }
21675
 
21676
      switch (field) {
21677
      case SUCCESS:
21678
        return isSetSuccess();
21679
      }
21680
      throw new IllegalStateException();
21681
    }
21682
 
21683
    @Override
21684
    public boolean equals(Object that) {
21685
      if (that == null)
21686
        return false;
21687
      if (that instanceof getCreditorInfo_result)
21688
        return this.equals((getCreditorInfo_result)that);
21689
      return false;
21690
    }
21691
 
21692
    public boolean equals(getCreditorInfo_result that) {
21693
      if (that == null)
21694
        return false;
21695
 
21696
      boolean this_present_success = true && this.isSetSuccess();
21697
      boolean that_present_success = true && that.isSetSuccess();
21698
      if (this_present_success || that_present_success) {
21699
        if (!(this_present_success && that_present_success))
21700
          return false;
21701
        if (!this.success.equals(that.success))
21702
          return false;
21703
      }
21704
 
21705
      return true;
21706
    }
21707
 
21708
    @Override
21709
    public int hashCode() {
21710
      return 0;
21711
    }
21712
 
21713
    public int compareTo(getCreditorInfo_result other) {
21714
      if (!getClass().equals(other.getClass())) {
21715
        return getClass().getName().compareTo(other.getClass().getName());
21716
      }
21717
 
21718
      int lastComparison = 0;
21719
      getCreditorInfo_result typedOther = (getCreditorInfo_result)other;
21720
 
21721
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21722
      if (lastComparison != 0) {
21723
        return lastComparison;
21724
      }
21725
      if (isSetSuccess()) {
21726
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21727
        if (lastComparison != 0) {
21728
          return lastComparison;
21729
        }
21730
      }
21731
      return 0;
21732
    }
21733
 
21734
    public _Fields fieldForId(int fieldId) {
21735
      return _Fields.findByThriftId(fieldId);
21736
    }
21737
 
21738
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21739
      org.apache.thrift.protocol.TField field;
21740
      iprot.readStructBegin();
21741
      while (true)
21742
      {
21743
        field = iprot.readFieldBegin();
21744
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21745
          break;
21746
        }
21747
        switch (field.id) {
21748
          case 0: // SUCCESS
21749
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21750
              this.success = new Creditor();
21751
              this.success.read(iprot);
21752
            } else { 
21753
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21754
            }
21755
            break;
21756
          default:
21757
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21758
        }
21759
        iprot.readFieldEnd();
21760
      }
21761
      iprot.readStructEnd();
21762
      validate();
21763
    }
21764
 
21765
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21766
      oprot.writeStructBegin(STRUCT_DESC);
21767
 
21768
      if (this.isSetSuccess()) {
21769
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21770
        this.success.write(oprot);
21771
        oprot.writeFieldEnd();
21772
      }
21773
      oprot.writeFieldStop();
21774
      oprot.writeStructEnd();
21775
    }
21776
 
21777
    @Override
21778
    public String toString() {
21779
      StringBuilder sb = new StringBuilder("getCreditorInfo_result(");
21780
      boolean first = true;
21781
 
21782
      sb.append("success:");
21783
      if (this.success == null) {
21784
        sb.append("null");
21785
      } else {
21786
        sb.append(this.success);
21787
      }
21788
      first = false;
21789
      sb.append(")");
21790
      return sb.toString();
21791
    }
21792
 
21793
    public void validate() throws org.apache.thrift.TException {
21794
      // check for required fields
21795
    }
21796
 
21797
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21798
      try {
21799
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21800
      } catch (org.apache.thrift.TException te) {
21801
        throw new java.io.IOException(te);
21802
      }
21803
    }
21804
 
21805
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21806
      try {
21807
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21808
      } catch (org.apache.thrift.TException te) {
21809
        throw new java.io.IOException(te);
21810
      }
21811
    }
21812
 
21813
  }
21814
 
21815
  public static class updateCreditorInfo_args implements org.apache.thrift.TBase<updateCreditorInfo_args, updateCreditorInfo_args._Fields>, java.io.Serializable, Cloneable   {
21816
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateCreditorInfo_args");
21817
 
21818
    private static final org.apache.thrift.protocol.TField CREDITOR_FIELD_DESC = new org.apache.thrift.protocol.TField("creditor", org.apache.thrift.protocol.TType.STRUCT, (short)1);
21819
 
21820
    private Creditor creditor; // required
21821
 
21822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21824
      CREDITOR((short)1, "creditor");
21825
 
21826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21827
 
21828
      static {
21829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21830
          byName.put(field.getFieldName(), field);
21831
        }
21832
      }
21833
 
21834
      /**
21835
       * Find the _Fields constant that matches fieldId, or null if its not found.
21836
       */
21837
      public static _Fields findByThriftId(int fieldId) {
21838
        switch(fieldId) {
21839
          case 1: // CREDITOR
21840
            return CREDITOR;
21841
          default:
21842
            return null;
21843
        }
21844
      }
21845
 
21846
      /**
21847
       * Find the _Fields constant that matches fieldId, throwing an exception
21848
       * if it is not found.
21849
       */
21850
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21851
        _Fields fields = findByThriftId(fieldId);
21852
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21853
        return fields;
21854
      }
21855
 
21856
      /**
21857
       * Find the _Fields constant that matches name, or null if its not found.
21858
       */
21859
      public static _Fields findByName(String name) {
21860
        return byName.get(name);
21861
      }
21862
 
21863
      private final short _thriftId;
21864
      private final String _fieldName;
21865
 
21866
      _Fields(short thriftId, String fieldName) {
21867
        _thriftId = thriftId;
21868
        _fieldName = fieldName;
21869
      }
21870
 
21871
      public short getThriftFieldId() {
21872
        return _thriftId;
21873
      }
21874
 
21875
      public String getFieldName() {
21876
        return _fieldName;
21877
      }
21878
    }
21879
 
21880
    // isset id assignments
21881
 
21882
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21883
    static {
21884
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21885
      tmpMap.put(_Fields.CREDITOR, new org.apache.thrift.meta_data.FieldMetaData("creditor", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21886
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Creditor.class)));
21887
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21888
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateCreditorInfo_args.class, metaDataMap);
21889
    }
21890
 
21891
    public updateCreditorInfo_args() {
21892
    }
21893
 
21894
    public updateCreditorInfo_args(
21895
      Creditor creditor)
21896
    {
21897
      this();
21898
      this.creditor = creditor;
21899
    }
21900
 
21901
    /**
21902
     * Performs a deep copy on <i>other</i>.
21903
     */
21904
    public updateCreditorInfo_args(updateCreditorInfo_args other) {
21905
      if (other.isSetCreditor()) {
21906
        this.creditor = new Creditor(other.creditor);
21907
      }
21908
    }
21909
 
21910
    public updateCreditorInfo_args deepCopy() {
21911
      return new updateCreditorInfo_args(this);
21912
    }
21913
 
21914
    @Override
21915
    public void clear() {
21916
      this.creditor = null;
21917
    }
21918
 
21919
    public Creditor getCreditor() {
21920
      return this.creditor;
21921
    }
21922
 
21923
    public void setCreditor(Creditor creditor) {
21924
      this.creditor = creditor;
21925
    }
21926
 
21927
    public void unsetCreditor() {
21928
      this.creditor = null;
21929
    }
21930
 
21931
    /** Returns true if field creditor is set (has been assigned a value) and false otherwise */
21932
    public boolean isSetCreditor() {
21933
      return this.creditor != null;
21934
    }
21935
 
21936
    public void setCreditorIsSet(boolean value) {
21937
      if (!value) {
21938
        this.creditor = null;
21939
      }
21940
    }
21941
 
21942
    public void setFieldValue(_Fields field, Object value) {
21943
      switch (field) {
21944
      case CREDITOR:
21945
        if (value == null) {
21946
          unsetCreditor();
21947
        } else {
21948
          setCreditor((Creditor)value);
21949
        }
21950
        break;
21951
 
21952
      }
21953
    }
21954
 
21955
    public Object getFieldValue(_Fields field) {
21956
      switch (field) {
21957
      case CREDITOR:
21958
        return getCreditor();
21959
 
21960
      }
21961
      throw new IllegalStateException();
21962
    }
21963
 
21964
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21965
    public boolean isSet(_Fields field) {
21966
      if (field == null) {
21967
        throw new IllegalArgumentException();
21968
      }
21969
 
21970
      switch (field) {
21971
      case CREDITOR:
21972
        return isSetCreditor();
21973
      }
21974
      throw new IllegalStateException();
21975
    }
21976
 
21977
    @Override
21978
    public boolean equals(Object that) {
21979
      if (that == null)
21980
        return false;
21981
      if (that instanceof updateCreditorInfo_args)
21982
        return this.equals((updateCreditorInfo_args)that);
21983
      return false;
21984
    }
21985
 
21986
    public boolean equals(updateCreditorInfo_args that) {
21987
      if (that == null)
21988
        return false;
21989
 
21990
      boolean this_present_creditor = true && this.isSetCreditor();
21991
      boolean that_present_creditor = true && that.isSetCreditor();
21992
      if (this_present_creditor || that_present_creditor) {
21993
        if (!(this_present_creditor && that_present_creditor))
21994
          return false;
21995
        if (!this.creditor.equals(that.creditor))
21996
          return false;
21997
      }
21998
 
21999
      return true;
22000
    }
22001
 
22002
    @Override
22003
    public int hashCode() {
22004
      return 0;
22005
    }
22006
 
22007
    public int compareTo(updateCreditorInfo_args other) {
22008
      if (!getClass().equals(other.getClass())) {
22009
        return getClass().getName().compareTo(other.getClass().getName());
22010
      }
22011
 
22012
      int lastComparison = 0;
22013
      updateCreditorInfo_args typedOther = (updateCreditorInfo_args)other;
22014
 
22015
      lastComparison = Boolean.valueOf(isSetCreditor()).compareTo(typedOther.isSetCreditor());
22016
      if (lastComparison != 0) {
22017
        return lastComparison;
22018
      }
22019
      if (isSetCreditor()) {
22020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditor, typedOther.creditor);
22021
        if (lastComparison != 0) {
22022
          return lastComparison;
22023
        }
22024
      }
22025
      return 0;
22026
    }
22027
 
22028
    public _Fields fieldForId(int fieldId) {
22029
      return _Fields.findByThriftId(fieldId);
22030
    }
22031
 
22032
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22033
      org.apache.thrift.protocol.TField field;
22034
      iprot.readStructBegin();
22035
      while (true)
22036
      {
22037
        field = iprot.readFieldBegin();
22038
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22039
          break;
22040
        }
22041
        switch (field.id) {
22042
          case 1: // CREDITOR
22043
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22044
              this.creditor = new Creditor();
22045
              this.creditor.read(iprot);
22046
            } else { 
22047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22048
            }
22049
            break;
22050
          default:
22051
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22052
        }
22053
        iprot.readFieldEnd();
22054
      }
22055
      iprot.readStructEnd();
22056
      validate();
22057
    }
22058
 
22059
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22060
      validate();
22061
 
22062
      oprot.writeStructBegin(STRUCT_DESC);
22063
      if (this.creditor != null) {
22064
        oprot.writeFieldBegin(CREDITOR_FIELD_DESC);
22065
        this.creditor.write(oprot);
22066
        oprot.writeFieldEnd();
22067
      }
22068
      oprot.writeFieldStop();
22069
      oprot.writeStructEnd();
22070
    }
22071
 
22072
    @Override
22073
    public String toString() {
22074
      StringBuilder sb = new StringBuilder("updateCreditorInfo_args(");
22075
      boolean first = true;
22076
 
22077
      sb.append("creditor:");
22078
      if (this.creditor == null) {
22079
        sb.append("null");
22080
      } else {
22081
        sb.append(this.creditor);
22082
      }
22083
      first = false;
22084
      sb.append(")");
22085
      return sb.toString();
22086
    }
22087
 
22088
    public void validate() throws org.apache.thrift.TException {
22089
      // check for required fields
22090
    }
22091
 
22092
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22093
      try {
22094
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22095
      } catch (org.apache.thrift.TException te) {
22096
        throw new java.io.IOException(te);
22097
      }
22098
    }
22099
 
22100
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22101
      try {
22102
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22103
      } catch (org.apache.thrift.TException te) {
22104
        throw new java.io.IOException(te);
22105
      }
22106
    }
22107
 
22108
  }
22109
 
22110
  public static class updateCreditorInfo_result implements org.apache.thrift.TBase<updateCreditorInfo_result, updateCreditorInfo_result._Fields>, java.io.Serializable, Cloneable   {
22111
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateCreditorInfo_result");
22112
 
22113
    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);
22114
 
22115
    private boolean success; // required
22116
 
22117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22119
      SUCCESS((short)0, "success");
22120
 
22121
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22122
 
22123
      static {
22124
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22125
          byName.put(field.getFieldName(), field);
22126
        }
22127
      }
22128
 
22129
      /**
22130
       * Find the _Fields constant that matches fieldId, or null if its not found.
22131
       */
22132
      public static _Fields findByThriftId(int fieldId) {
22133
        switch(fieldId) {
22134
          case 0: // SUCCESS
22135
            return SUCCESS;
22136
          default:
22137
            return null;
22138
        }
22139
      }
22140
 
22141
      /**
22142
       * Find the _Fields constant that matches fieldId, throwing an exception
22143
       * if it is not found.
22144
       */
22145
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22146
        _Fields fields = findByThriftId(fieldId);
22147
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22148
        return fields;
22149
      }
22150
 
22151
      /**
22152
       * Find the _Fields constant that matches name, or null if its not found.
22153
       */
22154
      public static _Fields findByName(String name) {
22155
        return byName.get(name);
22156
      }
22157
 
22158
      private final short _thriftId;
22159
      private final String _fieldName;
22160
 
22161
      _Fields(short thriftId, String fieldName) {
22162
        _thriftId = thriftId;
22163
        _fieldName = fieldName;
22164
      }
22165
 
22166
      public short getThriftFieldId() {
22167
        return _thriftId;
22168
      }
22169
 
22170
      public String getFieldName() {
22171
        return _fieldName;
22172
      }
22173
    }
22174
 
22175
    // isset id assignments
22176
    private static final int __SUCCESS_ISSET_ID = 0;
22177
    private BitSet __isset_bit_vector = new BitSet(1);
22178
 
22179
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22180
    static {
22181
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22182
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22183
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
22184
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22185
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateCreditorInfo_result.class, metaDataMap);
22186
    }
22187
 
22188
    public updateCreditorInfo_result() {
22189
    }
22190
 
22191
    public updateCreditorInfo_result(
22192
      boolean success)
22193
    {
22194
      this();
22195
      this.success = success;
22196
      setSuccessIsSet(true);
22197
    }
22198
 
22199
    /**
22200
     * Performs a deep copy on <i>other</i>.
22201
     */
22202
    public updateCreditorInfo_result(updateCreditorInfo_result other) {
22203
      __isset_bit_vector.clear();
22204
      __isset_bit_vector.or(other.__isset_bit_vector);
22205
      this.success = other.success;
22206
    }
22207
 
22208
    public updateCreditorInfo_result deepCopy() {
22209
      return new updateCreditorInfo_result(this);
22210
    }
22211
 
22212
    @Override
22213
    public void clear() {
22214
      setSuccessIsSet(false);
22215
      this.success = false;
22216
    }
22217
 
22218
    public boolean isSuccess() {
22219
      return this.success;
22220
    }
22221
 
22222
    public void setSuccess(boolean success) {
22223
      this.success = success;
22224
      setSuccessIsSet(true);
22225
    }
22226
 
22227
    public void unsetSuccess() {
22228
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
22229
    }
22230
 
22231
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22232
    public boolean isSetSuccess() {
22233
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
22234
    }
22235
 
22236
    public void setSuccessIsSet(boolean value) {
22237
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
22238
    }
22239
 
22240
    public void setFieldValue(_Fields field, Object value) {
22241
      switch (field) {
22242
      case SUCCESS:
22243
        if (value == null) {
22244
          unsetSuccess();
22245
        } else {
22246
          setSuccess((Boolean)value);
22247
        }
22248
        break;
22249
 
22250
      }
22251
    }
22252
 
22253
    public Object getFieldValue(_Fields field) {
22254
      switch (field) {
22255
      case SUCCESS:
22256
        return Boolean.valueOf(isSuccess());
22257
 
22258
      }
22259
      throw new IllegalStateException();
22260
    }
22261
 
22262
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22263
    public boolean isSet(_Fields field) {
22264
      if (field == null) {
22265
        throw new IllegalArgumentException();
22266
      }
22267
 
22268
      switch (field) {
22269
      case SUCCESS:
22270
        return isSetSuccess();
22271
      }
22272
      throw new IllegalStateException();
22273
    }
22274
 
22275
    @Override
22276
    public boolean equals(Object that) {
22277
      if (that == null)
22278
        return false;
22279
      if (that instanceof updateCreditorInfo_result)
22280
        return this.equals((updateCreditorInfo_result)that);
22281
      return false;
22282
    }
22283
 
22284
    public boolean equals(updateCreditorInfo_result that) {
22285
      if (that == null)
22286
        return false;
22287
 
22288
      boolean this_present_success = true;
22289
      boolean that_present_success = true;
22290
      if (this_present_success || that_present_success) {
22291
        if (!(this_present_success && that_present_success))
22292
          return false;
22293
        if (this.success != that.success)
22294
          return false;
22295
      }
22296
 
22297
      return true;
22298
    }
22299
 
22300
    @Override
22301
    public int hashCode() {
22302
      return 0;
22303
    }
22304
 
22305
    public int compareTo(updateCreditorInfo_result other) {
22306
      if (!getClass().equals(other.getClass())) {
22307
        return getClass().getName().compareTo(other.getClass().getName());
22308
      }
22309
 
22310
      int lastComparison = 0;
22311
      updateCreditorInfo_result typedOther = (updateCreditorInfo_result)other;
22312
 
22313
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22314
      if (lastComparison != 0) {
22315
        return lastComparison;
22316
      }
22317
      if (isSetSuccess()) {
22318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22319
        if (lastComparison != 0) {
22320
          return lastComparison;
22321
        }
22322
      }
22323
      return 0;
22324
    }
22325
 
22326
    public _Fields fieldForId(int fieldId) {
22327
      return _Fields.findByThriftId(fieldId);
22328
    }
22329
 
22330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22331
      org.apache.thrift.protocol.TField field;
22332
      iprot.readStructBegin();
22333
      while (true)
22334
      {
22335
        field = iprot.readFieldBegin();
22336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22337
          break;
22338
        }
22339
        switch (field.id) {
22340
          case 0: // SUCCESS
22341
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
22342
              this.success = iprot.readBool();
22343
              setSuccessIsSet(true);
22344
            } else { 
22345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22346
            }
22347
            break;
22348
          default:
22349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22350
        }
22351
        iprot.readFieldEnd();
22352
      }
22353
      iprot.readStructEnd();
22354
      validate();
22355
    }
22356
 
22357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22358
      oprot.writeStructBegin(STRUCT_DESC);
22359
 
22360
      if (this.isSetSuccess()) {
22361
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22362
        oprot.writeBool(this.success);
22363
        oprot.writeFieldEnd();
22364
      }
22365
      oprot.writeFieldStop();
22366
      oprot.writeStructEnd();
22367
    }
22368
 
22369
    @Override
22370
    public String toString() {
22371
      StringBuilder sb = new StringBuilder("updateCreditorInfo_result(");
22372
      boolean first = true;
22373
 
22374
      sb.append("success:");
22375
      sb.append(this.success);
22376
      first = false;
22377
      sb.append(")");
22378
      return sb.toString();
22379
    }
22380
 
22381
    public void validate() throws org.apache.thrift.TException {
22382
      // check for required fields
22383
    }
22384
 
22385
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22386
      try {
22387
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22388
      } catch (org.apache.thrift.TException te) {
22389
        throw new java.io.IOException(te);
22390
      }
22391
    }
22392
 
22393
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22394
      try {
22395
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22396
      } catch (org.apache.thrift.TException te) {
22397
        throw new java.io.IOException(te);
22398
      }
22399
    }
22400
 
22401
  }
22402
 
22403
  public static class getUserSanctionDetails_args implements org.apache.thrift.TBase<getUserSanctionDetails_args, getUserSanctionDetails_args._Fields>, java.io.Serializable, Cloneable   {
22404
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSanctionDetails_args");
22405
 
22406
    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);
22407
 
22408
    private long userId; // required
22409
 
22410
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22411
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22412
      USER_ID((short)1, "userId");
22413
 
22414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22415
 
22416
      static {
22417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22418
          byName.put(field.getFieldName(), field);
22419
        }
22420
      }
22421
 
22422
      /**
22423
       * Find the _Fields constant that matches fieldId, or null if its not found.
22424
       */
22425
      public static _Fields findByThriftId(int fieldId) {
22426
        switch(fieldId) {
22427
          case 1: // USER_ID
22428
            return USER_ID;
22429
          default:
22430
            return null;
22431
        }
22432
      }
22433
 
22434
      /**
22435
       * Find the _Fields constant that matches fieldId, throwing an exception
22436
       * if it is not found.
22437
       */
22438
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22439
        _Fields fields = findByThriftId(fieldId);
22440
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22441
        return fields;
22442
      }
22443
 
22444
      /**
22445
       * Find the _Fields constant that matches name, or null if its not found.
22446
       */
22447
      public static _Fields findByName(String name) {
22448
        return byName.get(name);
22449
      }
22450
 
22451
      private final short _thriftId;
22452
      private final String _fieldName;
22453
 
22454
      _Fields(short thriftId, String fieldName) {
22455
        _thriftId = thriftId;
22456
        _fieldName = fieldName;
22457
      }
22458
 
22459
      public short getThriftFieldId() {
22460
        return _thriftId;
22461
      }
22462
 
22463
      public String getFieldName() {
22464
        return _fieldName;
22465
      }
22466
    }
22467
 
22468
    // isset id assignments
22469
    private static final int __USERID_ISSET_ID = 0;
22470
    private BitSet __isset_bit_vector = new BitSet(1);
22471
 
22472
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22473
    static {
22474
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22475
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22476
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSanctionDetails_args.class, metaDataMap);
22479
    }
22480
 
22481
    public getUserSanctionDetails_args() {
22482
    }
22483
 
22484
    public getUserSanctionDetails_args(
22485
      long userId)
22486
    {
22487
      this();
22488
      this.userId = userId;
22489
      setUserIdIsSet(true);
22490
    }
22491
 
22492
    /**
22493
     * Performs a deep copy on <i>other</i>.
22494
     */
22495
    public getUserSanctionDetails_args(getUserSanctionDetails_args other) {
22496
      __isset_bit_vector.clear();
22497
      __isset_bit_vector.or(other.__isset_bit_vector);
22498
      this.userId = other.userId;
22499
    }
22500
 
22501
    public getUserSanctionDetails_args deepCopy() {
22502
      return new getUserSanctionDetails_args(this);
22503
    }
22504
 
22505
    @Override
22506
    public void clear() {
22507
      setUserIdIsSet(false);
22508
      this.userId = 0;
22509
    }
22510
 
22511
    public long getUserId() {
22512
      return this.userId;
22513
    }
22514
 
22515
    public void setUserId(long userId) {
22516
      this.userId = userId;
22517
      setUserIdIsSet(true);
22518
    }
22519
 
22520
    public void unsetUserId() {
22521
      __isset_bit_vector.clear(__USERID_ISSET_ID);
22522
    }
22523
 
22524
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
22525
    public boolean isSetUserId() {
22526
      return __isset_bit_vector.get(__USERID_ISSET_ID);
22527
    }
22528
 
22529
    public void setUserIdIsSet(boolean value) {
22530
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
22531
    }
22532
 
22533
    public void setFieldValue(_Fields field, Object value) {
22534
      switch (field) {
22535
      case USER_ID:
22536
        if (value == null) {
22537
          unsetUserId();
22538
        } else {
22539
          setUserId((Long)value);
22540
        }
22541
        break;
22542
 
22543
      }
22544
    }
22545
 
22546
    public Object getFieldValue(_Fields field) {
22547
      switch (field) {
22548
      case USER_ID:
22549
        return Long.valueOf(getUserId());
22550
 
22551
      }
22552
      throw new IllegalStateException();
22553
    }
22554
 
22555
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22556
    public boolean isSet(_Fields field) {
22557
      if (field == null) {
22558
        throw new IllegalArgumentException();
22559
      }
22560
 
22561
      switch (field) {
22562
      case USER_ID:
22563
        return isSetUserId();
22564
      }
22565
      throw new IllegalStateException();
22566
    }
22567
 
22568
    @Override
22569
    public boolean equals(Object that) {
22570
      if (that == null)
22571
        return false;
22572
      if (that instanceof getUserSanctionDetails_args)
22573
        return this.equals((getUserSanctionDetails_args)that);
22574
      return false;
22575
    }
22576
 
22577
    public boolean equals(getUserSanctionDetails_args that) {
22578
      if (that == null)
22579
        return false;
22580
 
22581
      boolean this_present_userId = true;
22582
      boolean that_present_userId = true;
22583
      if (this_present_userId || that_present_userId) {
22584
        if (!(this_present_userId && that_present_userId))
22585
          return false;
22586
        if (this.userId != that.userId)
22587
          return false;
22588
      }
22589
 
22590
      return true;
22591
    }
22592
 
22593
    @Override
22594
    public int hashCode() {
22595
      return 0;
22596
    }
22597
 
22598
    public int compareTo(getUserSanctionDetails_args other) {
22599
      if (!getClass().equals(other.getClass())) {
22600
        return getClass().getName().compareTo(other.getClass().getName());
22601
      }
22602
 
22603
      int lastComparison = 0;
22604
      getUserSanctionDetails_args typedOther = (getUserSanctionDetails_args)other;
22605
 
22606
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
22607
      if (lastComparison != 0) {
22608
        return lastComparison;
22609
      }
22610
      if (isSetUserId()) {
22611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
22612
        if (lastComparison != 0) {
22613
          return lastComparison;
22614
        }
22615
      }
22616
      return 0;
22617
    }
22618
 
22619
    public _Fields fieldForId(int fieldId) {
22620
      return _Fields.findByThriftId(fieldId);
22621
    }
22622
 
22623
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22624
      org.apache.thrift.protocol.TField field;
22625
      iprot.readStructBegin();
22626
      while (true)
22627
      {
22628
        field = iprot.readFieldBegin();
22629
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22630
          break;
22631
        }
22632
        switch (field.id) {
22633
          case 1: // USER_ID
22634
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22635
              this.userId = iprot.readI64();
22636
              setUserIdIsSet(true);
22637
            } else { 
22638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22639
            }
22640
            break;
22641
          default:
22642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22643
        }
22644
        iprot.readFieldEnd();
22645
      }
22646
      iprot.readStructEnd();
22647
      validate();
22648
    }
22649
 
22650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22651
      validate();
22652
 
22653
      oprot.writeStructBegin(STRUCT_DESC);
22654
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
22655
      oprot.writeI64(this.userId);
22656
      oprot.writeFieldEnd();
22657
      oprot.writeFieldStop();
22658
      oprot.writeStructEnd();
22659
    }
22660
 
22661
    @Override
22662
    public String toString() {
22663
      StringBuilder sb = new StringBuilder("getUserSanctionDetails_args(");
22664
      boolean first = true;
22665
 
22666
      sb.append("userId:");
22667
      sb.append(this.userId);
22668
      first = false;
22669
      sb.append(")");
22670
      return sb.toString();
22671
    }
22672
 
22673
    public void validate() throws org.apache.thrift.TException {
22674
      // check for required fields
22675
    }
22676
 
22677
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22678
      try {
22679
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22680
      } catch (org.apache.thrift.TException te) {
22681
        throw new java.io.IOException(te);
22682
      }
22683
    }
22684
 
22685
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22686
      try {
22687
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22688
        __isset_bit_vector = new BitSet(1);
22689
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22690
      } catch (org.apache.thrift.TException te) {
22691
        throw new java.io.IOException(te);
22692
      }
22693
    }
22694
 
22695
  }
22696
 
22697
  public static class getUserSanctionDetails_result implements org.apache.thrift.TBase<getUserSanctionDetails_result, getUserSanctionDetails_result._Fields>, java.io.Serializable, Cloneable   {
22698
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSanctionDetails_result");
22699
 
22700
    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);
22701
 
22702
    private List<UserSanction> success; // required
22703
 
22704
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22705
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22706
      SUCCESS((short)0, "success");
22707
 
22708
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22709
 
22710
      static {
22711
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22712
          byName.put(field.getFieldName(), field);
22713
        }
22714
      }
22715
 
22716
      /**
22717
       * Find the _Fields constant that matches fieldId, or null if its not found.
22718
       */
22719
      public static _Fields findByThriftId(int fieldId) {
22720
        switch(fieldId) {
22721
          case 0: // SUCCESS
22722
            return SUCCESS;
22723
          default:
22724
            return null;
22725
        }
22726
      }
22727
 
22728
      /**
22729
       * Find the _Fields constant that matches fieldId, throwing an exception
22730
       * if it is not found.
22731
       */
22732
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22733
        _Fields fields = findByThriftId(fieldId);
22734
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22735
        return fields;
22736
      }
22737
 
22738
      /**
22739
       * Find the _Fields constant that matches name, or null if its not found.
22740
       */
22741
      public static _Fields findByName(String name) {
22742
        return byName.get(name);
22743
      }
22744
 
22745
      private final short _thriftId;
22746
      private final String _fieldName;
22747
 
22748
      _Fields(short thriftId, String fieldName) {
22749
        _thriftId = thriftId;
22750
        _fieldName = fieldName;
22751
      }
22752
 
22753
      public short getThriftFieldId() {
22754
        return _thriftId;
22755
      }
22756
 
22757
      public String getFieldName() {
22758
        return _fieldName;
22759
      }
22760
    }
22761
 
22762
    // isset id assignments
22763
 
22764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22765
    static {
22766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22767
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22768
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22769
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSanction.class))));
22770
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22771
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSanctionDetails_result.class, metaDataMap);
22772
    }
22773
 
22774
    public getUserSanctionDetails_result() {
22775
    }
22776
 
22777
    public getUserSanctionDetails_result(
22778
      List<UserSanction> success)
22779
    {
22780
      this();
22781
      this.success = success;
22782
    }
22783
 
22784
    /**
22785
     * Performs a deep copy on <i>other</i>.
22786
     */
22787
    public getUserSanctionDetails_result(getUserSanctionDetails_result other) {
22788
      if (other.isSetSuccess()) {
22789
        List<UserSanction> __this__success = new ArrayList<UserSanction>();
22790
        for (UserSanction other_element : other.success) {
22791
          __this__success.add(new UserSanction(other_element));
22792
        }
22793
        this.success = __this__success;
22794
      }
22795
    }
22796
 
22797
    public getUserSanctionDetails_result deepCopy() {
22798
      return new getUserSanctionDetails_result(this);
22799
    }
22800
 
22801
    @Override
22802
    public void clear() {
22803
      this.success = null;
22804
    }
22805
 
22806
    public int getSuccessSize() {
22807
      return (this.success == null) ? 0 : this.success.size();
22808
    }
22809
 
22810
    public java.util.Iterator<UserSanction> getSuccessIterator() {
22811
      return (this.success == null) ? null : this.success.iterator();
22812
    }
22813
 
22814
    public void addToSuccess(UserSanction elem) {
22815
      if (this.success == null) {
22816
        this.success = new ArrayList<UserSanction>();
22817
      }
22818
      this.success.add(elem);
22819
    }
22820
 
22821
    public List<UserSanction> getSuccess() {
22822
      return this.success;
22823
    }
22824
 
22825
    public void setSuccess(List<UserSanction> success) {
22826
      this.success = success;
22827
    }
22828
 
22829
    public void unsetSuccess() {
22830
      this.success = null;
22831
    }
22832
 
22833
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22834
    public boolean isSetSuccess() {
22835
      return this.success != null;
22836
    }
22837
 
22838
    public void setSuccessIsSet(boolean value) {
22839
      if (!value) {
22840
        this.success = null;
22841
      }
22842
    }
22843
 
22844
    public void setFieldValue(_Fields field, Object value) {
22845
      switch (field) {
22846
      case SUCCESS:
22847
        if (value == null) {
22848
          unsetSuccess();
22849
        } else {
22850
          setSuccess((List<UserSanction>)value);
22851
        }
22852
        break;
22853
 
22854
      }
22855
    }
22856
 
22857
    public Object getFieldValue(_Fields field) {
22858
      switch (field) {
22859
      case SUCCESS:
22860
        return getSuccess();
22861
 
22862
      }
22863
      throw new IllegalStateException();
22864
    }
22865
 
22866
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22867
    public boolean isSet(_Fields field) {
22868
      if (field == null) {
22869
        throw new IllegalArgumentException();
22870
      }
22871
 
22872
      switch (field) {
22873
      case SUCCESS:
22874
        return isSetSuccess();
22875
      }
22876
      throw new IllegalStateException();
22877
    }
22878
 
22879
    @Override
22880
    public boolean equals(Object that) {
22881
      if (that == null)
22882
        return false;
22883
      if (that instanceof getUserSanctionDetails_result)
22884
        return this.equals((getUserSanctionDetails_result)that);
22885
      return false;
22886
    }
22887
 
22888
    public boolean equals(getUserSanctionDetails_result that) {
22889
      if (that == null)
22890
        return false;
22891
 
22892
      boolean this_present_success = true && this.isSetSuccess();
22893
      boolean that_present_success = true && that.isSetSuccess();
22894
      if (this_present_success || that_present_success) {
22895
        if (!(this_present_success && that_present_success))
22896
          return false;
22897
        if (!this.success.equals(that.success))
22898
          return false;
22899
      }
22900
 
22901
      return true;
22902
    }
22903
 
22904
    @Override
22905
    public int hashCode() {
22906
      return 0;
22907
    }
22908
 
22909
    public int compareTo(getUserSanctionDetails_result other) {
22910
      if (!getClass().equals(other.getClass())) {
22911
        return getClass().getName().compareTo(other.getClass().getName());
22912
      }
22913
 
22914
      int lastComparison = 0;
22915
      getUserSanctionDetails_result typedOther = (getUserSanctionDetails_result)other;
22916
 
22917
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22918
      if (lastComparison != 0) {
22919
        return lastComparison;
22920
      }
22921
      if (isSetSuccess()) {
22922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22923
        if (lastComparison != 0) {
22924
          return lastComparison;
22925
        }
22926
      }
22927
      return 0;
22928
    }
22929
 
22930
    public _Fields fieldForId(int fieldId) {
22931
      return _Fields.findByThriftId(fieldId);
22932
    }
22933
 
22934
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22935
      org.apache.thrift.protocol.TField field;
22936
      iprot.readStructBegin();
22937
      while (true)
22938
      {
22939
        field = iprot.readFieldBegin();
22940
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22941
          break;
22942
        }
22943
        switch (field.id) {
22944
          case 0: // SUCCESS
22945
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22946
              {
22947
                org.apache.thrift.protocol.TList _list48 = iprot.readListBegin();
22948
                this.success = new ArrayList<UserSanction>(_list48.size);
22949
                for (int _i49 = 0; _i49 < _list48.size; ++_i49)
22950
                {
22951
                  UserSanction _elem50; // required
22952
                  _elem50 = new UserSanction();
22953
                  _elem50.read(iprot);
22954
                  this.success.add(_elem50);
22955
                }
22956
                iprot.readListEnd();
22957
              }
22958
            } else { 
22959
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22960
            }
22961
            break;
22962
          default:
22963
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22964
        }
22965
        iprot.readFieldEnd();
22966
      }
22967
      iprot.readStructEnd();
22968
      validate();
22969
    }
22970
 
22971
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22972
      oprot.writeStructBegin(STRUCT_DESC);
22973
 
22974
      if (this.isSetSuccess()) {
22975
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22976
        {
22977
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
22978
          for (UserSanction _iter51 : this.success)
22979
          {
22980
            _iter51.write(oprot);
22981
          }
22982
          oprot.writeListEnd();
22983
        }
22984
        oprot.writeFieldEnd();
22985
      }
22986
      oprot.writeFieldStop();
22987
      oprot.writeStructEnd();
22988
    }
22989
 
22990
    @Override
22991
    public String toString() {
22992
      StringBuilder sb = new StringBuilder("getUserSanctionDetails_result(");
22993
      boolean first = true;
22994
 
22995
      sb.append("success:");
22996
      if (this.success == null) {
22997
        sb.append("null");
22998
      } else {
22999
        sb.append(this.success);
23000
      }
23001
      first = false;
23002
      sb.append(")");
23003
      return sb.toString();
23004
    }
23005
 
23006
    public void validate() throws org.apache.thrift.TException {
23007
      // check for required fields
23008
    }
23009
 
23010
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23011
      try {
23012
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23013
      } catch (org.apache.thrift.TException te) {
23014
        throw new java.io.IOException(te);
23015
      }
23016
    }
23017
 
23018
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23019
      try {
23020
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23021
      } catch (org.apache.thrift.TException te) {
23022
        throw new java.io.IOException(te);
23023
      }
23024
    }
23025
 
23026
  }
23027
 
23028
  public static class getUserSanctionDetailsForCreditor_args implements org.apache.thrift.TBase<getUserSanctionDetailsForCreditor_args, getUserSanctionDetailsForCreditor_args._Fields>, java.io.Serializable, Cloneable   {
23029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSanctionDetailsForCreditor_args");
23030
 
23031
    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);
23032
    private static final org.apache.thrift.protocol.TField CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditorId", org.apache.thrift.protocol.TType.I64, (short)-1);
23033
 
23034
    private long userId; // required
23035
    private long creditorId; // required
23036
 
23037
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23038
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23039
      USER_ID((short)1, "userId"),
23040
      CREDITOR_ID((short)-1, "creditorId");
23041
 
23042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23043
 
23044
      static {
23045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23046
          byName.put(field.getFieldName(), field);
23047
        }
23048
      }
23049
 
23050
      /**
23051
       * Find the _Fields constant that matches fieldId, or null if its not found.
23052
       */
23053
      public static _Fields findByThriftId(int fieldId) {
23054
        switch(fieldId) {
23055
          case 1: // USER_ID
23056
            return USER_ID;
23057
          case -1: // CREDITOR_ID
23058
            return CREDITOR_ID;
23059
          default:
23060
            return null;
23061
        }
23062
      }
23063
 
23064
      /**
23065
       * Find the _Fields constant that matches fieldId, throwing an exception
23066
       * if it is not found.
23067
       */
23068
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23069
        _Fields fields = findByThriftId(fieldId);
23070
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23071
        return fields;
23072
      }
23073
 
23074
      /**
23075
       * Find the _Fields constant that matches name, or null if its not found.
23076
       */
23077
      public static _Fields findByName(String name) {
23078
        return byName.get(name);
23079
      }
23080
 
23081
      private final short _thriftId;
23082
      private final String _fieldName;
23083
 
23084
      _Fields(short thriftId, String fieldName) {
23085
        _thriftId = thriftId;
23086
        _fieldName = fieldName;
23087
      }
23088
 
23089
      public short getThriftFieldId() {
23090
        return _thriftId;
23091
      }
23092
 
23093
      public String getFieldName() {
23094
        return _fieldName;
23095
      }
23096
    }
23097
 
23098
    // isset id assignments
23099
    private static final int __USERID_ISSET_ID = 0;
23100
    private static final int __CREDITORID_ISSET_ID = 1;
23101
    private BitSet __isset_bit_vector = new BitSet(2);
23102
 
23103
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23104
    static {
23105
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23106
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23107
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23108
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23109
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23110
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23111
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSanctionDetailsForCreditor_args.class, metaDataMap);
23112
    }
23113
 
23114
    public getUserSanctionDetailsForCreditor_args() {
23115
    }
23116
 
23117
    public getUserSanctionDetailsForCreditor_args(
23118
      long userId,
23119
      long creditorId)
23120
    {
23121
      this();
23122
      this.userId = userId;
23123
      setUserIdIsSet(true);
23124
      this.creditorId = creditorId;
23125
      setCreditorIdIsSet(true);
23126
    }
23127
 
23128
    /**
23129
     * Performs a deep copy on <i>other</i>.
23130
     */
23131
    public getUserSanctionDetailsForCreditor_args(getUserSanctionDetailsForCreditor_args other) {
23132
      __isset_bit_vector.clear();
23133
      __isset_bit_vector.or(other.__isset_bit_vector);
23134
      this.userId = other.userId;
23135
      this.creditorId = other.creditorId;
23136
    }
23137
 
23138
    public getUserSanctionDetailsForCreditor_args deepCopy() {
23139
      return new getUserSanctionDetailsForCreditor_args(this);
23140
    }
23141
 
23142
    @Override
23143
    public void clear() {
23144
      setUserIdIsSet(false);
23145
      this.userId = 0;
23146
      setCreditorIdIsSet(false);
23147
      this.creditorId = 0;
23148
    }
23149
 
23150
    public long getUserId() {
23151
      return this.userId;
23152
    }
23153
 
23154
    public void setUserId(long userId) {
23155
      this.userId = userId;
23156
      setUserIdIsSet(true);
23157
    }
23158
 
23159
    public void unsetUserId() {
23160
      __isset_bit_vector.clear(__USERID_ISSET_ID);
23161
    }
23162
 
23163
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
23164
    public boolean isSetUserId() {
23165
      return __isset_bit_vector.get(__USERID_ISSET_ID);
23166
    }
23167
 
23168
    public void setUserIdIsSet(boolean value) {
23169
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
23170
    }
23171
 
23172
    public long getCreditorId() {
23173
      return this.creditorId;
23174
    }
23175
 
23176
    public void setCreditorId(long creditorId) {
23177
      this.creditorId = creditorId;
23178
      setCreditorIdIsSet(true);
23179
    }
23180
 
23181
    public void unsetCreditorId() {
23182
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
23183
    }
23184
 
23185
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
23186
    public boolean isSetCreditorId() {
23187
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
23188
    }
23189
 
23190
    public void setCreditorIdIsSet(boolean value) {
23191
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
23192
    }
23193
 
23194
    public void setFieldValue(_Fields field, Object value) {
23195
      switch (field) {
23196
      case USER_ID:
23197
        if (value == null) {
23198
          unsetUserId();
23199
        } else {
23200
          setUserId((Long)value);
23201
        }
23202
        break;
23203
 
23204
      case CREDITOR_ID:
23205
        if (value == null) {
23206
          unsetCreditorId();
23207
        } else {
23208
          setCreditorId((Long)value);
23209
        }
23210
        break;
23211
 
23212
      }
23213
    }
23214
 
23215
    public Object getFieldValue(_Fields field) {
23216
      switch (field) {
23217
      case USER_ID:
23218
        return Long.valueOf(getUserId());
23219
 
23220
      case CREDITOR_ID:
23221
        return Long.valueOf(getCreditorId());
23222
 
23223
      }
23224
      throw new IllegalStateException();
23225
    }
23226
 
23227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23228
    public boolean isSet(_Fields field) {
23229
      if (field == null) {
23230
        throw new IllegalArgumentException();
23231
      }
23232
 
23233
      switch (field) {
23234
      case USER_ID:
23235
        return isSetUserId();
23236
      case CREDITOR_ID:
23237
        return isSetCreditorId();
23238
      }
23239
      throw new IllegalStateException();
23240
    }
23241
 
23242
    @Override
23243
    public boolean equals(Object that) {
23244
      if (that == null)
23245
        return false;
23246
      if (that instanceof getUserSanctionDetailsForCreditor_args)
23247
        return this.equals((getUserSanctionDetailsForCreditor_args)that);
23248
      return false;
23249
    }
23250
 
23251
    public boolean equals(getUserSanctionDetailsForCreditor_args that) {
23252
      if (that == null)
23253
        return false;
23254
 
23255
      boolean this_present_userId = true;
23256
      boolean that_present_userId = true;
23257
      if (this_present_userId || that_present_userId) {
23258
        if (!(this_present_userId && that_present_userId))
23259
          return false;
23260
        if (this.userId != that.userId)
23261
          return false;
23262
      }
23263
 
23264
      boolean this_present_creditorId = true;
23265
      boolean that_present_creditorId = true;
23266
      if (this_present_creditorId || that_present_creditorId) {
23267
        if (!(this_present_creditorId && that_present_creditorId))
23268
          return false;
23269
        if (this.creditorId != that.creditorId)
23270
          return false;
23271
      }
23272
 
23273
      return true;
23274
    }
23275
 
23276
    @Override
23277
    public int hashCode() {
23278
      return 0;
23279
    }
23280
 
23281
    public int compareTo(getUserSanctionDetailsForCreditor_args other) {
23282
      if (!getClass().equals(other.getClass())) {
23283
        return getClass().getName().compareTo(other.getClass().getName());
23284
      }
23285
 
23286
      int lastComparison = 0;
23287
      getUserSanctionDetailsForCreditor_args typedOther = (getUserSanctionDetailsForCreditor_args)other;
23288
 
23289
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
23290
      if (lastComparison != 0) {
23291
        return lastComparison;
23292
      }
23293
      if (isSetUserId()) {
23294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
23295
        if (lastComparison != 0) {
23296
          return lastComparison;
23297
        }
23298
      }
23299
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
23300
      if (lastComparison != 0) {
23301
        return lastComparison;
23302
      }
23303
      if (isSetCreditorId()) {
23304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
23305
        if (lastComparison != 0) {
23306
          return lastComparison;
23307
        }
23308
      }
23309
      return 0;
23310
    }
23311
 
23312
    public _Fields fieldForId(int fieldId) {
23313
      return _Fields.findByThriftId(fieldId);
23314
    }
23315
 
23316
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23317
      org.apache.thrift.protocol.TField field;
23318
      iprot.readStructBegin();
23319
      while (true)
23320
      {
23321
        field = iprot.readFieldBegin();
23322
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23323
          break;
23324
        }
23325
        switch (field.id) {
23326
          case 1: // USER_ID
23327
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23328
              this.userId = iprot.readI64();
23329
              setUserIdIsSet(true);
23330
            } else { 
23331
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23332
            }
23333
            break;
23334
          case -1: // CREDITOR_ID
23335
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23336
              this.creditorId = iprot.readI64();
23337
              setCreditorIdIsSet(true);
23338
            } else { 
23339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23340
            }
23341
            break;
23342
          default:
23343
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23344
        }
23345
        iprot.readFieldEnd();
23346
      }
23347
      iprot.readStructEnd();
23348
      validate();
23349
    }
23350
 
23351
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23352
      validate();
23353
 
23354
      oprot.writeStructBegin(STRUCT_DESC);
23355
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
23356
      oprot.writeI64(this.creditorId);
23357
      oprot.writeFieldEnd();
23358
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
23359
      oprot.writeI64(this.userId);
23360
      oprot.writeFieldEnd();
23361
      oprot.writeFieldStop();
23362
      oprot.writeStructEnd();
23363
    }
23364
 
23365
    @Override
23366
    public String toString() {
23367
      StringBuilder sb = new StringBuilder("getUserSanctionDetailsForCreditor_args(");
23368
      boolean first = true;
23369
 
23370
      sb.append("userId:");
23371
      sb.append(this.userId);
23372
      first = false;
23373
      if (!first) sb.append(", ");
23374
      sb.append("creditorId:");
23375
      sb.append(this.creditorId);
23376
      first = false;
23377
      sb.append(")");
23378
      return sb.toString();
23379
    }
23380
 
23381
    public void validate() throws org.apache.thrift.TException {
23382
      // check for required fields
23383
    }
23384
 
23385
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23386
      try {
23387
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23388
      } catch (org.apache.thrift.TException te) {
23389
        throw new java.io.IOException(te);
23390
      }
23391
    }
23392
 
23393
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23394
      try {
23395
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23396
        __isset_bit_vector = new BitSet(1);
23397
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23398
      } catch (org.apache.thrift.TException te) {
23399
        throw new java.io.IOException(te);
23400
      }
23401
    }
23402
 
23403
  }
23404
 
23405
  public static class getUserSanctionDetailsForCreditor_result implements org.apache.thrift.TBase<getUserSanctionDetailsForCreditor_result, getUserSanctionDetailsForCreditor_result._Fields>, java.io.Serializable, Cloneable   {
23406
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSanctionDetailsForCreditor_result");
23407
 
23408
    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);
23409
 
23410
    private UserSanction success; // required
23411
 
23412
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23413
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23414
      SUCCESS((short)0, "success");
23415
 
23416
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23417
 
23418
      static {
23419
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23420
          byName.put(field.getFieldName(), field);
23421
        }
23422
      }
23423
 
23424
      /**
23425
       * Find the _Fields constant that matches fieldId, or null if its not found.
23426
       */
23427
      public static _Fields findByThriftId(int fieldId) {
23428
        switch(fieldId) {
23429
          case 0: // SUCCESS
23430
            return SUCCESS;
23431
          default:
23432
            return null;
23433
        }
23434
      }
23435
 
23436
      /**
23437
       * Find the _Fields constant that matches fieldId, throwing an exception
23438
       * if it is not found.
23439
       */
23440
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23441
        _Fields fields = findByThriftId(fieldId);
23442
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23443
        return fields;
23444
      }
23445
 
23446
      /**
23447
       * Find the _Fields constant that matches name, or null if its not found.
23448
       */
23449
      public static _Fields findByName(String name) {
23450
        return byName.get(name);
23451
      }
23452
 
23453
      private final short _thriftId;
23454
      private final String _fieldName;
23455
 
23456
      _Fields(short thriftId, String fieldName) {
23457
        _thriftId = thriftId;
23458
        _fieldName = fieldName;
23459
      }
23460
 
23461
      public short getThriftFieldId() {
23462
        return _thriftId;
23463
      }
23464
 
23465
      public String getFieldName() {
23466
        return _fieldName;
23467
      }
23468
    }
23469
 
23470
    // isset id assignments
23471
 
23472
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23473
    static {
23474
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23475
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23476
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSanction.class)));
23477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSanctionDetailsForCreditor_result.class, metaDataMap);
23479
    }
23480
 
23481
    public getUserSanctionDetailsForCreditor_result() {
23482
    }
23483
 
23484
    public getUserSanctionDetailsForCreditor_result(
23485
      UserSanction success)
23486
    {
23487
      this();
23488
      this.success = success;
23489
    }
23490
 
23491
    /**
23492
     * Performs a deep copy on <i>other</i>.
23493
     */
23494
    public getUserSanctionDetailsForCreditor_result(getUserSanctionDetailsForCreditor_result other) {
23495
      if (other.isSetSuccess()) {
23496
        this.success = new UserSanction(other.success);
23497
      }
23498
    }
23499
 
23500
    public getUserSanctionDetailsForCreditor_result deepCopy() {
23501
      return new getUserSanctionDetailsForCreditor_result(this);
23502
    }
23503
 
23504
    @Override
23505
    public void clear() {
23506
      this.success = null;
23507
    }
23508
 
23509
    public UserSanction getSuccess() {
23510
      return this.success;
23511
    }
23512
 
23513
    public void setSuccess(UserSanction success) {
23514
      this.success = success;
23515
    }
23516
 
23517
    public void unsetSuccess() {
23518
      this.success = null;
23519
    }
23520
 
23521
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23522
    public boolean isSetSuccess() {
23523
      return this.success != null;
23524
    }
23525
 
23526
    public void setSuccessIsSet(boolean value) {
23527
      if (!value) {
23528
        this.success = null;
23529
      }
23530
    }
23531
 
23532
    public void setFieldValue(_Fields field, Object value) {
23533
      switch (field) {
23534
      case SUCCESS:
23535
        if (value == null) {
23536
          unsetSuccess();
23537
        } else {
23538
          setSuccess((UserSanction)value);
23539
        }
23540
        break;
23541
 
23542
      }
23543
    }
23544
 
23545
    public Object getFieldValue(_Fields field) {
23546
      switch (field) {
23547
      case SUCCESS:
23548
        return getSuccess();
23549
 
23550
      }
23551
      throw new IllegalStateException();
23552
    }
23553
 
23554
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23555
    public boolean isSet(_Fields field) {
23556
      if (field == null) {
23557
        throw new IllegalArgumentException();
23558
      }
23559
 
23560
      switch (field) {
23561
      case SUCCESS:
23562
        return isSetSuccess();
23563
      }
23564
      throw new IllegalStateException();
23565
    }
23566
 
23567
    @Override
23568
    public boolean equals(Object that) {
23569
      if (that == null)
23570
        return false;
23571
      if (that instanceof getUserSanctionDetailsForCreditor_result)
23572
        return this.equals((getUserSanctionDetailsForCreditor_result)that);
23573
      return false;
23574
    }
23575
 
23576
    public boolean equals(getUserSanctionDetailsForCreditor_result that) {
23577
      if (that == null)
23578
        return false;
23579
 
23580
      boolean this_present_success = true && this.isSetSuccess();
23581
      boolean that_present_success = true && that.isSetSuccess();
23582
      if (this_present_success || that_present_success) {
23583
        if (!(this_present_success && that_present_success))
23584
          return false;
23585
        if (!this.success.equals(that.success))
23586
          return false;
23587
      }
23588
 
23589
      return true;
23590
    }
23591
 
23592
    @Override
23593
    public int hashCode() {
23594
      return 0;
23595
    }
23596
 
23597
    public int compareTo(getUserSanctionDetailsForCreditor_result other) {
23598
      if (!getClass().equals(other.getClass())) {
23599
        return getClass().getName().compareTo(other.getClass().getName());
23600
      }
23601
 
23602
      int lastComparison = 0;
23603
      getUserSanctionDetailsForCreditor_result typedOther = (getUserSanctionDetailsForCreditor_result)other;
23604
 
23605
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23606
      if (lastComparison != 0) {
23607
        return lastComparison;
23608
      }
23609
      if (isSetSuccess()) {
23610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23611
        if (lastComparison != 0) {
23612
          return lastComparison;
23613
        }
23614
      }
23615
      return 0;
23616
    }
23617
 
23618
    public _Fields fieldForId(int fieldId) {
23619
      return _Fields.findByThriftId(fieldId);
23620
    }
23621
 
23622
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23623
      org.apache.thrift.protocol.TField field;
23624
      iprot.readStructBegin();
23625
      while (true)
23626
      {
23627
        field = iprot.readFieldBegin();
23628
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23629
          break;
23630
        }
23631
        switch (field.id) {
23632
          case 0: // SUCCESS
23633
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23634
              this.success = new UserSanction();
23635
              this.success.read(iprot);
23636
            } else { 
23637
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23638
            }
23639
            break;
23640
          default:
23641
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23642
        }
23643
        iprot.readFieldEnd();
23644
      }
23645
      iprot.readStructEnd();
23646
      validate();
23647
    }
23648
 
23649
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23650
      oprot.writeStructBegin(STRUCT_DESC);
23651
 
23652
      if (this.isSetSuccess()) {
23653
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23654
        this.success.write(oprot);
23655
        oprot.writeFieldEnd();
23656
      }
23657
      oprot.writeFieldStop();
23658
      oprot.writeStructEnd();
23659
    }
23660
 
23661
    @Override
23662
    public String toString() {
23663
      StringBuilder sb = new StringBuilder("getUserSanctionDetailsForCreditor_result(");
23664
      boolean first = true;
23665
 
23666
      sb.append("success:");
23667
      if (this.success == null) {
23668
        sb.append("null");
23669
      } else {
23670
        sb.append(this.success);
23671
      }
23672
      first = false;
23673
      sb.append(")");
23674
      return sb.toString();
23675
    }
23676
 
23677
    public void validate() throws org.apache.thrift.TException {
23678
      // check for required fields
23679
    }
23680
 
23681
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23682
      try {
23683
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23684
      } catch (org.apache.thrift.TException te) {
23685
        throw new java.io.IOException(te);
23686
      }
23687
    }
23688
 
23689
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23690
      try {
23691
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23692
      } catch (org.apache.thrift.TException te) {
23693
        throw new java.io.IOException(te);
23694
      }
23695
    }
23696
 
23697
  }
23698
 
23699
  public static class updateUserSanction_args implements org.apache.thrift.TBase<updateUserSanction_args, updateUserSanction_args._Fields>, java.io.Serializable, Cloneable   {
23700
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSanction_args");
23701
 
23702
    private static final org.apache.thrift.protocol.TField USER_SANACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("userSanaction", org.apache.thrift.protocol.TType.STRUCT, (short)1);
23703
 
23704
    private UserSanction userSanaction; // required
23705
 
23706
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23707
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23708
      USER_SANACTION((short)1, "userSanaction");
23709
 
23710
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23711
 
23712
      static {
23713
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23714
          byName.put(field.getFieldName(), field);
23715
        }
23716
      }
23717
 
23718
      /**
23719
       * Find the _Fields constant that matches fieldId, or null if its not found.
23720
       */
23721
      public static _Fields findByThriftId(int fieldId) {
23722
        switch(fieldId) {
23723
          case 1: // USER_SANACTION
23724
            return USER_SANACTION;
23725
          default:
23726
            return null;
23727
        }
23728
      }
23729
 
23730
      /**
23731
       * Find the _Fields constant that matches fieldId, throwing an exception
23732
       * if it is not found.
23733
       */
23734
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23735
        _Fields fields = findByThriftId(fieldId);
23736
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23737
        return fields;
23738
      }
23739
 
23740
      /**
23741
       * Find the _Fields constant that matches name, or null if its not found.
23742
       */
23743
      public static _Fields findByName(String name) {
23744
        return byName.get(name);
23745
      }
23746
 
23747
      private final short _thriftId;
23748
      private final String _fieldName;
23749
 
23750
      _Fields(short thriftId, String fieldName) {
23751
        _thriftId = thriftId;
23752
        _fieldName = fieldName;
23753
      }
23754
 
23755
      public short getThriftFieldId() {
23756
        return _thriftId;
23757
      }
23758
 
23759
      public String getFieldName() {
23760
        return _fieldName;
23761
      }
23762
    }
23763
 
23764
    // isset id assignments
23765
 
23766
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23767
    static {
23768
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23769
      tmpMap.put(_Fields.USER_SANACTION, new org.apache.thrift.meta_data.FieldMetaData("userSanaction", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23770
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSanction.class)));
23771
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23772
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSanction_args.class, metaDataMap);
23773
    }
23774
 
23775
    public updateUserSanction_args() {
23776
    }
23777
 
23778
    public updateUserSanction_args(
23779
      UserSanction userSanaction)
23780
    {
23781
      this();
23782
      this.userSanaction = userSanaction;
23783
    }
23784
 
23785
    /**
23786
     * Performs a deep copy on <i>other</i>.
23787
     */
23788
    public updateUserSanction_args(updateUserSanction_args other) {
23789
      if (other.isSetUserSanaction()) {
23790
        this.userSanaction = new UserSanction(other.userSanaction);
23791
      }
23792
    }
23793
 
23794
    public updateUserSanction_args deepCopy() {
23795
      return new updateUserSanction_args(this);
23796
    }
23797
 
23798
    @Override
23799
    public void clear() {
23800
      this.userSanaction = null;
23801
    }
23802
 
23803
    public UserSanction getUserSanaction() {
23804
      return this.userSanaction;
23805
    }
23806
 
23807
    public void setUserSanaction(UserSanction userSanaction) {
23808
      this.userSanaction = userSanaction;
23809
    }
23810
 
23811
    public void unsetUserSanaction() {
23812
      this.userSanaction = null;
23813
    }
23814
 
23815
    /** Returns true if field userSanaction is set (has been assigned a value) and false otherwise */
23816
    public boolean isSetUserSanaction() {
23817
      return this.userSanaction != null;
23818
    }
23819
 
23820
    public void setUserSanactionIsSet(boolean value) {
23821
      if (!value) {
23822
        this.userSanaction = null;
23823
      }
23824
    }
23825
 
23826
    public void setFieldValue(_Fields field, Object value) {
23827
      switch (field) {
23828
      case USER_SANACTION:
23829
        if (value == null) {
23830
          unsetUserSanaction();
23831
        } else {
23832
          setUserSanaction((UserSanction)value);
23833
        }
23834
        break;
23835
 
23836
      }
23837
    }
23838
 
23839
    public Object getFieldValue(_Fields field) {
23840
      switch (field) {
23841
      case USER_SANACTION:
23842
        return getUserSanaction();
23843
 
23844
      }
23845
      throw new IllegalStateException();
23846
    }
23847
 
23848
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23849
    public boolean isSet(_Fields field) {
23850
      if (field == null) {
23851
        throw new IllegalArgumentException();
23852
      }
23853
 
23854
      switch (field) {
23855
      case USER_SANACTION:
23856
        return isSetUserSanaction();
23857
      }
23858
      throw new IllegalStateException();
23859
    }
23860
 
23861
    @Override
23862
    public boolean equals(Object that) {
23863
      if (that == null)
23864
        return false;
23865
      if (that instanceof updateUserSanction_args)
23866
        return this.equals((updateUserSanction_args)that);
23867
      return false;
23868
    }
23869
 
23870
    public boolean equals(updateUserSanction_args that) {
23871
      if (that == null)
23872
        return false;
23873
 
23874
      boolean this_present_userSanaction = true && this.isSetUserSanaction();
23875
      boolean that_present_userSanaction = true && that.isSetUserSanaction();
23876
      if (this_present_userSanaction || that_present_userSanaction) {
23877
        if (!(this_present_userSanaction && that_present_userSanaction))
23878
          return false;
23879
        if (!this.userSanaction.equals(that.userSanaction))
23880
          return false;
23881
      }
23882
 
23883
      return true;
23884
    }
23885
 
23886
    @Override
23887
    public int hashCode() {
23888
      return 0;
23889
    }
23890
 
23891
    public int compareTo(updateUserSanction_args other) {
23892
      if (!getClass().equals(other.getClass())) {
23893
        return getClass().getName().compareTo(other.getClass().getName());
23894
      }
23895
 
23896
      int lastComparison = 0;
23897
      updateUserSanction_args typedOther = (updateUserSanction_args)other;
23898
 
23899
      lastComparison = Boolean.valueOf(isSetUserSanaction()).compareTo(typedOther.isSetUserSanaction());
23900
      if (lastComparison != 0) {
23901
        return lastComparison;
23902
      }
23903
      if (isSetUserSanaction()) {
23904
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSanaction, typedOther.userSanaction);
23905
        if (lastComparison != 0) {
23906
          return lastComparison;
23907
        }
23908
      }
23909
      return 0;
23910
    }
23911
 
23912
    public _Fields fieldForId(int fieldId) {
23913
      return _Fields.findByThriftId(fieldId);
23914
    }
23915
 
23916
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23917
      org.apache.thrift.protocol.TField field;
23918
      iprot.readStructBegin();
23919
      while (true)
23920
      {
23921
        field = iprot.readFieldBegin();
23922
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23923
          break;
23924
        }
23925
        switch (field.id) {
23926
          case 1: // USER_SANACTION
23927
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23928
              this.userSanaction = new UserSanction();
23929
              this.userSanaction.read(iprot);
23930
            } else { 
23931
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23932
            }
23933
            break;
23934
          default:
23935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23936
        }
23937
        iprot.readFieldEnd();
23938
      }
23939
      iprot.readStructEnd();
23940
      validate();
23941
    }
23942
 
23943
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23944
      validate();
23945
 
23946
      oprot.writeStructBegin(STRUCT_DESC);
23947
      if (this.userSanaction != null) {
23948
        oprot.writeFieldBegin(USER_SANACTION_FIELD_DESC);
23949
        this.userSanaction.write(oprot);
23950
        oprot.writeFieldEnd();
23951
      }
23952
      oprot.writeFieldStop();
23953
      oprot.writeStructEnd();
23954
    }
23955
 
23956
    @Override
23957
    public String toString() {
23958
      StringBuilder sb = new StringBuilder("updateUserSanction_args(");
23959
      boolean first = true;
23960
 
23961
      sb.append("userSanaction:");
23962
      if (this.userSanaction == null) {
23963
        sb.append("null");
23964
      } else {
23965
        sb.append(this.userSanaction);
23966
      }
23967
      first = false;
23968
      sb.append(")");
23969
      return sb.toString();
23970
    }
23971
 
23972
    public void validate() throws org.apache.thrift.TException {
23973
      // check for required fields
23974
    }
23975
 
23976
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23977
      try {
23978
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23979
      } catch (org.apache.thrift.TException te) {
23980
        throw new java.io.IOException(te);
23981
      }
23982
    }
23983
 
23984
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23985
      try {
23986
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23987
      } catch (org.apache.thrift.TException te) {
23988
        throw new java.io.IOException(te);
23989
      }
23990
    }
23991
 
23992
  }
23993
 
23994
  public static class updateUserSanction_result implements org.apache.thrift.TBase<updateUserSanction_result, updateUserSanction_result._Fields>, java.io.Serializable, Cloneable   {
23995
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSanction_result");
23996
 
23997
    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);
23998
    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);
23999
 
24000
    private boolean success; // required
24001
    private PaymentException pe; // required
24002
 
24003
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24004
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24005
      SUCCESS((short)0, "success"),
24006
      PE((short)1, "pe");
24007
 
24008
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24009
 
24010
      static {
24011
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24012
          byName.put(field.getFieldName(), field);
24013
        }
24014
      }
24015
 
24016
      /**
24017
       * Find the _Fields constant that matches fieldId, or null if its not found.
24018
       */
24019
      public static _Fields findByThriftId(int fieldId) {
24020
        switch(fieldId) {
24021
          case 0: // SUCCESS
24022
            return SUCCESS;
24023
          case 1: // PE
24024
            return PE;
24025
          default:
24026
            return null;
24027
        }
24028
      }
24029
 
24030
      /**
24031
       * Find the _Fields constant that matches fieldId, throwing an exception
24032
       * if it is not found.
24033
       */
24034
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24035
        _Fields fields = findByThriftId(fieldId);
24036
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24037
        return fields;
24038
      }
24039
 
24040
      /**
24041
       * Find the _Fields constant that matches name, or null if its not found.
24042
       */
24043
      public static _Fields findByName(String name) {
24044
        return byName.get(name);
24045
      }
24046
 
24047
      private final short _thriftId;
24048
      private final String _fieldName;
24049
 
24050
      _Fields(short thriftId, String fieldName) {
24051
        _thriftId = thriftId;
24052
        _fieldName = fieldName;
24053
      }
24054
 
24055
      public short getThriftFieldId() {
24056
        return _thriftId;
24057
      }
24058
 
24059
      public String getFieldName() {
24060
        return _fieldName;
24061
      }
24062
    }
24063
 
24064
    // isset id assignments
24065
    private static final int __SUCCESS_ISSET_ID = 0;
24066
    private BitSet __isset_bit_vector = new BitSet(1);
24067
 
24068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24069
    static {
24070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24071
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24072
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
24073
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
24075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSanction_result.class, metaDataMap);
24077
    }
24078
 
24079
    public updateUserSanction_result() {
24080
    }
24081
 
24082
    public updateUserSanction_result(
24083
      boolean success,
24084
      PaymentException pe)
24085
    {
24086
      this();
24087
      this.success = success;
24088
      setSuccessIsSet(true);
24089
      this.pe = pe;
24090
    }
24091
 
24092
    /**
24093
     * Performs a deep copy on <i>other</i>.
24094
     */
24095
    public updateUserSanction_result(updateUserSanction_result other) {
24096
      __isset_bit_vector.clear();
24097
      __isset_bit_vector.or(other.__isset_bit_vector);
24098
      this.success = other.success;
24099
      if (other.isSetPe()) {
24100
        this.pe = new PaymentException(other.pe);
24101
      }
24102
    }
24103
 
24104
    public updateUserSanction_result deepCopy() {
24105
      return new updateUserSanction_result(this);
24106
    }
24107
 
24108
    @Override
24109
    public void clear() {
24110
      setSuccessIsSet(false);
24111
      this.success = false;
24112
      this.pe = null;
24113
    }
24114
 
24115
    public boolean isSuccess() {
24116
      return this.success;
24117
    }
24118
 
24119
    public void setSuccess(boolean success) {
24120
      this.success = success;
24121
      setSuccessIsSet(true);
24122
    }
24123
 
24124
    public void unsetSuccess() {
24125
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
24126
    }
24127
 
24128
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24129
    public boolean isSetSuccess() {
24130
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
24131
    }
24132
 
24133
    public void setSuccessIsSet(boolean value) {
24134
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
24135
    }
24136
 
24137
    public PaymentException getPe() {
24138
      return this.pe;
24139
    }
24140
 
24141
    public void setPe(PaymentException pe) {
24142
      this.pe = pe;
24143
    }
24144
 
24145
    public void unsetPe() {
24146
      this.pe = null;
24147
    }
24148
 
24149
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
24150
    public boolean isSetPe() {
24151
      return this.pe != null;
24152
    }
24153
 
24154
    public void setPeIsSet(boolean value) {
24155
      if (!value) {
24156
        this.pe = null;
24157
      }
24158
    }
24159
 
24160
    public void setFieldValue(_Fields field, Object value) {
24161
      switch (field) {
24162
      case SUCCESS:
24163
        if (value == null) {
24164
          unsetSuccess();
24165
        } else {
24166
          setSuccess((Boolean)value);
24167
        }
24168
        break;
24169
 
24170
      case PE:
24171
        if (value == null) {
24172
          unsetPe();
24173
        } else {
24174
          setPe((PaymentException)value);
24175
        }
24176
        break;
24177
 
24178
      }
24179
    }
24180
 
24181
    public Object getFieldValue(_Fields field) {
24182
      switch (field) {
24183
      case SUCCESS:
24184
        return Boolean.valueOf(isSuccess());
24185
 
24186
      case PE:
24187
        return getPe();
24188
 
24189
      }
24190
      throw new IllegalStateException();
24191
    }
24192
 
24193
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24194
    public boolean isSet(_Fields field) {
24195
      if (field == null) {
24196
        throw new IllegalArgumentException();
24197
      }
24198
 
24199
      switch (field) {
24200
      case SUCCESS:
24201
        return isSetSuccess();
24202
      case PE:
24203
        return isSetPe();
24204
      }
24205
      throw new IllegalStateException();
24206
    }
24207
 
24208
    @Override
24209
    public boolean equals(Object that) {
24210
      if (that == null)
24211
        return false;
24212
      if (that instanceof updateUserSanction_result)
24213
        return this.equals((updateUserSanction_result)that);
24214
      return false;
24215
    }
24216
 
24217
    public boolean equals(updateUserSanction_result that) {
24218
      if (that == null)
24219
        return false;
24220
 
24221
      boolean this_present_success = true;
24222
      boolean that_present_success = true;
24223
      if (this_present_success || that_present_success) {
24224
        if (!(this_present_success && that_present_success))
24225
          return false;
24226
        if (this.success != that.success)
24227
          return false;
24228
      }
24229
 
24230
      boolean this_present_pe = true && this.isSetPe();
24231
      boolean that_present_pe = true && that.isSetPe();
24232
      if (this_present_pe || that_present_pe) {
24233
        if (!(this_present_pe && that_present_pe))
24234
          return false;
24235
        if (!this.pe.equals(that.pe))
24236
          return false;
24237
      }
24238
 
24239
      return true;
24240
    }
24241
 
24242
    @Override
24243
    public int hashCode() {
24244
      return 0;
24245
    }
24246
 
24247
    public int compareTo(updateUserSanction_result other) {
24248
      if (!getClass().equals(other.getClass())) {
24249
        return getClass().getName().compareTo(other.getClass().getName());
24250
      }
24251
 
24252
      int lastComparison = 0;
24253
      updateUserSanction_result typedOther = (updateUserSanction_result)other;
24254
 
24255
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24256
      if (lastComparison != 0) {
24257
        return lastComparison;
24258
      }
24259
      if (isSetSuccess()) {
24260
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24261
        if (lastComparison != 0) {
24262
          return lastComparison;
24263
        }
24264
      }
24265
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
24266
      if (lastComparison != 0) {
24267
        return lastComparison;
24268
      }
24269
      if (isSetPe()) {
24270
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
24271
        if (lastComparison != 0) {
24272
          return lastComparison;
24273
        }
24274
      }
24275
      return 0;
24276
    }
24277
 
24278
    public _Fields fieldForId(int fieldId) {
24279
      return _Fields.findByThriftId(fieldId);
24280
    }
24281
 
24282
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24283
      org.apache.thrift.protocol.TField field;
24284
      iprot.readStructBegin();
24285
      while (true)
24286
      {
24287
        field = iprot.readFieldBegin();
24288
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24289
          break;
24290
        }
24291
        switch (field.id) {
24292
          case 0: // SUCCESS
24293
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
24294
              this.success = iprot.readBool();
24295
              setSuccessIsSet(true);
24296
            } else { 
24297
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24298
            }
24299
            break;
24300
          case 1: // PE
24301
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
24302
              this.pe = new PaymentException();
24303
              this.pe.read(iprot);
24304
            } else { 
24305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24306
            }
24307
            break;
24308
          default:
24309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24310
        }
24311
        iprot.readFieldEnd();
24312
      }
24313
      iprot.readStructEnd();
24314
      validate();
24315
    }
24316
 
24317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24318
      oprot.writeStructBegin(STRUCT_DESC);
24319
 
24320
      if (this.isSetSuccess()) {
24321
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24322
        oprot.writeBool(this.success);
24323
        oprot.writeFieldEnd();
24324
      } else if (this.isSetPe()) {
24325
        oprot.writeFieldBegin(PE_FIELD_DESC);
24326
        this.pe.write(oprot);
24327
        oprot.writeFieldEnd();
24328
      }
24329
      oprot.writeFieldStop();
24330
      oprot.writeStructEnd();
24331
    }
24332
 
24333
    @Override
24334
    public String toString() {
24335
      StringBuilder sb = new StringBuilder("updateUserSanction_result(");
24336
      boolean first = true;
24337
 
24338
      sb.append("success:");
24339
      sb.append(this.success);
24340
      first = false;
24341
      if (!first) sb.append(", ");
24342
      sb.append("pe:");
24343
      if (this.pe == null) {
24344
        sb.append("null");
24345
      } else {
24346
        sb.append(this.pe);
24347
      }
24348
      first = false;
24349
      sb.append(")");
24350
      return sb.toString();
24351
    }
24352
 
24353
    public void validate() throws org.apache.thrift.TException {
24354
      // check for required fields
24355
    }
24356
 
24357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24358
      try {
24359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24360
      } catch (org.apache.thrift.TException te) {
24361
        throw new java.io.IOException(te);
24362
      }
24363
    }
24364
 
24365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24366
      try {
24367
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24368
      } catch (org.apache.thrift.TException te) {
24369
        throw new java.io.IOException(te);
24370
      }
24371
    }
24372
 
24373
  }
24374
 
24375
  public static class getCreditHistoryRecordsForTransaction_args implements org.apache.thrift.TBase<getCreditHistoryRecordsForTransaction_args, getCreditHistoryRecordsForTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForTransaction_args");
24377
 
24378
    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);
24379
    private static final org.apache.thrift.protocol.TField CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditorId", org.apache.thrift.protocol.TType.I64, (short)2);
24380
    private static final org.apache.thrift.protocol.TField CREDIT_TXN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("creditTxnType", org.apache.thrift.protocol.TType.STRING, (short)3);
24381
 
24382
    private long paymentId; // required
24383
    private long creditorId; // required
24384
    private String creditTxnType; // required
24385
 
24386
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24387
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24388
      PAYMENT_ID((short)1, "paymentId"),
24389
      CREDITOR_ID((short)2, "creditorId"),
24390
      CREDIT_TXN_TYPE((short)3, "creditTxnType");
24391
 
24392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24393
 
24394
      static {
24395
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24396
          byName.put(field.getFieldName(), field);
24397
        }
24398
      }
24399
 
24400
      /**
24401
       * Find the _Fields constant that matches fieldId, or null if its not found.
24402
       */
24403
      public static _Fields findByThriftId(int fieldId) {
24404
        switch(fieldId) {
24405
          case 1: // PAYMENT_ID
24406
            return PAYMENT_ID;
24407
          case 2: // CREDITOR_ID
24408
            return CREDITOR_ID;
24409
          case 3: // CREDIT_TXN_TYPE
24410
            return CREDIT_TXN_TYPE;
24411
          default:
24412
            return null;
24413
        }
24414
      }
24415
 
24416
      /**
24417
       * Find the _Fields constant that matches fieldId, throwing an exception
24418
       * if it is not found.
24419
       */
24420
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24421
        _Fields fields = findByThriftId(fieldId);
24422
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24423
        return fields;
24424
      }
24425
 
24426
      /**
24427
       * Find the _Fields constant that matches name, or null if its not found.
24428
       */
24429
      public static _Fields findByName(String name) {
24430
        return byName.get(name);
24431
      }
24432
 
24433
      private final short _thriftId;
24434
      private final String _fieldName;
24435
 
24436
      _Fields(short thriftId, String fieldName) {
24437
        _thriftId = thriftId;
24438
        _fieldName = fieldName;
24439
      }
24440
 
24441
      public short getThriftFieldId() {
24442
        return _thriftId;
24443
      }
24444
 
24445
      public String getFieldName() {
24446
        return _fieldName;
24447
      }
24448
    }
24449
 
24450
    // isset id assignments
24451
    private static final int __PAYMENTID_ISSET_ID = 0;
24452
    private static final int __CREDITORID_ISSET_ID = 1;
24453
    private BitSet __isset_bit_vector = new BitSet(2);
24454
 
24455
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24456
    static {
24457
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24458
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24459
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24460
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24461
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24462
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24463
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24464
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24465
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForTransaction_args.class, metaDataMap);
24466
    }
24467
 
24468
    public getCreditHistoryRecordsForTransaction_args() {
24469
    }
24470
 
24471
    public getCreditHistoryRecordsForTransaction_args(
24472
      long paymentId,
24473
      long creditorId,
24474
      String creditTxnType)
24475
    {
24476
      this();
24477
      this.paymentId = paymentId;
24478
      setPaymentIdIsSet(true);
24479
      this.creditorId = creditorId;
24480
      setCreditorIdIsSet(true);
24481
      this.creditTxnType = creditTxnType;
24482
    }
24483
 
24484
    /**
24485
     * Performs a deep copy on <i>other</i>.
24486
     */
24487
    public getCreditHistoryRecordsForTransaction_args(getCreditHistoryRecordsForTransaction_args other) {
24488
      __isset_bit_vector.clear();
24489
      __isset_bit_vector.or(other.__isset_bit_vector);
24490
      this.paymentId = other.paymentId;
24491
      this.creditorId = other.creditorId;
24492
      if (other.isSetCreditTxnType()) {
24493
        this.creditTxnType = other.creditTxnType;
24494
      }
24495
    }
24496
 
24497
    public getCreditHistoryRecordsForTransaction_args deepCopy() {
24498
      return new getCreditHistoryRecordsForTransaction_args(this);
24499
    }
24500
 
24501
    @Override
24502
    public void clear() {
24503
      setPaymentIdIsSet(false);
24504
      this.paymentId = 0;
24505
      setCreditorIdIsSet(false);
24506
      this.creditorId = 0;
24507
      this.creditTxnType = null;
24508
    }
24509
 
24510
    public long getPaymentId() {
24511
      return this.paymentId;
24512
    }
24513
 
24514
    public void setPaymentId(long paymentId) {
24515
      this.paymentId = paymentId;
24516
      setPaymentIdIsSet(true);
24517
    }
24518
 
24519
    public void unsetPaymentId() {
24520
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
24521
    }
24522
 
24523
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
24524
    public boolean isSetPaymentId() {
24525
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
24526
    }
24527
 
24528
    public void setPaymentIdIsSet(boolean value) {
24529
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
24530
    }
24531
 
24532
    public long getCreditorId() {
24533
      return this.creditorId;
24534
    }
24535
 
24536
    public void setCreditorId(long creditorId) {
24537
      this.creditorId = creditorId;
24538
      setCreditorIdIsSet(true);
24539
    }
24540
 
24541
    public void unsetCreditorId() {
24542
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
24543
    }
24544
 
24545
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
24546
    public boolean isSetCreditorId() {
24547
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
24548
    }
24549
 
24550
    public void setCreditorIdIsSet(boolean value) {
24551
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
24552
    }
24553
 
24554
    public String getCreditTxnType() {
24555
      return this.creditTxnType;
24556
    }
24557
 
24558
    public void setCreditTxnType(String creditTxnType) {
24559
      this.creditTxnType = creditTxnType;
24560
    }
24561
 
24562
    public void unsetCreditTxnType() {
24563
      this.creditTxnType = null;
24564
    }
24565
 
24566
    /** Returns true if field creditTxnType is set (has been assigned a value) and false otherwise */
24567
    public boolean isSetCreditTxnType() {
24568
      return this.creditTxnType != null;
24569
    }
24570
 
24571
    public void setCreditTxnTypeIsSet(boolean value) {
24572
      if (!value) {
24573
        this.creditTxnType = null;
24574
      }
24575
    }
24576
 
24577
    public void setFieldValue(_Fields field, Object value) {
24578
      switch (field) {
24579
      case PAYMENT_ID:
24580
        if (value == null) {
24581
          unsetPaymentId();
24582
        } else {
24583
          setPaymentId((Long)value);
24584
        }
24585
        break;
24586
 
24587
      case CREDITOR_ID:
24588
        if (value == null) {
24589
          unsetCreditorId();
24590
        } else {
24591
          setCreditorId((Long)value);
24592
        }
24593
        break;
24594
 
24595
      case CREDIT_TXN_TYPE:
24596
        if (value == null) {
24597
          unsetCreditTxnType();
24598
        } else {
24599
          setCreditTxnType((String)value);
24600
        }
24601
        break;
24602
 
24603
      }
24604
    }
24605
 
24606
    public Object getFieldValue(_Fields field) {
24607
      switch (field) {
24608
      case PAYMENT_ID:
24609
        return Long.valueOf(getPaymentId());
24610
 
24611
      case CREDITOR_ID:
24612
        return Long.valueOf(getCreditorId());
24613
 
24614
      case CREDIT_TXN_TYPE:
24615
        return getCreditTxnType();
24616
 
24617
      }
24618
      throw new IllegalStateException();
24619
    }
24620
 
24621
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24622
    public boolean isSet(_Fields field) {
24623
      if (field == null) {
24624
        throw new IllegalArgumentException();
24625
      }
24626
 
24627
      switch (field) {
24628
      case PAYMENT_ID:
24629
        return isSetPaymentId();
24630
      case CREDITOR_ID:
24631
        return isSetCreditorId();
24632
      case CREDIT_TXN_TYPE:
24633
        return isSetCreditTxnType();
24634
      }
24635
      throw new IllegalStateException();
24636
    }
24637
 
24638
    @Override
24639
    public boolean equals(Object that) {
24640
      if (that == null)
24641
        return false;
24642
      if (that instanceof getCreditHistoryRecordsForTransaction_args)
24643
        return this.equals((getCreditHistoryRecordsForTransaction_args)that);
24644
      return false;
24645
    }
24646
 
24647
    public boolean equals(getCreditHistoryRecordsForTransaction_args that) {
24648
      if (that == null)
24649
        return false;
24650
 
24651
      boolean this_present_paymentId = true;
24652
      boolean that_present_paymentId = true;
24653
      if (this_present_paymentId || that_present_paymentId) {
24654
        if (!(this_present_paymentId && that_present_paymentId))
24655
          return false;
24656
        if (this.paymentId != that.paymentId)
24657
          return false;
24658
      }
24659
 
24660
      boolean this_present_creditorId = true;
24661
      boolean that_present_creditorId = true;
24662
      if (this_present_creditorId || that_present_creditorId) {
24663
        if (!(this_present_creditorId && that_present_creditorId))
24664
          return false;
24665
        if (this.creditorId != that.creditorId)
24666
          return false;
24667
      }
24668
 
24669
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
24670
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
24671
      if (this_present_creditTxnType || that_present_creditTxnType) {
24672
        if (!(this_present_creditTxnType && that_present_creditTxnType))
24673
          return false;
24674
        if (!this.creditTxnType.equals(that.creditTxnType))
24675
          return false;
24676
      }
24677
 
24678
      return true;
24679
    }
24680
 
24681
    @Override
24682
    public int hashCode() {
24683
      return 0;
24684
    }
24685
 
24686
    public int compareTo(getCreditHistoryRecordsForTransaction_args other) {
24687
      if (!getClass().equals(other.getClass())) {
24688
        return getClass().getName().compareTo(other.getClass().getName());
24689
      }
24690
 
24691
      int lastComparison = 0;
24692
      getCreditHistoryRecordsForTransaction_args typedOther = (getCreditHistoryRecordsForTransaction_args)other;
24693
 
24694
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
24695
      if (lastComparison != 0) {
24696
        return lastComparison;
24697
      }
24698
      if (isSetPaymentId()) {
24699
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
24700
        if (lastComparison != 0) {
24701
          return lastComparison;
24702
        }
24703
      }
24704
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
24705
      if (lastComparison != 0) {
24706
        return lastComparison;
24707
      }
24708
      if (isSetCreditorId()) {
24709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
24710
        if (lastComparison != 0) {
24711
          return lastComparison;
24712
        }
24713
      }
24714
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
24715
      if (lastComparison != 0) {
24716
        return lastComparison;
24717
      }
24718
      if (isSetCreditTxnType()) {
24719
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditTxnType, typedOther.creditTxnType);
24720
        if (lastComparison != 0) {
24721
          return lastComparison;
24722
        }
24723
      }
24724
      return 0;
24725
    }
24726
 
24727
    public _Fields fieldForId(int fieldId) {
24728
      return _Fields.findByThriftId(fieldId);
24729
    }
24730
 
24731
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24732
      org.apache.thrift.protocol.TField field;
24733
      iprot.readStructBegin();
24734
      while (true)
24735
      {
24736
        field = iprot.readFieldBegin();
24737
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24738
          break;
24739
        }
24740
        switch (field.id) {
24741
          case 1: // PAYMENT_ID
24742
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24743
              this.paymentId = iprot.readI64();
24744
              setPaymentIdIsSet(true);
24745
            } else { 
24746
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24747
            }
24748
            break;
24749
          case 2: // CREDITOR_ID
24750
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24751
              this.creditorId = iprot.readI64();
24752
              setCreditorIdIsSet(true);
24753
            } else { 
24754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24755
            }
24756
            break;
24757
          case 3: // CREDIT_TXN_TYPE
24758
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24759
              this.creditTxnType = iprot.readString();
24760
            } else { 
24761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24762
            }
24763
            break;
24764
          default:
24765
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24766
        }
24767
        iprot.readFieldEnd();
24768
      }
24769
      iprot.readStructEnd();
24770
      validate();
24771
    }
24772
 
24773
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24774
      validate();
24775
 
24776
      oprot.writeStructBegin(STRUCT_DESC);
24777
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
24778
      oprot.writeI64(this.paymentId);
24779
      oprot.writeFieldEnd();
24780
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
24781
      oprot.writeI64(this.creditorId);
24782
      oprot.writeFieldEnd();
24783
      if (this.creditTxnType != null) {
24784
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
24785
        oprot.writeString(this.creditTxnType);
24786
        oprot.writeFieldEnd();
24787
      }
24788
      oprot.writeFieldStop();
24789
      oprot.writeStructEnd();
24790
    }
24791
 
24792
    @Override
24793
    public String toString() {
24794
      StringBuilder sb = new StringBuilder("getCreditHistoryRecordsForTransaction_args(");
24795
      boolean first = true;
24796
 
24797
      sb.append("paymentId:");
24798
      sb.append(this.paymentId);
24799
      first = false;
24800
      if (!first) sb.append(", ");
24801
      sb.append("creditorId:");
24802
      sb.append(this.creditorId);
24803
      first = false;
24804
      if (!first) sb.append(", ");
24805
      sb.append("creditTxnType:");
24806
      if (this.creditTxnType == null) {
24807
        sb.append("null");
24808
      } else {
24809
        sb.append(this.creditTxnType);
24810
      }
24811
      first = false;
24812
      sb.append(")");
24813
      return sb.toString();
24814
    }
24815
 
24816
    public void validate() throws org.apache.thrift.TException {
24817
      // check for required fields
24818
    }
24819
 
24820
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24821
      try {
24822
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24823
      } catch (org.apache.thrift.TException te) {
24824
        throw new java.io.IOException(te);
24825
      }
24826
    }
24827
 
24828
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24829
      try {
24830
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24831
        __isset_bit_vector = new BitSet(1);
24832
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24833
      } catch (org.apache.thrift.TException te) {
24834
        throw new java.io.IOException(te);
24835
      }
24836
    }
24837
 
24838
  }
24839
 
24840
  public static class getCreditHistoryRecordsForTransaction_result implements org.apache.thrift.TBase<getCreditHistoryRecordsForTransaction_result, getCreditHistoryRecordsForTransaction_result._Fields>, java.io.Serializable, Cloneable   {
24841
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForTransaction_result");
24842
 
24843
    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);
24844
 
24845
    private List<CreditHistory> success; // required
24846
 
24847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24848
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24849
      SUCCESS((short)0, "success");
24850
 
24851
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24852
 
24853
      static {
24854
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24855
          byName.put(field.getFieldName(), field);
24856
        }
24857
      }
24858
 
24859
      /**
24860
       * Find the _Fields constant that matches fieldId, or null if its not found.
24861
       */
24862
      public static _Fields findByThriftId(int fieldId) {
24863
        switch(fieldId) {
24864
          case 0: // SUCCESS
24865
            return SUCCESS;
24866
          default:
24867
            return null;
24868
        }
24869
      }
24870
 
24871
      /**
24872
       * Find the _Fields constant that matches fieldId, throwing an exception
24873
       * if it is not found.
24874
       */
24875
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24876
        _Fields fields = findByThriftId(fieldId);
24877
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24878
        return fields;
24879
      }
24880
 
24881
      /**
24882
       * Find the _Fields constant that matches name, or null if its not found.
24883
       */
24884
      public static _Fields findByName(String name) {
24885
        return byName.get(name);
24886
      }
24887
 
24888
      private final short _thriftId;
24889
      private final String _fieldName;
24890
 
24891
      _Fields(short thriftId, String fieldName) {
24892
        _thriftId = thriftId;
24893
        _fieldName = fieldName;
24894
      }
24895
 
24896
      public short getThriftFieldId() {
24897
        return _thriftId;
24898
      }
24899
 
24900
      public String getFieldName() {
24901
        return _fieldName;
24902
      }
24903
    }
24904
 
24905
    // isset id assignments
24906
 
24907
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24908
    static {
24909
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24910
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24911
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24912
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
24913
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24914
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForTransaction_result.class, metaDataMap);
24915
    }
24916
 
24917
    public getCreditHistoryRecordsForTransaction_result() {
24918
    }
24919
 
24920
    public getCreditHistoryRecordsForTransaction_result(
24921
      List<CreditHistory> success)
24922
    {
24923
      this();
24924
      this.success = success;
24925
    }
24926
 
24927
    /**
24928
     * Performs a deep copy on <i>other</i>.
24929
     */
24930
    public getCreditHistoryRecordsForTransaction_result(getCreditHistoryRecordsForTransaction_result other) {
24931
      if (other.isSetSuccess()) {
24932
        List<CreditHistory> __this__success = new ArrayList<CreditHistory>();
24933
        for (CreditHistory other_element : other.success) {
24934
          __this__success.add(new CreditHistory(other_element));
24935
        }
24936
        this.success = __this__success;
24937
      }
24938
    }
24939
 
24940
    public getCreditHistoryRecordsForTransaction_result deepCopy() {
24941
      return new getCreditHistoryRecordsForTransaction_result(this);
24942
    }
24943
 
24944
    @Override
24945
    public void clear() {
24946
      this.success = null;
24947
    }
24948
 
24949
    public int getSuccessSize() {
24950
      return (this.success == null) ? 0 : this.success.size();
24951
    }
24952
 
24953
    public java.util.Iterator<CreditHistory> getSuccessIterator() {
24954
      return (this.success == null) ? null : this.success.iterator();
24955
    }
24956
 
24957
    public void addToSuccess(CreditHistory elem) {
24958
      if (this.success == null) {
24959
        this.success = new ArrayList<CreditHistory>();
24960
      }
24961
      this.success.add(elem);
24962
    }
24963
 
24964
    public List<CreditHistory> getSuccess() {
24965
      return this.success;
24966
    }
24967
 
24968
    public void setSuccess(List<CreditHistory> success) {
24969
      this.success = success;
24970
    }
24971
 
24972
    public void unsetSuccess() {
24973
      this.success = null;
24974
    }
24975
 
24976
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24977
    public boolean isSetSuccess() {
24978
      return this.success != null;
24979
    }
24980
 
24981
    public void setSuccessIsSet(boolean value) {
24982
      if (!value) {
24983
        this.success = null;
24984
      }
24985
    }
24986
 
24987
    public void setFieldValue(_Fields field, Object value) {
24988
      switch (field) {
24989
      case SUCCESS:
24990
        if (value == null) {
24991
          unsetSuccess();
24992
        } else {
24993
          setSuccess((List<CreditHistory>)value);
24994
        }
24995
        break;
24996
 
24997
      }
24998
    }
24999
 
25000
    public Object getFieldValue(_Fields field) {
25001
      switch (field) {
25002
      case SUCCESS:
25003
        return getSuccess();
25004
 
25005
      }
25006
      throw new IllegalStateException();
25007
    }
25008
 
25009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25010
    public boolean isSet(_Fields field) {
25011
      if (field == null) {
25012
        throw new IllegalArgumentException();
25013
      }
25014
 
25015
      switch (field) {
25016
      case SUCCESS:
25017
        return isSetSuccess();
25018
      }
25019
      throw new IllegalStateException();
25020
    }
25021
 
25022
    @Override
25023
    public boolean equals(Object that) {
25024
      if (that == null)
25025
        return false;
25026
      if (that instanceof getCreditHistoryRecordsForTransaction_result)
25027
        return this.equals((getCreditHistoryRecordsForTransaction_result)that);
25028
      return false;
25029
    }
25030
 
25031
    public boolean equals(getCreditHistoryRecordsForTransaction_result that) {
25032
      if (that == null)
25033
        return false;
25034
 
25035
      boolean this_present_success = true && this.isSetSuccess();
25036
      boolean that_present_success = true && that.isSetSuccess();
25037
      if (this_present_success || that_present_success) {
25038
        if (!(this_present_success && that_present_success))
25039
          return false;
25040
        if (!this.success.equals(that.success))
25041
          return false;
25042
      }
25043
 
25044
      return true;
25045
    }
25046
 
25047
    @Override
25048
    public int hashCode() {
25049
      return 0;
25050
    }
25051
 
25052
    public int compareTo(getCreditHistoryRecordsForTransaction_result other) {
25053
      if (!getClass().equals(other.getClass())) {
25054
        return getClass().getName().compareTo(other.getClass().getName());
25055
      }
25056
 
25057
      int lastComparison = 0;
25058
      getCreditHistoryRecordsForTransaction_result typedOther = (getCreditHistoryRecordsForTransaction_result)other;
25059
 
25060
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25061
      if (lastComparison != 0) {
25062
        return lastComparison;
25063
      }
25064
      if (isSetSuccess()) {
25065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25066
        if (lastComparison != 0) {
25067
          return lastComparison;
25068
        }
25069
      }
25070
      return 0;
25071
    }
25072
 
25073
    public _Fields fieldForId(int fieldId) {
25074
      return _Fields.findByThriftId(fieldId);
25075
    }
25076
 
25077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25078
      org.apache.thrift.protocol.TField field;
25079
      iprot.readStructBegin();
25080
      while (true)
25081
      {
25082
        field = iprot.readFieldBegin();
25083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25084
          break;
25085
        }
25086
        switch (field.id) {
25087
          case 0: // SUCCESS
25088
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25089
              {
25090
                org.apache.thrift.protocol.TList _list52 = iprot.readListBegin();
25091
                this.success = new ArrayList<CreditHistory>(_list52.size);
25092
                for (int _i53 = 0; _i53 < _list52.size; ++_i53)
25093
                {
25094
                  CreditHistory _elem54; // required
25095
                  _elem54 = new CreditHistory();
25096
                  _elem54.read(iprot);
25097
                  this.success.add(_elem54);
25098
                }
25099
                iprot.readListEnd();
25100
              }
25101
            } else { 
25102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25103
            }
25104
            break;
25105
          default:
25106
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25107
        }
25108
        iprot.readFieldEnd();
25109
      }
25110
      iprot.readStructEnd();
25111
      validate();
25112
    }
25113
 
25114
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25115
      oprot.writeStructBegin(STRUCT_DESC);
25116
 
25117
      if (this.isSetSuccess()) {
25118
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25119
        {
25120
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25121
          for (CreditHistory _iter55 : this.success)
25122
          {
25123
            _iter55.write(oprot);
25124
          }
25125
          oprot.writeListEnd();
25126
        }
25127
        oprot.writeFieldEnd();
25128
      }
25129
      oprot.writeFieldStop();
25130
      oprot.writeStructEnd();
25131
    }
25132
 
25133
    @Override
25134
    public String toString() {
25135
      StringBuilder sb = new StringBuilder("getCreditHistoryRecordsForTransaction_result(");
25136
      boolean first = true;
25137
 
25138
      sb.append("success:");
25139
      if (this.success == null) {
25140
        sb.append("null");
25141
      } else {
25142
        sb.append(this.success);
25143
      }
25144
      first = false;
25145
      sb.append(")");
25146
      return sb.toString();
25147
    }
25148
 
25149
    public void validate() throws org.apache.thrift.TException {
25150
      // check for required fields
25151
    }
25152
 
25153
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25154
      try {
25155
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25156
      } catch (org.apache.thrift.TException te) {
25157
        throw new java.io.IOException(te);
25158
      }
25159
    }
25160
 
25161
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25162
      try {
25163
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25164
      } catch (org.apache.thrift.TException te) {
25165
        throw new java.io.IOException(te);
25166
      }
25167
    }
25168
 
25169
  }
25170
 
25171
  public static class getCreditHistoryRecordsForUserAndCreditor_args implements org.apache.thrift.TBase<getCreditHistoryRecordsForUserAndCreditor_args, getCreditHistoryRecordsForUserAndCreditor_args._Fields>, java.io.Serializable, Cloneable   {
25172
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForUserAndCreditor_args");
25173
 
25174
    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);
25175
    private static final org.apache.thrift.protocol.TField CREDIT_TXN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("creditTxnType", org.apache.thrift.protocol.TType.STRING, (short)2);
25176
 
25177
    private long userId; // required
25178
    private String creditTxnType; // required
25179
 
25180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25181
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25182
      USER_ID((short)1, "userId"),
25183
      CREDIT_TXN_TYPE((short)2, "creditTxnType");
25184
 
25185
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25186
 
25187
      static {
25188
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25189
          byName.put(field.getFieldName(), field);
25190
        }
25191
      }
25192
 
25193
      /**
25194
       * Find the _Fields constant that matches fieldId, or null if its not found.
25195
       */
25196
      public static _Fields findByThriftId(int fieldId) {
25197
        switch(fieldId) {
25198
          case 1: // USER_ID
25199
            return USER_ID;
25200
          case 2: // CREDIT_TXN_TYPE
25201
            return CREDIT_TXN_TYPE;
25202
          default:
25203
            return null;
25204
        }
25205
      }
25206
 
25207
      /**
25208
       * Find the _Fields constant that matches fieldId, throwing an exception
25209
       * if it is not found.
25210
       */
25211
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25212
        _Fields fields = findByThriftId(fieldId);
25213
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25214
        return fields;
25215
      }
25216
 
25217
      /**
25218
       * Find the _Fields constant that matches name, or null if its not found.
25219
       */
25220
      public static _Fields findByName(String name) {
25221
        return byName.get(name);
25222
      }
25223
 
25224
      private final short _thriftId;
25225
      private final String _fieldName;
25226
 
25227
      _Fields(short thriftId, String fieldName) {
25228
        _thriftId = thriftId;
25229
        _fieldName = fieldName;
25230
      }
25231
 
25232
      public short getThriftFieldId() {
25233
        return _thriftId;
25234
      }
25235
 
25236
      public String getFieldName() {
25237
        return _fieldName;
25238
      }
25239
    }
25240
 
25241
    // isset id assignments
25242
    private static final int __USERID_ISSET_ID = 0;
25243
    private BitSet __isset_bit_vector = new BitSet(1);
25244
 
25245
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25246
    static {
25247
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25248
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25250
      tmpMap.put(_Fields.CREDIT_TXN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("creditTxnType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25251
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25252
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25253
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForUserAndCreditor_args.class, metaDataMap);
25254
    }
25255
 
25256
    public getCreditHistoryRecordsForUserAndCreditor_args() {
25257
    }
25258
 
25259
    public getCreditHistoryRecordsForUserAndCreditor_args(
25260
      long userId,
25261
      String creditTxnType)
25262
    {
25263
      this();
25264
      this.userId = userId;
25265
      setUserIdIsSet(true);
25266
      this.creditTxnType = creditTxnType;
25267
    }
25268
 
25269
    /**
25270
     * Performs a deep copy on <i>other</i>.
25271
     */
25272
    public getCreditHistoryRecordsForUserAndCreditor_args(getCreditHistoryRecordsForUserAndCreditor_args other) {
25273
      __isset_bit_vector.clear();
25274
      __isset_bit_vector.or(other.__isset_bit_vector);
25275
      this.userId = other.userId;
25276
      if (other.isSetCreditTxnType()) {
25277
        this.creditTxnType = other.creditTxnType;
25278
      }
25279
    }
25280
 
25281
    public getCreditHistoryRecordsForUserAndCreditor_args deepCopy() {
25282
      return new getCreditHistoryRecordsForUserAndCreditor_args(this);
25283
    }
25284
 
25285
    @Override
25286
    public void clear() {
25287
      setUserIdIsSet(false);
25288
      this.userId = 0;
25289
      this.creditTxnType = null;
25290
    }
25291
 
25292
    public long getUserId() {
25293
      return this.userId;
25294
    }
25295
 
25296
    public void setUserId(long userId) {
25297
      this.userId = userId;
25298
      setUserIdIsSet(true);
25299
    }
25300
 
25301
    public void unsetUserId() {
25302
      __isset_bit_vector.clear(__USERID_ISSET_ID);
25303
    }
25304
 
25305
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
25306
    public boolean isSetUserId() {
25307
      return __isset_bit_vector.get(__USERID_ISSET_ID);
25308
    }
25309
 
25310
    public void setUserIdIsSet(boolean value) {
25311
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
25312
    }
25313
 
25314
    public String getCreditTxnType() {
25315
      return this.creditTxnType;
25316
    }
25317
 
25318
    public void setCreditTxnType(String creditTxnType) {
25319
      this.creditTxnType = creditTxnType;
25320
    }
25321
 
25322
    public void unsetCreditTxnType() {
25323
      this.creditTxnType = null;
25324
    }
25325
 
25326
    /** Returns true if field creditTxnType is set (has been assigned a value) and false otherwise */
25327
    public boolean isSetCreditTxnType() {
25328
      return this.creditTxnType != null;
25329
    }
25330
 
25331
    public void setCreditTxnTypeIsSet(boolean value) {
25332
      if (!value) {
25333
        this.creditTxnType = null;
25334
      }
25335
    }
25336
 
25337
    public void setFieldValue(_Fields field, Object value) {
25338
      switch (field) {
25339
      case USER_ID:
25340
        if (value == null) {
25341
          unsetUserId();
25342
        } else {
25343
          setUserId((Long)value);
25344
        }
25345
        break;
25346
 
25347
      case CREDIT_TXN_TYPE:
25348
        if (value == null) {
25349
          unsetCreditTxnType();
25350
        } else {
25351
          setCreditTxnType((String)value);
25352
        }
25353
        break;
25354
 
25355
      }
25356
    }
25357
 
25358
    public Object getFieldValue(_Fields field) {
25359
      switch (field) {
25360
      case USER_ID:
25361
        return Long.valueOf(getUserId());
25362
 
25363
      case CREDIT_TXN_TYPE:
25364
        return getCreditTxnType();
25365
 
25366
      }
25367
      throw new IllegalStateException();
25368
    }
25369
 
25370
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25371
    public boolean isSet(_Fields field) {
25372
      if (field == null) {
25373
        throw new IllegalArgumentException();
25374
      }
25375
 
25376
      switch (field) {
25377
      case USER_ID:
25378
        return isSetUserId();
25379
      case CREDIT_TXN_TYPE:
25380
        return isSetCreditTxnType();
25381
      }
25382
      throw new IllegalStateException();
25383
    }
25384
 
25385
    @Override
25386
    public boolean equals(Object that) {
25387
      if (that == null)
25388
        return false;
25389
      if (that instanceof getCreditHistoryRecordsForUserAndCreditor_args)
25390
        return this.equals((getCreditHistoryRecordsForUserAndCreditor_args)that);
25391
      return false;
25392
    }
25393
 
25394
    public boolean equals(getCreditHistoryRecordsForUserAndCreditor_args that) {
25395
      if (that == null)
25396
        return false;
25397
 
25398
      boolean this_present_userId = true;
25399
      boolean that_present_userId = true;
25400
      if (this_present_userId || that_present_userId) {
25401
        if (!(this_present_userId && that_present_userId))
25402
          return false;
25403
        if (this.userId != that.userId)
25404
          return false;
25405
      }
25406
 
25407
      boolean this_present_creditTxnType = true && this.isSetCreditTxnType();
25408
      boolean that_present_creditTxnType = true && that.isSetCreditTxnType();
25409
      if (this_present_creditTxnType || that_present_creditTxnType) {
25410
        if (!(this_present_creditTxnType && that_present_creditTxnType))
25411
          return false;
25412
        if (!this.creditTxnType.equals(that.creditTxnType))
25413
          return false;
25414
      }
25415
 
25416
      return true;
25417
    }
25418
 
25419
    @Override
25420
    public int hashCode() {
25421
      return 0;
25422
    }
25423
 
25424
    public int compareTo(getCreditHistoryRecordsForUserAndCreditor_args other) {
25425
      if (!getClass().equals(other.getClass())) {
25426
        return getClass().getName().compareTo(other.getClass().getName());
25427
      }
25428
 
25429
      int lastComparison = 0;
25430
      getCreditHistoryRecordsForUserAndCreditor_args typedOther = (getCreditHistoryRecordsForUserAndCreditor_args)other;
25431
 
25432
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
25433
      if (lastComparison != 0) {
25434
        return lastComparison;
25435
      }
25436
      if (isSetUserId()) {
25437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
25438
        if (lastComparison != 0) {
25439
          return lastComparison;
25440
        }
25441
      }
25442
      lastComparison = Boolean.valueOf(isSetCreditTxnType()).compareTo(typedOther.isSetCreditTxnType());
25443
      if (lastComparison != 0) {
25444
        return lastComparison;
25445
      }
25446
      if (isSetCreditTxnType()) {
25447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditTxnType, typedOther.creditTxnType);
25448
        if (lastComparison != 0) {
25449
          return lastComparison;
25450
        }
25451
      }
25452
      return 0;
25453
    }
25454
 
25455
    public _Fields fieldForId(int fieldId) {
25456
      return _Fields.findByThriftId(fieldId);
25457
    }
25458
 
25459
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25460
      org.apache.thrift.protocol.TField field;
25461
      iprot.readStructBegin();
25462
      while (true)
25463
      {
25464
        field = iprot.readFieldBegin();
25465
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25466
          break;
25467
        }
25468
        switch (field.id) {
25469
          case 1: // USER_ID
25470
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25471
              this.userId = iprot.readI64();
25472
              setUserIdIsSet(true);
25473
            } else { 
25474
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25475
            }
25476
            break;
25477
          case 2: // CREDIT_TXN_TYPE
25478
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
25479
              this.creditTxnType = iprot.readString();
25480
            } else { 
25481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25482
            }
25483
            break;
25484
          default:
25485
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25486
        }
25487
        iprot.readFieldEnd();
25488
      }
25489
      iprot.readStructEnd();
25490
      validate();
25491
    }
25492
 
25493
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25494
      validate();
25495
 
25496
      oprot.writeStructBegin(STRUCT_DESC);
25497
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
25498
      oprot.writeI64(this.userId);
25499
      oprot.writeFieldEnd();
25500
      if (this.creditTxnType != null) {
25501
        oprot.writeFieldBegin(CREDIT_TXN_TYPE_FIELD_DESC);
25502
        oprot.writeString(this.creditTxnType);
25503
        oprot.writeFieldEnd();
25504
      }
25505
      oprot.writeFieldStop();
25506
      oprot.writeStructEnd();
25507
    }
25508
 
25509
    @Override
25510
    public String toString() {
25511
      StringBuilder sb = new StringBuilder("getCreditHistoryRecordsForUserAndCreditor_args(");
25512
      boolean first = true;
25513
 
25514
      sb.append("userId:");
25515
      sb.append(this.userId);
25516
      first = false;
25517
      if (!first) sb.append(", ");
25518
      sb.append("creditTxnType:");
25519
      if (this.creditTxnType == null) {
25520
        sb.append("null");
25521
      } else {
25522
        sb.append(this.creditTxnType);
25523
      }
25524
      first = false;
25525
      sb.append(")");
25526
      return sb.toString();
25527
    }
25528
 
25529
    public void validate() throws org.apache.thrift.TException {
25530
      // check for required fields
25531
    }
25532
 
25533
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25534
      try {
25535
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25536
      } catch (org.apache.thrift.TException te) {
25537
        throw new java.io.IOException(te);
25538
      }
25539
    }
25540
 
25541
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25542
      try {
25543
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
25544
        __isset_bit_vector = new BitSet(1);
25545
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25546
      } catch (org.apache.thrift.TException te) {
25547
        throw new java.io.IOException(te);
25548
      }
25549
    }
25550
 
25551
  }
25552
 
25553
  public static class getCreditHistoryRecordsForUserAndCreditor_result implements org.apache.thrift.TBase<getCreditHistoryRecordsForUserAndCreditor_result, getCreditHistoryRecordsForUserAndCreditor_result._Fields>, java.io.Serializable, Cloneable   {
25554
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getCreditHistoryRecordsForUserAndCreditor_result");
25555
 
25556
    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);
25557
 
25558
    private List<CreditHistory> success; // required
25559
 
25560
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25561
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25562
      SUCCESS((short)0, "success");
25563
 
25564
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25565
 
25566
      static {
25567
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25568
          byName.put(field.getFieldName(), field);
25569
        }
25570
      }
25571
 
25572
      /**
25573
       * Find the _Fields constant that matches fieldId, or null if its not found.
25574
       */
25575
      public static _Fields findByThriftId(int fieldId) {
25576
        switch(fieldId) {
25577
          case 0: // SUCCESS
25578
            return SUCCESS;
25579
          default:
25580
            return null;
25581
        }
25582
      }
25583
 
25584
      /**
25585
       * Find the _Fields constant that matches fieldId, throwing an exception
25586
       * if it is not found.
25587
       */
25588
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25589
        _Fields fields = findByThriftId(fieldId);
25590
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25591
        return fields;
25592
      }
25593
 
25594
      /**
25595
       * Find the _Fields constant that matches name, or null if its not found.
25596
       */
25597
      public static _Fields findByName(String name) {
25598
        return byName.get(name);
25599
      }
25600
 
25601
      private final short _thriftId;
25602
      private final String _fieldName;
25603
 
25604
      _Fields(short thriftId, String fieldName) {
25605
        _thriftId = thriftId;
25606
        _fieldName = fieldName;
25607
      }
25608
 
25609
      public short getThriftFieldId() {
25610
        return _thriftId;
25611
      }
25612
 
25613
      public String getFieldName() {
25614
        return _fieldName;
25615
      }
25616
    }
25617
 
25618
    // isset id assignments
25619
 
25620
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25621
    static {
25622
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25623
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25624
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25625
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
25626
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25627
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getCreditHistoryRecordsForUserAndCreditor_result.class, metaDataMap);
25628
    }
25629
 
25630
    public getCreditHistoryRecordsForUserAndCreditor_result() {
25631
    }
25632
 
25633
    public getCreditHistoryRecordsForUserAndCreditor_result(
25634
      List<CreditHistory> success)
25635
    {
25636
      this();
25637
      this.success = success;
25638
    }
25639
 
25640
    /**
25641
     * Performs a deep copy on <i>other</i>.
25642
     */
25643
    public getCreditHistoryRecordsForUserAndCreditor_result(getCreditHistoryRecordsForUserAndCreditor_result other) {
25644
      if (other.isSetSuccess()) {
25645
        List<CreditHistory> __this__success = new ArrayList<CreditHistory>();
25646
        for (CreditHistory other_element : other.success) {
25647
          __this__success.add(new CreditHistory(other_element));
25648
        }
25649
        this.success = __this__success;
25650
      }
25651
    }
25652
 
25653
    public getCreditHistoryRecordsForUserAndCreditor_result deepCopy() {
25654
      return new getCreditHistoryRecordsForUserAndCreditor_result(this);
25655
    }
25656
 
25657
    @Override
25658
    public void clear() {
25659
      this.success = null;
25660
    }
25661
 
25662
    public int getSuccessSize() {
25663
      return (this.success == null) ? 0 : this.success.size();
25664
    }
25665
 
25666
    public java.util.Iterator<CreditHistory> getSuccessIterator() {
25667
      return (this.success == null) ? null : this.success.iterator();
25668
    }
25669
 
25670
    public void addToSuccess(CreditHistory elem) {
25671
      if (this.success == null) {
25672
        this.success = new ArrayList<CreditHistory>();
25673
      }
25674
      this.success.add(elem);
25675
    }
25676
 
25677
    public List<CreditHistory> getSuccess() {
25678
      return this.success;
25679
    }
25680
 
25681
    public void setSuccess(List<CreditHistory> success) {
25682
      this.success = success;
25683
    }
25684
 
25685
    public void unsetSuccess() {
25686
      this.success = null;
25687
    }
25688
 
25689
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25690
    public boolean isSetSuccess() {
25691
      return this.success != null;
25692
    }
25693
 
25694
    public void setSuccessIsSet(boolean value) {
25695
      if (!value) {
25696
        this.success = null;
25697
      }
25698
    }
25699
 
25700
    public void setFieldValue(_Fields field, Object value) {
25701
      switch (field) {
25702
      case SUCCESS:
25703
        if (value == null) {
25704
          unsetSuccess();
25705
        } else {
25706
          setSuccess((List<CreditHistory>)value);
25707
        }
25708
        break;
25709
 
25710
      }
25711
    }
25712
 
25713
    public Object getFieldValue(_Fields field) {
25714
      switch (field) {
25715
      case SUCCESS:
25716
        return getSuccess();
25717
 
25718
      }
25719
      throw new IllegalStateException();
25720
    }
25721
 
25722
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25723
    public boolean isSet(_Fields field) {
25724
      if (field == null) {
25725
        throw new IllegalArgumentException();
25726
      }
25727
 
25728
      switch (field) {
25729
      case SUCCESS:
25730
        return isSetSuccess();
25731
      }
25732
      throw new IllegalStateException();
25733
    }
25734
 
25735
    @Override
25736
    public boolean equals(Object that) {
25737
      if (that == null)
25738
        return false;
25739
      if (that instanceof getCreditHistoryRecordsForUserAndCreditor_result)
25740
        return this.equals((getCreditHistoryRecordsForUserAndCreditor_result)that);
25741
      return false;
25742
    }
25743
 
25744
    public boolean equals(getCreditHistoryRecordsForUserAndCreditor_result that) {
25745
      if (that == null)
25746
        return false;
25747
 
25748
      boolean this_present_success = true && this.isSetSuccess();
25749
      boolean that_present_success = true && that.isSetSuccess();
25750
      if (this_present_success || that_present_success) {
25751
        if (!(this_present_success && that_present_success))
25752
          return false;
25753
        if (!this.success.equals(that.success))
25754
          return false;
25755
      }
25756
 
25757
      return true;
25758
    }
25759
 
25760
    @Override
25761
    public int hashCode() {
25762
      return 0;
25763
    }
25764
 
25765
    public int compareTo(getCreditHistoryRecordsForUserAndCreditor_result other) {
25766
      if (!getClass().equals(other.getClass())) {
25767
        return getClass().getName().compareTo(other.getClass().getName());
25768
      }
25769
 
25770
      int lastComparison = 0;
25771
      getCreditHistoryRecordsForUserAndCreditor_result typedOther = (getCreditHistoryRecordsForUserAndCreditor_result)other;
25772
 
25773
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25774
      if (lastComparison != 0) {
25775
        return lastComparison;
25776
      }
25777
      if (isSetSuccess()) {
25778
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25779
        if (lastComparison != 0) {
25780
          return lastComparison;
25781
        }
25782
      }
25783
      return 0;
25784
    }
25785
 
25786
    public _Fields fieldForId(int fieldId) {
25787
      return _Fields.findByThriftId(fieldId);
25788
    }
25789
 
25790
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25791
      org.apache.thrift.protocol.TField field;
25792
      iprot.readStructBegin();
25793
      while (true)
25794
      {
25795
        field = iprot.readFieldBegin();
25796
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25797
          break;
25798
        }
25799
        switch (field.id) {
25800
          case 0: // SUCCESS
25801
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25802
              {
25803
                org.apache.thrift.protocol.TList _list56 = iprot.readListBegin();
25804
                this.success = new ArrayList<CreditHistory>(_list56.size);
25805
                for (int _i57 = 0; _i57 < _list56.size; ++_i57)
25806
                {
25807
                  CreditHistory _elem58; // required
25808
                  _elem58 = new CreditHistory();
25809
                  _elem58.read(iprot);
25810
                  this.success.add(_elem58);
25811
                }
25812
                iprot.readListEnd();
25813
              }
25814
            } else { 
25815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25816
            }
25817
            break;
25818
          default:
25819
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25820
        }
25821
        iprot.readFieldEnd();
25822
      }
25823
      iprot.readStructEnd();
25824
      validate();
25825
    }
25826
 
25827
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25828
      oprot.writeStructBegin(STRUCT_DESC);
25829
 
25830
      if (this.isSetSuccess()) {
25831
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25832
        {
25833
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
25834
          for (CreditHistory _iter59 : this.success)
25835
          {
25836
            _iter59.write(oprot);
25837
          }
25838
          oprot.writeListEnd();
25839
        }
25840
        oprot.writeFieldEnd();
25841
      }
25842
      oprot.writeFieldStop();
25843
      oprot.writeStructEnd();
25844
    }
25845
 
25846
    @Override
25847
    public String toString() {
25848
      StringBuilder sb = new StringBuilder("getCreditHistoryRecordsForUserAndCreditor_result(");
25849
      boolean first = true;
25850
 
25851
      sb.append("success:");
25852
      if (this.success == null) {
25853
        sb.append("null");
25854
      } else {
25855
        sb.append(this.success);
25856
      }
25857
      first = false;
25858
      sb.append(")");
25859
      return sb.toString();
25860
    }
25861
 
25862
    public void validate() throws org.apache.thrift.TException {
25863
      // check for required fields
25864
    }
25865
 
25866
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25867
      try {
25868
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25869
      } catch (org.apache.thrift.TException te) {
25870
        throw new java.io.IOException(te);
25871
      }
25872
    }
25873
 
25874
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25875
      try {
25876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25877
      } catch (org.apache.thrift.TException te) {
25878
        throw new java.io.IOException(te);
25879
      }
25880
    }
25881
 
25882
  }
25883
 
25884
  public static class processCreditTransaction_args implements org.apache.thrift.TBase<processCreditTransaction_args, processCreditTransaction_args._Fields>, java.io.Serializable, Cloneable   {
25885
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processCreditTransaction_args");
25886
 
25887
    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);
25888
    private static final org.apache.thrift.protocol.TField CREDIT_TXNS_FIELD_DESC = new org.apache.thrift.protocol.TField("creditTxns", org.apache.thrift.protocol.TType.LIST, (short)2);
25889
 
25890
    private long paymentId; // required
25891
    private List<CreditHistory> creditTxns; // required
25892
 
25893
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25894
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25895
      PAYMENT_ID((short)1, "paymentId"),
25896
      CREDIT_TXNS((short)2, "creditTxns");
25897
 
25898
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25899
 
25900
      static {
25901
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25902
          byName.put(field.getFieldName(), field);
25903
        }
25904
      }
25905
 
25906
      /**
25907
       * Find the _Fields constant that matches fieldId, or null if its not found.
25908
       */
25909
      public static _Fields findByThriftId(int fieldId) {
25910
        switch(fieldId) {
25911
          case 1: // PAYMENT_ID
25912
            return PAYMENT_ID;
25913
          case 2: // CREDIT_TXNS
25914
            return CREDIT_TXNS;
25915
          default:
25916
            return null;
25917
        }
25918
      }
25919
 
25920
      /**
25921
       * Find the _Fields constant that matches fieldId, throwing an exception
25922
       * if it is not found.
25923
       */
25924
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25925
        _Fields fields = findByThriftId(fieldId);
25926
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25927
        return fields;
25928
      }
25929
 
25930
      /**
25931
       * Find the _Fields constant that matches name, or null if its not found.
25932
       */
25933
      public static _Fields findByName(String name) {
25934
        return byName.get(name);
25935
      }
25936
 
25937
      private final short _thriftId;
25938
      private final String _fieldName;
25939
 
25940
      _Fields(short thriftId, String fieldName) {
25941
        _thriftId = thriftId;
25942
        _fieldName = fieldName;
25943
      }
25944
 
25945
      public short getThriftFieldId() {
25946
        return _thriftId;
25947
      }
25948
 
25949
      public String getFieldName() {
25950
        return _fieldName;
25951
      }
25952
    }
25953
 
25954
    // isset id assignments
25955
    private static final int __PAYMENTID_ISSET_ID = 0;
25956
    private BitSet __isset_bit_vector = new BitSet(1);
25957
 
25958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25959
    static {
25960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25961
      tmpMap.put(_Fields.PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("paymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25962
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25963
      tmpMap.put(_Fields.CREDIT_TXNS, new org.apache.thrift.meta_data.FieldMetaData("creditTxns", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25964
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25965
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
25966
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25967
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processCreditTransaction_args.class, metaDataMap);
25968
    }
25969
 
25970
    public processCreditTransaction_args() {
25971
    }
25972
 
25973
    public processCreditTransaction_args(
25974
      long paymentId,
25975
      List<CreditHistory> creditTxns)
25976
    {
25977
      this();
25978
      this.paymentId = paymentId;
25979
      setPaymentIdIsSet(true);
25980
      this.creditTxns = creditTxns;
25981
    }
25982
 
25983
    /**
25984
     * Performs a deep copy on <i>other</i>.
25985
     */
25986
    public processCreditTransaction_args(processCreditTransaction_args other) {
25987
      __isset_bit_vector.clear();
25988
      __isset_bit_vector.or(other.__isset_bit_vector);
25989
      this.paymentId = other.paymentId;
25990
      if (other.isSetCreditTxns()) {
25991
        List<CreditHistory> __this__creditTxns = new ArrayList<CreditHistory>();
25992
        for (CreditHistory other_element : other.creditTxns) {
25993
          __this__creditTxns.add(new CreditHistory(other_element));
25994
        }
25995
        this.creditTxns = __this__creditTxns;
25996
      }
25997
    }
25998
 
25999
    public processCreditTransaction_args deepCopy() {
26000
      return new processCreditTransaction_args(this);
26001
    }
26002
 
26003
    @Override
26004
    public void clear() {
26005
      setPaymentIdIsSet(false);
26006
      this.paymentId = 0;
26007
      this.creditTxns = null;
26008
    }
26009
 
26010
    public long getPaymentId() {
26011
      return this.paymentId;
26012
    }
26013
 
26014
    public void setPaymentId(long paymentId) {
26015
      this.paymentId = paymentId;
26016
      setPaymentIdIsSet(true);
26017
    }
26018
 
26019
    public void unsetPaymentId() {
26020
      __isset_bit_vector.clear(__PAYMENTID_ISSET_ID);
26021
    }
26022
 
26023
    /** Returns true if field paymentId is set (has been assigned a value) and false otherwise */
26024
    public boolean isSetPaymentId() {
26025
      return __isset_bit_vector.get(__PAYMENTID_ISSET_ID);
26026
    }
26027
 
26028
    public void setPaymentIdIsSet(boolean value) {
26029
      __isset_bit_vector.set(__PAYMENTID_ISSET_ID, value);
26030
    }
26031
 
26032
    public int getCreditTxnsSize() {
26033
      return (this.creditTxns == null) ? 0 : this.creditTxns.size();
26034
    }
26035
 
26036
    public java.util.Iterator<CreditHistory> getCreditTxnsIterator() {
26037
      return (this.creditTxns == null) ? null : this.creditTxns.iterator();
26038
    }
26039
 
26040
    public void addToCreditTxns(CreditHistory elem) {
26041
      if (this.creditTxns == null) {
26042
        this.creditTxns = new ArrayList<CreditHistory>();
26043
      }
26044
      this.creditTxns.add(elem);
26045
    }
26046
 
26047
    public List<CreditHistory> getCreditTxns() {
26048
      return this.creditTxns;
26049
    }
26050
 
26051
    public void setCreditTxns(List<CreditHistory> creditTxns) {
26052
      this.creditTxns = creditTxns;
26053
    }
26054
 
26055
    public void unsetCreditTxns() {
26056
      this.creditTxns = null;
26057
    }
26058
 
26059
    /** Returns true if field creditTxns is set (has been assigned a value) and false otherwise */
26060
    public boolean isSetCreditTxns() {
26061
      return this.creditTxns != null;
26062
    }
26063
 
26064
    public void setCreditTxnsIsSet(boolean value) {
26065
      if (!value) {
26066
        this.creditTxns = null;
26067
      }
26068
    }
26069
 
26070
    public void setFieldValue(_Fields field, Object value) {
26071
      switch (field) {
26072
      case PAYMENT_ID:
26073
        if (value == null) {
26074
          unsetPaymentId();
26075
        } else {
26076
          setPaymentId((Long)value);
26077
        }
26078
        break;
26079
 
26080
      case CREDIT_TXNS:
26081
        if (value == null) {
26082
          unsetCreditTxns();
26083
        } else {
26084
          setCreditTxns((List<CreditHistory>)value);
26085
        }
26086
        break;
26087
 
26088
      }
26089
    }
26090
 
26091
    public Object getFieldValue(_Fields field) {
26092
      switch (field) {
26093
      case PAYMENT_ID:
26094
        return Long.valueOf(getPaymentId());
26095
 
26096
      case CREDIT_TXNS:
26097
        return getCreditTxns();
26098
 
26099
      }
26100
      throw new IllegalStateException();
26101
    }
26102
 
26103
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26104
    public boolean isSet(_Fields field) {
26105
      if (field == null) {
26106
        throw new IllegalArgumentException();
26107
      }
26108
 
26109
      switch (field) {
26110
      case PAYMENT_ID:
26111
        return isSetPaymentId();
26112
      case CREDIT_TXNS:
26113
        return isSetCreditTxns();
26114
      }
26115
      throw new IllegalStateException();
26116
    }
26117
 
26118
    @Override
26119
    public boolean equals(Object that) {
26120
      if (that == null)
26121
        return false;
26122
      if (that instanceof processCreditTransaction_args)
26123
        return this.equals((processCreditTransaction_args)that);
26124
      return false;
26125
    }
26126
 
26127
    public boolean equals(processCreditTransaction_args that) {
26128
      if (that == null)
26129
        return false;
26130
 
26131
      boolean this_present_paymentId = true;
26132
      boolean that_present_paymentId = true;
26133
      if (this_present_paymentId || that_present_paymentId) {
26134
        if (!(this_present_paymentId && that_present_paymentId))
26135
          return false;
26136
        if (this.paymentId != that.paymentId)
26137
          return false;
26138
      }
26139
 
26140
      boolean this_present_creditTxns = true && this.isSetCreditTxns();
26141
      boolean that_present_creditTxns = true && that.isSetCreditTxns();
26142
      if (this_present_creditTxns || that_present_creditTxns) {
26143
        if (!(this_present_creditTxns && that_present_creditTxns))
26144
          return false;
26145
        if (!this.creditTxns.equals(that.creditTxns))
26146
          return false;
26147
      }
26148
 
26149
      return true;
26150
    }
26151
 
26152
    @Override
26153
    public int hashCode() {
26154
      return 0;
26155
    }
26156
 
26157
    public int compareTo(processCreditTransaction_args other) {
26158
      if (!getClass().equals(other.getClass())) {
26159
        return getClass().getName().compareTo(other.getClass().getName());
26160
      }
26161
 
26162
      int lastComparison = 0;
26163
      processCreditTransaction_args typedOther = (processCreditTransaction_args)other;
26164
 
26165
      lastComparison = Boolean.valueOf(isSetPaymentId()).compareTo(typedOther.isSetPaymentId());
26166
      if (lastComparison != 0) {
26167
        return lastComparison;
26168
      }
26169
      if (isSetPaymentId()) {
26170
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.paymentId, typedOther.paymentId);
26171
        if (lastComparison != 0) {
26172
          return lastComparison;
26173
        }
26174
      }
26175
      lastComparison = Boolean.valueOf(isSetCreditTxns()).compareTo(typedOther.isSetCreditTxns());
26176
      if (lastComparison != 0) {
26177
        return lastComparison;
26178
      }
26179
      if (isSetCreditTxns()) {
26180
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditTxns, typedOther.creditTxns);
26181
        if (lastComparison != 0) {
26182
          return lastComparison;
26183
        }
26184
      }
26185
      return 0;
26186
    }
26187
 
26188
    public _Fields fieldForId(int fieldId) {
26189
      return _Fields.findByThriftId(fieldId);
26190
    }
26191
 
26192
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26193
      org.apache.thrift.protocol.TField field;
26194
      iprot.readStructBegin();
26195
      while (true)
26196
      {
26197
        field = iprot.readFieldBegin();
26198
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26199
          break;
26200
        }
26201
        switch (field.id) {
26202
          case 1: // PAYMENT_ID
26203
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26204
              this.paymentId = iprot.readI64();
26205
              setPaymentIdIsSet(true);
26206
            } else { 
26207
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26208
            }
26209
            break;
26210
          case 2: // CREDIT_TXNS
26211
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26212
              {
26213
                org.apache.thrift.protocol.TList _list60 = iprot.readListBegin();
26214
                this.creditTxns = new ArrayList<CreditHistory>(_list60.size);
26215
                for (int _i61 = 0; _i61 < _list60.size; ++_i61)
26216
                {
26217
                  CreditHistory _elem62; // required
26218
                  _elem62 = new CreditHistory();
26219
                  _elem62.read(iprot);
26220
                  this.creditTxns.add(_elem62);
26221
                }
26222
                iprot.readListEnd();
26223
              }
26224
            } else { 
26225
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26226
            }
26227
            break;
26228
          default:
26229
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26230
        }
26231
        iprot.readFieldEnd();
26232
      }
26233
      iprot.readStructEnd();
26234
      validate();
26235
    }
26236
 
26237
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26238
      validate();
26239
 
26240
      oprot.writeStructBegin(STRUCT_DESC);
26241
      oprot.writeFieldBegin(PAYMENT_ID_FIELD_DESC);
26242
      oprot.writeI64(this.paymentId);
26243
      oprot.writeFieldEnd();
26244
      if (this.creditTxns != null) {
26245
        oprot.writeFieldBegin(CREDIT_TXNS_FIELD_DESC);
26246
        {
26247
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.creditTxns.size()));
26248
          for (CreditHistory _iter63 : this.creditTxns)
26249
          {
26250
            _iter63.write(oprot);
26251
          }
26252
          oprot.writeListEnd();
26253
        }
26254
        oprot.writeFieldEnd();
26255
      }
26256
      oprot.writeFieldStop();
26257
      oprot.writeStructEnd();
26258
    }
26259
 
26260
    @Override
26261
    public String toString() {
26262
      StringBuilder sb = new StringBuilder("processCreditTransaction_args(");
26263
      boolean first = true;
26264
 
26265
      sb.append("paymentId:");
26266
      sb.append(this.paymentId);
26267
      first = false;
26268
      if (!first) sb.append(", ");
26269
      sb.append("creditTxns:");
26270
      if (this.creditTxns == null) {
26271
        sb.append("null");
26272
      } else {
26273
        sb.append(this.creditTxns);
26274
      }
26275
      first = false;
26276
      sb.append(")");
26277
      return sb.toString();
26278
    }
26279
 
26280
    public void validate() throws org.apache.thrift.TException {
26281
      // check for required fields
26282
    }
26283
 
26284
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26285
      try {
26286
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26287
      } catch (org.apache.thrift.TException te) {
26288
        throw new java.io.IOException(te);
26289
      }
26290
    }
26291
 
26292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26293
      try {
26294
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26295
        __isset_bit_vector = new BitSet(1);
26296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26297
      } catch (org.apache.thrift.TException te) {
26298
        throw new java.io.IOException(te);
26299
      }
26300
    }
26301
 
26302
  }
26303
 
26304
  public static class processCreditTransaction_result implements org.apache.thrift.TBase<processCreditTransaction_result, processCreditTransaction_result._Fields>, java.io.Serializable, Cloneable   {
26305
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("processCreditTransaction_result");
26306
 
26307
    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);
26308
    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);
26309
 
26310
    private boolean success; // required
26311
    private PaymentException pe; // required
26312
 
26313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26315
      SUCCESS((short)0, "success"),
26316
      PE((short)1, "pe");
26317
 
26318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26319
 
26320
      static {
26321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26322
          byName.put(field.getFieldName(), field);
26323
        }
26324
      }
26325
 
26326
      /**
26327
       * Find the _Fields constant that matches fieldId, or null if its not found.
26328
       */
26329
      public static _Fields findByThriftId(int fieldId) {
26330
        switch(fieldId) {
26331
          case 0: // SUCCESS
26332
            return SUCCESS;
26333
          case 1: // PE
26334
            return PE;
26335
          default:
26336
            return null;
26337
        }
26338
      }
26339
 
26340
      /**
26341
       * Find the _Fields constant that matches fieldId, throwing an exception
26342
       * if it is not found.
26343
       */
26344
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26345
        _Fields fields = findByThriftId(fieldId);
26346
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26347
        return fields;
26348
      }
26349
 
26350
      /**
26351
       * Find the _Fields constant that matches name, or null if its not found.
26352
       */
26353
      public static _Fields findByName(String name) {
26354
        return byName.get(name);
26355
      }
26356
 
26357
      private final short _thriftId;
26358
      private final String _fieldName;
26359
 
26360
      _Fields(short thriftId, String fieldName) {
26361
        _thriftId = thriftId;
26362
        _fieldName = fieldName;
26363
      }
26364
 
26365
      public short getThriftFieldId() {
26366
        return _thriftId;
26367
      }
26368
 
26369
      public String getFieldName() {
26370
        return _fieldName;
26371
      }
26372
    }
26373
 
26374
    // isset id assignments
26375
    private static final int __SUCCESS_ISSET_ID = 0;
26376
    private BitSet __isset_bit_vector = new BitSet(1);
26377
 
26378
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26379
    static {
26380
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26381
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26382
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
26383
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26384
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26385
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26386
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(processCreditTransaction_result.class, metaDataMap);
26387
    }
26388
 
26389
    public processCreditTransaction_result() {
26390
    }
26391
 
26392
    public processCreditTransaction_result(
26393
      boolean success,
26394
      PaymentException pe)
26395
    {
26396
      this();
26397
      this.success = success;
26398
      setSuccessIsSet(true);
26399
      this.pe = pe;
26400
    }
26401
 
26402
    /**
26403
     * Performs a deep copy on <i>other</i>.
26404
     */
26405
    public processCreditTransaction_result(processCreditTransaction_result other) {
26406
      __isset_bit_vector.clear();
26407
      __isset_bit_vector.or(other.__isset_bit_vector);
26408
      this.success = other.success;
26409
      if (other.isSetPe()) {
26410
        this.pe = new PaymentException(other.pe);
26411
      }
26412
    }
26413
 
26414
    public processCreditTransaction_result deepCopy() {
26415
      return new processCreditTransaction_result(this);
26416
    }
26417
 
26418
    @Override
26419
    public void clear() {
26420
      setSuccessIsSet(false);
26421
      this.success = false;
26422
      this.pe = null;
26423
    }
26424
 
26425
    public boolean isSuccess() {
26426
      return this.success;
26427
    }
26428
 
26429
    public void setSuccess(boolean success) {
26430
      this.success = success;
26431
      setSuccessIsSet(true);
26432
    }
26433
 
26434
    public void unsetSuccess() {
26435
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
26436
    }
26437
 
26438
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26439
    public boolean isSetSuccess() {
26440
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
26441
    }
26442
 
26443
    public void setSuccessIsSet(boolean value) {
26444
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
26445
    }
26446
 
26447
    public PaymentException getPe() {
26448
      return this.pe;
26449
    }
26450
 
26451
    public void setPe(PaymentException pe) {
26452
      this.pe = pe;
26453
    }
26454
 
26455
    public void unsetPe() {
26456
      this.pe = null;
26457
    }
26458
 
26459
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
26460
    public boolean isSetPe() {
26461
      return this.pe != null;
26462
    }
26463
 
26464
    public void setPeIsSet(boolean value) {
26465
      if (!value) {
26466
        this.pe = null;
26467
      }
26468
    }
26469
 
26470
    public void setFieldValue(_Fields field, Object value) {
26471
      switch (field) {
26472
      case SUCCESS:
26473
        if (value == null) {
26474
          unsetSuccess();
26475
        } else {
26476
          setSuccess((Boolean)value);
26477
        }
26478
        break;
26479
 
26480
      case PE:
26481
        if (value == null) {
26482
          unsetPe();
26483
        } else {
26484
          setPe((PaymentException)value);
26485
        }
26486
        break;
26487
 
26488
      }
26489
    }
26490
 
26491
    public Object getFieldValue(_Fields field) {
26492
      switch (field) {
26493
      case SUCCESS:
26494
        return Boolean.valueOf(isSuccess());
26495
 
26496
      case PE:
26497
        return getPe();
26498
 
26499
      }
26500
      throw new IllegalStateException();
26501
    }
26502
 
26503
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26504
    public boolean isSet(_Fields field) {
26505
      if (field == null) {
26506
        throw new IllegalArgumentException();
26507
      }
26508
 
26509
      switch (field) {
26510
      case SUCCESS:
26511
        return isSetSuccess();
26512
      case PE:
26513
        return isSetPe();
26514
      }
26515
      throw new IllegalStateException();
26516
    }
26517
 
26518
    @Override
26519
    public boolean equals(Object that) {
26520
      if (that == null)
26521
        return false;
26522
      if (that instanceof processCreditTransaction_result)
26523
        return this.equals((processCreditTransaction_result)that);
26524
      return false;
26525
    }
26526
 
26527
    public boolean equals(processCreditTransaction_result that) {
26528
      if (that == null)
26529
        return false;
26530
 
26531
      boolean this_present_success = true;
26532
      boolean that_present_success = true;
26533
      if (this_present_success || that_present_success) {
26534
        if (!(this_present_success && that_present_success))
26535
          return false;
26536
        if (this.success != that.success)
26537
          return false;
26538
      }
26539
 
26540
      boolean this_present_pe = true && this.isSetPe();
26541
      boolean that_present_pe = true && that.isSetPe();
26542
      if (this_present_pe || that_present_pe) {
26543
        if (!(this_present_pe && that_present_pe))
26544
          return false;
26545
        if (!this.pe.equals(that.pe))
26546
          return false;
26547
      }
26548
 
26549
      return true;
26550
    }
26551
 
26552
    @Override
26553
    public int hashCode() {
26554
      return 0;
26555
    }
26556
 
26557
    public int compareTo(processCreditTransaction_result other) {
26558
      if (!getClass().equals(other.getClass())) {
26559
        return getClass().getName().compareTo(other.getClass().getName());
26560
      }
26561
 
26562
      int lastComparison = 0;
26563
      processCreditTransaction_result typedOther = (processCreditTransaction_result)other;
26564
 
26565
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26566
      if (lastComparison != 0) {
26567
        return lastComparison;
26568
      }
26569
      if (isSetSuccess()) {
26570
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26571
        if (lastComparison != 0) {
26572
          return lastComparison;
26573
        }
26574
      }
26575
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
26576
      if (lastComparison != 0) {
26577
        return lastComparison;
26578
      }
26579
      if (isSetPe()) {
26580
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
26581
        if (lastComparison != 0) {
26582
          return lastComparison;
26583
        }
26584
      }
26585
      return 0;
26586
    }
26587
 
26588
    public _Fields fieldForId(int fieldId) {
26589
      return _Fields.findByThriftId(fieldId);
26590
    }
26591
 
26592
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26593
      org.apache.thrift.protocol.TField field;
26594
      iprot.readStructBegin();
26595
      while (true)
26596
      {
26597
        field = iprot.readFieldBegin();
26598
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26599
          break;
26600
        }
26601
        switch (field.id) {
26602
          case 0: // SUCCESS
26603
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
26604
              this.success = iprot.readBool();
26605
              setSuccessIsSet(true);
26606
            } else { 
26607
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26608
            }
26609
            break;
26610
          case 1: // PE
26611
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26612
              this.pe = new PaymentException();
26613
              this.pe.read(iprot);
26614
            } else { 
26615
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26616
            }
26617
            break;
26618
          default:
26619
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26620
        }
26621
        iprot.readFieldEnd();
26622
      }
26623
      iprot.readStructEnd();
26624
      validate();
26625
    }
26626
 
26627
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26628
      oprot.writeStructBegin(STRUCT_DESC);
26629
 
26630
      if (this.isSetSuccess()) {
26631
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26632
        oprot.writeBool(this.success);
26633
        oprot.writeFieldEnd();
26634
      } else if (this.isSetPe()) {
26635
        oprot.writeFieldBegin(PE_FIELD_DESC);
26636
        this.pe.write(oprot);
26637
        oprot.writeFieldEnd();
26638
      }
26639
      oprot.writeFieldStop();
26640
      oprot.writeStructEnd();
26641
    }
26642
 
26643
    @Override
26644
    public String toString() {
26645
      StringBuilder sb = new StringBuilder("processCreditTransaction_result(");
26646
      boolean first = true;
26647
 
26648
      sb.append("success:");
26649
      sb.append(this.success);
26650
      first = false;
26651
      if (!first) sb.append(", ");
26652
      sb.append("pe:");
26653
      if (this.pe == null) {
26654
        sb.append("null");
26655
      } else {
26656
        sb.append(this.pe);
26657
      }
26658
      first = false;
26659
      sb.append(")");
26660
      return sb.toString();
26661
    }
26662
 
26663
    public void validate() throws org.apache.thrift.TException {
26664
      // check for required fields
26665
    }
26666
 
26667
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26668
      try {
26669
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26670
      } catch (org.apache.thrift.TException te) {
26671
        throw new java.io.IOException(te);
26672
      }
26673
    }
26674
 
26675
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26676
      try {
26677
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26678
      } catch (org.apache.thrift.TException te) {
26679
        throw new java.io.IOException(te);
26680
      }
26681
    }
26682
 
26683
  }
26684
 
26685
  public static class getLoanPayableForUserToCreditor_args implements org.apache.thrift.TBase<getLoanPayableForUserToCreditor_args, getLoanPayableForUserToCreditor_args._Fields>, java.io.Serializable, Cloneable   {
26686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanPayableForUserToCreditor_args");
26687
 
26688
    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);
26689
    private static final org.apache.thrift.protocol.TField CREDITOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("creditorId", org.apache.thrift.protocol.TType.I64, (short)2);
26690
    private static final org.apache.thrift.protocol.TField DUE_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("dueDate", org.apache.thrift.protocol.TType.I64, (short)3);
26691
 
26692
    private long userId; // required
26693
    private long creditorId; // required
26694
    private long dueDate; // required
26695
 
26696
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26697
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26698
      USER_ID((short)1, "userId"),
26699
      CREDITOR_ID((short)2, "creditorId"),
26700
      DUE_DATE((short)3, "dueDate");
26701
 
26702
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26703
 
26704
      static {
26705
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26706
          byName.put(field.getFieldName(), field);
26707
        }
26708
      }
26709
 
26710
      /**
26711
       * Find the _Fields constant that matches fieldId, or null if its not found.
26712
       */
26713
      public static _Fields findByThriftId(int fieldId) {
26714
        switch(fieldId) {
26715
          case 1: // USER_ID
26716
            return USER_ID;
26717
          case 2: // CREDITOR_ID
26718
            return CREDITOR_ID;
26719
          case 3: // DUE_DATE
26720
            return DUE_DATE;
26721
          default:
26722
            return null;
26723
        }
26724
      }
26725
 
26726
      /**
26727
       * Find the _Fields constant that matches fieldId, throwing an exception
26728
       * if it is not found.
26729
       */
26730
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26731
        _Fields fields = findByThriftId(fieldId);
26732
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26733
        return fields;
26734
      }
26735
 
26736
      /**
26737
       * Find the _Fields constant that matches name, or null if its not found.
26738
       */
26739
      public static _Fields findByName(String name) {
26740
        return byName.get(name);
26741
      }
26742
 
26743
      private final short _thriftId;
26744
      private final String _fieldName;
26745
 
26746
      _Fields(short thriftId, String fieldName) {
26747
        _thriftId = thriftId;
26748
        _fieldName = fieldName;
26749
      }
26750
 
26751
      public short getThriftFieldId() {
26752
        return _thriftId;
26753
      }
26754
 
26755
      public String getFieldName() {
26756
        return _fieldName;
26757
      }
26758
    }
26759
 
26760
    // isset id assignments
26761
    private static final int __USERID_ISSET_ID = 0;
26762
    private static final int __CREDITORID_ISSET_ID = 1;
26763
    private static final int __DUEDATE_ISSET_ID = 2;
26764
    private BitSet __isset_bit_vector = new BitSet(3);
26765
 
26766
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26767
    static {
26768
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26769
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26770
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26771
      tmpMap.put(_Fields.CREDITOR_ID, new org.apache.thrift.meta_data.FieldMetaData("creditorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26772
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26773
      tmpMap.put(_Fields.DUE_DATE, new org.apache.thrift.meta_data.FieldMetaData("dueDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26774
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26775
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26776
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanPayableForUserToCreditor_args.class, metaDataMap);
26777
    }
26778
 
26779
    public getLoanPayableForUserToCreditor_args() {
26780
    }
26781
 
26782
    public getLoanPayableForUserToCreditor_args(
26783
      long userId,
26784
      long creditorId,
26785
      long dueDate)
26786
    {
26787
      this();
26788
      this.userId = userId;
26789
      setUserIdIsSet(true);
26790
      this.creditorId = creditorId;
26791
      setCreditorIdIsSet(true);
26792
      this.dueDate = dueDate;
26793
      setDueDateIsSet(true);
26794
    }
26795
 
26796
    /**
26797
     * Performs a deep copy on <i>other</i>.
26798
     */
26799
    public getLoanPayableForUserToCreditor_args(getLoanPayableForUserToCreditor_args other) {
26800
      __isset_bit_vector.clear();
26801
      __isset_bit_vector.or(other.__isset_bit_vector);
26802
      this.userId = other.userId;
26803
      this.creditorId = other.creditorId;
26804
      this.dueDate = other.dueDate;
26805
    }
26806
 
26807
    public getLoanPayableForUserToCreditor_args deepCopy() {
26808
      return new getLoanPayableForUserToCreditor_args(this);
26809
    }
26810
 
26811
    @Override
26812
    public void clear() {
26813
      setUserIdIsSet(false);
26814
      this.userId = 0;
26815
      setCreditorIdIsSet(false);
26816
      this.creditorId = 0;
26817
      setDueDateIsSet(false);
26818
      this.dueDate = 0;
26819
    }
26820
 
26821
    public long getUserId() {
26822
      return this.userId;
26823
    }
26824
 
26825
    public void setUserId(long userId) {
26826
      this.userId = userId;
26827
      setUserIdIsSet(true);
26828
    }
26829
 
26830
    public void unsetUserId() {
26831
      __isset_bit_vector.clear(__USERID_ISSET_ID);
26832
    }
26833
 
26834
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
26835
    public boolean isSetUserId() {
26836
      return __isset_bit_vector.get(__USERID_ISSET_ID);
26837
    }
26838
 
26839
    public void setUserIdIsSet(boolean value) {
26840
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
26841
    }
26842
 
26843
    public long getCreditorId() {
26844
      return this.creditorId;
26845
    }
26846
 
26847
    public void setCreditorId(long creditorId) {
26848
      this.creditorId = creditorId;
26849
      setCreditorIdIsSet(true);
26850
    }
26851
 
26852
    public void unsetCreditorId() {
26853
      __isset_bit_vector.clear(__CREDITORID_ISSET_ID);
26854
    }
26855
 
26856
    /** Returns true if field creditorId is set (has been assigned a value) and false otherwise */
26857
    public boolean isSetCreditorId() {
26858
      return __isset_bit_vector.get(__CREDITORID_ISSET_ID);
26859
    }
26860
 
26861
    public void setCreditorIdIsSet(boolean value) {
26862
      __isset_bit_vector.set(__CREDITORID_ISSET_ID, value);
26863
    }
26864
 
26865
    public long getDueDate() {
26866
      return this.dueDate;
26867
    }
26868
 
26869
    public void setDueDate(long dueDate) {
26870
      this.dueDate = dueDate;
26871
      setDueDateIsSet(true);
26872
    }
26873
 
26874
    public void unsetDueDate() {
26875
      __isset_bit_vector.clear(__DUEDATE_ISSET_ID);
26876
    }
26877
 
26878
    /** Returns true if field dueDate is set (has been assigned a value) and false otherwise */
26879
    public boolean isSetDueDate() {
26880
      return __isset_bit_vector.get(__DUEDATE_ISSET_ID);
26881
    }
26882
 
26883
    public void setDueDateIsSet(boolean value) {
26884
      __isset_bit_vector.set(__DUEDATE_ISSET_ID, value);
26885
    }
26886
 
26887
    public void setFieldValue(_Fields field, Object value) {
26888
      switch (field) {
26889
      case USER_ID:
26890
        if (value == null) {
26891
          unsetUserId();
26892
        } else {
26893
          setUserId((Long)value);
26894
        }
26895
        break;
26896
 
26897
      case CREDITOR_ID:
26898
        if (value == null) {
26899
          unsetCreditorId();
26900
        } else {
26901
          setCreditorId((Long)value);
26902
        }
26903
        break;
26904
 
26905
      case DUE_DATE:
26906
        if (value == null) {
26907
          unsetDueDate();
26908
        } else {
26909
          setDueDate((Long)value);
26910
        }
26911
        break;
26912
 
26913
      }
26914
    }
26915
 
26916
    public Object getFieldValue(_Fields field) {
26917
      switch (field) {
26918
      case USER_ID:
26919
        return Long.valueOf(getUserId());
26920
 
26921
      case CREDITOR_ID:
26922
        return Long.valueOf(getCreditorId());
26923
 
26924
      case DUE_DATE:
26925
        return Long.valueOf(getDueDate());
26926
 
26927
      }
26928
      throw new IllegalStateException();
26929
    }
26930
 
26931
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26932
    public boolean isSet(_Fields field) {
26933
      if (field == null) {
26934
        throw new IllegalArgumentException();
26935
      }
26936
 
26937
      switch (field) {
26938
      case USER_ID:
26939
        return isSetUserId();
26940
      case CREDITOR_ID:
26941
        return isSetCreditorId();
26942
      case DUE_DATE:
26943
        return isSetDueDate();
26944
      }
26945
      throw new IllegalStateException();
26946
    }
26947
 
26948
    @Override
26949
    public boolean equals(Object that) {
26950
      if (that == null)
26951
        return false;
26952
      if (that instanceof getLoanPayableForUserToCreditor_args)
26953
        return this.equals((getLoanPayableForUserToCreditor_args)that);
26954
      return false;
26955
    }
26956
 
26957
    public boolean equals(getLoanPayableForUserToCreditor_args that) {
26958
      if (that == null)
26959
        return false;
26960
 
26961
      boolean this_present_userId = true;
26962
      boolean that_present_userId = true;
26963
      if (this_present_userId || that_present_userId) {
26964
        if (!(this_present_userId && that_present_userId))
26965
          return false;
26966
        if (this.userId != that.userId)
26967
          return false;
26968
      }
26969
 
26970
      boolean this_present_creditorId = true;
26971
      boolean that_present_creditorId = true;
26972
      if (this_present_creditorId || that_present_creditorId) {
26973
        if (!(this_present_creditorId && that_present_creditorId))
26974
          return false;
26975
        if (this.creditorId != that.creditorId)
26976
          return false;
26977
      }
26978
 
26979
      boolean this_present_dueDate = true;
26980
      boolean that_present_dueDate = true;
26981
      if (this_present_dueDate || that_present_dueDate) {
26982
        if (!(this_present_dueDate && that_present_dueDate))
26983
          return false;
26984
        if (this.dueDate != that.dueDate)
26985
          return false;
26986
      }
26987
 
26988
      return true;
26989
    }
26990
 
26991
    @Override
26992
    public int hashCode() {
26993
      return 0;
26994
    }
26995
 
26996
    public int compareTo(getLoanPayableForUserToCreditor_args other) {
26997
      if (!getClass().equals(other.getClass())) {
26998
        return getClass().getName().compareTo(other.getClass().getName());
26999
      }
27000
 
27001
      int lastComparison = 0;
27002
      getLoanPayableForUserToCreditor_args typedOther = (getLoanPayableForUserToCreditor_args)other;
27003
 
27004
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
27005
      if (lastComparison != 0) {
27006
        return lastComparison;
27007
      }
27008
      if (isSetUserId()) {
27009
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
27010
        if (lastComparison != 0) {
27011
          return lastComparison;
27012
        }
27013
      }
27014
      lastComparison = Boolean.valueOf(isSetCreditorId()).compareTo(typedOther.isSetCreditorId());
27015
      if (lastComparison != 0) {
27016
        return lastComparison;
27017
      }
27018
      if (isSetCreditorId()) {
27019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditorId, typedOther.creditorId);
27020
        if (lastComparison != 0) {
27021
          return lastComparison;
27022
        }
27023
      }
27024
      lastComparison = Boolean.valueOf(isSetDueDate()).compareTo(typedOther.isSetDueDate());
27025
      if (lastComparison != 0) {
27026
        return lastComparison;
27027
      }
27028
      if (isSetDueDate()) {
27029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dueDate, typedOther.dueDate);
27030
        if (lastComparison != 0) {
27031
          return lastComparison;
27032
        }
27033
      }
27034
      return 0;
27035
    }
27036
 
27037
    public _Fields fieldForId(int fieldId) {
27038
      return _Fields.findByThriftId(fieldId);
27039
    }
27040
 
27041
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27042
      org.apache.thrift.protocol.TField field;
27043
      iprot.readStructBegin();
27044
      while (true)
27045
      {
27046
        field = iprot.readFieldBegin();
27047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27048
          break;
27049
        }
27050
        switch (field.id) {
27051
          case 1: // USER_ID
27052
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27053
              this.userId = iprot.readI64();
27054
              setUserIdIsSet(true);
27055
            } else { 
27056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27057
            }
27058
            break;
27059
          case 2: // CREDITOR_ID
27060
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27061
              this.creditorId = iprot.readI64();
27062
              setCreditorIdIsSet(true);
27063
            } else { 
27064
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27065
            }
27066
            break;
27067
          case 3: // DUE_DATE
27068
            if (field.type == org.apache.thrift.protocol.TType.I64) {
27069
              this.dueDate = iprot.readI64();
27070
              setDueDateIsSet(true);
27071
            } else { 
27072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27073
            }
27074
            break;
27075
          default:
27076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27077
        }
27078
        iprot.readFieldEnd();
27079
      }
27080
      iprot.readStructEnd();
27081
      validate();
27082
    }
27083
 
27084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27085
      validate();
27086
 
27087
      oprot.writeStructBegin(STRUCT_DESC);
27088
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
27089
      oprot.writeI64(this.userId);
27090
      oprot.writeFieldEnd();
27091
      oprot.writeFieldBegin(CREDITOR_ID_FIELD_DESC);
27092
      oprot.writeI64(this.creditorId);
27093
      oprot.writeFieldEnd();
27094
      oprot.writeFieldBegin(DUE_DATE_FIELD_DESC);
27095
      oprot.writeI64(this.dueDate);
27096
      oprot.writeFieldEnd();
27097
      oprot.writeFieldStop();
27098
      oprot.writeStructEnd();
27099
    }
27100
 
27101
    @Override
27102
    public String toString() {
27103
      StringBuilder sb = new StringBuilder("getLoanPayableForUserToCreditor_args(");
27104
      boolean first = true;
27105
 
27106
      sb.append("userId:");
27107
      sb.append(this.userId);
27108
      first = false;
27109
      if (!first) sb.append(", ");
27110
      sb.append("creditorId:");
27111
      sb.append(this.creditorId);
27112
      first = false;
27113
      if (!first) sb.append(", ");
27114
      sb.append("dueDate:");
27115
      sb.append(this.dueDate);
27116
      first = false;
27117
      sb.append(")");
27118
      return sb.toString();
27119
    }
27120
 
27121
    public void validate() throws org.apache.thrift.TException {
27122
      // check for required fields
27123
    }
27124
 
27125
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27126
      try {
27127
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27128
      } catch (org.apache.thrift.TException te) {
27129
        throw new java.io.IOException(te);
27130
      }
27131
    }
27132
 
27133
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27134
      try {
27135
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
27136
        __isset_bit_vector = new BitSet(1);
27137
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27138
      } catch (org.apache.thrift.TException te) {
27139
        throw new java.io.IOException(te);
27140
      }
27141
    }
27142
 
27143
  }
27144
 
27145
  public static class getLoanPayableForUserToCreditor_result implements org.apache.thrift.TBase<getLoanPayableForUserToCreditor_result, getLoanPayableForUserToCreditor_result._Fields>, java.io.Serializable, Cloneable   {
27146
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLoanPayableForUserToCreditor_result");
27147
 
27148
    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);
27149
 
27150
    private List<CreditHistory> success; // required
27151
 
27152
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27153
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27154
      SUCCESS((short)0, "success");
27155
 
27156
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27157
 
27158
      static {
27159
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27160
          byName.put(field.getFieldName(), field);
27161
        }
27162
      }
27163
 
27164
      /**
27165
       * Find the _Fields constant that matches fieldId, or null if its not found.
27166
       */
27167
      public static _Fields findByThriftId(int fieldId) {
27168
        switch(fieldId) {
27169
          case 0: // SUCCESS
27170
            return SUCCESS;
27171
          default:
27172
            return null;
27173
        }
27174
      }
27175
 
27176
      /**
27177
       * Find the _Fields constant that matches fieldId, throwing an exception
27178
       * if it is not found.
27179
       */
27180
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27181
        _Fields fields = findByThriftId(fieldId);
27182
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27183
        return fields;
27184
      }
27185
 
27186
      /**
27187
       * Find the _Fields constant that matches name, or null if its not found.
27188
       */
27189
      public static _Fields findByName(String name) {
27190
        return byName.get(name);
27191
      }
27192
 
27193
      private final short _thriftId;
27194
      private final String _fieldName;
27195
 
27196
      _Fields(short thriftId, String fieldName) {
27197
        _thriftId = thriftId;
27198
        _fieldName = fieldName;
27199
      }
27200
 
27201
      public short getThriftFieldId() {
27202
        return _thriftId;
27203
      }
27204
 
27205
      public String getFieldName() {
27206
        return _fieldName;
27207
      }
27208
    }
27209
 
27210
    // isset id assignments
27211
 
27212
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27213
    static {
27214
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27215
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27216
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
27217
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CreditHistory.class))));
27218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLoanPayableForUserToCreditor_result.class, metaDataMap);
27220
    }
27221
 
27222
    public getLoanPayableForUserToCreditor_result() {
27223
    }
27224
 
27225
    public getLoanPayableForUserToCreditor_result(
27226
      List<CreditHistory> success)
27227
    {
27228
      this();
27229
      this.success = success;
27230
    }
27231
 
27232
    /**
27233
     * Performs a deep copy on <i>other</i>.
27234
     */
27235
    public getLoanPayableForUserToCreditor_result(getLoanPayableForUserToCreditor_result other) {
27236
      if (other.isSetSuccess()) {
27237
        List<CreditHistory> __this__success = new ArrayList<CreditHistory>();
27238
        for (CreditHistory other_element : other.success) {
27239
          __this__success.add(new CreditHistory(other_element));
27240
        }
27241
        this.success = __this__success;
27242
      }
27243
    }
27244
 
27245
    public getLoanPayableForUserToCreditor_result deepCopy() {
27246
      return new getLoanPayableForUserToCreditor_result(this);
27247
    }
27248
 
27249
    @Override
27250
    public void clear() {
27251
      this.success = null;
27252
    }
27253
 
27254
    public int getSuccessSize() {
27255
      return (this.success == null) ? 0 : this.success.size();
27256
    }
27257
 
27258
    public java.util.Iterator<CreditHistory> getSuccessIterator() {
27259
      return (this.success == null) ? null : this.success.iterator();
27260
    }
27261
 
27262
    public void addToSuccess(CreditHistory elem) {
27263
      if (this.success == null) {
27264
        this.success = new ArrayList<CreditHistory>();
27265
      }
27266
      this.success.add(elem);
27267
    }
27268
 
27269
    public List<CreditHistory> getSuccess() {
27270
      return this.success;
27271
    }
27272
 
27273
    public void setSuccess(List<CreditHistory> success) {
27274
      this.success = success;
27275
    }
27276
 
27277
    public void unsetSuccess() {
27278
      this.success = null;
27279
    }
27280
 
27281
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
27282
    public boolean isSetSuccess() {
27283
      return this.success != null;
27284
    }
27285
 
27286
    public void setSuccessIsSet(boolean value) {
27287
      if (!value) {
27288
        this.success = null;
27289
      }
27290
    }
27291
 
27292
    public void setFieldValue(_Fields field, Object value) {
27293
      switch (field) {
27294
      case SUCCESS:
27295
        if (value == null) {
27296
          unsetSuccess();
27297
        } else {
27298
          setSuccess((List<CreditHistory>)value);
27299
        }
27300
        break;
27301
 
27302
      }
27303
    }
27304
 
27305
    public Object getFieldValue(_Fields field) {
27306
      switch (field) {
27307
      case SUCCESS:
27308
        return getSuccess();
27309
 
27310
      }
27311
      throw new IllegalStateException();
27312
    }
27313
 
27314
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27315
    public boolean isSet(_Fields field) {
27316
      if (field == null) {
27317
        throw new IllegalArgumentException();
27318
      }
27319
 
27320
      switch (field) {
27321
      case SUCCESS:
27322
        return isSetSuccess();
27323
      }
27324
      throw new IllegalStateException();
27325
    }
27326
 
27327
    @Override
27328
    public boolean equals(Object that) {
27329
      if (that == null)
27330
        return false;
27331
      if (that instanceof getLoanPayableForUserToCreditor_result)
27332
        return this.equals((getLoanPayableForUserToCreditor_result)that);
27333
      return false;
27334
    }
27335
 
27336
    public boolean equals(getLoanPayableForUserToCreditor_result that) {
27337
      if (that == null)
27338
        return false;
27339
 
27340
      boolean this_present_success = true && this.isSetSuccess();
27341
      boolean that_present_success = true && that.isSetSuccess();
27342
      if (this_present_success || that_present_success) {
27343
        if (!(this_present_success && that_present_success))
27344
          return false;
27345
        if (!this.success.equals(that.success))
27346
          return false;
27347
      }
27348
 
27349
      return true;
27350
    }
27351
 
27352
    @Override
27353
    public int hashCode() {
27354
      return 0;
27355
    }
27356
 
27357
    public int compareTo(getLoanPayableForUserToCreditor_result other) {
27358
      if (!getClass().equals(other.getClass())) {
27359
        return getClass().getName().compareTo(other.getClass().getName());
27360
      }
27361
 
27362
      int lastComparison = 0;
27363
      getLoanPayableForUserToCreditor_result typedOther = (getLoanPayableForUserToCreditor_result)other;
27364
 
27365
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
27366
      if (lastComparison != 0) {
27367
        return lastComparison;
27368
      }
27369
      if (isSetSuccess()) {
27370
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
27371
        if (lastComparison != 0) {
27372
          return lastComparison;
27373
        }
27374
      }
27375
      return 0;
27376
    }
27377
 
27378
    public _Fields fieldForId(int fieldId) {
27379
      return _Fields.findByThriftId(fieldId);
27380
    }
27381
 
27382
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27383
      org.apache.thrift.protocol.TField field;
27384
      iprot.readStructBegin();
27385
      while (true)
27386
      {
27387
        field = iprot.readFieldBegin();
27388
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27389
          break;
27390
        }
27391
        switch (field.id) {
27392
          case 0: // SUCCESS
27393
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27394
              {
27395
                org.apache.thrift.protocol.TList _list64 = iprot.readListBegin();
27396
                this.success = new ArrayList<CreditHistory>(_list64.size);
27397
                for (int _i65 = 0; _i65 < _list64.size; ++_i65)
27398
                {
27399
                  CreditHistory _elem66; // required
27400
                  _elem66 = new CreditHistory();
27401
                  _elem66.read(iprot);
27402
                  this.success.add(_elem66);
27403
                }
27404
                iprot.readListEnd();
27405
              }
27406
            } else { 
27407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27408
            }
27409
            break;
27410
          default:
27411
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27412
        }
27413
        iprot.readFieldEnd();
27414
      }
27415
      iprot.readStructEnd();
27416
      validate();
27417
    }
27418
 
27419
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27420
      oprot.writeStructBegin(STRUCT_DESC);
27421
 
27422
      if (this.isSetSuccess()) {
27423
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27424
        {
27425
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27426
          for (CreditHistory _iter67 : this.success)
27427
          {
27428
            _iter67.write(oprot);
27429
          }
27430
          oprot.writeListEnd();
27431
        }
27432
        oprot.writeFieldEnd();
27433
      }
27434
      oprot.writeFieldStop();
27435
      oprot.writeStructEnd();
27436
    }
27437
 
27438
    @Override
27439
    public String toString() {
27440
      StringBuilder sb = new StringBuilder("getLoanPayableForUserToCreditor_result(");
27441
      boolean first = true;
27442
 
27443
      sb.append("success:");
27444
      if (this.success == null) {
27445
        sb.append("null");
27446
      } else {
27447
        sb.append(this.success);
27448
      }
27449
      first = false;
27450
      sb.append(")");
27451
      return sb.toString();
27452
    }
27453
 
27454
    public void validate() throws org.apache.thrift.TException {
27455
      // check for required fields
27456
    }
27457
 
27458
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27459
      try {
27460
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27461
      } catch (org.apache.thrift.TException te) {
27462
        throw new java.io.IOException(te);
27463
      }
27464
    }
27465
 
27466
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27467
      try {
27468
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27469
      } catch (org.apache.thrift.TException te) {
27470
        throw new java.io.IOException(te);
27471
      }
27472
    }
27473
 
27474
  }
27475
 
123 ashish 27476
}