Subversion Repositories SmartDukaan

Rev

Rev 4421 | Rev 6050 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4421 Rev 4600
Line 70... Line 70...
70
     * @param id
70
     * @param id
71
     */
71
     */
72
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
72
    public PaymentGateway getPaymentGateway(long id) throws PaymentException, org.apache.thrift.TException;
73
 
73
 
74
    /**
74
    /**
-
 
75
     * Get all active Payment Gateways
-
 
76
     * 
-
 
77
     */
-
 
78
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException;
-
 
79
 
-
 
80
    /**
75
     * Get a particular payment info
81
     * Get a particular payment info
76
     * 
82
     * 
77
     * 
83
     * 
78
     * @param id
84
     * @param id
79
     */
85
     */
80
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
86
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException;
81
 
87
 
82
    /**
88
    /**
83
     * Get a particular payment for a transaction. Will raise exception.
89
     * Get payments for a transaction. Will raise exception.
84
     * 
90
     * 
85
     * 
91
     * 
86
     * @param txnId
92
     * @param txnId
87
     */
93
     */
88
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
94
    public List<Payment> getPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
89
 
95
 
90
    /**
96
    /**
-
 
97
     * Get successful payment for a transaction. Will raise exception.
-
 
98
     * 
-
 
99
     * 
-
 
100
     * @param txnId
-
 
101
     */
-
 
102
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException;
-
 
103
 
-
 
104
    /**
91
     * mark payment successful and store parameters
105
     * mark payment successful and store parameters
92
     * 
106
     * 
93
     * 
107
     * 
94
     * @param id
108
     * @param id
95
     * @param gatewayPaymentId
109
     * @param gatewayPaymentId
Line 199... Line 213...
199
 
213
 
200
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException;
214
    public void getPaymentsByCapturedDate(long fromTime, long toTime, long gatewayId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentsByCapturedDate_call> resultHandler) throws org.apache.thrift.TException;
201
 
215
 
202
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
216
    public void getPaymentGateway(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentGateway_call> resultHandler) throws org.apache.thrift.TException;
203
 
217
 
-
 
218
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException;
-
 
219
 
204
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
220
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPayment_call> resultHandler) throws org.apache.thrift.TException;
205
 
221
 
206
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
222
    public void getPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
207
 
223
 
-
 
224
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException;
-
 
225
 
208
    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;
226
    public void updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePaymentDetails_call> resultHandler) throws org.apache.thrift.TException;
209
 
227
 
210
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
228
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
211
 
229
 
212
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
230
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
Line 385... Line 403...
385
        throw result.pe;
403
        throw result.pe;
386
      }
404
      }
387
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
405
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentGateway failed: unknown result");
388
    }
406
    }
389
 
407
 
-
 
408
    public List<PaymentGateway> getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
-
 
409
    {
-
 
410
      send_getActivePaymentGateways();
-
 
411
      return recv_getActivePaymentGateways();
-
 
412
    }
-
 
413
 
-
 
414
    public void send_getActivePaymentGateways() throws org.apache.thrift.TException
-
 
415
    {
-
 
416
      getActivePaymentGateways_args args = new getActivePaymentGateways_args();
-
 
417
      sendBase("getActivePaymentGateways", args);
-
 
418
    }
-
 
419
 
-
 
420
    public List<PaymentGateway> recv_getActivePaymentGateways() throws PaymentException, org.apache.thrift.TException
-
 
421
    {
-
 
422
      getActivePaymentGateways_result result = new getActivePaymentGateways_result();
-
 
423
      receiveBase(result, "getActivePaymentGateways");
-
 
424
      if (result.isSetSuccess()) {
-
 
425
        return result.success;
-
 
426
      }
-
 
427
      if (result.pe != null) {
-
 
428
        throw result.pe;
-
 
429
      }
-
 
430
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivePaymentGateways failed: unknown result");
-
 
431
    }
-
 
432
 
390
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
433
    public Payment getPayment(long id) throws PaymentException, org.apache.thrift.TException
391
    {
434
    {
392
      send_getPayment(id);
435
      send_getPayment(id);
393
      return recv_getPayment();
436
      return recv_getPayment();
394
    }
437
    }
Line 437... Line 480...
437
        throw result.pe;
480
        throw result.pe;
438
      }
481
      }
439
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
482
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPaymentForTxnId failed: unknown result");
440
    }
483
    }
441
 
484
 
-
 
485
    public Payment getSuccessfulPaymentForTxnId(long txnId) throws PaymentException, org.apache.thrift.TException
-
 
486
    {
-
 
487
      send_getSuccessfulPaymentForTxnId(txnId);
-
 
488
      return recv_getSuccessfulPaymentForTxnId();
-
 
489
    }
-
 
490
 
-
 
491
    public void send_getSuccessfulPaymentForTxnId(long txnId) throws org.apache.thrift.TException
-
 
492
    {
-
 
493
      getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
-
 
494
      args.setTxnId(txnId);
-
 
495
      sendBase("getSuccessfulPaymentForTxnId", args);
-
 
496
    }
-
 
497
 
-
 
498
    public Payment recv_getSuccessfulPaymentForTxnId() throws PaymentException, org.apache.thrift.TException
-
 
499
    {
-
 
500
      getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
-
 
501
      receiveBase(result, "getSuccessfulPaymentForTxnId");
-
 
502
      if (result.isSetSuccess()) {
-
 
503
        return result.success;
-
 
504
      }
-
 
505
      if (result.pe != null) {
-
 
506
        throw result.pe;
-
 
507
      }
-
 
508
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentForTxnId failed: unknown result");
-
 
509
    }
-
 
510
 
442
    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
511
    public boolean updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes) throws PaymentException, org.apache.thrift.TException
443
    {
512
    {
444
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
513
      send_updatePaymentDetails(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes);
445
      return recv_updatePaymentDetails();
514
      return recv_updatePaymentDetails();
446
    }
515
    }
Line 890... Line 959...
890
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
959
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
891
        return (new Client(prot)).recv_getPaymentGateway();
960
        return (new Client(prot)).recv_getPaymentGateway();
892
      }
961
      }
893
    }
962
    }
894
 
963
 
-
 
964
    public void getActivePaymentGateways(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_call> resultHandler) throws org.apache.thrift.TException {
-
 
965
      checkReady();
-
 
966
      getActivePaymentGateways_call method_call = new getActivePaymentGateways_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
967
      this.___currentMethod = method_call;
-
 
968
      ___manager.call(method_call);
-
 
969
    }
-
 
970
 
-
 
971
    public static class getActivePaymentGateways_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
972
      public getActivePaymentGateways_call(org.apache.thrift.async.AsyncMethodCallback<getActivePaymentGateways_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
973
        super(client, protocolFactory, transport, resultHandler, false);
-
 
974
      }
-
 
975
 
-
 
976
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
977
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivePaymentGateways", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
978
        getActivePaymentGateways_args args = new getActivePaymentGateways_args();
-
 
979
        args.write(prot);
-
 
980
        prot.writeMessageEnd();
-
 
981
      }
-
 
982
 
-
 
983
      public List<PaymentGateway> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
984
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
985
          throw new IllegalStateException("Method call not finished!");
-
 
986
        }
-
 
987
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
988
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
989
        return (new Client(prot)).recv_getActivePaymentGateways();
-
 
990
      }
-
 
991
    }
-
 
992
 
895
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
993
    public void getPayment(long id, org.apache.thrift.async.AsyncMethodCallback<getPayment_call> resultHandler) throws org.apache.thrift.TException {
896
      checkReady();
994
      checkReady();
897
      getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
995
      getPayment_call method_call = new getPayment_call(id, resultHandler, this, ___protocolFactory, ___transport);
898
      this.___currentMethod = method_call;
996
      this.___currentMethod = method_call;
899
      ___manager.call(method_call);
997
      ___manager.call(method_call);
Line 954... Line 1052...
954
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1052
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
955
        return (new Client(prot)).recv_getPaymentForTxnId();
1053
        return (new Client(prot)).recv_getPaymentForTxnId();
956
      }
1054
      }
957
    }
1055
    }
958
 
1056
 
-
 
1057
    public void getSuccessfulPaymentForTxnId(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler) throws org.apache.thrift.TException {
-
 
1058
      checkReady();
-
 
1059
      getSuccessfulPaymentForTxnId_call method_call = new getSuccessfulPaymentForTxnId_call(txnId, resultHandler, this, ___protocolFactory, ___transport);
-
 
1060
      this.___currentMethod = method_call;
-
 
1061
      ___manager.call(method_call);
-
 
1062
    }
-
 
1063
 
-
 
1064
    public static class getSuccessfulPaymentForTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1065
      private long txnId;
-
 
1066
      public getSuccessfulPaymentForTxnId_call(long txnId, org.apache.thrift.async.AsyncMethodCallback<getSuccessfulPaymentForTxnId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
1067
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1068
        this.txnId = txnId;
-
 
1069
      }
-
 
1070
 
-
 
1071
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1072
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSuccessfulPaymentForTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1073
        getSuccessfulPaymentForTxnId_args args = new getSuccessfulPaymentForTxnId_args();
-
 
1074
        args.setTxnId(txnId);
-
 
1075
        args.write(prot);
-
 
1076
        prot.writeMessageEnd();
-
 
1077
      }
-
 
1078
 
-
 
1079
      public Payment getResult() throws PaymentException, org.apache.thrift.TException {
-
 
1080
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1081
          throw new IllegalStateException("Method call not finished!");
-
 
1082
        }
-
 
1083
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1084
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1085
        return (new Client(prot)).recv_getSuccessfulPaymentForTxnId();
-
 
1086
      }
-
 
1087
    }
-
 
1088
 
959
    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 {
1089
    public void updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<updatePaymentDetails_call> resultHandler) throws org.apache.thrift.TException {
960
      checkReady();
1090
      checkReady();
961
      updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
1091
      updatePaymentDetails_call method_call = new updatePaymentDetails_call(id, gatewayPaymentId, sessionId, gatewayTxnStatus, description, gatewayTxnId, authCode, referenceCode, errorCode, status, gatewayTxnDate, attributes, resultHandler, this, ___protocolFactory, ___transport);
962
      this.___currentMethod = method_call;
1092
      this.___currentMethod = method_call;
963
      ___manager.call(method_call);
1093
      ___manager.call(method_call);
Line 1311... Line 1441...
1311
      processMap.put("createPayment", new createPayment());
1441
      processMap.put("createPayment", new createPayment());
1312
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
1442
      processMap.put("getPaymentsForUser", new getPaymentsForUser());
1313
      processMap.put("getPayments", new getPayments());
1443
      processMap.put("getPayments", new getPayments());
1314
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
1444
      processMap.put("getPaymentsByCapturedDate", new getPaymentsByCapturedDate());
1315
      processMap.put("getPaymentGateway", new getPaymentGateway());
1445
      processMap.put("getPaymentGateway", new getPaymentGateway());
-
 
1446
      processMap.put("getActivePaymentGateways", new getActivePaymentGateways());
1316
      processMap.put("getPayment", new getPayment());
1447
      processMap.put("getPayment", new getPayment());
1317
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
1448
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
-
 
1449
      processMap.put("getSuccessfulPaymentForTxnId", new getSuccessfulPaymentForTxnId());
1318
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1450
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1319
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1451
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1320
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
1452
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
1321
      processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
1453
      processMap.put("initializeHdfcEmiPayment", new initializeHdfcEmiPayment());
1322
      processMap.put("createRefund", new createRefund());
1454
      processMap.put("createRefund", new createRefund());
Line 1426... Line 1558...
1426
        }
1558
        }
1427
        return result;
1559
        return result;
1428
      }
1560
      }
1429
    }
1561
    }
1430
 
1562
 
-
 
1563
    private static class getActivePaymentGateways<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivePaymentGateways_args> {
-
 
1564
      public getActivePaymentGateways() {
-
 
1565
        super("getActivePaymentGateways");
-
 
1566
      }
-
 
1567
 
-
 
1568
      protected getActivePaymentGateways_args getEmptyArgsInstance() {
-
 
1569
        return new getActivePaymentGateways_args();
-
 
1570
      }
-
 
1571
 
-
 
1572
      protected getActivePaymentGateways_result getResult(I iface, getActivePaymentGateways_args args) throws org.apache.thrift.TException {
-
 
1573
        getActivePaymentGateways_result result = new getActivePaymentGateways_result();
-
 
1574
        try {
-
 
1575
          result.success = iface.getActivePaymentGateways();
-
 
1576
        } catch (PaymentException pe) {
-
 
1577
          result.pe = pe;
-
 
1578
        }
-
 
1579
        return result;
-
 
1580
      }
-
 
1581
    }
-
 
1582
 
1431
    private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
1583
    private static class getPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPayment_args> {
1432
      public getPayment() {
1584
      public getPayment() {
1433
        super("getPayment");
1585
        super("getPayment");
1434
      }
1586
      }
1435
 
1587
 
Line 1466... Line 1618...
1466
        }
1618
        }
1467
        return result;
1619
        return result;
1468
      }
1620
      }
1469
    }
1621
    }
1470
 
1622
 
-
 
1623
    private static class getSuccessfulPaymentForTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSuccessfulPaymentForTxnId_args> {
-
 
1624
      public getSuccessfulPaymentForTxnId() {
-
 
1625
        super("getSuccessfulPaymentForTxnId");
-
 
1626
      }
-
 
1627
 
-
 
1628
      protected getSuccessfulPaymentForTxnId_args getEmptyArgsInstance() {
-
 
1629
        return new getSuccessfulPaymentForTxnId_args();
-
 
1630
      }
-
 
1631
 
-
 
1632
      protected getSuccessfulPaymentForTxnId_result getResult(I iface, getSuccessfulPaymentForTxnId_args args) throws org.apache.thrift.TException {
-
 
1633
        getSuccessfulPaymentForTxnId_result result = new getSuccessfulPaymentForTxnId_result();
-
 
1634
        try {
-
 
1635
          result.success = iface.getSuccessfulPaymentForTxnId(args.txnId);
-
 
1636
        } catch (PaymentException pe) {
-
 
1637
          result.pe = pe;
-
 
1638
        }
-
 
1639
        return result;
-
 
1640
      }
-
 
1641
    }
-
 
1642
 
1471
    private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
1643
    private static class updatePaymentDetails<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePaymentDetails_args> {
1472
      public updatePaymentDetails() {
1644
      public updatePaymentDetails() {
1473
        super("updatePaymentDetails");
1645
        super("updatePaymentDetails");
1474
      }
1646
      }
1475
 
1647
 
Line 6152... Line 6324...
6152
      }
6324
      }
6153
    }
6325
    }
6154
 
6326
 
6155
  }
6327
  }
6156
 
6328
 
-
 
6329
  public static class getActivePaymentGateways_args implements org.apache.thrift.TBase<getActivePaymentGateways_args, getActivePaymentGateways_args._Fields>, java.io.Serializable, Cloneable   {
-
 
6330
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_args");
-
 
6331
 
-
 
6332
 
-
 
6333
 
-
 
6334
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6335
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6336
;
-
 
6337
 
-
 
6338
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6339
 
-
 
6340
      static {
-
 
6341
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6342
          byName.put(field.getFieldName(), field);
-
 
6343
        }
-
 
6344
      }
-
 
6345
 
-
 
6346
      /**
-
 
6347
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6348
       */
-
 
6349
      public static _Fields findByThriftId(int fieldId) {
-
 
6350
        switch(fieldId) {
-
 
6351
          default:
-
 
6352
            return null;
-
 
6353
        }
-
 
6354
      }
-
 
6355
 
-
 
6356
      /**
-
 
6357
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6358
       * if it is not found.
-
 
6359
       */
-
 
6360
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6361
        _Fields fields = findByThriftId(fieldId);
-
 
6362
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6363
        return fields;
-
 
6364
      }
-
 
6365
 
-
 
6366
      /**
-
 
6367
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6368
       */
-
 
6369
      public static _Fields findByName(String name) {
-
 
6370
        return byName.get(name);
-
 
6371
      }
-
 
6372
 
-
 
6373
      private final short _thriftId;
-
 
6374
      private final String _fieldName;
-
 
6375
 
-
 
6376
      _Fields(short thriftId, String fieldName) {
-
 
6377
        _thriftId = thriftId;
-
 
6378
        _fieldName = fieldName;
-
 
6379
      }
-
 
6380
 
-
 
6381
      public short getThriftFieldId() {
-
 
6382
        return _thriftId;
-
 
6383
      }
-
 
6384
 
-
 
6385
      public String getFieldName() {
-
 
6386
        return _fieldName;
-
 
6387
      }
-
 
6388
    }
-
 
6389
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6390
    static {
-
 
6391
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6392
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6393
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_args.class, metaDataMap);
-
 
6394
    }
-
 
6395
 
-
 
6396
    public getActivePaymentGateways_args() {
-
 
6397
    }
-
 
6398
 
-
 
6399
    /**
-
 
6400
     * Performs a deep copy on <i>other</i>.
-
 
6401
     */
-
 
6402
    public getActivePaymentGateways_args(getActivePaymentGateways_args other) {
-
 
6403
    }
-
 
6404
 
-
 
6405
    public getActivePaymentGateways_args deepCopy() {
-
 
6406
      return new getActivePaymentGateways_args(this);
-
 
6407
    }
-
 
6408
 
-
 
6409
    @Override
-
 
6410
    public void clear() {
-
 
6411
    }
-
 
6412
 
-
 
6413
    public void setFieldValue(_Fields field, Object value) {
-
 
6414
      switch (field) {
-
 
6415
      }
-
 
6416
    }
-
 
6417
 
-
 
6418
    public Object getFieldValue(_Fields field) {
-
 
6419
      switch (field) {
-
 
6420
      }
-
 
6421
      throw new IllegalStateException();
-
 
6422
    }
-
 
6423
 
-
 
6424
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
6425
    public boolean isSet(_Fields field) {
-
 
6426
      if (field == null) {
-
 
6427
        throw new IllegalArgumentException();
-
 
6428
      }
-
 
6429
 
-
 
6430
      switch (field) {
-
 
6431
      }
-
 
6432
      throw new IllegalStateException();
-
 
6433
    }
-
 
6434
 
-
 
6435
    @Override
-
 
6436
    public boolean equals(Object that) {
-
 
6437
      if (that == null)
-
 
6438
        return false;
-
 
6439
      if (that instanceof getActivePaymentGateways_args)
-
 
6440
        return this.equals((getActivePaymentGateways_args)that);
-
 
6441
      return false;
-
 
6442
    }
-
 
6443
 
-
 
6444
    public boolean equals(getActivePaymentGateways_args that) {
-
 
6445
      if (that == null)
-
 
6446
        return false;
-
 
6447
 
-
 
6448
      return true;
-
 
6449
    }
-
 
6450
 
-
 
6451
    @Override
-
 
6452
    public int hashCode() {
-
 
6453
      return 0;
-
 
6454
    }
-
 
6455
 
-
 
6456
    public int compareTo(getActivePaymentGateways_args other) {
-
 
6457
      if (!getClass().equals(other.getClass())) {
-
 
6458
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6459
      }
-
 
6460
 
-
 
6461
      int lastComparison = 0;
-
 
6462
      getActivePaymentGateways_args typedOther = (getActivePaymentGateways_args)other;
-
 
6463
 
-
 
6464
      return 0;
-
 
6465
    }
-
 
6466
 
-
 
6467
    public _Fields fieldForId(int fieldId) {
-
 
6468
      return _Fields.findByThriftId(fieldId);
-
 
6469
    }
-
 
6470
 
-
 
6471
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
6472
      org.apache.thrift.protocol.TField field;
-
 
6473
      iprot.readStructBegin();
-
 
6474
      while (true)
-
 
6475
      {
-
 
6476
        field = iprot.readFieldBegin();
-
 
6477
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
6478
          break;
-
 
6479
        }
-
 
6480
        switch (field.id) {
-
 
6481
          default:
-
 
6482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6483
        }
-
 
6484
        iprot.readFieldEnd();
-
 
6485
      }
-
 
6486
      iprot.readStructEnd();
-
 
6487
      validate();
-
 
6488
    }
-
 
6489
 
-
 
6490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
6491
      validate();
-
 
6492
 
-
 
6493
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6494
      oprot.writeFieldStop();
-
 
6495
      oprot.writeStructEnd();
-
 
6496
    }
-
 
6497
 
-
 
6498
    @Override
-
 
6499
    public String toString() {
-
 
6500
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_args(");
-
 
6501
      boolean first = true;
-
 
6502
 
-
 
6503
      sb.append(")");
-
 
6504
      return sb.toString();
-
 
6505
    }
-
 
6506
 
-
 
6507
    public void validate() throws org.apache.thrift.TException {
-
 
6508
      // check for required fields
-
 
6509
    }
-
 
6510
 
-
 
6511
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6512
      try {
-
 
6513
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6514
      } catch (org.apache.thrift.TException te) {
-
 
6515
        throw new java.io.IOException(te);
-
 
6516
      }
-
 
6517
    }
-
 
6518
 
-
 
6519
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6520
      try {
-
 
6521
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6522
      } catch (org.apache.thrift.TException te) {
-
 
6523
        throw new java.io.IOException(te);
-
 
6524
      }
-
 
6525
    }
-
 
6526
 
-
 
6527
  }
-
 
6528
 
-
 
6529
  public static class getActivePaymentGateways_result implements org.apache.thrift.TBase<getActivePaymentGateways_result, getActivePaymentGateways_result._Fields>, java.io.Serializable, Cloneable   {
-
 
6530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivePaymentGateways_result");
-
 
6531
 
-
 
6532
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
-
 
6533
    private static final org.apache.thrift.protocol.TField PE_FIELD_DESC = new org.apache.thrift.protocol.TField("pe", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
6534
 
-
 
6535
    private List<PaymentGateway> success; // required
-
 
6536
    private PaymentException pe; // required
-
 
6537
 
-
 
6538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
6539
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
6540
      SUCCESS((short)0, "success"),
-
 
6541
      PE((short)1, "pe");
-
 
6542
 
-
 
6543
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
6544
 
-
 
6545
      static {
-
 
6546
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
6547
          byName.put(field.getFieldName(), field);
-
 
6548
        }
-
 
6549
      }
-
 
6550
 
-
 
6551
      /**
-
 
6552
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
6553
       */
-
 
6554
      public static _Fields findByThriftId(int fieldId) {
-
 
6555
        switch(fieldId) {
-
 
6556
          case 0: // SUCCESS
-
 
6557
            return SUCCESS;
-
 
6558
          case 1: // PE
-
 
6559
            return PE;
-
 
6560
          default:
-
 
6561
            return null;
-
 
6562
        }
-
 
6563
      }
-
 
6564
 
-
 
6565
      /**
-
 
6566
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
6567
       * if it is not found.
-
 
6568
       */
-
 
6569
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
6570
        _Fields fields = findByThriftId(fieldId);
-
 
6571
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
6572
        return fields;
-
 
6573
      }
-
 
6574
 
-
 
6575
      /**
-
 
6576
       * Find the _Fields constant that matches name, or null if its not found.
-
 
6577
       */
-
 
6578
      public static _Fields findByName(String name) {
-
 
6579
        return byName.get(name);
-
 
6580
      }
-
 
6581
 
-
 
6582
      private final short _thriftId;
-
 
6583
      private final String _fieldName;
-
 
6584
 
-
 
6585
      _Fields(short thriftId, String fieldName) {
-
 
6586
        _thriftId = thriftId;
-
 
6587
        _fieldName = fieldName;
-
 
6588
      }
-
 
6589
 
-
 
6590
      public short getThriftFieldId() {
-
 
6591
        return _thriftId;
-
 
6592
      }
-
 
6593
 
-
 
6594
      public String getFieldName() {
-
 
6595
        return _fieldName;
-
 
6596
      }
-
 
6597
    }
-
 
6598
 
-
 
6599
    // isset id assignments
-
 
6600
 
-
 
6601
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
6602
    static {
-
 
6603
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6604
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6605
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
6606
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PaymentGateway.class))));
-
 
6607
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6608
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
6609
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
6610
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivePaymentGateways_result.class, metaDataMap);
-
 
6611
    }
-
 
6612
 
-
 
6613
    public getActivePaymentGateways_result() {
-
 
6614
    }
-
 
6615
 
-
 
6616
    public getActivePaymentGateways_result(
-
 
6617
      List<PaymentGateway> success,
-
 
6618
      PaymentException pe)
-
 
6619
    {
-
 
6620
      this();
-
 
6621
      this.success = success;
-
 
6622
      this.pe = pe;
-
 
6623
    }
-
 
6624
 
-
 
6625
    /**
-
 
6626
     * Performs a deep copy on <i>other</i>.
-
 
6627
     */
-
 
6628
    public getActivePaymentGateways_result(getActivePaymentGateways_result other) {
-
 
6629
      if (other.isSetSuccess()) {
-
 
6630
        List<PaymentGateway> __this__success = new ArrayList<PaymentGateway>();
-
 
6631
        for (PaymentGateway other_element : other.success) {
-
 
6632
          __this__success.add(new PaymentGateway(other_element));
-
 
6633
        }
-
 
6634
        this.success = __this__success;
-
 
6635
      }
-
 
6636
      if (other.isSetPe()) {
-
 
6637
        this.pe = new PaymentException(other.pe);
-
 
6638
      }
-
 
6639
    }
-
 
6640
 
-
 
6641
    public getActivePaymentGateways_result deepCopy() {
-
 
6642
      return new getActivePaymentGateways_result(this);
-
 
6643
    }
-
 
6644
 
-
 
6645
    @Override
-
 
6646
    public void clear() {
-
 
6647
      this.success = null;
-
 
6648
      this.pe = null;
-
 
6649
    }
-
 
6650
 
-
 
6651
    public int getSuccessSize() {
-
 
6652
      return (this.success == null) ? 0 : this.success.size();
-
 
6653
    }
-
 
6654
 
-
 
6655
    public java.util.Iterator<PaymentGateway> getSuccessIterator() {
-
 
6656
      return (this.success == null) ? null : this.success.iterator();
-
 
6657
    }
-
 
6658
 
-
 
6659
    public void addToSuccess(PaymentGateway elem) {
-
 
6660
      if (this.success == null) {
-
 
6661
        this.success = new ArrayList<PaymentGateway>();
-
 
6662
      }
-
 
6663
      this.success.add(elem);
-
 
6664
    }
-
 
6665
 
-
 
6666
    public List<PaymentGateway> getSuccess() {
-
 
6667
      return this.success;
-
 
6668
    }
-
 
6669
 
-
 
6670
    public void setSuccess(List<PaymentGateway> success) {
-
 
6671
      this.success = success;
-
 
6672
    }
-
 
6673
 
-
 
6674
    public void unsetSuccess() {
-
 
6675
      this.success = null;
-
 
6676
    }
-
 
6677
 
-
 
6678
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
6679
    public boolean isSetSuccess() {
-
 
6680
      return this.success != null;
-
 
6681
    }
-
 
6682
 
-
 
6683
    public void setSuccessIsSet(boolean value) {
-
 
6684
      if (!value) {
-
 
6685
        this.success = null;
-
 
6686
      }
-
 
6687
    }
-
 
6688
 
-
 
6689
    public PaymentException getPe() {
-
 
6690
      return this.pe;
-
 
6691
    }
-
 
6692
 
-
 
6693
    public void setPe(PaymentException pe) {
-
 
6694
      this.pe = pe;
-
 
6695
    }
-
 
6696
 
-
 
6697
    public void unsetPe() {
-
 
6698
      this.pe = null;
-
 
6699
    }
-
 
6700
 
-
 
6701
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
-
 
6702
    public boolean isSetPe() {
-
 
6703
      return this.pe != null;
-
 
6704
    }
-
 
6705
 
-
 
6706
    public void setPeIsSet(boolean value) {
-
 
6707
      if (!value) {
-
 
6708
        this.pe = null;
-
 
6709
      }
-
 
6710
    }
-
 
6711
 
-
 
6712
    public void setFieldValue(_Fields field, Object value) {
-
 
6713
      switch (field) {
-
 
6714
      case SUCCESS:
-
 
6715
        if (value == null) {
-
 
6716
          unsetSuccess();
-
 
6717
        } else {
-
 
6718
          setSuccess((List<PaymentGateway>)value);
-
 
6719
        }
-
 
6720
        break;
-
 
6721
 
-
 
6722
      case PE:
-
 
6723
        if (value == null) {
-
 
6724
          unsetPe();
-
 
6725
        } else {
-
 
6726
          setPe((PaymentException)value);
-
 
6727
        }
-
 
6728
        break;
-
 
6729
 
-
 
6730
      }
-
 
6731
    }
-
 
6732
 
-
 
6733
    public Object getFieldValue(_Fields field) {
-
 
6734
      switch (field) {
-
 
6735
      case SUCCESS:
-
 
6736
        return getSuccess();
-
 
6737
 
-
 
6738
      case PE:
-
 
6739
        return getPe();
-
 
6740
 
-
 
6741
      }
-
 
6742
      throw new IllegalStateException();
-
 
6743
    }
-
 
6744
 
-
 
6745
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
6746
    public boolean isSet(_Fields field) {
-
 
6747
      if (field == null) {
-
 
6748
        throw new IllegalArgumentException();
-
 
6749
      }
-
 
6750
 
-
 
6751
      switch (field) {
-
 
6752
      case SUCCESS:
-
 
6753
        return isSetSuccess();
-
 
6754
      case PE:
-
 
6755
        return isSetPe();
-
 
6756
      }
-
 
6757
      throw new IllegalStateException();
-
 
6758
    }
-
 
6759
 
-
 
6760
    @Override
-
 
6761
    public boolean equals(Object that) {
-
 
6762
      if (that == null)
-
 
6763
        return false;
-
 
6764
      if (that instanceof getActivePaymentGateways_result)
-
 
6765
        return this.equals((getActivePaymentGateways_result)that);
-
 
6766
      return false;
-
 
6767
    }
-
 
6768
 
-
 
6769
    public boolean equals(getActivePaymentGateways_result that) {
-
 
6770
      if (that == null)
-
 
6771
        return false;
-
 
6772
 
-
 
6773
      boolean this_present_success = true && this.isSetSuccess();
-
 
6774
      boolean that_present_success = true && that.isSetSuccess();
-
 
6775
      if (this_present_success || that_present_success) {
-
 
6776
        if (!(this_present_success && that_present_success))
-
 
6777
          return false;
-
 
6778
        if (!this.success.equals(that.success))
-
 
6779
          return false;
-
 
6780
      }
-
 
6781
 
-
 
6782
      boolean this_present_pe = true && this.isSetPe();
-
 
6783
      boolean that_present_pe = true && that.isSetPe();
-
 
6784
      if (this_present_pe || that_present_pe) {
-
 
6785
        if (!(this_present_pe && that_present_pe))
-
 
6786
          return false;
-
 
6787
        if (!this.pe.equals(that.pe))
-
 
6788
          return false;
-
 
6789
      }
-
 
6790
 
-
 
6791
      return true;
-
 
6792
    }
-
 
6793
 
-
 
6794
    @Override
-
 
6795
    public int hashCode() {
-
 
6796
      return 0;
-
 
6797
    }
-
 
6798
 
-
 
6799
    public int compareTo(getActivePaymentGateways_result other) {
-
 
6800
      if (!getClass().equals(other.getClass())) {
-
 
6801
        return getClass().getName().compareTo(other.getClass().getName());
-
 
6802
      }
-
 
6803
 
-
 
6804
      int lastComparison = 0;
-
 
6805
      getActivePaymentGateways_result typedOther = (getActivePaymentGateways_result)other;
-
 
6806
 
-
 
6807
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
6808
      if (lastComparison != 0) {
-
 
6809
        return lastComparison;
-
 
6810
      }
-
 
6811
      if (isSetSuccess()) {
-
 
6812
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
6813
        if (lastComparison != 0) {
-
 
6814
          return lastComparison;
-
 
6815
        }
-
 
6816
      }
-
 
6817
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
6818
      if (lastComparison != 0) {
-
 
6819
        return lastComparison;
-
 
6820
      }
-
 
6821
      if (isSetPe()) {
-
 
6822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
6823
        if (lastComparison != 0) {
-
 
6824
          return lastComparison;
-
 
6825
        }
-
 
6826
      }
-
 
6827
      return 0;
-
 
6828
    }
-
 
6829
 
-
 
6830
    public _Fields fieldForId(int fieldId) {
-
 
6831
      return _Fields.findByThriftId(fieldId);
-
 
6832
    }
-
 
6833
 
-
 
6834
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
6835
      org.apache.thrift.protocol.TField field;
-
 
6836
      iprot.readStructBegin();
-
 
6837
      while (true)
-
 
6838
      {
-
 
6839
        field = iprot.readFieldBegin();
-
 
6840
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
6841
          break;
-
 
6842
        }
-
 
6843
        switch (field.id) {
-
 
6844
          case 0: // SUCCESS
-
 
6845
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
6846
              {
-
 
6847
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
-
 
6848
                this.success = new ArrayList<PaymentGateway>(_list24.size);
-
 
6849
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
6850
                {
-
 
6851
                  PaymentGateway _elem26; // required
-
 
6852
                  _elem26 = new PaymentGateway();
-
 
6853
                  _elem26.read(iprot);
-
 
6854
                  this.success.add(_elem26);
-
 
6855
                }
-
 
6856
                iprot.readListEnd();
-
 
6857
              }
-
 
6858
            } else { 
-
 
6859
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6860
            }
-
 
6861
            break;
-
 
6862
          case 1: // PE
-
 
6863
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
6864
              this.pe = new PaymentException();
-
 
6865
              this.pe.read(iprot);
-
 
6866
            } else { 
-
 
6867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6868
            }
-
 
6869
            break;
-
 
6870
          default:
-
 
6871
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
6872
        }
-
 
6873
        iprot.readFieldEnd();
-
 
6874
      }
-
 
6875
      iprot.readStructEnd();
-
 
6876
      validate();
-
 
6877
    }
-
 
6878
 
-
 
6879
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
6880
      oprot.writeStructBegin(STRUCT_DESC);
-
 
6881
 
-
 
6882
      if (this.isSetSuccess()) {
-
 
6883
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
6884
        {
-
 
6885
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
-
 
6886
          for (PaymentGateway _iter27 : this.success)
-
 
6887
          {
-
 
6888
            _iter27.write(oprot);
-
 
6889
          }
-
 
6890
          oprot.writeListEnd();
-
 
6891
        }
-
 
6892
        oprot.writeFieldEnd();
-
 
6893
      } else if (this.isSetPe()) {
-
 
6894
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
6895
        this.pe.write(oprot);
-
 
6896
        oprot.writeFieldEnd();
-
 
6897
      }
-
 
6898
      oprot.writeFieldStop();
-
 
6899
      oprot.writeStructEnd();
-
 
6900
    }
-
 
6901
 
-
 
6902
    @Override
-
 
6903
    public String toString() {
-
 
6904
      StringBuilder sb = new StringBuilder("getActivePaymentGateways_result(");
-
 
6905
      boolean first = true;
-
 
6906
 
-
 
6907
      sb.append("success:");
-
 
6908
      if (this.success == null) {
-
 
6909
        sb.append("null");
-
 
6910
      } else {
-
 
6911
        sb.append(this.success);
-
 
6912
      }
-
 
6913
      first = false;
-
 
6914
      if (!first) sb.append(", ");
-
 
6915
      sb.append("pe:");
-
 
6916
      if (this.pe == null) {
-
 
6917
        sb.append("null");
-
 
6918
      } else {
-
 
6919
        sb.append(this.pe);
-
 
6920
      }
-
 
6921
      first = false;
-
 
6922
      sb.append(")");
-
 
6923
      return sb.toString();
-
 
6924
    }
-
 
6925
 
-
 
6926
    public void validate() throws org.apache.thrift.TException {
-
 
6927
      // check for required fields
-
 
6928
    }
-
 
6929
 
-
 
6930
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6931
      try {
-
 
6932
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6933
      } catch (org.apache.thrift.TException te) {
-
 
6934
        throw new java.io.IOException(te);
-
 
6935
      }
-
 
6936
    }
-
 
6937
 
-
 
6938
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6939
      try {
-
 
6940
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6941
      } catch (org.apache.thrift.TException te) {
-
 
6942
        throw new java.io.IOException(te);
-
 
6943
      }
-
 
6944
    }
-
 
6945
 
-
 
6946
  }
-
 
6947
 
6157
  public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable   {
6948
  public static class getPayment_args implements org.apache.thrift.TBase<getPayment_args, getPayment_args._Fields>, java.io.Serializable, Cloneable   {
6158
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
6949
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPayment_args");
6159
 
6950
 
6160
    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);
6951
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
6161
 
6952
 
Line 7440... Line 8231...
7440
        }
8231
        }
7441
        switch (field.id) {
8232
        switch (field.id) {
7442
          case 0: // SUCCESS
8233
          case 0: // SUCCESS
7443
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8234
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7444
              {
8235
              {
7445
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
8236
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
7446
                this.success = new ArrayList<Payment>(_list24.size);
8237
                this.success = new ArrayList<Payment>(_list28.size);
7447
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
8238
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7448
                {
8239
                {
7449
                  Payment _elem26; // required
8240
                  Payment _elem30; // required
7450
                  _elem26 = new Payment();
8241
                  _elem30 = new Payment();
7451
                  _elem26.read(iprot);
8242
                  _elem30.read(iprot);
7452
                  this.success.add(_elem26);
8243
                  this.success.add(_elem30);
7453
                }
8244
                }
7454
                iprot.readListEnd();
8245
                iprot.readListEnd();
7455
              }
8246
              }
7456
            } else { 
8247
            } else { 
7457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 7479... Line 8270...
7479
 
8270
 
7480
      if (this.isSetSuccess()) {
8271
      if (this.isSetSuccess()) {
7481
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8272
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7482
        {
8273
        {
7483
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
8274
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7484
          for (Payment _iter27 : this.success)
8275
          for (Payment _iter31 : this.success)
7485
          {
8276
          {
7486
            _iter27.write(oprot);
8277
            _iter31.write(oprot);
7487
          }
8278
          }
7488
          oprot.writeListEnd();
8279
          oprot.writeListEnd();
7489
        }
8280
        }
7490
        oprot.writeFieldEnd();
8281
        oprot.writeFieldEnd();
7491
      } else if (this.isSetPe()) {
8282
      } else if (this.isSetPe()) {
Line 7541... Line 8332...
7541
      }
8332
      }
7542
    }
8333
    }
7543
 
8334
 
7544
  }
8335
  }
7545
 
8336
 
-
 
8337
  public static class getSuccessfulPaymentForTxnId_args implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_args, getSuccessfulPaymentForTxnId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
8338
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_args");
-
 
8339
 
-
 
8340
    private static final org.apache.thrift.protocol.TField TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("txnId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
8341
 
-
 
8342
    private long txnId; // required
-
 
8343
 
-
 
8344
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8345
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8346
      TXN_ID((short)1, "txnId");
-
 
8347
 
-
 
8348
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8349
 
-
 
8350
      static {
-
 
8351
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8352
          byName.put(field.getFieldName(), field);
-
 
8353
        }
-
 
8354
      }
-
 
8355
 
-
 
8356
      /**
-
 
8357
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8358
       */
-
 
8359
      public static _Fields findByThriftId(int fieldId) {
-
 
8360
        switch(fieldId) {
-
 
8361
          case 1: // TXN_ID
-
 
8362
            return TXN_ID;
-
 
8363
          default:
-
 
8364
            return null;
-
 
8365
        }
-
 
8366
      }
-
 
8367
 
-
 
8368
      /**
-
 
8369
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8370
       * if it is not found.
-
 
8371
       */
-
 
8372
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8373
        _Fields fields = findByThriftId(fieldId);
-
 
8374
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8375
        return fields;
-
 
8376
      }
-
 
8377
 
-
 
8378
      /**
-
 
8379
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8380
       */
-
 
8381
      public static _Fields findByName(String name) {
-
 
8382
        return byName.get(name);
-
 
8383
      }
-
 
8384
 
-
 
8385
      private final short _thriftId;
-
 
8386
      private final String _fieldName;
-
 
8387
 
-
 
8388
      _Fields(short thriftId, String fieldName) {
-
 
8389
        _thriftId = thriftId;
-
 
8390
        _fieldName = fieldName;
-
 
8391
      }
-
 
8392
 
-
 
8393
      public short getThriftFieldId() {
-
 
8394
        return _thriftId;
-
 
8395
      }
-
 
8396
 
-
 
8397
      public String getFieldName() {
-
 
8398
        return _fieldName;
-
 
8399
      }
-
 
8400
    }
-
 
8401
 
-
 
8402
    // isset id assignments
-
 
8403
    private static final int __TXNID_ISSET_ID = 0;
-
 
8404
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
8405
 
-
 
8406
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8407
    static {
-
 
8408
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8409
      tmpMap.put(_Fields.TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("txnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8411
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8412
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_args.class, metaDataMap);
-
 
8413
    }
-
 
8414
 
-
 
8415
    public getSuccessfulPaymentForTxnId_args() {
-
 
8416
    }
-
 
8417
 
-
 
8418
    public getSuccessfulPaymentForTxnId_args(
-
 
8419
      long txnId)
-
 
8420
    {
-
 
8421
      this();
-
 
8422
      this.txnId = txnId;
-
 
8423
      setTxnIdIsSet(true);
-
 
8424
    }
-
 
8425
 
-
 
8426
    /**
-
 
8427
     * Performs a deep copy on <i>other</i>.
-
 
8428
     */
-
 
8429
    public getSuccessfulPaymentForTxnId_args(getSuccessfulPaymentForTxnId_args other) {
-
 
8430
      __isset_bit_vector.clear();
-
 
8431
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8432
      this.txnId = other.txnId;
-
 
8433
    }
-
 
8434
 
-
 
8435
    public getSuccessfulPaymentForTxnId_args deepCopy() {
-
 
8436
      return new getSuccessfulPaymentForTxnId_args(this);
-
 
8437
    }
-
 
8438
 
-
 
8439
    @Override
-
 
8440
    public void clear() {
-
 
8441
      setTxnIdIsSet(false);
-
 
8442
      this.txnId = 0;
-
 
8443
    }
-
 
8444
 
-
 
8445
    public long getTxnId() {
-
 
8446
      return this.txnId;
-
 
8447
    }
-
 
8448
 
-
 
8449
    public void setTxnId(long txnId) {
-
 
8450
      this.txnId = txnId;
-
 
8451
      setTxnIdIsSet(true);
-
 
8452
    }
-
 
8453
 
-
 
8454
    public void unsetTxnId() {
-
 
8455
      __isset_bit_vector.clear(__TXNID_ISSET_ID);
-
 
8456
    }
-
 
8457
 
-
 
8458
    /** Returns true if field txnId is set (has been assigned a value) and false otherwise */
-
 
8459
    public boolean isSetTxnId() {
-
 
8460
      return __isset_bit_vector.get(__TXNID_ISSET_ID);
-
 
8461
    }
-
 
8462
 
-
 
8463
    public void setTxnIdIsSet(boolean value) {
-
 
8464
      __isset_bit_vector.set(__TXNID_ISSET_ID, value);
-
 
8465
    }
-
 
8466
 
-
 
8467
    public void setFieldValue(_Fields field, Object value) {
-
 
8468
      switch (field) {
-
 
8469
      case TXN_ID:
-
 
8470
        if (value == null) {
-
 
8471
          unsetTxnId();
-
 
8472
        } else {
-
 
8473
          setTxnId((Long)value);
-
 
8474
        }
-
 
8475
        break;
-
 
8476
 
-
 
8477
      }
-
 
8478
    }
-
 
8479
 
-
 
8480
    public Object getFieldValue(_Fields field) {
-
 
8481
      switch (field) {
-
 
8482
      case TXN_ID:
-
 
8483
        return Long.valueOf(getTxnId());
-
 
8484
 
-
 
8485
      }
-
 
8486
      throw new IllegalStateException();
-
 
8487
    }
-
 
8488
 
-
 
8489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8490
    public boolean isSet(_Fields field) {
-
 
8491
      if (field == null) {
-
 
8492
        throw new IllegalArgumentException();
-
 
8493
      }
-
 
8494
 
-
 
8495
      switch (field) {
-
 
8496
      case TXN_ID:
-
 
8497
        return isSetTxnId();
-
 
8498
      }
-
 
8499
      throw new IllegalStateException();
-
 
8500
    }
-
 
8501
 
-
 
8502
    @Override
-
 
8503
    public boolean equals(Object that) {
-
 
8504
      if (that == null)
-
 
8505
        return false;
-
 
8506
      if (that instanceof getSuccessfulPaymentForTxnId_args)
-
 
8507
        return this.equals((getSuccessfulPaymentForTxnId_args)that);
-
 
8508
      return false;
-
 
8509
    }
-
 
8510
 
-
 
8511
    public boolean equals(getSuccessfulPaymentForTxnId_args that) {
-
 
8512
      if (that == null)
-
 
8513
        return false;
-
 
8514
 
-
 
8515
      boolean this_present_txnId = true;
-
 
8516
      boolean that_present_txnId = true;
-
 
8517
      if (this_present_txnId || that_present_txnId) {
-
 
8518
        if (!(this_present_txnId && that_present_txnId))
-
 
8519
          return false;
-
 
8520
        if (this.txnId != that.txnId)
-
 
8521
          return false;
-
 
8522
      }
-
 
8523
 
-
 
8524
      return true;
-
 
8525
    }
-
 
8526
 
-
 
8527
    @Override
-
 
8528
    public int hashCode() {
-
 
8529
      return 0;
-
 
8530
    }
-
 
8531
 
-
 
8532
    public int compareTo(getSuccessfulPaymentForTxnId_args other) {
-
 
8533
      if (!getClass().equals(other.getClass())) {
-
 
8534
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8535
      }
-
 
8536
 
-
 
8537
      int lastComparison = 0;
-
 
8538
      getSuccessfulPaymentForTxnId_args typedOther = (getSuccessfulPaymentForTxnId_args)other;
-
 
8539
 
-
 
8540
      lastComparison = Boolean.valueOf(isSetTxnId()).compareTo(typedOther.isSetTxnId());
-
 
8541
      if (lastComparison != 0) {
-
 
8542
        return lastComparison;
-
 
8543
      }
-
 
8544
      if (isSetTxnId()) {
-
 
8545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.txnId, typedOther.txnId);
-
 
8546
        if (lastComparison != 0) {
-
 
8547
          return lastComparison;
-
 
8548
        }
-
 
8549
      }
-
 
8550
      return 0;
-
 
8551
    }
-
 
8552
 
-
 
8553
    public _Fields fieldForId(int fieldId) {
-
 
8554
      return _Fields.findByThriftId(fieldId);
-
 
8555
    }
-
 
8556
 
-
 
8557
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8558
      org.apache.thrift.protocol.TField field;
-
 
8559
      iprot.readStructBegin();
-
 
8560
      while (true)
-
 
8561
      {
-
 
8562
        field = iprot.readFieldBegin();
-
 
8563
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8564
          break;
-
 
8565
        }
-
 
8566
        switch (field.id) {
-
 
8567
          case 1: // TXN_ID
-
 
8568
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8569
              this.txnId = iprot.readI64();
-
 
8570
              setTxnIdIsSet(true);
-
 
8571
            } else { 
-
 
8572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8573
            }
-
 
8574
            break;
-
 
8575
          default:
-
 
8576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8577
        }
-
 
8578
        iprot.readFieldEnd();
-
 
8579
      }
-
 
8580
      iprot.readStructEnd();
-
 
8581
      validate();
-
 
8582
    }
-
 
8583
 
-
 
8584
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8585
      validate();
-
 
8586
 
-
 
8587
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8588
      oprot.writeFieldBegin(TXN_ID_FIELD_DESC);
-
 
8589
      oprot.writeI64(this.txnId);
-
 
8590
      oprot.writeFieldEnd();
-
 
8591
      oprot.writeFieldStop();
-
 
8592
      oprot.writeStructEnd();
-
 
8593
    }
-
 
8594
 
-
 
8595
    @Override
-
 
8596
    public String toString() {
-
 
8597
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_args(");
-
 
8598
      boolean first = true;
-
 
8599
 
-
 
8600
      sb.append("txnId:");
-
 
8601
      sb.append(this.txnId);
-
 
8602
      first = false;
-
 
8603
      sb.append(")");
-
 
8604
      return sb.toString();
-
 
8605
    }
-
 
8606
 
-
 
8607
    public void validate() throws org.apache.thrift.TException {
-
 
8608
      // check for required fields
-
 
8609
    }
-
 
8610
 
-
 
8611
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8612
      try {
-
 
8613
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8614
      } catch (org.apache.thrift.TException te) {
-
 
8615
        throw new java.io.IOException(te);
-
 
8616
      }
-
 
8617
    }
-
 
8618
 
-
 
8619
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8620
      try {
-
 
8621
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8622
        __isset_bit_vector = new BitSet(1);
-
 
8623
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8624
      } catch (org.apache.thrift.TException te) {
-
 
8625
        throw new java.io.IOException(te);
-
 
8626
      }
-
 
8627
    }
-
 
8628
 
-
 
8629
  }
-
 
8630
 
-
 
8631
  public static class getSuccessfulPaymentForTxnId_result implements org.apache.thrift.TBase<getSuccessfulPaymentForTxnId_result, getSuccessfulPaymentForTxnId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
8632
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSuccessfulPaymentForTxnId_result");
-
 
8633
 
-
 
8634
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
-
 
8635
    private static final org.apache.thrift.protocol.TField PE_FIELD_DESC = new org.apache.thrift.protocol.TField("pe", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
8636
 
-
 
8637
    private Payment success; // required
-
 
8638
    private PaymentException pe; // required
-
 
8639
 
-
 
8640
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8641
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8642
      SUCCESS((short)0, "success"),
-
 
8643
      PE((short)1, "pe");
-
 
8644
 
-
 
8645
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8646
 
-
 
8647
      static {
-
 
8648
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8649
          byName.put(field.getFieldName(), field);
-
 
8650
        }
-
 
8651
      }
-
 
8652
 
-
 
8653
      /**
-
 
8654
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8655
       */
-
 
8656
      public static _Fields findByThriftId(int fieldId) {
-
 
8657
        switch(fieldId) {
-
 
8658
          case 0: // SUCCESS
-
 
8659
            return SUCCESS;
-
 
8660
          case 1: // PE
-
 
8661
            return PE;
-
 
8662
          default:
-
 
8663
            return null;
-
 
8664
        }
-
 
8665
      }
-
 
8666
 
-
 
8667
      /**
-
 
8668
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8669
       * if it is not found.
-
 
8670
       */
-
 
8671
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8672
        _Fields fields = findByThriftId(fieldId);
-
 
8673
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8674
        return fields;
-
 
8675
      }
-
 
8676
 
-
 
8677
      /**
-
 
8678
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8679
       */
-
 
8680
      public static _Fields findByName(String name) {
-
 
8681
        return byName.get(name);
-
 
8682
      }
-
 
8683
 
-
 
8684
      private final short _thriftId;
-
 
8685
      private final String _fieldName;
-
 
8686
 
-
 
8687
      _Fields(short thriftId, String fieldName) {
-
 
8688
        _thriftId = thriftId;
-
 
8689
        _fieldName = fieldName;
-
 
8690
      }
-
 
8691
 
-
 
8692
      public short getThriftFieldId() {
-
 
8693
        return _thriftId;
-
 
8694
      }
-
 
8695
 
-
 
8696
      public String getFieldName() {
-
 
8697
        return _fieldName;
-
 
8698
      }
-
 
8699
    }
-
 
8700
 
-
 
8701
    // isset id assignments
-
 
8702
 
-
 
8703
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8704
    static {
-
 
8705
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8706
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8707
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Payment.class)));
-
 
8708
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8709
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
8710
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8711
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentForTxnId_result.class, metaDataMap);
-
 
8712
    }
-
 
8713
 
-
 
8714
    public getSuccessfulPaymentForTxnId_result() {
-
 
8715
    }
-
 
8716
 
-
 
8717
    public getSuccessfulPaymentForTxnId_result(
-
 
8718
      Payment success,
-
 
8719
      PaymentException pe)
-
 
8720
    {
-
 
8721
      this();
-
 
8722
      this.success = success;
-
 
8723
      this.pe = pe;
-
 
8724
    }
-
 
8725
 
-
 
8726
    /**
-
 
8727
     * Performs a deep copy on <i>other</i>.
-
 
8728
     */
-
 
8729
    public getSuccessfulPaymentForTxnId_result(getSuccessfulPaymentForTxnId_result other) {
-
 
8730
      if (other.isSetSuccess()) {
-
 
8731
        this.success = new Payment(other.success);
-
 
8732
      }
-
 
8733
      if (other.isSetPe()) {
-
 
8734
        this.pe = new PaymentException(other.pe);
-
 
8735
      }
-
 
8736
    }
-
 
8737
 
-
 
8738
    public getSuccessfulPaymentForTxnId_result deepCopy() {
-
 
8739
      return new getSuccessfulPaymentForTxnId_result(this);
-
 
8740
    }
-
 
8741
 
-
 
8742
    @Override
-
 
8743
    public void clear() {
-
 
8744
      this.success = null;
-
 
8745
      this.pe = null;
-
 
8746
    }
-
 
8747
 
-
 
8748
    public Payment getSuccess() {
-
 
8749
      return this.success;
-
 
8750
    }
-
 
8751
 
-
 
8752
    public void setSuccess(Payment success) {
-
 
8753
      this.success = success;
-
 
8754
    }
-
 
8755
 
-
 
8756
    public void unsetSuccess() {
-
 
8757
      this.success = null;
-
 
8758
    }
-
 
8759
 
-
 
8760
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
8761
    public boolean isSetSuccess() {
-
 
8762
      return this.success != null;
-
 
8763
    }
-
 
8764
 
-
 
8765
    public void setSuccessIsSet(boolean value) {
-
 
8766
      if (!value) {
-
 
8767
        this.success = null;
-
 
8768
      }
-
 
8769
    }
-
 
8770
 
-
 
8771
    public PaymentException getPe() {
-
 
8772
      return this.pe;
-
 
8773
    }
-
 
8774
 
-
 
8775
    public void setPe(PaymentException pe) {
-
 
8776
      this.pe = pe;
-
 
8777
    }
-
 
8778
 
-
 
8779
    public void unsetPe() {
-
 
8780
      this.pe = null;
-
 
8781
    }
-
 
8782
 
-
 
8783
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
-
 
8784
    public boolean isSetPe() {
-
 
8785
      return this.pe != null;
-
 
8786
    }
-
 
8787
 
-
 
8788
    public void setPeIsSet(boolean value) {
-
 
8789
      if (!value) {
-
 
8790
        this.pe = null;
-
 
8791
      }
-
 
8792
    }
-
 
8793
 
-
 
8794
    public void setFieldValue(_Fields field, Object value) {
-
 
8795
      switch (field) {
-
 
8796
      case SUCCESS:
-
 
8797
        if (value == null) {
-
 
8798
          unsetSuccess();
-
 
8799
        } else {
-
 
8800
          setSuccess((Payment)value);
-
 
8801
        }
-
 
8802
        break;
-
 
8803
 
-
 
8804
      case PE:
-
 
8805
        if (value == null) {
-
 
8806
          unsetPe();
-
 
8807
        } else {
-
 
8808
          setPe((PaymentException)value);
-
 
8809
        }
-
 
8810
        break;
-
 
8811
 
-
 
8812
      }
-
 
8813
    }
-
 
8814
 
-
 
8815
    public Object getFieldValue(_Fields field) {
-
 
8816
      switch (field) {
-
 
8817
      case SUCCESS:
-
 
8818
        return getSuccess();
-
 
8819
 
-
 
8820
      case PE:
-
 
8821
        return getPe();
-
 
8822
 
-
 
8823
      }
-
 
8824
      throw new IllegalStateException();
-
 
8825
    }
-
 
8826
 
-
 
8827
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8828
    public boolean isSet(_Fields field) {
-
 
8829
      if (field == null) {
-
 
8830
        throw new IllegalArgumentException();
-
 
8831
      }
-
 
8832
 
-
 
8833
      switch (field) {
-
 
8834
      case SUCCESS:
-
 
8835
        return isSetSuccess();
-
 
8836
      case PE:
-
 
8837
        return isSetPe();
-
 
8838
      }
-
 
8839
      throw new IllegalStateException();
-
 
8840
    }
-
 
8841
 
-
 
8842
    @Override
-
 
8843
    public boolean equals(Object that) {
-
 
8844
      if (that == null)
-
 
8845
        return false;
-
 
8846
      if (that instanceof getSuccessfulPaymentForTxnId_result)
-
 
8847
        return this.equals((getSuccessfulPaymentForTxnId_result)that);
-
 
8848
      return false;
-
 
8849
    }
-
 
8850
 
-
 
8851
    public boolean equals(getSuccessfulPaymentForTxnId_result that) {
-
 
8852
      if (that == null)
-
 
8853
        return false;
-
 
8854
 
-
 
8855
      boolean this_present_success = true && this.isSetSuccess();
-
 
8856
      boolean that_present_success = true && that.isSetSuccess();
-
 
8857
      if (this_present_success || that_present_success) {
-
 
8858
        if (!(this_present_success && that_present_success))
-
 
8859
          return false;
-
 
8860
        if (!this.success.equals(that.success))
-
 
8861
          return false;
-
 
8862
      }
-
 
8863
 
-
 
8864
      boolean this_present_pe = true && this.isSetPe();
-
 
8865
      boolean that_present_pe = true && that.isSetPe();
-
 
8866
      if (this_present_pe || that_present_pe) {
-
 
8867
        if (!(this_present_pe && that_present_pe))
-
 
8868
          return false;
-
 
8869
        if (!this.pe.equals(that.pe))
-
 
8870
          return false;
-
 
8871
      }
-
 
8872
 
-
 
8873
      return true;
-
 
8874
    }
-
 
8875
 
-
 
8876
    @Override
-
 
8877
    public int hashCode() {
-
 
8878
      return 0;
-
 
8879
    }
-
 
8880
 
-
 
8881
    public int compareTo(getSuccessfulPaymentForTxnId_result other) {
-
 
8882
      if (!getClass().equals(other.getClass())) {
-
 
8883
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8884
      }
-
 
8885
 
-
 
8886
      int lastComparison = 0;
-
 
8887
      getSuccessfulPaymentForTxnId_result typedOther = (getSuccessfulPaymentForTxnId_result)other;
-
 
8888
 
-
 
8889
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
8890
      if (lastComparison != 0) {
-
 
8891
        return lastComparison;
-
 
8892
      }
-
 
8893
      if (isSetSuccess()) {
-
 
8894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
8895
        if (lastComparison != 0) {
-
 
8896
          return lastComparison;
-
 
8897
        }
-
 
8898
      }
-
 
8899
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
8900
      if (lastComparison != 0) {
-
 
8901
        return lastComparison;
-
 
8902
      }
-
 
8903
      if (isSetPe()) {
-
 
8904
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
8905
        if (lastComparison != 0) {
-
 
8906
          return lastComparison;
-
 
8907
        }
-
 
8908
      }
-
 
8909
      return 0;
-
 
8910
    }
-
 
8911
 
-
 
8912
    public _Fields fieldForId(int fieldId) {
-
 
8913
      return _Fields.findByThriftId(fieldId);
-
 
8914
    }
-
 
8915
 
-
 
8916
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8917
      org.apache.thrift.protocol.TField field;
-
 
8918
      iprot.readStructBegin();
-
 
8919
      while (true)
-
 
8920
      {
-
 
8921
        field = iprot.readFieldBegin();
-
 
8922
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8923
          break;
-
 
8924
        }
-
 
8925
        switch (field.id) {
-
 
8926
          case 0: // SUCCESS
-
 
8927
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
8928
              this.success = new Payment();
-
 
8929
              this.success.read(iprot);
-
 
8930
            } else { 
-
 
8931
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8932
            }
-
 
8933
            break;
-
 
8934
          case 1: // PE
-
 
8935
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
8936
              this.pe = new PaymentException();
-
 
8937
              this.pe.read(iprot);
-
 
8938
            } else { 
-
 
8939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8940
            }
-
 
8941
            break;
-
 
8942
          default:
-
 
8943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8944
        }
-
 
8945
        iprot.readFieldEnd();
-
 
8946
      }
-
 
8947
      iprot.readStructEnd();
-
 
8948
      validate();
-
 
8949
    }
-
 
8950
 
-
 
8951
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8952
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8953
 
-
 
8954
      if (this.isSetSuccess()) {
-
 
8955
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8956
        this.success.write(oprot);
-
 
8957
        oprot.writeFieldEnd();
-
 
8958
      } else if (this.isSetPe()) {
-
 
8959
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
8960
        this.pe.write(oprot);
-
 
8961
        oprot.writeFieldEnd();
-
 
8962
      }
-
 
8963
      oprot.writeFieldStop();
-
 
8964
      oprot.writeStructEnd();
-
 
8965
    }
-
 
8966
 
-
 
8967
    @Override
-
 
8968
    public String toString() {
-
 
8969
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentForTxnId_result(");
-
 
8970
      boolean first = true;
-
 
8971
 
-
 
8972
      sb.append("success:");
-
 
8973
      if (this.success == null) {
-
 
8974
        sb.append("null");
-
 
8975
      } else {
-
 
8976
        sb.append(this.success);
-
 
8977
      }
-
 
8978
      first = false;
-
 
8979
      if (!first) sb.append(", ");
-
 
8980
      sb.append("pe:");
-
 
8981
      if (this.pe == null) {
-
 
8982
        sb.append("null");
-
 
8983
      } else {
-
 
8984
        sb.append(this.pe);
-
 
8985
      }
-
 
8986
      first = false;
-
 
8987
      sb.append(")");
-
 
8988
      return sb.toString();
-
 
8989
    }
-
 
8990
 
-
 
8991
    public void validate() throws org.apache.thrift.TException {
-
 
8992
      // check for required fields
-
 
8993
    }
-
 
8994
 
-
 
8995
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8996
      try {
-
 
8997
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8998
      } catch (org.apache.thrift.TException te) {
-
 
8999
        throw new java.io.IOException(te);
-
 
9000
      }
-
 
9001
    }
-
 
9002
 
-
 
9003
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9004
      try {
-
 
9005
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9006
      } catch (org.apache.thrift.TException te) {
-
 
9007
        throw new java.io.IOException(te);
-
 
9008
      }
-
 
9009
    }
-
 
9010
 
-
 
9011
  }
-
 
9012
 
7546
  public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable   {
9013
  public static class updatePaymentDetails_args implements org.apache.thrift.TBase<updatePaymentDetails_args, updatePaymentDetails_args._Fields>, java.io.Serializable, Cloneable   {
7547
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
9014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePaymentDetails_args");
7548
 
9015
 
7549
    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);
9016
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
7550
    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);
9017
    private static final org.apache.thrift.protocol.TField GATEWAY_PAYMENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("gatewayPaymentId", org.apache.thrift.protocol.TType.STRING, (short)2);
Line 8632... Line 10099...
8632
            }
10099
            }
8633
            break;
10100
            break;
8634
          case 12: // ATTRIBUTES
10101
          case 12: // ATTRIBUTES
8635
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
10102
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8636
              {
10103
              {
8637
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
10104
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
8638
                this.attributes = new ArrayList<Attribute>(_list28.size);
10105
                this.attributes = new ArrayList<Attribute>(_list32.size);
8639
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
10106
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
8640
                {
10107
                {
8641
                  Attribute _elem30; // required
10108
                  Attribute _elem34; // required
8642
                  _elem30 = new Attribute();
10109
                  _elem34 = new Attribute();
8643
                  _elem30.read(iprot);
10110
                  _elem34.read(iprot);
8644
                  this.attributes.add(_elem30);
10111
                  this.attributes.add(_elem34);
8645
                }
10112
                }
8646
                iprot.readListEnd();
10113
                iprot.readListEnd();
8647
              }
10114
              }
8648
            } else { 
10115
            } else { 
8649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 8717... Line 10184...
8717
      }
10184
      }
8718
      if (this.attributes != null) {
10185
      if (this.attributes != null) {
8719
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
10186
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
8720
        {
10187
        {
8721
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
10188
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
8722
          for (Attribute _iter31 : this.attributes)
10189
          for (Attribute _iter35 : this.attributes)
8723
          {
10190
          {
8724
            _iter31.write(oprot);
10191
            _iter35.write(oprot);
8725
          }
10192
          }
8726
          oprot.writeListEnd();
10193
          oprot.writeListEnd();
8727
        }
10194
        }
8728
        oprot.writeFieldEnd();
10195
        oprot.writeFieldEnd();
8729
      }
10196
      }
Line 9684... Line 11151...
9684
        }
11151
        }
9685
        switch (field.id) {
11152
        switch (field.id) {
9686
          case 0: // SUCCESS
11153
          case 0: // SUCCESS
9687
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11154
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9688
              {
11155
              {
9689
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
11156
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
9690
                this.success = new ArrayList<Double>(_list32.size);
11157
                this.success = new ArrayList<Double>(_list36.size);
9691
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
11158
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
9692
                {
11159
                {
9693
                  double _elem34; // required
11160
                  double _elem38; // required
9694
                  _elem34 = iprot.readDouble();
11161
                  _elem38 = iprot.readDouble();
9695
                  this.success.add(_elem34);
11162
                  this.success.add(_elem38);
9696
                }
11163
                }
9697
                iprot.readListEnd();
11164
                iprot.readListEnd();
9698
              }
11165
              }
9699
            } else { 
11166
            } else { 
9700
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 9714... Line 11181...
9714
 
11181
 
9715
      if (this.isSetSuccess()) {
11182
      if (this.isSetSuccess()) {
9716
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9717
        {
11184
        {
9718
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
11185
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.DOUBLE, this.success.size()));
9719
          for (double _iter35 : this.success)
11186
          for (double _iter39 : this.success)
9720
          {
11187
          {
9721
            oprot.writeDouble(_iter35);
11188
            oprot.writeDouble(_iter39);
9722
          }
11189
          }
9723
          oprot.writeListEnd();
11190
          oprot.writeListEnd();
9724
        }
11191
        }
9725
        oprot.writeFieldEnd();
11192
        oprot.writeFieldEnd();
9726
      }
11193
      }
Line 14193... Line 15660...
14193
        }
15660
        }
14194
        switch (field.id) {
15661
        switch (field.id) {
14195
          case 0: // SUCCESS
15662
          case 0: // SUCCESS
14196
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15663
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14197
              {
15664
              {
14198
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
15665
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
14199
                this.success = new ArrayList<Long>(_list36.size);
15666
                this.success = new ArrayList<Long>(_list40.size);
14200
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
15667
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
14201
                {
15668
                {
14202
                  long _elem38; // required
15669
                  long _elem42; // required
14203
                  _elem38 = iprot.readI64();
15670
                  _elem42 = iprot.readI64();
14204
                  this.success.add(_elem38);
15671
                  this.success.add(_elem42);
14205
                }
15672
                }
14206
                iprot.readListEnd();
15673
                iprot.readListEnd();
14207
              }
15674
              }
14208
            } else { 
15675
            } else { 
14209
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
Line 14223... Line 15690...
14223
 
15690
 
14224
      if (this.isSetSuccess()) {
15691
      if (this.isSetSuccess()) {
14225
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15692
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14226
        {
15693
        {
14227
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
15694
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
14228
          for (long _iter39 : this.success)
15695
          for (long _iter43 : this.success)
14229
          {
15696
          {
14230
            oprot.writeI64(_iter39);
15697
            oprot.writeI64(_iter43);
14231
          }
15698
          }
14232
          oprot.writeListEnd();
15699
          oprot.writeListEnd();
14233
        }
15700
        }
14234
        oprot.writeFieldEnd();
15701
        oprot.writeFieldEnd();
14235
      }
15702
      }