Subversion Repositories SmartDukaan

Rev

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

Rev 9506 Rev 10269
Line 138... Line 138...
138
    /**
138
    /**
139
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
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.
140
     * In case of any processing error, an exception is raised.
141
     * 
141
     * 
142
     * @param merchantPaymentId
142
     * @param merchantPaymentId
-
 
143
     * @param isMobile
143
     */
144
     */
144
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
145
    public String initializeHdfcPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, org.apache.thrift.TException;
145
 
146
 
146
    /**
147
    /**
147
     * Initialize the payment pipe for a HDFC payment in case of a digital order. The URL the user should be redirected to is returned.
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.
148
     * In case of any processing error, an exception is raised. The phone is a madatory field and is required in case of dth payments.
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.
149
     * 
150
     * 
150
     * @param merchantPaymentId
151
     * @param merchantPaymentId
151
     * @param rechargeOrderId
152
     * @param rechargeOrderId
152
     * @param phone
153
     * @param phone
-
 
154
     * @param isMobile
153
     */
155
     */
154
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, org.apache.thrift.TException;
156
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile) throws PaymentException, org.apache.thrift.TException;
155
 
157
 
156
    /**
158
    /**
157
     * Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
159
     * Initialize the payment pipe for a HDFC EMI payment. The URL the user should be redirected to is returned.
158
     * In case of any processing error, an exception is raised.
160
     * In case of any processing error, an exception is raised.
159
     * 
161
     * 
160
     * @param merchantPaymentId
162
     * @param merchantPaymentId
-
 
163
     * @param isMobile
161
     */
164
     */
162
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
165
    public String initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, org.apache.thrift.TException;
163
 
166
 
164
    /**
167
    /**
165
     * Create a refund of the given amount corresponding to the given order to be processed through the same
168
     * Create a refund of the given amount corresponding to the given order to be processed through the same
166
     * payment gateway which processed the payment for the corresponding transaction.
169
     * payment gateway which processed the payment for the corresponding transaction.
167
     * Returns the id of the newly created Refund.
170
     * Returns the id of the newly created Refund.
Line 259... Line 262...
259
 
262
 
260
    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;
263
    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;
261
 
264
 
262
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
265
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
263
 
266
 
264
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
267
    public void initializeHdfcPayment(long merchantPaymentId, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
265
 
268
 
266
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException;
269
    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;
267
 
270
 
268
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
271
    public void initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException;
269
 
272
 
270
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
273
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
271
 
274
 
272
    public void capturePayment(long merchantTxnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
275
    public void capturePayment(long merchantTxnId, boolean isDigital, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
273
 
276
 
Line 632... Line 635...
632
        return result.success;
635
        return result.success;
633
      }
636
      }
634
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
637
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
635
    }
638
    }
636
 
639
 
637
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
640
    public String initializeHdfcPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, org.apache.thrift.TException
638
    {
641
    {
639
      send_initializeHdfcPayment(merchantPaymentId);
642
      send_initializeHdfcPayment(merchantPaymentId, isMobile);
640
      return recv_initializeHdfcPayment();
643
      return recv_initializeHdfcPayment();
641
    }
644
    }
642
 
645
 
643
    public void send_initializeHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
646
    public void send_initializeHdfcPayment(long merchantPaymentId, boolean isMobile) throws org.apache.thrift.TException
644
    {
647
    {
645
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
648
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
646
      args.setMerchantPaymentId(merchantPaymentId);
649
      args.setMerchantPaymentId(merchantPaymentId);
-
 
650
      args.setIsMobile(isMobile);
647
      sendBase("initializeHdfcPayment", args);
651
      sendBase("initializeHdfcPayment", args);
648
    }
652
    }
649
 
653
 
650
    public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
654
    public String recv_initializeHdfcPayment() throws PaymentException, org.apache.thrift.TException
651
    {
655
    {
Line 658... Line 662...
658
        throw result.pe;
662
        throw result.pe;
659
      }
663
      }
660
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
664
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
661
    }
665
    }
662
 
666
 
663
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws PaymentException, org.apache.thrift.TException
667
    public String doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile) throws PaymentException, org.apache.thrift.TException
664
    {
668
    {
665
      send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone);
669
      send_doHdfcPaymentForDigitalOrder(merchantPaymentId, rechargeOrderId, phone, isMobile);
666
      return recv_doHdfcPaymentForDigitalOrder();
670
      return recv_doHdfcPaymentForDigitalOrder();
667
    }
671
    }
668
 
672
 
669
    public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone) throws org.apache.thrift.TException
673
    public void send_doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile) throws org.apache.thrift.TException
670
    {
674
    {
671
      doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
675
      doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
672
      args.setMerchantPaymentId(merchantPaymentId);
676
      args.setMerchantPaymentId(merchantPaymentId);
673
      args.setRechargeOrderId(rechargeOrderId);
677
      args.setRechargeOrderId(rechargeOrderId);
674
      args.setPhone(phone);
678
      args.setPhone(phone);
-
 
679
      args.setIsMobile(isMobile);
675
      sendBase("doHdfcPaymentForDigitalOrder", args);
680
      sendBase("doHdfcPaymentForDigitalOrder", args);
676
    }
681
    }
677
 
682
 
678
    public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
683
    public String recv_doHdfcPaymentForDigitalOrder() throws PaymentException, org.apache.thrift.TException
679
    {
684
    {
Line 686... Line 691...
686
        throw result.pe;
691
        throw result.pe;
687
      }
692
      }
688
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
693
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "doHdfcPaymentForDigitalOrder failed: unknown result");
689
    }
694
    }
690
 
695
 
691
    public String initializeHdfcEmiPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
696
    public String initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile) throws PaymentException, org.apache.thrift.TException
692
    {
697
    {
693
      send_initializeHdfcEmiPayment(merchantPaymentId);
698
      send_initializeHdfcEmiPayment(merchantPaymentId, isMobile);
694
      return recv_initializeHdfcEmiPayment();
699
      return recv_initializeHdfcEmiPayment();
695
    }
700
    }
696
 
701
 
697
    public void send_initializeHdfcEmiPayment(long merchantPaymentId) throws org.apache.thrift.TException
702
    public void send_initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile) throws org.apache.thrift.TException
698
    {
703
    {
699
      initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
704
      initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
700
      args.setMerchantPaymentId(merchantPaymentId);
705
      args.setMerchantPaymentId(merchantPaymentId);
-
 
706
      args.setIsMobile(isMobile);
701
      sendBase("initializeHdfcEmiPayment", args);
707
      sendBase("initializeHdfcEmiPayment", args);
702
    }
708
    }
703
 
709
 
704
    public String recv_initializeHdfcEmiPayment() throws PaymentException, org.apache.thrift.TException
710
    public String recv_initializeHdfcEmiPayment() throws PaymentException, org.apache.thrift.TException
705
    {
711
    {
Line 1365... Line 1371...
1365
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1371
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1366
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
1372
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
1367
      }
1373
      }
1368
    }
1374
    }
1369
 
1375
 
1370
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
1376
    public void initializeHdfcPayment(long merchantPaymentId, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
1371
      checkReady();
1377
      checkReady();
1372
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1378
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, isMobile, resultHandler, this, ___protocolFactory, ___transport);
1373
      this.___currentMethod = method_call;
1379
      this.___currentMethod = method_call;
1374
      ___manager.call(method_call);
1380
      ___manager.call(method_call);
1375
    }
1381
    }
1376
 
1382
 
1377
    public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1383
    public static class initializeHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1378
      private long merchantPaymentId;
1384
      private long merchantPaymentId;
-
 
1385
      private boolean isMobile;
1379
      public initializeHdfcPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1386
      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 {
1380
        super(client, protocolFactory, transport, resultHandler, false);
1387
        super(client, protocolFactory, transport, resultHandler, false);
1381
        this.merchantPaymentId = merchantPaymentId;
1388
        this.merchantPaymentId = merchantPaymentId;
-
 
1389
        this.isMobile = isMobile;
1382
      }
1390
      }
1383
 
1391
 
1384
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1392
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1385
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1393
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1386
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
1394
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
1387
        args.setMerchantPaymentId(merchantPaymentId);
1395
        args.setMerchantPaymentId(merchantPaymentId);
-
 
1396
        args.setIsMobile(isMobile);
1388
        args.write(prot);
1397
        args.write(prot);
1389
        prot.writeMessageEnd();
1398
        prot.writeMessageEnd();
1390
      }
1399
      }
1391
 
1400
 
1392
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1401
      public String getResult() throws PaymentException, org.apache.thrift.TException {
Line 1397... Line 1406...
1397
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1406
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1398
        return (new Client(prot)).recv_initializeHdfcPayment();
1407
        return (new Client(prot)).recv_initializeHdfcPayment();
1399
      }
1408
      }
1400
    }
1409
    }
1401
 
1410
 
1402
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException {
1411
    public void doHdfcPaymentForDigitalOrder(long merchantPaymentId, long rechargeOrderId, String phone, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler) throws org.apache.thrift.TException {
1403
      checkReady();
1412
      checkReady();
1404
      doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, phone, resultHandler, this, ___protocolFactory, ___transport);
1413
      doHdfcPaymentForDigitalOrder_call method_call = new doHdfcPaymentForDigitalOrder_call(merchantPaymentId, rechargeOrderId, phone, isMobile, resultHandler, this, ___protocolFactory, ___transport);
1405
      this.___currentMethod = method_call;
1414
      this.___currentMethod = method_call;
1406
      ___manager.call(method_call);
1415
      ___manager.call(method_call);
1407
    }
1416
    }
1408
 
1417
 
1409
    public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1418
    public static class doHdfcPaymentForDigitalOrder_call extends org.apache.thrift.async.TAsyncMethodCall {
1410
      private long merchantPaymentId;
1419
      private long merchantPaymentId;
1411
      private long rechargeOrderId;
1420
      private long rechargeOrderId;
1412
      private String phone;
1421
      private String phone;
-
 
1422
      private boolean isMobile;
1413
      public doHdfcPaymentForDigitalOrder_call(long merchantPaymentId, long rechargeOrderId, String phone, org.apache.thrift.async.AsyncMethodCallback<doHdfcPaymentForDigitalOrder_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1423
      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 {
1414
        super(client, protocolFactory, transport, resultHandler, false);
1424
        super(client, protocolFactory, transport, resultHandler, false);
1415
        this.merchantPaymentId = merchantPaymentId;
1425
        this.merchantPaymentId = merchantPaymentId;
1416
        this.rechargeOrderId = rechargeOrderId;
1426
        this.rechargeOrderId = rechargeOrderId;
1417
        this.phone = phone;
1427
        this.phone = phone;
-
 
1428
        this.isMobile = isMobile;
1418
      }
1429
      }
1419
 
1430
 
1420
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1431
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1421
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doHdfcPaymentForDigitalOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1432
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("doHdfcPaymentForDigitalOrder", org.apache.thrift.protocol.TMessageType.CALL, 0));
1422
        doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
1433
        doHdfcPaymentForDigitalOrder_args args = new doHdfcPaymentForDigitalOrder_args();
1423
        args.setMerchantPaymentId(merchantPaymentId);
1434
        args.setMerchantPaymentId(merchantPaymentId);
1424
        args.setRechargeOrderId(rechargeOrderId);
1435
        args.setRechargeOrderId(rechargeOrderId);
1425
        args.setPhone(phone);
1436
        args.setPhone(phone);
-
 
1437
        args.setIsMobile(isMobile);
1426
        args.write(prot);
1438
        args.write(prot);
1427
        prot.writeMessageEnd();
1439
        prot.writeMessageEnd();
1428
      }
1440
      }
1429
 
1441
 
1430
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1442
      public String getResult() throws PaymentException, org.apache.thrift.TException {
Line 1435... Line 1447...
1435
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1447
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1436
        return (new Client(prot)).recv_doHdfcPaymentForDigitalOrder();
1448
        return (new Client(prot)).recv_doHdfcPaymentForDigitalOrder();
1437
      }
1449
      }
1438
    }
1450
    }
1439
 
1451
 
1440
    public void initializeHdfcEmiPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
1452
    public void initializeHdfcEmiPayment(long merchantPaymentId, boolean isMobile, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler) throws org.apache.thrift.TException {
1441
      checkReady();
1453
      checkReady();
1442
      initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
1454
      initializeHdfcEmiPayment_call method_call = new initializeHdfcEmiPayment_call(merchantPaymentId, isMobile, resultHandler, this, ___protocolFactory, ___transport);
1443
      this.___currentMethod = method_call;
1455
      this.___currentMethod = method_call;
1444
      ___manager.call(method_call);
1456
      ___manager.call(method_call);
1445
    }
1457
    }
1446
 
1458
 
1447
    public static class initializeHdfcEmiPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1459
    public static class initializeHdfcEmiPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
1448
      private long merchantPaymentId;
1460
      private long merchantPaymentId;
-
 
1461
      private boolean isMobile;
1449
      public initializeHdfcEmiPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcEmiPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1462
      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 {
1450
        super(client, protocolFactory, transport, resultHandler, false);
1463
        super(client, protocolFactory, transport, resultHandler, false);
1451
        this.merchantPaymentId = merchantPaymentId;
1464
        this.merchantPaymentId = merchantPaymentId;
-
 
1465
        this.isMobile = isMobile;
1452
      }
1466
      }
1453
 
1467
 
1454
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1468
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1455
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcEmiPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1469
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("initializeHdfcEmiPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
1456
        initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
1470
        initializeHdfcEmiPayment_args args = new initializeHdfcEmiPayment_args();
1457
        args.setMerchantPaymentId(merchantPaymentId);
1471
        args.setMerchantPaymentId(merchantPaymentId);
-
 
1472
        args.setIsMobile(isMobile);
1458
        args.write(prot);
1473
        args.write(prot);
1459
        prot.writeMessageEnd();
1474
        prot.writeMessageEnd();
1460
      }
1475
      }
1461
 
1476
 
1462
      public String getResult() throws PaymentException, org.apache.thrift.TException {
1477
      public String getResult() throws PaymentException, org.apache.thrift.TException {
Line 2015... Line 2030...
2015
      }
2030
      }
2016
 
2031
 
2017
      protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
2032
      protected initializeHdfcPayment_result getResult(I iface, initializeHdfcPayment_args args) throws org.apache.thrift.TException {
2018
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
2033
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
2019
        try {
2034
        try {
2020
          result.success = iface.initializeHdfcPayment(args.merchantPaymentId);
2035
          result.success = iface.initializeHdfcPayment(args.merchantPaymentId, args.isMobile);
2021
        } catch (PaymentException pe) {
2036
        } catch (PaymentException pe) {
2022
          result.pe = pe;
2037
          result.pe = pe;
2023
        }
2038
        }
2024
        return result;
2039
        return result;
2025
      }
2040
      }
Line 2035... Line 2050...
2035
      }
2050
      }
2036
 
2051
 
2037
      protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
2052
      protected doHdfcPaymentForDigitalOrder_result getResult(I iface, doHdfcPaymentForDigitalOrder_args args) throws org.apache.thrift.TException {
2038
        doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
2053
        doHdfcPaymentForDigitalOrder_result result = new doHdfcPaymentForDigitalOrder_result();
2039
        try {
2054
        try {
2040
          result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone);
2055
          result.success = iface.doHdfcPaymentForDigitalOrder(args.merchantPaymentId, args.rechargeOrderId, args.phone, args.isMobile);
2041
        } catch (PaymentException pe) {
2056
        } catch (PaymentException pe) {
2042
          result.pe = pe;
2057
          result.pe = pe;
2043
        }
2058
        }
2044
        return result;
2059
        return result;
2045
      }
2060
      }
Line 2055... Line 2070...
2055
      }
2070
      }
2056
 
2071
 
2057
      protected initializeHdfcEmiPayment_result getResult(I iface, initializeHdfcEmiPayment_args args) throws org.apache.thrift.TException {
2072
      protected initializeHdfcEmiPayment_result getResult(I iface, initializeHdfcEmiPayment_args args) throws org.apache.thrift.TException {
2058
        initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
2073
        initializeHdfcEmiPayment_result result = new initializeHdfcEmiPayment_result();
2059
        try {
2074
        try {
2060
          result.success = iface.initializeHdfcEmiPayment(args.merchantPaymentId);
2075
          result.success = iface.initializeHdfcEmiPayment(args.merchantPaymentId, args.isMobile);
2061
        } catch (PaymentException pe) {
2076
        } catch (PaymentException pe) {
2062
          result.pe = pe;
2077
          result.pe = pe;
2063
        }
2078
        }
2064
        return result;
2079
        return result;
2065
      }
2080
      }
Line 12420... Line 12435...
12420
 
12435
 
12421
  public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
12436
  public static class initializeHdfcPayment_args implements org.apache.thrift.TBase<initializeHdfcPayment_args, initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
12422
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
12437
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcPayment_args");
12423
 
12438
 
12424
    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);
12439
    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);
-
 
12440
    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);
12425
 
12441
 
12426
    private long merchantPaymentId; // required
12442
    private long merchantPaymentId; // required
-
 
12443
    private boolean isMobile; // required
12427
 
12444
 
12428
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12445
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12429
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12446
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12430
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
12447
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
-
 
12448
      IS_MOBILE((short)2, "isMobile");
12431
 
12449
 
12432
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12450
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12433
 
12451
 
12434
      static {
12452
      static {
12435
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12453
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 12442... Line 12460...
12442
       */
12460
       */
12443
      public static _Fields findByThriftId(int fieldId) {
12461
      public static _Fields findByThriftId(int fieldId) {
12444
        switch(fieldId) {
12462
        switch(fieldId) {
12445
          case 1: // MERCHANT_PAYMENT_ID
12463
          case 1: // MERCHANT_PAYMENT_ID
12446
            return MERCHANT_PAYMENT_ID;
12464
            return MERCHANT_PAYMENT_ID;
-
 
12465
          case 2: // IS_MOBILE
-
 
12466
            return IS_MOBILE;
12447
          default:
12467
          default:
12448
            return null;
12468
            return null;
12449
        }
12469
        }
12450
      }
12470
      }
12451
 
12471
 
Line 12483... Line 12503...
12483
      }
12503
      }
12484
    }
12504
    }
12485
 
12505
 
12486
    // isset id assignments
12506
    // isset id assignments
12487
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
12507
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
-
 
12508
    private static final int __ISMOBILE_ISSET_ID = 1;
12488
    private BitSet __isset_bit_vector = new BitSet(1);
12509
    private BitSet __isset_bit_vector = new BitSet(2);
12489
 
12510
 
12490
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12491
    static {
12512
    static {
12492
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12493
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12514
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
12516
      tmpMap.put(_Fields.IS_MOBILE, new org.apache.thrift.meta_data.FieldMetaData("isMobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12518
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
12519
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
12497
    }
12520
    }
12498
 
12521
 
12499
    public initializeHdfcPayment_args() {
12522
    public initializeHdfcPayment_args() {
12500
    }
12523
    }
12501
 
12524
 
12502
    public initializeHdfcPayment_args(
12525
    public initializeHdfcPayment_args(
12503
      long merchantPaymentId)
12526
      long merchantPaymentId,
-
 
12527
      boolean isMobile)
12504
    {
12528
    {
12505
      this();
12529
      this();
12506
      this.merchantPaymentId = merchantPaymentId;
12530
      this.merchantPaymentId = merchantPaymentId;
12507
      setMerchantPaymentIdIsSet(true);
12531
      setMerchantPaymentIdIsSet(true);
-
 
12532
      this.isMobile = isMobile;
-
 
12533
      setIsMobileIsSet(true);
12508
    }
12534
    }
12509
 
12535
 
12510
    /**
12536
    /**
12511
     * Performs a deep copy on <i>other</i>.
12537
     * Performs a deep copy on <i>other</i>.
12512
     */
12538
     */
12513
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
12539
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
12514
      __isset_bit_vector.clear();
12540
      __isset_bit_vector.clear();
12515
      __isset_bit_vector.or(other.__isset_bit_vector);
12541
      __isset_bit_vector.or(other.__isset_bit_vector);
12516
      this.merchantPaymentId = other.merchantPaymentId;
12542
      this.merchantPaymentId = other.merchantPaymentId;
-
 
12543
      this.isMobile = other.isMobile;
12517
    }
12544
    }
12518
 
12545
 
12519
    public initializeHdfcPayment_args deepCopy() {
12546
    public initializeHdfcPayment_args deepCopy() {
12520
      return new initializeHdfcPayment_args(this);
12547
      return new initializeHdfcPayment_args(this);
12521
    }
12548
    }
12522
 
12549
 
12523
    @Override
12550
    @Override
12524
    public void clear() {
12551
    public void clear() {
12525
      setMerchantPaymentIdIsSet(false);
12552
      setMerchantPaymentIdIsSet(false);
12526
      this.merchantPaymentId = 0;
12553
      this.merchantPaymentId = 0;
-
 
12554
      setIsMobileIsSet(false);
-
 
12555
      this.isMobile = false;
12527
    }
12556
    }
12528
 
12557
 
12529
    public long getMerchantPaymentId() {
12558
    public long getMerchantPaymentId() {
12530
      return this.merchantPaymentId;
12559
      return this.merchantPaymentId;
12531
    }
12560
    }
Line 12546... Line 12575...
12546
 
12575
 
12547
    public void setMerchantPaymentIdIsSet(boolean value) {
12576
    public void setMerchantPaymentIdIsSet(boolean value) {
12548
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
12577
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
12549
    }
12578
    }
12550
 
12579
 
-
 
12580
    public boolean isIsMobile() {
-
 
12581
      return this.isMobile;
-
 
12582
    }
-
 
12583
 
-
 
12584
    public void setIsMobile(boolean isMobile) {
-
 
12585
      this.isMobile = isMobile;
-
 
12586
      setIsMobileIsSet(true);
-
 
12587
    }
-
 
12588
 
-
 
12589
    public void unsetIsMobile() {
-
 
12590
      __isset_bit_vector.clear(__ISMOBILE_ISSET_ID);
-
 
12591
    }
-
 
12592
 
-
 
12593
    /** Returns true if field isMobile is set (has been assigned a value) and false otherwise */
-
 
12594
    public boolean isSetIsMobile() {
-
 
12595
      return __isset_bit_vector.get(__ISMOBILE_ISSET_ID);
-
 
12596
    }
-
 
12597
 
-
 
12598
    public void setIsMobileIsSet(boolean value) {
-
 
12599
      __isset_bit_vector.set(__ISMOBILE_ISSET_ID, value);
-
 
12600
    }
-
 
12601
 
12551
    public void setFieldValue(_Fields field, Object value) {
12602
    public void setFieldValue(_Fields field, Object value) {
12552
      switch (field) {
12603
      switch (field) {
12553
      case MERCHANT_PAYMENT_ID:
12604
      case MERCHANT_PAYMENT_ID:
12554
        if (value == null) {
12605
        if (value == null) {
12555
          unsetMerchantPaymentId();
12606
          unsetMerchantPaymentId();
12556
        } else {
12607
        } else {
12557
          setMerchantPaymentId((Long)value);
12608
          setMerchantPaymentId((Long)value);
12558
        }
12609
        }
12559
        break;
12610
        break;
12560
 
12611
 
-
 
12612
      case IS_MOBILE:
-
 
12613
        if (value == null) {
-
 
12614
          unsetIsMobile();
-
 
12615
        } else {
-
 
12616
          setIsMobile((Boolean)value);
-
 
12617
        }
-
 
12618
        break;
-
 
12619
 
12561
      }
12620
      }
12562
    }
12621
    }
12563
 
12622
 
12564
    public Object getFieldValue(_Fields field) {
12623
    public Object getFieldValue(_Fields field) {
12565
      switch (field) {
12624
      switch (field) {
12566
      case MERCHANT_PAYMENT_ID:
12625
      case MERCHANT_PAYMENT_ID:
12567
        return Long.valueOf(getMerchantPaymentId());
12626
        return Long.valueOf(getMerchantPaymentId());
12568
 
12627
 
-
 
12628
      case IS_MOBILE:
-
 
12629
        return Boolean.valueOf(isIsMobile());
-
 
12630
 
12569
      }
12631
      }
12570
      throw new IllegalStateException();
12632
      throw new IllegalStateException();
12571
    }
12633
    }
12572
 
12634
 
12573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12635
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 12577... Line 12639...
12577
      }
12639
      }
12578
 
12640
 
12579
      switch (field) {
12641
      switch (field) {
12580
      case MERCHANT_PAYMENT_ID:
12642
      case MERCHANT_PAYMENT_ID:
12581
        return isSetMerchantPaymentId();
12643
        return isSetMerchantPaymentId();
-
 
12644
      case IS_MOBILE:
-
 
12645
        return isSetIsMobile();
12582
      }
12646
      }
12583
      throw new IllegalStateException();
12647
      throw new IllegalStateException();
12584
    }
12648
    }
12585
 
12649
 
12586
    @Override
12650
    @Override
Line 12603... Line 12667...
12603
          return false;
12667
          return false;
12604
        if (this.merchantPaymentId != that.merchantPaymentId)
12668
        if (this.merchantPaymentId != that.merchantPaymentId)
12605
          return false;
12669
          return false;
12606
      }
12670
      }
12607
 
12671
 
-
 
12672
      boolean this_present_isMobile = true;
-
 
12673
      boolean that_present_isMobile = true;
-
 
12674
      if (this_present_isMobile || that_present_isMobile) {
-
 
12675
        if (!(this_present_isMobile && that_present_isMobile))
-
 
12676
          return false;
-
 
12677
        if (this.isMobile != that.isMobile)
-
 
12678
          return false;
-
 
12679
      }
-
 
12680
 
12608
      return true;
12681
      return true;
12609
    }
12682
    }
12610
 
12683
 
12611
    @Override
12684
    @Override
12612
    public int hashCode() {
12685
    public int hashCode() {
Line 12629... Line 12702...
12629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
12702
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
12630
        if (lastComparison != 0) {
12703
        if (lastComparison != 0) {
12631
          return lastComparison;
12704
          return lastComparison;
12632
        }
12705
        }
12633
      }
12706
      }
-
 
12707
      lastComparison = Boolean.valueOf(isSetIsMobile()).compareTo(typedOther.isSetIsMobile());
-
 
12708
      if (lastComparison != 0) {
-
 
12709
        return lastComparison;
-
 
12710
      }
-
 
12711
      if (isSetIsMobile()) {
-
 
12712
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isMobile, typedOther.isMobile);
-
 
12713
        if (lastComparison != 0) {
-
 
12714
          return lastComparison;
-
 
12715
        }
-
 
12716
      }
12634
      return 0;
12717
      return 0;
12635
    }
12718
    }
12636
 
12719
 
12637
    public _Fields fieldForId(int fieldId) {
12720
    public _Fields fieldForId(int fieldId) {
12638
      return _Fields.findByThriftId(fieldId);
12721
      return _Fields.findByThriftId(fieldId);
Line 12654... Line 12737...
12654
              setMerchantPaymentIdIsSet(true);
12737
              setMerchantPaymentIdIsSet(true);
12655
            } else { 
12738
            } else { 
12656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12657
            }
12740
            }
12658
            break;
12741
            break;
-
 
12742
          case 2: // IS_MOBILE
-
 
12743
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
12744
              this.isMobile = iprot.readBool();
-
 
12745
              setIsMobileIsSet(true);
-
 
12746
            } else { 
-
 
12747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
12748
            }
-
 
12749
            break;
12659
          default:
12750
          default:
12660
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12751
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12661
        }
12752
        }
12662
        iprot.readFieldEnd();
12753
        iprot.readFieldEnd();
12663
      }
12754
      }
Line 12670... Line 12761...
12670
 
12761
 
12671
      oprot.writeStructBegin(STRUCT_DESC);
12762
      oprot.writeStructBegin(STRUCT_DESC);
12672
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
12763
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
12673
      oprot.writeI64(this.merchantPaymentId);
12764
      oprot.writeI64(this.merchantPaymentId);
12674
      oprot.writeFieldEnd();
12765
      oprot.writeFieldEnd();
-
 
12766
      oprot.writeFieldBegin(IS_MOBILE_FIELD_DESC);
-
 
12767
      oprot.writeBool(this.isMobile);
-
 
12768
      oprot.writeFieldEnd();
12675
      oprot.writeFieldStop();
12769
      oprot.writeFieldStop();
12676
      oprot.writeStructEnd();
12770
      oprot.writeStructEnd();
12677
    }
12771
    }
12678
 
12772
 
12679
    @Override
12773
    @Override
Line 12682... Line 12776...
12682
      boolean first = true;
12776
      boolean first = true;
12683
 
12777
 
12684
      sb.append("merchantPaymentId:");
12778
      sb.append("merchantPaymentId:");
12685
      sb.append(this.merchantPaymentId);
12779
      sb.append(this.merchantPaymentId);
12686
      first = false;
12780
      first = false;
-
 
12781
      if (!first) sb.append(", ");
-
 
12782
      sb.append("isMobile:");
-
 
12783
      sb.append(this.isMobile);
-
 
12784
      first = false;
12687
      sb.append(")");
12785
      sb.append(")");
12688
      return sb.toString();
12786
      return sb.toString();
12689
    }
12787
    }
12690
 
12788
 
12691
    public void validate() throws org.apache.thrift.TException {
12789
    public void validate() throws org.apache.thrift.TException {
Line 13094... Line 13192...
13094
  public static class doHdfcPaymentForDigitalOrder_args implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_args, doHdfcPaymentForDigitalOrder_args._Fields>, java.io.Serializable, Cloneable   {
13192
  public static class doHdfcPaymentForDigitalOrder_args implements org.apache.thrift.TBase<doHdfcPaymentForDigitalOrder_args, doHdfcPaymentForDigitalOrder_args._Fields>, java.io.Serializable, Cloneable   {
13095
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_args");
13193
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("doHdfcPaymentForDigitalOrder_args");
13096
 
13194
 
13097
    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);
13195
    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);
13098
    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);
13196
    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);
13099
    private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)-1);
13197
    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);
-
 
13198
    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);
13100
 
13199
 
13101
    private long merchantPaymentId; // required
13200
    private long merchantPaymentId; // required
13102
    private long rechargeOrderId; // required
13201
    private long rechargeOrderId; // required
13103
    private String phone; // required
13202
    private String phone; // required
-
 
13203
    private boolean isMobile; // required
13104
 
13204
 
13105
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13106
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13107
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
13207
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
13108
      RECHARGE_ORDER_ID((short)2, "rechargeOrderId"),
13208
      RECHARGE_ORDER_ID((short)2, "rechargeOrderId"),
13109
      PHONE((short)-1, "phone");
13209
      PHONE((short)3, "phone"),
-
 
13210
      IS_MOBILE((short)4, "isMobile");
13110
 
13211
 
13111
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13212
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13112
 
13213
 
13113
      static {
13214
      static {
13114
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13215
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 13123... Line 13224...
13123
        switch(fieldId) {
13224
        switch(fieldId) {
13124
          case 1: // MERCHANT_PAYMENT_ID
13225
          case 1: // MERCHANT_PAYMENT_ID
13125
            return MERCHANT_PAYMENT_ID;
13226
            return MERCHANT_PAYMENT_ID;
13126
          case 2: // RECHARGE_ORDER_ID
13227
          case 2: // RECHARGE_ORDER_ID
13127
            return RECHARGE_ORDER_ID;
13228
            return RECHARGE_ORDER_ID;
13128
          case -1: // PHONE
13229
          case 3: // PHONE
13129
            return PHONE;
13230
            return PHONE;
-
 
13231
          case 4: // IS_MOBILE
-
 
13232
            return IS_MOBILE;
13130
          default:
13233
          default:
13131
            return null;
13234
            return null;
13132
        }
13235
        }
13133
      }
13236
      }
13134
 
13237
 
Line 13167... Line 13270...
13167
    }
13270
    }
13168
 
13271
 
13169
    // isset id assignments
13272
    // isset id assignments
13170
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
13273
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
13171
    private static final int __RECHARGEORDERID_ISSET_ID = 1;
13274
    private static final int __RECHARGEORDERID_ISSET_ID = 1;
-
 
13275
    private static final int __ISMOBILE_ISSET_ID = 2;
13172
    private BitSet __isset_bit_vector = new BitSet(2);
13276
    private BitSet __isset_bit_vector = new BitSet(3);
13173
 
13277
 
13174
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13278
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13175
    static {
13279
    static {
13176
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13280
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13177
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13281
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13178
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13282
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13179
      tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13283
      tmpMap.put(_Fields.RECHARGE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("rechargeOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13284
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13181
      tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13285
      tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13286
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
13287
      tmpMap.put(_Fields.IS_MOBILE, new org.apache.thrift.meta_data.FieldMetaData("isMobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13288
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13183
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13289
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13184
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
13290
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(doHdfcPaymentForDigitalOrder_args.class, metaDataMap);
13185
    }
13291
    }
13186
 
13292
 
13187
    public doHdfcPaymentForDigitalOrder_args() {
13293
    public doHdfcPaymentForDigitalOrder_args() {
13188
    }
13294
    }
13189
 
13295
 
13190
    public doHdfcPaymentForDigitalOrder_args(
13296
    public doHdfcPaymentForDigitalOrder_args(
13191
      long merchantPaymentId,
13297
      long merchantPaymentId,
13192
      long rechargeOrderId,
13298
      long rechargeOrderId,
13193
      String phone)
13299
      String phone,
-
 
13300
      boolean isMobile)
13194
    {
13301
    {
13195
      this();
13302
      this();
13196
      this.merchantPaymentId = merchantPaymentId;
13303
      this.merchantPaymentId = merchantPaymentId;
13197
      setMerchantPaymentIdIsSet(true);
13304
      setMerchantPaymentIdIsSet(true);
13198
      this.rechargeOrderId = rechargeOrderId;
13305
      this.rechargeOrderId = rechargeOrderId;
13199
      setRechargeOrderIdIsSet(true);
13306
      setRechargeOrderIdIsSet(true);
13200
      this.phone = phone;
13307
      this.phone = phone;
-
 
13308
      this.isMobile = isMobile;
-
 
13309
      setIsMobileIsSet(true);
13201
    }
13310
    }
13202
 
13311
 
13203
    /**
13312
    /**
13204
     * Performs a deep copy on <i>other</i>.
13313
     * Performs a deep copy on <i>other</i>.
13205
     */
13314
     */
Line 13209... Line 13318...
13209
      this.merchantPaymentId = other.merchantPaymentId;
13318
      this.merchantPaymentId = other.merchantPaymentId;
13210
      this.rechargeOrderId = other.rechargeOrderId;
13319
      this.rechargeOrderId = other.rechargeOrderId;
13211
      if (other.isSetPhone()) {
13320
      if (other.isSetPhone()) {
13212
        this.phone = other.phone;
13321
        this.phone = other.phone;
13213
      }
13322
      }
-
 
13323
      this.isMobile = other.isMobile;
13214
    }
13324
    }
13215
 
13325
 
13216
    public doHdfcPaymentForDigitalOrder_args deepCopy() {
13326
    public doHdfcPaymentForDigitalOrder_args deepCopy() {
13217
      return new doHdfcPaymentForDigitalOrder_args(this);
13327
      return new doHdfcPaymentForDigitalOrder_args(this);
13218
    }
13328
    }
Line 13222... Line 13332...
13222
      setMerchantPaymentIdIsSet(false);
13332
      setMerchantPaymentIdIsSet(false);
13223
      this.merchantPaymentId = 0;
13333
      this.merchantPaymentId = 0;
13224
      setRechargeOrderIdIsSet(false);
13334
      setRechargeOrderIdIsSet(false);
13225
      this.rechargeOrderId = 0;
13335
      this.rechargeOrderId = 0;
13226
      this.phone = null;
13336
      this.phone = null;
-
 
13337
      setIsMobileIsSet(false);
-
 
13338
      this.isMobile = false;
13227
    }
13339
    }
13228
 
13340
 
13229
    public long getMerchantPaymentId() {
13341
    public long getMerchantPaymentId() {
13230
      return this.merchantPaymentId;
13342
      return this.merchantPaymentId;
13231
    }
13343
    }
Line 13291... Line 13403...
13291
      if (!value) {
13403
      if (!value) {
13292
        this.phone = null;
13404
        this.phone = null;
13293
      }
13405
      }
13294
    }
13406
    }
13295
 
13407
 
-
 
13408
    public boolean isIsMobile() {
-
 
13409
      return this.isMobile;
-
 
13410
    }
-
 
13411
 
-
 
13412
    public void setIsMobile(boolean isMobile) {
-
 
13413
      this.isMobile = isMobile;
-
 
13414
      setIsMobileIsSet(true);
-
 
13415
    }
-
 
13416
 
-
 
13417
    public void unsetIsMobile() {
-
 
13418
      __isset_bit_vector.clear(__ISMOBILE_ISSET_ID);
-
 
13419
    }
-
 
13420
 
-
 
13421
    /** Returns true if field isMobile is set (has been assigned a value) and false otherwise */
-
 
13422
    public boolean isSetIsMobile() {
-
 
13423
      return __isset_bit_vector.get(__ISMOBILE_ISSET_ID);
-
 
13424
    }
-
 
13425
 
-
 
13426
    public void setIsMobileIsSet(boolean value) {
-
 
13427
      __isset_bit_vector.set(__ISMOBILE_ISSET_ID, value);
-
 
13428
    }
-
 
13429
 
13296
    public void setFieldValue(_Fields field, Object value) {
13430
    public void setFieldValue(_Fields field, Object value) {
13297
      switch (field) {
13431
      switch (field) {
13298
      case MERCHANT_PAYMENT_ID:
13432
      case MERCHANT_PAYMENT_ID:
13299
        if (value == null) {
13433
        if (value == null) {
13300
          unsetMerchantPaymentId();
13434
          unsetMerchantPaymentId();
Line 13317... Line 13451...
13317
        } else {
13451
        } else {
13318
          setPhone((String)value);
13452
          setPhone((String)value);
13319
        }
13453
        }
13320
        break;
13454
        break;
13321
 
13455
 
-
 
13456
      case IS_MOBILE:
-
 
13457
        if (value == null) {
-
 
13458
          unsetIsMobile();
-
 
13459
        } else {
-
 
13460
          setIsMobile((Boolean)value);
-
 
13461
        }
-
 
13462
        break;
-
 
13463
 
13322
      }
13464
      }
13323
    }
13465
    }
13324
 
13466
 
13325
    public Object getFieldValue(_Fields field) {
13467
    public Object getFieldValue(_Fields field) {
13326
      switch (field) {
13468
      switch (field) {
Line 13331... Line 13473...
13331
        return Long.valueOf(getRechargeOrderId());
13473
        return Long.valueOf(getRechargeOrderId());
13332
 
13474
 
13333
      case PHONE:
13475
      case PHONE:
13334
        return getPhone();
13476
        return getPhone();
13335
 
13477
 
-
 
13478
      case IS_MOBILE:
-
 
13479
        return Boolean.valueOf(isIsMobile());
-
 
13480
 
13336
      }
13481
      }
13337
      throw new IllegalStateException();
13482
      throw new IllegalStateException();
13338
    }
13483
    }
13339
 
13484
 
13340
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13485
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 13348... Line 13493...
13348
        return isSetMerchantPaymentId();
13493
        return isSetMerchantPaymentId();
13349
      case RECHARGE_ORDER_ID:
13494
      case RECHARGE_ORDER_ID:
13350
        return isSetRechargeOrderId();
13495
        return isSetRechargeOrderId();
13351
      case PHONE:
13496
      case PHONE:
13352
        return isSetPhone();
13497
        return isSetPhone();
-
 
13498
      case IS_MOBILE:
-
 
13499
        return isSetIsMobile();
13353
      }
13500
      }
13354
      throw new IllegalStateException();
13501
      throw new IllegalStateException();
13355
    }
13502
    }
13356
 
13503
 
13357
    @Override
13504
    @Override
Line 13392... Line 13539...
13392
          return false;
13539
          return false;
13393
        if (!this.phone.equals(that.phone))
13540
        if (!this.phone.equals(that.phone))
13394
          return false;
13541
          return false;
13395
      }
13542
      }
13396
 
13543
 
-
 
13544
      boolean this_present_isMobile = true;
-
 
13545
      boolean that_present_isMobile = true;
-
 
13546
      if (this_present_isMobile || that_present_isMobile) {
-
 
13547
        if (!(this_present_isMobile && that_present_isMobile))
-
 
13548
          return false;
-
 
13549
        if (this.isMobile != that.isMobile)
-
 
13550
          return false;
-
 
13551
      }
-
 
13552
 
13397
      return true;
13553
      return true;
13398
    }
13554
    }
13399
 
13555
 
13400
    @Override
13556
    @Override
13401
    public int hashCode() {
13557
    public int hashCode() {
Line 13438... Line 13594...
13438
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
13594
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
13439
        if (lastComparison != 0) {
13595
        if (lastComparison != 0) {
13440
          return lastComparison;
13596
          return lastComparison;
13441
        }
13597
        }
13442
      }
13598
      }
-
 
13599
      lastComparison = Boolean.valueOf(isSetIsMobile()).compareTo(typedOther.isSetIsMobile());
-
 
13600
      if (lastComparison != 0) {
-
 
13601
        return lastComparison;
-
 
13602
      }
-
 
13603
      if (isSetIsMobile()) {
-
 
13604
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isMobile, typedOther.isMobile);
-
 
13605
        if (lastComparison != 0) {
-
 
13606
          return lastComparison;
-
 
13607
        }
-
 
13608
      }
13443
      return 0;
13609
      return 0;
13444
    }
13610
    }
13445
 
13611
 
13446
    public _Fields fieldForId(int fieldId) {
13612
    public _Fields fieldForId(int fieldId) {
13447
      return _Fields.findByThriftId(fieldId);
13613
      return _Fields.findByThriftId(fieldId);
Line 13471... Line 13637...
13471
              setRechargeOrderIdIsSet(true);
13637
              setRechargeOrderIdIsSet(true);
13472
            } else { 
13638
            } else { 
13473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13639
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13474
            }
13640
            }
13475
            break;
13641
            break;
13476
          case -1: // PHONE
13642
          case 3: // PHONE
13477
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13643
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13478
              this.phone = iprot.readString();
13644
              this.phone = iprot.readString();
13479
            } else { 
13645
            } else { 
13480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13481
            }
13647
            }
13482
            break;
13648
            break;
-
 
13649
          case 4: // IS_MOBILE
-
 
13650
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
13651
              this.isMobile = iprot.readBool();
-
 
13652
              setIsMobileIsSet(true);
-
 
13653
            } else { 
-
 
13654
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
13655
            }
-
 
13656
            break;
13483
          default:
13657
          default:
13484
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13658
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13485
        }
13659
        }
13486
        iprot.readFieldEnd();
13660
        iprot.readFieldEnd();
13487
      }
13661
      }
Line 13491... Line 13665...
13491
 
13665
 
13492
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13666
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13493
      validate();
13667
      validate();
13494
 
13668
 
13495
      oprot.writeStructBegin(STRUCT_DESC);
13669
      oprot.writeStructBegin(STRUCT_DESC);
13496
      if (this.phone != null) {
-
 
13497
        oprot.writeFieldBegin(PHONE_FIELD_DESC);
-
 
13498
        oprot.writeString(this.phone);
-
 
13499
        oprot.writeFieldEnd();
-
 
13500
      }
-
 
13501
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
13670
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
13502
      oprot.writeI64(this.merchantPaymentId);
13671
      oprot.writeI64(this.merchantPaymentId);
13503
      oprot.writeFieldEnd();
13672
      oprot.writeFieldEnd();
13504
      oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
13673
      oprot.writeFieldBegin(RECHARGE_ORDER_ID_FIELD_DESC);
13505
      oprot.writeI64(this.rechargeOrderId);
13674
      oprot.writeI64(this.rechargeOrderId);
13506
      oprot.writeFieldEnd();
13675
      oprot.writeFieldEnd();
-
 
13676
      if (this.phone != null) {
-
 
13677
        oprot.writeFieldBegin(PHONE_FIELD_DESC);
-
 
13678
        oprot.writeString(this.phone);
-
 
13679
        oprot.writeFieldEnd();
-
 
13680
      }
-
 
13681
      oprot.writeFieldBegin(IS_MOBILE_FIELD_DESC);
-
 
13682
      oprot.writeBool(this.isMobile);
-
 
13683
      oprot.writeFieldEnd();
13507
      oprot.writeFieldStop();
13684
      oprot.writeFieldStop();
13508
      oprot.writeStructEnd();
13685
      oprot.writeStructEnd();
13509
    }
13686
    }
13510
 
13687
 
13511
    @Override
13688
    @Override
Line 13526... Line 13703...
13526
        sb.append("null");
13703
        sb.append("null");
13527
      } else {
13704
      } else {
13528
        sb.append(this.phone);
13705
        sb.append(this.phone);
13529
      }
13706
      }
13530
      first = false;
13707
      first = false;
-
 
13708
      if (!first) sb.append(", ");
-
 
13709
      sb.append("isMobile:");
-
 
13710
      sb.append(this.isMobile);
-
 
13711
      first = false;
13531
      sb.append(")");
13712
      sb.append(")");
13532
      return sb.toString();
13713
      return sb.toString();
13533
    }
13714
    }
13534
 
13715
 
13535
    public void validate() throws org.apache.thrift.TException {
13716
    public void validate() throws org.apache.thrift.TException {
Line 13937... Line 14118...
13937
 
14118
 
13938
  public static class initializeHdfcEmiPayment_args implements org.apache.thrift.TBase<initializeHdfcEmiPayment_args, initializeHdfcEmiPayment_args._Fields>, java.io.Serializable, Cloneable   {
14119
  public static class initializeHdfcEmiPayment_args implements org.apache.thrift.TBase<initializeHdfcEmiPayment_args, initializeHdfcEmiPayment_args._Fields>, java.io.Serializable, Cloneable   {
13939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_args");
14120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("initializeHdfcEmiPayment_args");
13940
 
14121
 
13941
    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);
14122
    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);
-
 
14123
    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);
13942
 
14124
 
13943
    private long merchantPaymentId; // required
14125
    private long merchantPaymentId; // required
-
 
14126
    private boolean isMobile; // required
13944
 
14127
 
13945
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14128
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13946
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14129
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13947
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
14130
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId"),
-
 
14131
      IS_MOBILE((short)2, "isMobile");
13948
 
14132
 
13949
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14133
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13950
 
14134
 
13951
      static {
14135
      static {
13952
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14136
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 13959... Line 14143...
13959
       */
14143
       */
13960
      public static _Fields findByThriftId(int fieldId) {
14144
      public static _Fields findByThriftId(int fieldId) {
13961
        switch(fieldId) {
14145
        switch(fieldId) {
13962
          case 1: // MERCHANT_PAYMENT_ID
14146
          case 1: // MERCHANT_PAYMENT_ID
13963
            return MERCHANT_PAYMENT_ID;
14147
            return MERCHANT_PAYMENT_ID;
-
 
14148
          case 2: // IS_MOBILE
-
 
14149
            return IS_MOBILE;
13964
          default:
14150
          default:
13965
            return null;
14151
            return null;
13966
        }
14152
        }
13967
      }
14153
      }
13968
 
14154
 
Line 14000... Line 14186...
14000
      }
14186
      }
14001
    }
14187
    }
14002
 
14188
 
14003
    // isset id assignments
14189
    // isset id assignments
14004
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
14190
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
-
 
14191
    private static final int __ISMOBILE_ISSET_ID = 1;
14005
    private BitSet __isset_bit_vector = new BitSet(1);
14192
    private BitSet __isset_bit_vector = new BitSet(2);
14006
 
14193
 
14007
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14194
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
14008
    static {
14195
    static {
14009
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14196
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14010
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14197
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14198
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
14199
      tmpMap.put(_Fields.IS_MOBILE, new org.apache.thrift.meta_data.FieldMetaData("isMobile", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14200
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
14012
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14201
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14013
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_args.class, metaDataMap);
14202
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(initializeHdfcEmiPayment_args.class, metaDataMap);
14014
    }
14203
    }
14015
 
14204
 
14016
    public initializeHdfcEmiPayment_args() {
14205
    public initializeHdfcEmiPayment_args() {
14017
    }
14206
    }
14018
 
14207
 
14019
    public initializeHdfcEmiPayment_args(
14208
    public initializeHdfcEmiPayment_args(
14020
      long merchantPaymentId)
14209
      long merchantPaymentId,
-
 
14210
      boolean isMobile)
14021
    {
14211
    {
14022
      this();
14212
      this();
14023
      this.merchantPaymentId = merchantPaymentId;
14213
      this.merchantPaymentId = merchantPaymentId;
14024
      setMerchantPaymentIdIsSet(true);
14214
      setMerchantPaymentIdIsSet(true);
-
 
14215
      this.isMobile = isMobile;
-
 
14216
      setIsMobileIsSet(true);
14025
    }
14217
    }
14026
 
14218
 
14027
    /**
14219
    /**
14028
     * Performs a deep copy on <i>other</i>.
14220
     * Performs a deep copy on <i>other</i>.
14029
     */
14221
     */
14030
    public initializeHdfcEmiPayment_args(initializeHdfcEmiPayment_args other) {
14222
    public initializeHdfcEmiPayment_args(initializeHdfcEmiPayment_args other) {
14031
      __isset_bit_vector.clear();
14223
      __isset_bit_vector.clear();
14032
      __isset_bit_vector.or(other.__isset_bit_vector);
14224
      __isset_bit_vector.or(other.__isset_bit_vector);
14033
      this.merchantPaymentId = other.merchantPaymentId;
14225
      this.merchantPaymentId = other.merchantPaymentId;
-
 
14226
      this.isMobile = other.isMobile;
14034
    }
14227
    }
14035
 
14228
 
14036
    public initializeHdfcEmiPayment_args deepCopy() {
14229
    public initializeHdfcEmiPayment_args deepCopy() {
14037
      return new initializeHdfcEmiPayment_args(this);
14230
      return new initializeHdfcEmiPayment_args(this);
14038
    }
14231
    }
14039
 
14232
 
14040
    @Override
14233
    @Override
14041
    public void clear() {
14234
    public void clear() {
14042
      setMerchantPaymentIdIsSet(false);
14235
      setMerchantPaymentIdIsSet(false);
14043
      this.merchantPaymentId = 0;
14236
      this.merchantPaymentId = 0;
-
 
14237
      setIsMobileIsSet(false);
-
 
14238
      this.isMobile = false;
14044
    }
14239
    }
14045
 
14240
 
14046
    public long getMerchantPaymentId() {
14241
    public long getMerchantPaymentId() {
14047
      return this.merchantPaymentId;
14242
      return this.merchantPaymentId;
14048
    }
14243
    }
Line 14063... Line 14258...
14063
 
14258
 
14064
    public void setMerchantPaymentIdIsSet(boolean value) {
14259
    public void setMerchantPaymentIdIsSet(boolean value) {
14065
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
14260
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
14066
    }
14261
    }
14067
 
14262
 
-
 
14263
    public boolean isIsMobile() {
-
 
14264
      return this.isMobile;
-
 
14265
    }
-
 
14266
 
-
 
14267
    public void setIsMobile(boolean isMobile) {
-
 
14268
      this.isMobile = isMobile;
-
 
14269
      setIsMobileIsSet(true);
-
 
14270
    }
-
 
14271
 
-
 
14272
    public void unsetIsMobile() {
-
 
14273
      __isset_bit_vector.clear(__ISMOBILE_ISSET_ID);
-
 
14274
    }
-
 
14275
 
-
 
14276
    /** Returns true if field isMobile is set (has been assigned a value) and false otherwise */
-
 
14277
    public boolean isSetIsMobile() {
-
 
14278
      return __isset_bit_vector.get(__ISMOBILE_ISSET_ID);
-
 
14279
    }
-
 
14280
 
-
 
14281
    public void setIsMobileIsSet(boolean value) {
-
 
14282
      __isset_bit_vector.set(__ISMOBILE_ISSET_ID, value);
-
 
14283
    }
-
 
14284
 
14068
    public void setFieldValue(_Fields field, Object value) {
14285
    public void setFieldValue(_Fields field, Object value) {
14069
      switch (field) {
14286
      switch (field) {
14070
      case MERCHANT_PAYMENT_ID:
14287
      case MERCHANT_PAYMENT_ID:
14071
        if (value == null) {
14288
        if (value == null) {
14072
          unsetMerchantPaymentId();
14289
          unsetMerchantPaymentId();
14073
        } else {
14290
        } else {
14074
          setMerchantPaymentId((Long)value);
14291
          setMerchantPaymentId((Long)value);
14075
        }
14292
        }
14076
        break;
14293
        break;
14077
 
14294
 
-
 
14295
      case IS_MOBILE:
-
 
14296
        if (value == null) {
-
 
14297
          unsetIsMobile();
-
 
14298
        } else {
-
 
14299
          setIsMobile((Boolean)value);
-
 
14300
        }
-
 
14301
        break;
-
 
14302
 
14078
      }
14303
      }
14079
    }
14304
    }
14080
 
14305
 
14081
    public Object getFieldValue(_Fields field) {
14306
    public Object getFieldValue(_Fields field) {
14082
      switch (field) {
14307
      switch (field) {
14083
      case MERCHANT_PAYMENT_ID:
14308
      case MERCHANT_PAYMENT_ID:
14084
        return Long.valueOf(getMerchantPaymentId());
14309
        return Long.valueOf(getMerchantPaymentId());
14085
 
14310
 
-
 
14311
      case IS_MOBILE:
-
 
14312
        return Boolean.valueOf(isIsMobile());
-
 
14313
 
14086
      }
14314
      }
14087
      throw new IllegalStateException();
14315
      throw new IllegalStateException();
14088
    }
14316
    }
14089
 
14317
 
14090
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14318
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 14094... Line 14322...
14094
      }
14322
      }
14095
 
14323
 
14096
      switch (field) {
14324
      switch (field) {
14097
      case MERCHANT_PAYMENT_ID:
14325
      case MERCHANT_PAYMENT_ID:
14098
        return isSetMerchantPaymentId();
14326
        return isSetMerchantPaymentId();
-
 
14327
      case IS_MOBILE:
-
 
14328
        return isSetIsMobile();
14099
      }
14329
      }
14100
      throw new IllegalStateException();
14330
      throw new IllegalStateException();
14101
    }
14331
    }
14102
 
14332
 
14103
    @Override
14333
    @Override
Line 14120... Line 14350...
14120
          return false;
14350
          return false;
14121
        if (this.merchantPaymentId != that.merchantPaymentId)
14351
        if (this.merchantPaymentId != that.merchantPaymentId)
14122
          return false;
14352
          return false;
14123
      }
14353
      }
14124
 
14354
 
-
 
14355
      boolean this_present_isMobile = true;
-
 
14356
      boolean that_present_isMobile = true;
-
 
14357
      if (this_present_isMobile || that_present_isMobile) {
-
 
14358
        if (!(this_present_isMobile && that_present_isMobile))
-
 
14359
          return false;
-
 
14360
        if (this.isMobile != that.isMobile)
-
 
14361
          return false;
-
 
14362
      }
-
 
14363
 
14125
      return true;
14364
      return true;
14126
    }
14365
    }
14127
 
14366
 
14128
    @Override
14367
    @Override
14129
    public int hashCode() {
14368
    public int hashCode() {
Line 14146... Line 14385...
14146
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
14385
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
14147
        if (lastComparison != 0) {
14386
        if (lastComparison != 0) {
14148
          return lastComparison;
14387
          return lastComparison;
14149
        }
14388
        }
14150
      }
14389
      }
-
 
14390
      lastComparison = Boolean.valueOf(isSetIsMobile()).compareTo(typedOther.isSetIsMobile());
-
 
14391
      if (lastComparison != 0) {
-
 
14392
        return lastComparison;
-
 
14393
      }
-
 
14394
      if (isSetIsMobile()) {
-
 
14395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.isMobile, typedOther.isMobile);
-
 
14396
        if (lastComparison != 0) {
-
 
14397
          return lastComparison;
-
 
14398
        }
-
 
14399
      }
14151
      return 0;
14400
      return 0;
14152
    }
14401
    }
14153
 
14402
 
14154
    public _Fields fieldForId(int fieldId) {
14403
    public _Fields fieldForId(int fieldId) {
14155
      return _Fields.findByThriftId(fieldId);
14404
      return _Fields.findByThriftId(fieldId);
Line 14171... Line 14420...
14171
              setMerchantPaymentIdIsSet(true);
14420
              setMerchantPaymentIdIsSet(true);
14172
            } else { 
14421
            } else { 
14173
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14422
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14174
            }
14423
            }
14175
            break;
14424
            break;
-
 
14425
          case 2: // IS_MOBILE
-
 
14426
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
14427
              this.isMobile = iprot.readBool();
-
 
14428
              setIsMobileIsSet(true);
-
 
14429
            } else { 
-
 
14430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
14431
            }
-
 
14432
            break;
14176
          default:
14433
          default:
14177
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14434
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14178
        }
14435
        }
14179
        iprot.readFieldEnd();
14436
        iprot.readFieldEnd();
14180
      }
14437
      }
Line 14187... Line 14444...
14187
 
14444
 
14188
      oprot.writeStructBegin(STRUCT_DESC);
14445
      oprot.writeStructBegin(STRUCT_DESC);
14189
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
14446
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
14190
      oprot.writeI64(this.merchantPaymentId);
14447
      oprot.writeI64(this.merchantPaymentId);
14191
      oprot.writeFieldEnd();
14448
      oprot.writeFieldEnd();
-
 
14449
      oprot.writeFieldBegin(IS_MOBILE_FIELD_DESC);
-
 
14450
      oprot.writeBool(this.isMobile);
-
 
14451
      oprot.writeFieldEnd();
14192
      oprot.writeFieldStop();
14452
      oprot.writeFieldStop();
14193
      oprot.writeStructEnd();
14453
      oprot.writeStructEnd();
14194
    }
14454
    }
14195
 
14455
 
14196
    @Override
14456
    @Override
Line 14199... Line 14459...
14199
      boolean first = true;
14459
      boolean first = true;
14200
 
14460
 
14201
      sb.append("merchantPaymentId:");
14461
      sb.append("merchantPaymentId:");
14202
      sb.append(this.merchantPaymentId);
14462
      sb.append(this.merchantPaymentId);
14203
      first = false;
14463
      first = false;
-
 
14464
      if (!first) sb.append(", ");
-
 
14465
      sb.append("isMobile:");
-
 
14466
      sb.append(this.isMobile);
-
 
14467
      first = false;
14204
      sb.append(")");
14468
      sb.append(")");
14205
      return sb.toString();
14469
      return sb.toString();
14206
    }
14470
    }
14207
 
14471
 
14208
    public void validate() throws org.apache.thrift.TException {
14472
    public void validate() throws org.apache.thrift.TException {