Subversion Repositories SmartDukaan

Rev

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

Rev 3430 Rev 3583
Line 106... Line 106...
106
     * List contains two double values, first minimum and second maximum amount.
106
     * List contains two double values, first minimum and second maximum amount.
107
     */
107
     */
108
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
108
    public List<Double> getSuccessfulPaymentsAmountRange() throws org.apache.thrift.TException;
109
 
109
 
110
    /**
110
    /**
111
     * Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
-
 
112
     * 
-
 
113
     * @param merchantPaymentId
-
 
114
     */
-
 
115
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
-
 
116
 
-
 
117
    /**
-
 
118
     * Captures an already authorized Hdfc Payment and returns a map containing the details of the captured transaction
-
 
119
     * 
-
 
120
     * @param merchantPaymentId
-
 
121
     */
-
 
122
    public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException;
-
 
123
 
-
 
124
    /**
-
 
125
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
111
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
126
     * In case of any processing error, an exception is raised.
112
     * In case of any processing error, an exception is raised.
127
     * 
113
     * 
128
     * @param merchantPaymentId
114
     * @param merchantPaymentId
129
     */
115
     */
Line 166... Line 152...
166
 
152
 
167
    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;
153
    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;
168
 
154
 
169
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
155
    public void getSuccessfulPaymentsAmountRange(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSuccessfulPaymentsAmountRange_call> resultHandler) throws org.apache.thrift.TException;
170
 
156
 
171
    public void captureEbsPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.captureEbsPayment_call> resultHandler) throws org.apache.thrift.TException;
-
 
172
 
-
 
173
    public void captureHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.captureHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
-
 
174
 
-
 
175
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
157
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException;
176
 
158
 
177
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
159
    public void createRefund(long orderId, long merchantTxnId, double amount, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createRefund_call> resultHandler) throws org.apache.thrift.TException;
178
 
160
 
179
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
161
    public void capturePayment(long merchantTxnId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.capturePayment_call> resultHandler) throws org.apache.thrift.TException;
Line 423... Line 405...
423
        return result.success;
405
        return result.success;
424
      }
406
      }
425
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
407
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
426
    }
408
    }
427
 
409
 
428
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
-
 
429
    {
-
 
430
      send_captureEbsPayment(merchantPaymentId);
-
 
431
      return recv_captureEbsPayment();
-
 
432
    }
-
 
433
 
-
 
434
    public void send_captureEbsPayment(long merchantPaymentId) throws org.apache.thrift.TException
-
 
435
    {
-
 
436
      captureEbsPayment_args args = new captureEbsPayment_args();
-
 
437
      args.setMerchantPaymentId(merchantPaymentId);
-
 
438
      sendBase("captureEbsPayment", args);
-
 
439
    }
-
 
440
 
-
 
441
    public Map<String,String> recv_captureEbsPayment() throws PaymentException, org.apache.thrift.TException
-
 
442
    {
-
 
443
      captureEbsPayment_result result = new captureEbsPayment_result();
-
 
444
      receiveBase(result, "captureEbsPayment");
-
 
445
      if (result.isSetSuccess()) {
-
 
446
        return result.success;
-
 
447
      }
-
 
448
      if (result.pe != null) {
-
 
449
        throw result.pe;
-
 
450
      }
-
 
451
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "captureEbsPayment failed: unknown result");
-
 
452
    }
-
 
453
 
-
 
454
    public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
-
 
455
    {
-
 
456
      send_captureHdfcPayment(merchantPaymentId);
-
 
457
      return recv_captureHdfcPayment();
-
 
458
    }
-
 
459
 
-
 
460
    public void send_captureHdfcPayment(long merchantPaymentId) throws org.apache.thrift.TException
-
 
461
    {
-
 
462
      captureHdfcPayment_args args = new captureHdfcPayment_args();
-
 
463
      args.setMerchantPaymentId(merchantPaymentId);
-
 
464
      sendBase("captureHdfcPayment", args);
-
 
465
    }
-
 
466
 
-
 
467
    public Map<String,String> recv_captureHdfcPayment() throws PaymentException, org.apache.thrift.TException
-
 
468
    {
-
 
469
      captureHdfcPayment_result result = new captureHdfcPayment_result();
-
 
470
      receiveBase(result, "captureHdfcPayment");
-
 
471
      if (result.isSetSuccess()) {
-
 
472
        return result.success;
-
 
473
      }
-
 
474
      if (result.pe != null) {
-
 
475
        throw result.pe;
-
 
476
      }
-
 
477
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "captureHdfcPayment failed: unknown result");
-
 
478
    }
-
 
479
 
-
 
480
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
410
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, org.apache.thrift.TException
481
    {
411
    {
482
      send_initializeHdfcPayment(merchantPaymentId);
412
      send_initializeHdfcPayment(merchantPaymentId);
483
      return recv_initializeHdfcPayment();
413
      return recv_initializeHdfcPayment();
484
    }
414
    }
Line 889... Line 819...
889
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
819
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
890
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
820
        return (new Client(prot)).recv_getSuccessfulPaymentsAmountRange();
891
      }
821
      }
892
    }
822
    }
893
 
823
 
894
    public void captureEbsPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureEbsPayment_call> resultHandler) throws org.apache.thrift.TException {
-
 
895
      checkReady();
-
 
896
      captureEbsPayment_call method_call = new captureEbsPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
-
 
897
      this.___currentMethod = method_call;
-
 
898
      ___manager.call(method_call);
-
 
899
    }
-
 
900
 
-
 
901
    public static class captureEbsPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
902
      private long merchantPaymentId;
-
 
903
      public captureEbsPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureEbsPayment_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
904
        super(client, protocolFactory, transport, resultHandler, false);
-
 
905
        this.merchantPaymentId = merchantPaymentId;
-
 
906
      }
-
 
907
 
-
 
908
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
909
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("captureEbsPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
910
        captureEbsPayment_args args = new captureEbsPayment_args();
-
 
911
        args.setMerchantPaymentId(merchantPaymentId);
-
 
912
        args.write(prot);
-
 
913
        prot.writeMessageEnd();
-
 
914
      }
-
 
915
 
-
 
916
      public Map<String,String> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
917
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
918
          throw new IllegalStateException("Method call not finished!");
-
 
919
        }
-
 
920
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
921
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
922
        return (new Client(prot)).recv_captureEbsPayment();
-
 
923
      }
-
 
924
    }
-
 
925
 
-
 
926
    public void captureHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
-
 
927
      checkReady();
-
 
928
      captureHdfcPayment_call method_call = new captureHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
-
 
929
      this.___currentMethod = method_call;
-
 
930
      ___manager.call(method_call);
-
 
931
    }
-
 
932
 
-
 
933
    public static class captureHdfcPayment_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
934
      private long merchantPaymentId;
-
 
935
      public captureHdfcPayment_call(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<captureHdfcPayment_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 {
-
 
936
        super(client, protocolFactory, transport, resultHandler, false);
-
 
937
        this.merchantPaymentId = merchantPaymentId;
-
 
938
      }
-
 
939
 
-
 
940
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
941
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("captureHdfcPayment", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
942
        captureHdfcPayment_args args = new captureHdfcPayment_args();
-
 
943
        args.setMerchantPaymentId(merchantPaymentId);
-
 
944
        args.write(prot);
-
 
945
        prot.writeMessageEnd();
-
 
946
      }
-
 
947
 
-
 
948
      public Map<String,String> getResult() throws PaymentException, org.apache.thrift.TException {
-
 
949
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
950
          throw new IllegalStateException("Method call not finished!");
-
 
951
        }
-
 
952
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
953
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
954
        return (new Client(prot)).recv_captureHdfcPayment();
-
 
955
      }
-
 
956
    }
-
 
957
 
-
 
958
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
824
    public void initializeHdfcPayment(long merchantPaymentId, org.apache.thrift.async.AsyncMethodCallback<initializeHdfcPayment_call> resultHandler) throws org.apache.thrift.TException {
959
      checkReady();
825
      checkReady();
960
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
826
      initializeHdfcPayment_call method_call = new initializeHdfcPayment_call(merchantPaymentId, resultHandler, this, ___protocolFactory, ___transport);
961
      this.___currentMethod = method_call;
827
      this.___currentMethod = method_call;
962
      ___manager.call(method_call);
828
      ___manager.call(method_call);
Line 1076... Line 942...
1076
      processMap.put("getPaymentGateway", new getPaymentGateway());
942
      processMap.put("getPaymentGateway", new getPaymentGateway());
1077
      processMap.put("getPayment", new getPayment());
943
      processMap.put("getPayment", new getPayment());
1078
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
944
      processMap.put("getPaymentForTxnId", new getPaymentForTxnId());
1079
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
945
      processMap.put("updatePaymentDetails", new updatePaymentDetails());
1080
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
946
      processMap.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
1081
      processMap.put("captureEbsPayment", new captureEbsPayment());
-
 
1082
      processMap.put("captureHdfcPayment", new captureHdfcPayment());
-
 
1083
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
947
      processMap.put("initializeHdfcPayment", new initializeHdfcPayment());
1084
      processMap.put("createRefund", new createRefund());
948
      processMap.put("createRefund", new createRefund());
1085
      processMap.put("capturePayment", new capturePayment());
949
      processMap.put("capturePayment", new capturePayment());
1086
      return processMap;
950
      return processMap;
1087
    }
951
    }
Line 1242... Line 1106...
1242
        result.success = iface.getSuccessfulPaymentsAmountRange();
1106
        result.success = iface.getSuccessfulPaymentsAmountRange();
1243
        return result;
1107
        return result;
1244
      }
1108
      }
1245
    }
1109
    }
1246
 
1110
 
1247
    private static class captureEbsPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, captureEbsPayment_args> {
-
 
1248
      public captureEbsPayment() {
-
 
1249
        super("captureEbsPayment");
-
 
1250
      }
-
 
1251
 
-
 
1252
      protected captureEbsPayment_args getEmptyArgsInstance() {
-
 
1253
        return new captureEbsPayment_args();
-
 
1254
      }
-
 
1255
 
-
 
1256
      protected captureEbsPayment_result getResult(I iface, captureEbsPayment_args args) throws org.apache.thrift.TException {
-
 
1257
        captureEbsPayment_result result = new captureEbsPayment_result();
-
 
1258
        try {
-
 
1259
          result.success = iface.captureEbsPayment(args.merchantPaymentId);
-
 
1260
        } catch (PaymentException pe) {
-
 
1261
          result.pe = pe;
-
 
1262
        }
-
 
1263
        return result;
-
 
1264
      }
-
 
1265
    }
-
 
1266
 
-
 
1267
    private static class captureHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, captureHdfcPayment_args> {
-
 
1268
      public captureHdfcPayment() {
-
 
1269
        super("captureHdfcPayment");
-
 
1270
      }
-
 
1271
 
-
 
1272
      protected captureHdfcPayment_args getEmptyArgsInstance() {
-
 
1273
        return new captureHdfcPayment_args();
-
 
1274
      }
-
 
1275
 
-
 
1276
      protected captureHdfcPayment_result getResult(I iface, captureHdfcPayment_args args) throws org.apache.thrift.TException {
-
 
1277
        captureHdfcPayment_result result = new captureHdfcPayment_result();
-
 
1278
        try {
-
 
1279
          result.success = iface.captureHdfcPayment(args.merchantPaymentId);
-
 
1280
        } catch (PaymentException pe) {
-
 
1281
          result.pe = pe;
-
 
1282
        }
-
 
1283
        return result;
-
 
1284
      }
-
 
1285
    }
-
 
1286
 
-
 
1287
    private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
1111
    private static class initializeHdfcPayment<I extends Iface> extends org.apache.thrift.ProcessFunction<I, initializeHdfcPayment_args> {
1288
      public initializeHdfcPayment() {
1112
      public initializeHdfcPayment() {
1289
        super("initializeHdfcPayment");
1113
        super("initializeHdfcPayment");
1290
      }
1114
      }
1291
 
1115
 
Line 8570... Line 8394...
8570
      }
8394
      }
8571
      first = false;
8395
      first = false;
8572
      sb.append(")");
8396
      sb.append(")");
8573
      return sb.toString();
8397
      return sb.toString();
8574
    }
8398
    }
8575
 
-
 
8576
    public void validate() throws org.apache.thrift.TException {
-
 
8577
      // check for required fields
-
 
8578
    }
-
 
8579
 
-
 
8580
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8581
      try {
-
 
8582
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8583
      } catch (org.apache.thrift.TException te) {
-
 
8584
        throw new java.io.IOException(te);
-
 
8585
      }
-
 
8586
    }
-
 
8587
 
-
 
8588
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8589
      try {
-
 
8590
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8591
      } catch (org.apache.thrift.TException te) {
-
 
8592
        throw new java.io.IOException(te);
-
 
8593
      }
-
 
8594
    }
-
 
8595
 
-
 
8596
  }
-
 
8597
 
-
 
8598
  public static class captureEbsPayment_args implements org.apache.thrift.TBase<captureEbsPayment_args, captureEbsPayment_args._Fields>, java.io.Serializable, Cloneable   {
-
 
8599
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureEbsPayment_args");
-
 
8600
 
-
 
8601
    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);
-
 
8602
 
-
 
8603
    private long merchantPaymentId; // required
-
 
8604
 
-
 
8605
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8606
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8607
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
-
 
8608
 
-
 
8609
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8610
 
-
 
8611
      static {
-
 
8612
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8613
          byName.put(field.getFieldName(), field);
-
 
8614
        }
-
 
8615
      }
-
 
8616
 
-
 
8617
      /**
-
 
8618
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8619
       */
-
 
8620
      public static _Fields findByThriftId(int fieldId) {
-
 
8621
        switch(fieldId) {
-
 
8622
          case 1: // MERCHANT_PAYMENT_ID
-
 
8623
            return MERCHANT_PAYMENT_ID;
-
 
8624
          default:
-
 
8625
            return null;
-
 
8626
        }
-
 
8627
      }
-
 
8628
 
-
 
8629
      /**
-
 
8630
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8631
       * if it is not found.
-
 
8632
       */
-
 
8633
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8634
        _Fields fields = findByThriftId(fieldId);
-
 
8635
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8636
        return fields;
-
 
8637
      }
-
 
8638
 
-
 
8639
      /**
-
 
8640
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8641
       */
-
 
8642
      public static _Fields findByName(String name) {
-
 
8643
        return byName.get(name);
-
 
8644
      }
-
 
8645
 
-
 
8646
      private final short _thriftId;
-
 
8647
      private final String _fieldName;
-
 
8648
 
-
 
8649
      _Fields(short thriftId, String fieldName) {
-
 
8650
        _thriftId = thriftId;
-
 
8651
        _fieldName = fieldName;
-
 
8652
      }
-
 
8653
 
-
 
8654
      public short getThriftFieldId() {
-
 
8655
        return _thriftId;
-
 
8656
      }
-
 
8657
 
-
 
8658
      public String getFieldName() {
-
 
8659
        return _fieldName;
-
 
8660
      }
-
 
8661
    }
-
 
8662
 
-
 
8663
    // isset id assignments
-
 
8664
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
-
 
8665
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
8666
 
-
 
8667
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8668
    static {
-
 
8669
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8670
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8671
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8672
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8673
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureEbsPayment_args.class, metaDataMap);
-
 
8674
    }
-
 
8675
 
-
 
8676
    public captureEbsPayment_args() {
-
 
8677
    }
-
 
8678
 
-
 
8679
    public captureEbsPayment_args(
-
 
8680
      long merchantPaymentId)
-
 
8681
    {
-
 
8682
      this();
-
 
8683
      this.merchantPaymentId = merchantPaymentId;
-
 
8684
      setMerchantPaymentIdIsSet(true);
-
 
8685
    }
-
 
8686
 
-
 
8687
    /**
-
 
8688
     * Performs a deep copy on <i>other</i>.
-
 
8689
     */
-
 
8690
    public captureEbsPayment_args(captureEbsPayment_args other) {
-
 
8691
      __isset_bit_vector.clear();
-
 
8692
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8693
      this.merchantPaymentId = other.merchantPaymentId;
-
 
8694
    }
-
 
8695
 
-
 
8696
    public captureEbsPayment_args deepCopy() {
-
 
8697
      return new captureEbsPayment_args(this);
-
 
8698
    }
-
 
8699
 
-
 
8700
    @Override
-
 
8701
    public void clear() {
-
 
8702
      setMerchantPaymentIdIsSet(false);
-
 
8703
      this.merchantPaymentId = 0;
-
 
8704
    }
-
 
8705
 
-
 
8706
    public long getMerchantPaymentId() {
-
 
8707
      return this.merchantPaymentId;
-
 
8708
    }
-
 
8709
 
-
 
8710
    public void setMerchantPaymentId(long merchantPaymentId) {
-
 
8711
      this.merchantPaymentId = merchantPaymentId;
-
 
8712
      setMerchantPaymentIdIsSet(true);
-
 
8713
    }
-
 
8714
 
-
 
8715
    public void unsetMerchantPaymentId() {
-
 
8716
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
-
 
8717
    }
-
 
8718
 
-
 
8719
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
-
 
8720
    public boolean isSetMerchantPaymentId() {
-
 
8721
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
-
 
8722
    }
-
 
8723
 
-
 
8724
    public void setMerchantPaymentIdIsSet(boolean value) {
-
 
8725
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
-
 
8726
    }
-
 
8727
 
-
 
8728
    public void setFieldValue(_Fields field, Object value) {
-
 
8729
      switch (field) {
-
 
8730
      case MERCHANT_PAYMENT_ID:
-
 
8731
        if (value == null) {
-
 
8732
          unsetMerchantPaymentId();
-
 
8733
        } else {
-
 
8734
          setMerchantPaymentId((Long)value);
-
 
8735
        }
-
 
8736
        break;
-
 
8737
 
-
 
8738
      }
-
 
8739
    }
-
 
8740
 
-
 
8741
    public Object getFieldValue(_Fields field) {
-
 
8742
      switch (field) {
-
 
8743
      case MERCHANT_PAYMENT_ID:
-
 
8744
        return Long.valueOf(getMerchantPaymentId());
-
 
8745
 
-
 
8746
      }
-
 
8747
      throw new IllegalStateException();
-
 
8748
    }
-
 
8749
 
-
 
8750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
8751
    public boolean isSet(_Fields field) {
-
 
8752
      if (field == null) {
-
 
8753
        throw new IllegalArgumentException();
-
 
8754
      }
-
 
8755
 
-
 
8756
      switch (field) {
-
 
8757
      case MERCHANT_PAYMENT_ID:
-
 
8758
        return isSetMerchantPaymentId();
-
 
8759
      }
-
 
8760
      throw new IllegalStateException();
-
 
8761
    }
-
 
8762
 
-
 
8763
    @Override
-
 
8764
    public boolean equals(Object that) {
-
 
8765
      if (that == null)
-
 
8766
        return false;
-
 
8767
      if (that instanceof captureEbsPayment_args)
-
 
8768
        return this.equals((captureEbsPayment_args)that);
-
 
8769
      return false;
-
 
8770
    }
-
 
8771
 
-
 
8772
    public boolean equals(captureEbsPayment_args that) {
-
 
8773
      if (that == null)
-
 
8774
        return false;
-
 
8775
 
-
 
8776
      boolean this_present_merchantPaymentId = true;
-
 
8777
      boolean that_present_merchantPaymentId = true;
-
 
8778
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
-
 
8779
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
-
 
8780
          return false;
-
 
8781
        if (this.merchantPaymentId != that.merchantPaymentId)
-
 
8782
          return false;
-
 
8783
      }
-
 
8784
 
-
 
8785
      return true;
-
 
8786
    }
-
 
8787
 
-
 
8788
    @Override
-
 
8789
    public int hashCode() {
-
 
8790
      return 0;
-
 
8791
    }
-
 
8792
 
-
 
8793
    public int compareTo(captureEbsPayment_args other) {
-
 
8794
      if (!getClass().equals(other.getClass())) {
-
 
8795
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8796
      }
-
 
8797
 
-
 
8798
      int lastComparison = 0;
-
 
8799
      captureEbsPayment_args typedOther = (captureEbsPayment_args)other;
-
 
8800
 
-
 
8801
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
-
 
8802
      if (lastComparison != 0) {
-
 
8803
        return lastComparison;
-
 
8804
      }
-
 
8805
      if (isSetMerchantPaymentId()) {
-
 
8806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
-
 
8807
        if (lastComparison != 0) {
-
 
8808
          return lastComparison;
-
 
8809
        }
-
 
8810
      }
-
 
8811
      return 0;
-
 
8812
    }
-
 
8813
 
-
 
8814
    public _Fields fieldForId(int fieldId) {
-
 
8815
      return _Fields.findByThriftId(fieldId);
-
 
8816
    }
-
 
8817
 
-
 
8818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
8819
      org.apache.thrift.protocol.TField field;
-
 
8820
      iprot.readStructBegin();
-
 
8821
      while (true)
-
 
8822
      {
-
 
8823
        field = iprot.readFieldBegin();
-
 
8824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
8825
          break;
-
 
8826
        }
-
 
8827
        switch (field.id) {
-
 
8828
          case 1: // MERCHANT_PAYMENT_ID
-
 
8829
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
8830
              this.merchantPaymentId = iprot.readI64();
-
 
8831
              setMerchantPaymentIdIsSet(true);
-
 
8832
            } else { 
-
 
8833
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8834
            }
-
 
8835
            break;
-
 
8836
          default:
-
 
8837
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
8838
        }
-
 
8839
        iprot.readFieldEnd();
-
 
8840
      }
-
 
8841
      iprot.readStructEnd();
-
 
8842
      validate();
-
 
8843
    }
-
 
8844
 
-
 
8845
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
8846
      validate();
-
 
8847
 
-
 
8848
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8849
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
-
 
8850
      oprot.writeI64(this.merchantPaymentId);
-
 
8851
      oprot.writeFieldEnd();
-
 
8852
      oprot.writeFieldStop();
-
 
8853
      oprot.writeStructEnd();
-
 
8854
    }
-
 
8855
 
-
 
8856
    @Override
-
 
8857
    public String toString() {
-
 
8858
      StringBuilder sb = new StringBuilder("captureEbsPayment_args(");
-
 
8859
      boolean first = true;
-
 
8860
 
-
 
8861
      sb.append("merchantPaymentId:");
-
 
8862
      sb.append(this.merchantPaymentId);
-
 
8863
      first = false;
-
 
8864
      sb.append(")");
-
 
8865
      return sb.toString();
-
 
8866
    }
-
 
8867
 
-
 
8868
    public void validate() throws org.apache.thrift.TException {
-
 
8869
      // check for required fields
-
 
8870
    }
-
 
8871
 
-
 
8872
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8873
      try {
-
 
8874
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8875
      } catch (org.apache.thrift.TException te) {
-
 
8876
        throw new java.io.IOException(te);
-
 
8877
      }
-
 
8878
    }
-
 
8879
 
-
 
8880
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8881
      try {
-
 
8882
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8883
      } catch (org.apache.thrift.TException te) {
-
 
8884
        throw new java.io.IOException(te);
-
 
8885
      }
-
 
8886
    }
-
 
8887
 
-
 
8888
  }
-
 
8889
 
-
 
8890
  public static class captureEbsPayment_result implements org.apache.thrift.TBase<captureEbsPayment_result, captureEbsPayment_result._Fields>, java.io.Serializable, Cloneable   {
-
 
8891
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureEbsPayment_result");
-
 
8892
 
-
 
8893
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
8894
    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);
-
 
8895
 
-
 
8896
    private Map<String,String> success; // required
-
 
8897
    private PaymentException pe; // required
-
 
8898
 
-
 
8899
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8900
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
8901
      SUCCESS((short)0, "success"),
-
 
8902
      PE((short)1, "pe");
-
 
8903
 
-
 
8904
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8905
 
-
 
8906
      static {
-
 
8907
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8908
          byName.put(field.getFieldName(), field);
-
 
8909
        }
-
 
8910
      }
-
 
8911
 
-
 
8912
      /**
-
 
8913
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8914
       */
-
 
8915
      public static _Fields findByThriftId(int fieldId) {
-
 
8916
        switch(fieldId) {
-
 
8917
          case 0: // SUCCESS
-
 
8918
            return SUCCESS;
-
 
8919
          case 1: // PE
-
 
8920
            return PE;
-
 
8921
          default:
-
 
8922
            return null;
-
 
8923
        }
-
 
8924
      }
-
 
8925
 
-
 
8926
      /**
-
 
8927
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8928
       * if it is not found.
-
 
8929
       */
-
 
8930
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8931
        _Fields fields = findByThriftId(fieldId);
-
 
8932
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8933
        return fields;
-
 
8934
      }
-
 
8935
 
-
 
8936
      /**
-
 
8937
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8938
       */
-
 
8939
      public static _Fields findByName(String name) {
-
 
8940
        return byName.get(name);
-
 
8941
      }
-
 
8942
 
-
 
8943
      private final short _thriftId;
-
 
8944
      private final String _fieldName;
-
 
8945
 
-
 
8946
      _Fields(short thriftId, String fieldName) {
-
 
8947
        _thriftId = thriftId;
-
 
8948
        _fieldName = fieldName;
-
 
8949
      }
-
 
8950
 
-
 
8951
      public short getThriftFieldId() {
-
 
8952
        return _thriftId;
-
 
8953
      }
-
 
8954
 
-
 
8955
      public String getFieldName() {
-
 
8956
        return _fieldName;
-
 
8957
      }
-
 
8958
    }
-
 
8959
 
-
 
8960
    // isset id assignments
-
 
8961
 
-
 
8962
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
8963
    static {
-
 
8964
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8965
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8966
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
8967
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
8968
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
8969
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8970
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
8971
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
8972
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureEbsPayment_result.class, metaDataMap);
-
 
8973
    }
-
 
8974
 
-
 
8975
    public captureEbsPayment_result() {
-
 
8976
    }
-
 
8977
 
-
 
8978
    public captureEbsPayment_result(
-
 
8979
      Map<String,String> success,
-
 
8980
      PaymentException pe)
-
 
8981
    {
-
 
8982
      this();
-
 
8983
      this.success = success;
-
 
8984
      this.pe = pe;
-
 
8985
    }
-
 
8986
 
-
 
8987
    /**
-
 
8988
     * Performs a deep copy on <i>other</i>.
-
 
8989
     */
-
 
8990
    public captureEbsPayment_result(captureEbsPayment_result other) {
-
 
8991
      if (other.isSetSuccess()) {
-
 
8992
        Map<String,String> __this__success = new HashMap<String,String>();
-
 
8993
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
-
 
8994
 
-
 
8995
          String other_element_key = other_element.getKey();
-
 
8996
          String other_element_value = other_element.getValue();
-
 
8997
 
-
 
8998
          String __this__success_copy_key = other_element_key;
-
 
8999
 
-
 
9000
          String __this__success_copy_value = other_element_value;
-
 
9001
 
-
 
9002
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
9003
        }
-
 
9004
        this.success = __this__success;
-
 
9005
      }
-
 
9006
      if (other.isSetPe()) {
-
 
9007
        this.pe = new PaymentException(other.pe);
-
 
9008
      }
-
 
9009
    }
-
 
9010
 
-
 
9011
    public captureEbsPayment_result deepCopy() {
-
 
9012
      return new captureEbsPayment_result(this);
-
 
9013
    }
-
 
9014
 
-
 
9015
    @Override
-
 
9016
    public void clear() {
-
 
9017
      this.success = null;
-
 
9018
      this.pe = null;
-
 
9019
    }
-
 
9020
 
-
 
9021
    public int getSuccessSize() {
-
 
9022
      return (this.success == null) ? 0 : this.success.size();
-
 
9023
    }
-
 
9024
 
-
 
9025
    public void putToSuccess(String key, String val) {
-
 
9026
      if (this.success == null) {
-
 
9027
        this.success = new HashMap<String,String>();
-
 
9028
      }
-
 
9029
      this.success.put(key, val);
-
 
9030
    }
-
 
9031
 
-
 
9032
    public Map<String,String> getSuccess() {
-
 
9033
      return this.success;
-
 
9034
    }
-
 
9035
 
-
 
9036
    public void setSuccess(Map<String,String> success) {
-
 
9037
      this.success = success;
-
 
9038
    }
-
 
9039
 
-
 
9040
    public void unsetSuccess() {
-
 
9041
      this.success = null;
-
 
9042
    }
-
 
9043
 
-
 
9044
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
9045
    public boolean isSetSuccess() {
-
 
9046
      return this.success != null;
-
 
9047
    }
-
 
9048
 
-
 
9049
    public void setSuccessIsSet(boolean value) {
-
 
9050
      if (!value) {
-
 
9051
        this.success = null;
-
 
9052
      }
-
 
9053
    }
-
 
9054
 
-
 
9055
    public PaymentException getPe() {
-
 
9056
      return this.pe;
-
 
9057
    }
-
 
9058
 
-
 
9059
    public void setPe(PaymentException pe) {
-
 
9060
      this.pe = pe;
-
 
9061
    }
-
 
9062
 
-
 
9063
    public void unsetPe() {
-
 
9064
      this.pe = null;
-
 
9065
    }
-
 
9066
 
-
 
9067
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
-
 
9068
    public boolean isSetPe() {
-
 
9069
      return this.pe != null;
-
 
9070
    }
-
 
9071
 
-
 
9072
    public void setPeIsSet(boolean value) {
-
 
9073
      if (!value) {
-
 
9074
        this.pe = null;
-
 
9075
      }
-
 
9076
    }
-
 
9077
 
-
 
9078
    public void setFieldValue(_Fields field, Object value) {
-
 
9079
      switch (field) {
-
 
9080
      case SUCCESS:
-
 
9081
        if (value == null) {
-
 
9082
          unsetSuccess();
-
 
9083
        } else {
-
 
9084
          setSuccess((Map<String,String>)value);
-
 
9085
        }
-
 
9086
        break;
-
 
9087
 
-
 
9088
      case PE:
-
 
9089
        if (value == null) {
-
 
9090
          unsetPe();
-
 
9091
        } else {
-
 
9092
          setPe((PaymentException)value);
-
 
9093
        }
-
 
9094
        break;
-
 
9095
 
-
 
9096
      }
-
 
9097
    }
-
 
9098
 
-
 
9099
    public Object getFieldValue(_Fields field) {
-
 
9100
      switch (field) {
-
 
9101
      case SUCCESS:
-
 
9102
        return getSuccess();
-
 
9103
 
-
 
9104
      case PE:
-
 
9105
        return getPe();
-
 
9106
 
-
 
9107
      }
-
 
9108
      throw new IllegalStateException();
-
 
9109
    }
-
 
9110
 
-
 
9111
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9112
    public boolean isSet(_Fields field) {
-
 
9113
      if (field == null) {
-
 
9114
        throw new IllegalArgumentException();
-
 
9115
      }
-
 
9116
 
-
 
9117
      switch (field) {
-
 
9118
      case SUCCESS:
-
 
9119
        return isSetSuccess();
-
 
9120
      case PE:
-
 
9121
        return isSetPe();
-
 
9122
      }
-
 
9123
      throw new IllegalStateException();
-
 
9124
    }
-
 
9125
 
-
 
9126
    @Override
-
 
9127
    public boolean equals(Object that) {
-
 
9128
      if (that == null)
-
 
9129
        return false;
-
 
9130
      if (that instanceof captureEbsPayment_result)
-
 
9131
        return this.equals((captureEbsPayment_result)that);
-
 
9132
      return false;
-
 
9133
    }
-
 
9134
 
-
 
9135
    public boolean equals(captureEbsPayment_result that) {
-
 
9136
      if (that == null)
-
 
9137
        return false;
-
 
9138
 
-
 
9139
      boolean this_present_success = true && this.isSetSuccess();
-
 
9140
      boolean that_present_success = true && that.isSetSuccess();
-
 
9141
      if (this_present_success || that_present_success) {
-
 
9142
        if (!(this_present_success && that_present_success))
-
 
9143
          return false;
-
 
9144
        if (!this.success.equals(that.success))
-
 
9145
          return false;
-
 
9146
      }
-
 
9147
 
-
 
9148
      boolean this_present_pe = true && this.isSetPe();
-
 
9149
      boolean that_present_pe = true && that.isSetPe();
-
 
9150
      if (this_present_pe || that_present_pe) {
-
 
9151
        if (!(this_present_pe && that_present_pe))
-
 
9152
          return false;
-
 
9153
        if (!this.pe.equals(that.pe))
-
 
9154
          return false;
-
 
9155
      }
-
 
9156
 
-
 
9157
      return true;
-
 
9158
    }
-
 
9159
 
-
 
9160
    @Override
-
 
9161
    public int hashCode() {
-
 
9162
      return 0;
-
 
9163
    }
-
 
9164
 
-
 
9165
    public int compareTo(captureEbsPayment_result other) {
-
 
9166
      if (!getClass().equals(other.getClass())) {
-
 
9167
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9168
      }
-
 
9169
 
-
 
9170
      int lastComparison = 0;
-
 
9171
      captureEbsPayment_result typedOther = (captureEbsPayment_result)other;
-
 
9172
 
-
 
9173
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
9174
      if (lastComparison != 0) {
-
 
9175
        return lastComparison;
-
 
9176
      }
-
 
9177
      if (isSetSuccess()) {
-
 
9178
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
9179
        if (lastComparison != 0) {
-
 
9180
          return lastComparison;
-
 
9181
        }
-
 
9182
      }
-
 
9183
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
9184
      if (lastComparison != 0) {
-
 
9185
        return lastComparison;
-
 
9186
      }
-
 
9187
      if (isSetPe()) {
-
 
9188
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
9189
        if (lastComparison != 0) {
-
 
9190
          return lastComparison;
-
 
9191
        }
-
 
9192
      }
-
 
9193
      return 0;
-
 
9194
    }
-
 
9195
 
-
 
9196
    public _Fields fieldForId(int fieldId) {
-
 
9197
      return _Fields.findByThriftId(fieldId);
-
 
9198
    }
-
 
9199
 
-
 
9200
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9201
      org.apache.thrift.protocol.TField field;
-
 
9202
      iprot.readStructBegin();
-
 
9203
      while (true)
-
 
9204
      {
-
 
9205
        field = iprot.readFieldBegin();
-
 
9206
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9207
          break;
-
 
9208
        }
-
 
9209
        switch (field.id) {
-
 
9210
          case 0: // SUCCESS
-
 
9211
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
9212
              {
-
 
9213
                org.apache.thrift.protocol.TMap _map32 = iprot.readMapBegin();
-
 
9214
                this.success = new HashMap<String,String>(2*_map32.size);
-
 
9215
                for (int _i33 = 0; _i33 < _map32.size; ++_i33)
-
 
9216
                {
-
 
9217
                  String _key34; // required
-
 
9218
                  String _val35; // required
-
 
9219
                  _key34 = iprot.readString();
-
 
9220
                  _val35 = iprot.readString();
-
 
9221
                  this.success.put(_key34, _val35);
-
 
9222
                }
-
 
9223
                iprot.readMapEnd();
-
 
9224
              }
-
 
9225
            } else { 
-
 
9226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9227
            }
-
 
9228
            break;
-
 
9229
          case 1: // PE
-
 
9230
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
9231
              this.pe = new PaymentException();
-
 
9232
              this.pe.read(iprot);
-
 
9233
            } else { 
-
 
9234
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9235
            }
-
 
9236
            break;
-
 
9237
          default:
-
 
9238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9239
        }
-
 
9240
        iprot.readFieldEnd();
-
 
9241
      }
-
 
9242
      iprot.readStructEnd();
-
 
9243
      validate();
-
 
9244
    }
-
 
9245
 
-
 
9246
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9247
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9248
 
-
 
9249
      if (this.isSetSuccess()) {
-
 
9250
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9251
        {
-
 
9252
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
9253
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
-
 
9254
          {
-
 
9255
            oprot.writeString(_iter36.getKey());
-
 
9256
            oprot.writeString(_iter36.getValue());
-
 
9257
          }
-
 
9258
          oprot.writeMapEnd();
-
 
9259
        }
-
 
9260
        oprot.writeFieldEnd();
-
 
9261
      } else if (this.isSetPe()) {
-
 
9262
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
9263
        this.pe.write(oprot);
-
 
9264
        oprot.writeFieldEnd();
-
 
9265
      }
-
 
9266
      oprot.writeFieldStop();
-
 
9267
      oprot.writeStructEnd();
-
 
9268
    }
-
 
9269
 
-
 
9270
    @Override
-
 
9271
    public String toString() {
-
 
9272
      StringBuilder sb = new StringBuilder("captureEbsPayment_result(");
-
 
9273
      boolean first = true;
-
 
9274
 
-
 
9275
      sb.append("success:");
-
 
9276
      if (this.success == null) {
-
 
9277
        sb.append("null");
-
 
9278
      } else {
-
 
9279
        sb.append(this.success);
-
 
9280
      }
-
 
9281
      first = false;
-
 
9282
      if (!first) sb.append(", ");
-
 
9283
      sb.append("pe:");
-
 
9284
      if (this.pe == null) {
-
 
9285
        sb.append("null");
-
 
9286
      } else {
-
 
9287
        sb.append(this.pe);
-
 
9288
      }
-
 
9289
      first = false;
-
 
9290
      sb.append(")");
-
 
9291
      return sb.toString();
-
 
9292
    }
-
 
9293
 
-
 
9294
    public void validate() throws org.apache.thrift.TException {
-
 
9295
      // check for required fields
-
 
9296
    }
-
 
9297
 
-
 
9298
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9299
      try {
-
 
9300
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9301
      } catch (org.apache.thrift.TException te) {
-
 
9302
        throw new java.io.IOException(te);
-
 
9303
      }
-
 
9304
    }
-
 
9305
 
-
 
9306
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9307
      try {
-
 
9308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9309
      } catch (org.apache.thrift.TException te) {
-
 
9310
        throw new java.io.IOException(te);
-
 
9311
      }
-
 
9312
    }
-
 
9313
 
-
 
9314
  }
-
 
9315
 
-
 
9316
  public static class captureHdfcPayment_args implements org.apache.thrift.TBase<captureHdfcPayment_args, captureHdfcPayment_args._Fields>, java.io.Serializable, Cloneable   {
-
 
9317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureHdfcPayment_args");
-
 
9318
 
-
 
9319
    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);
-
 
9320
 
-
 
9321
    private long merchantPaymentId; // required
-
 
9322
 
-
 
9323
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9324
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9325
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
-
 
9326
 
-
 
9327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9328
 
-
 
9329
      static {
-
 
9330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9331
          byName.put(field.getFieldName(), field);
-
 
9332
        }
-
 
9333
      }
-
 
9334
 
-
 
9335
      /**
-
 
9336
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9337
       */
-
 
9338
      public static _Fields findByThriftId(int fieldId) {
-
 
9339
        switch(fieldId) {
-
 
9340
          case 1: // MERCHANT_PAYMENT_ID
-
 
9341
            return MERCHANT_PAYMENT_ID;
-
 
9342
          default:
-
 
9343
            return null;
-
 
9344
        }
-
 
9345
      }
-
 
9346
 
-
 
9347
      /**
-
 
9348
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9349
       * if it is not found.
-
 
9350
       */
-
 
9351
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9352
        _Fields fields = findByThriftId(fieldId);
-
 
9353
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9354
        return fields;
-
 
9355
      }
-
 
9356
 
-
 
9357
      /**
-
 
9358
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9359
       */
-
 
9360
      public static _Fields findByName(String name) {
-
 
9361
        return byName.get(name);
-
 
9362
      }
-
 
9363
 
-
 
9364
      private final short _thriftId;
-
 
9365
      private final String _fieldName;
-
 
9366
 
-
 
9367
      _Fields(short thriftId, String fieldName) {
-
 
9368
        _thriftId = thriftId;
-
 
9369
        _fieldName = fieldName;
-
 
9370
      }
-
 
9371
 
-
 
9372
      public short getThriftFieldId() {
-
 
9373
        return _thriftId;
-
 
9374
      }
-
 
9375
 
-
 
9376
      public String getFieldName() {
-
 
9377
        return _fieldName;
-
 
9378
      }
-
 
9379
    }
-
 
9380
 
-
 
9381
    // isset id assignments
-
 
9382
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
-
 
9383
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9384
 
-
 
9385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9386
    static {
-
 
9387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9388
      tmpMap.put(_Fields.MERCHANT_PAYMENT_ID, new org.apache.thrift.meta_data.FieldMetaData("merchantPaymentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
9390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureHdfcPayment_args.class, metaDataMap);
-
 
9392
    }
-
 
9393
 
-
 
9394
    public captureHdfcPayment_args() {
-
 
9395
    }
-
 
9396
 
-
 
9397
    public captureHdfcPayment_args(
-
 
9398
      long merchantPaymentId)
-
 
9399
    {
-
 
9400
      this();
-
 
9401
      this.merchantPaymentId = merchantPaymentId;
-
 
9402
      setMerchantPaymentIdIsSet(true);
-
 
9403
    }
-
 
9404
 
-
 
9405
    /**
-
 
9406
     * Performs a deep copy on <i>other</i>.
-
 
9407
     */
-
 
9408
    public captureHdfcPayment_args(captureHdfcPayment_args other) {
-
 
9409
      __isset_bit_vector.clear();
-
 
9410
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9411
      this.merchantPaymentId = other.merchantPaymentId;
-
 
9412
    }
-
 
9413
 
-
 
9414
    public captureHdfcPayment_args deepCopy() {
-
 
9415
      return new captureHdfcPayment_args(this);
-
 
9416
    }
-
 
9417
 
-
 
9418
    @Override
-
 
9419
    public void clear() {
-
 
9420
      setMerchantPaymentIdIsSet(false);
-
 
9421
      this.merchantPaymentId = 0;
-
 
9422
    }
-
 
9423
 
-
 
9424
    public long getMerchantPaymentId() {
-
 
9425
      return this.merchantPaymentId;
-
 
9426
    }
-
 
9427
 
-
 
9428
    public void setMerchantPaymentId(long merchantPaymentId) {
-
 
9429
      this.merchantPaymentId = merchantPaymentId;
-
 
9430
      setMerchantPaymentIdIsSet(true);
-
 
9431
    }
-
 
9432
 
-
 
9433
    public void unsetMerchantPaymentId() {
-
 
9434
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
-
 
9435
    }
-
 
9436
 
-
 
9437
    /** Returns true if field merchantPaymentId is set (has been assigned a value) and false otherwise */
-
 
9438
    public boolean isSetMerchantPaymentId() {
-
 
9439
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
-
 
9440
    }
-
 
9441
 
-
 
9442
    public void setMerchantPaymentIdIsSet(boolean value) {
-
 
9443
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
-
 
9444
    }
-
 
9445
 
-
 
9446
    public void setFieldValue(_Fields field, Object value) {
-
 
9447
      switch (field) {
-
 
9448
      case MERCHANT_PAYMENT_ID:
-
 
9449
        if (value == null) {
-
 
9450
          unsetMerchantPaymentId();
-
 
9451
        } else {
-
 
9452
          setMerchantPaymentId((Long)value);
-
 
9453
        }
-
 
9454
        break;
-
 
9455
 
-
 
9456
      }
-
 
9457
    }
-
 
9458
 
-
 
9459
    public Object getFieldValue(_Fields field) {
-
 
9460
      switch (field) {
-
 
9461
      case MERCHANT_PAYMENT_ID:
-
 
9462
        return Long.valueOf(getMerchantPaymentId());
-
 
9463
 
-
 
9464
      }
-
 
9465
      throw new IllegalStateException();
-
 
9466
    }
-
 
9467
 
-
 
9468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9469
    public boolean isSet(_Fields field) {
-
 
9470
      if (field == null) {
-
 
9471
        throw new IllegalArgumentException();
-
 
9472
      }
-
 
9473
 
-
 
9474
      switch (field) {
-
 
9475
      case MERCHANT_PAYMENT_ID:
-
 
9476
        return isSetMerchantPaymentId();
-
 
9477
      }
-
 
9478
      throw new IllegalStateException();
-
 
9479
    }
-
 
9480
 
-
 
9481
    @Override
-
 
9482
    public boolean equals(Object that) {
-
 
9483
      if (that == null)
-
 
9484
        return false;
-
 
9485
      if (that instanceof captureHdfcPayment_args)
-
 
9486
        return this.equals((captureHdfcPayment_args)that);
-
 
9487
      return false;
-
 
9488
    }
-
 
9489
 
-
 
9490
    public boolean equals(captureHdfcPayment_args that) {
-
 
9491
      if (that == null)
-
 
9492
        return false;
-
 
9493
 
-
 
9494
      boolean this_present_merchantPaymentId = true;
-
 
9495
      boolean that_present_merchantPaymentId = true;
-
 
9496
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
-
 
9497
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
-
 
9498
          return false;
-
 
9499
        if (this.merchantPaymentId != that.merchantPaymentId)
-
 
9500
          return false;
-
 
9501
      }
-
 
9502
 
-
 
9503
      return true;
-
 
9504
    }
-
 
9505
 
-
 
9506
    @Override
-
 
9507
    public int hashCode() {
-
 
9508
      return 0;
-
 
9509
    }
-
 
9510
 
-
 
9511
    public int compareTo(captureHdfcPayment_args other) {
-
 
9512
      if (!getClass().equals(other.getClass())) {
-
 
9513
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9514
      }
-
 
9515
 
-
 
9516
      int lastComparison = 0;
-
 
9517
      captureHdfcPayment_args typedOther = (captureHdfcPayment_args)other;
-
 
9518
 
-
 
9519
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(typedOther.isSetMerchantPaymentId());
-
 
9520
      if (lastComparison != 0) {
-
 
9521
        return lastComparison;
-
 
9522
      }
-
 
9523
      if (isSetMerchantPaymentId()) {
-
 
9524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.merchantPaymentId, typedOther.merchantPaymentId);
-
 
9525
        if (lastComparison != 0) {
-
 
9526
          return lastComparison;
-
 
9527
        }
-
 
9528
      }
-
 
9529
      return 0;
-
 
9530
    }
-
 
9531
 
-
 
9532
    public _Fields fieldForId(int fieldId) {
-
 
9533
      return _Fields.findByThriftId(fieldId);
-
 
9534
    }
-
 
9535
 
-
 
9536
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9537
      org.apache.thrift.protocol.TField field;
-
 
9538
      iprot.readStructBegin();
-
 
9539
      while (true)
-
 
9540
      {
-
 
9541
        field = iprot.readFieldBegin();
-
 
9542
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9543
          break;
-
 
9544
        }
-
 
9545
        switch (field.id) {
-
 
9546
          case 1: // MERCHANT_PAYMENT_ID
-
 
9547
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
9548
              this.merchantPaymentId = iprot.readI64();
-
 
9549
              setMerchantPaymentIdIsSet(true);
-
 
9550
            } else { 
-
 
9551
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9552
            }
-
 
9553
            break;
-
 
9554
          default:
-
 
9555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9556
        }
-
 
9557
        iprot.readFieldEnd();
-
 
9558
      }
-
 
9559
      iprot.readStructEnd();
-
 
9560
      validate();
-
 
9561
    }
-
 
9562
 
-
 
9563
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9564
      validate();
-
 
9565
 
-
 
9566
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9567
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
-
 
9568
      oprot.writeI64(this.merchantPaymentId);
-
 
9569
      oprot.writeFieldEnd();
-
 
9570
      oprot.writeFieldStop();
-
 
9571
      oprot.writeStructEnd();
-
 
9572
    }
-
 
9573
 
-
 
9574
    @Override
-
 
9575
    public String toString() {
-
 
9576
      StringBuilder sb = new StringBuilder("captureHdfcPayment_args(");
-
 
9577
      boolean first = true;
-
 
9578
 
-
 
9579
      sb.append("merchantPaymentId:");
-
 
9580
      sb.append(this.merchantPaymentId);
-
 
9581
      first = false;
-
 
9582
      sb.append(")");
-
 
9583
      return sb.toString();
-
 
9584
    }
-
 
9585
 
-
 
9586
    public void validate() throws org.apache.thrift.TException {
-
 
9587
      // check for required fields
-
 
9588
    }
-
 
9589
 
-
 
9590
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9591
      try {
-
 
9592
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9593
      } catch (org.apache.thrift.TException te) {
-
 
9594
        throw new java.io.IOException(te);
-
 
9595
      }
-
 
9596
    }
-
 
9597
 
-
 
9598
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9599
      try {
-
 
9600
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9601
      } catch (org.apache.thrift.TException te) {
-
 
9602
        throw new java.io.IOException(te);
-
 
9603
      }
-
 
9604
    }
-
 
9605
 
-
 
9606
  }
-
 
9607
 
-
 
9608
  public static class captureHdfcPayment_result implements org.apache.thrift.TBase<captureHdfcPayment_result, captureHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
-
 
9609
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("captureHdfcPayment_result");
-
 
9610
 
-
 
9611
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
-
 
9612
    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);
-
 
9613
 
-
 
9614
    private Map<String,String> success; // required
-
 
9615
    private PaymentException pe; // required
-
 
9616
 
-
 
9617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9618
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9619
      SUCCESS((short)0, "success"),
-
 
9620
      PE((short)1, "pe");
-
 
9621
 
-
 
9622
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9623
 
-
 
9624
      static {
-
 
9625
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9626
          byName.put(field.getFieldName(), field);
-
 
9627
        }
-
 
9628
      }
-
 
9629
 
-
 
9630
      /**
-
 
9631
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9632
       */
-
 
9633
      public static _Fields findByThriftId(int fieldId) {
-
 
9634
        switch(fieldId) {
-
 
9635
          case 0: // SUCCESS
-
 
9636
            return SUCCESS;
-
 
9637
          case 1: // PE
-
 
9638
            return PE;
-
 
9639
          default:
-
 
9640
            return null;
-
 
9641
        }
-
 
9642
      }
-
 
9643
 
-
 
9644
      /**
-
 
9645
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9646
       * if it is not found.
-
 
9647
       */
-
 
9648
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9649
        _Fields fields = findByThriftId(fieldId);
-
 
9650
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9651
        return fields;
-
 
9652
      }
-
 
9653
 
-
 
9654
      /**
-
 
9655
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9656
       */
-
 
9657
      public static _Fields findByName(String name) {
-
 
9658
        return byName.get(name);
-
 
9659
      }
-
 
9660
 
-
 
9661
      private final short _thriftId;
-
 
9662
      private final String _fieldName;
-
 
9663
 
-
 
9664
      _Fields(short thriftId, String fieldName) {
-
 
9665
        _thriftId = thriftId;
-
 
9666
        _fieldName = fieldName;
-
 
9667
      }
-
 
9668
 
-
 
9669
      public short getThriftFieldId() {
-
 
9670
        return _thriftId;
-
 
9671
      }
-
 
9672
 
-
 
9673
      public String getFieldName() {
-
 
9674
        return _fieldName;
-
 
9675
      }
-
 
9676
    }
-
 
9677
 
-
 
9678
    // isset id assignments
-
 
9679
 
-
 
9680
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9681
    static {
-
 
9682
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9683
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9684
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
9685
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
9686
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
9687
      tmpMap.put(_Fields.PE, new org.apache.thrift.meta_data.FieldMetaData("pe", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9688
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
9689
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9690
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(captureHdfcPayment_result.class, metaDataMap);
-
 
9691
    }
-
 
9692
 
-
 
9693
    public captureHdfcPayment_result() {
-
 
9694
    }
-
 
9695
 
-
 
9696
    public captureHdfcPayment_result(
-
 
9697
      Map<String,String> success,
-
 
9698
      PaymentException pe)
-
 
9699
    {
-
 
9700
      this();
-
 
9701
      this.success = success;
-
 
9702
      this.pe = pe;
-
 
9703
    }
-
 
9704
 
-
 
9705
    /**
-
 
9706
     * Performs a deep copy on <i>other</i>.
-
 
9707
     */
-
 
9708
    public captureHdfcPayment_result(captureHdfcPayment_result other) {
-
 
9709
      if (other.isSetSuccess()) {
-
 
9710
        Map<String,String> __this__success = new HashMap<String,String>();
-
 
9711
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
-
 
9712
 
-
 
9713
          String other_element_key = other_element.getKey();
-
 
9714
          String other_element_value = other_element.getValue();
-
 
9715
 
-
 
9716
          String __this__success_copy_key = other_element_key;
-
 
9717
 
-
 
9718
          String __this__success_copy_value = other_element_value;
-
 
9719
 
-
 
9720
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
9721
        }
-
 
9722
        this.success = __this__success;
-
 
9723
      }
-
 
9724
      if (other.isSetPe()) {
-
 
9725
        this.pe = new PaymentException(other.pe);
-
 
9726
      }
-
 
9727
    }
-
 
9728
 
-
 
9729
    public captureHdfcPayment_result deepCopy() {
-
 
9730
      return new captureHdfcPayment_result(this);
-
 
9731
    }
-
 
9732
 
-
 
9733
    @Override
-
 
9734
    public void clear() {
-
 
9735
      this.success = null;
-
 
9736
      this.pe = null;
-
 
9737
    }
-
 
9738
 
-
 
9739
    public int getSuccessSize() {
-
 
9740
      return (this.success == null) ? 0 : this.success.size();
-
 
9741
    }
-
 
9742
 
-
 
9743
    public void putToSuccess(String key, String val) {
-
 
9744
      if (this.success == null) {
-
 
9745
        this.success = new HashMap<String,String>();
-
 
9746
      }
-
 
9747
      this.success.put(key, val);
-
 
9748
    }
-
 
9749
 
-
 
9750
    public Map<String,String> getSuccess() {
-
 
9751
      return this.success;
-
 
9752
    }
-
 
9753
 
-
 
9754
    public void setSuccess(Map<String,String> success) {
-
 
9755
      this.success = success;
-
 
9756
    }
-
 
9757
 
-
 
9758
    public void unsetSuccess() {
-
 
9759
      this.success = null;
-
 
9760
    }
-
 
9761
 
-
 
9762
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
9763
    public boolean isSetSuccess() {
-
 
9764
      return this.success != null;
-
 
9765
    }
-
 
9766
 
-
 
9767
    public void setSuccessIsSet(boolean value) {
-
 
9768
      if (!value) {
-
 
9769
        this.success = null;
-
 
9770
      }
-
 
9771
    }
-
 
9772
 
-
 
9773
    public PaymentException getPe() {
-
 
9774
      return this.pe;
-
 
9775
    }
-
 
9776
 
-
 
9777
    public void setPe(PaymentException pe) {
-
 
9778
      this.pe = pe;
-
 
9779
    }
-
 
9780
 
-
 
9781
    public void unsetPe() {
-
 
9782
      this.pe = null;
-
 
9783
    }
-
 
9784
 
-
 
9785
    /** Returns true if field pe is set (has been assigned a value) and false otherwise */
-
 
9786
    public boolean isSetPe() {
-
 
9787
      return this.pe != null;
-
 
9788
    }
-
 
9789
 
-
 
9790
    public void setPeIsSet(boolean value) {
-
 
9791
      if (!value) {
-
 
9792
        this.pe = null;
-
 
9793
      }
-
 
9794
    }
-
 
9795
 
-
 
9796
    public void setFieldValue(_Fields field, Object value) {
-
 
9797
      switch (field) {
-
 
9798
      case SUCCESS:
-
 
9799
        if (value == null) {
-
 
9800
          unsetSuccess();
-
 
9801
        } else {
-
 
9802
          setSuccess((Map<String,String>)value);
-
 
9803
        }
-
 
9804
        break;
-
 
9805
 
-
 
9806
      case PE:
-
 
9807
        if (value == null) {
-
 
9808
          unsetPe();
-
 
9809
        } else {
-
 
9810
          setPe((PaymentException)value);
-
 
9811
        }
-
 
9812
        break;
-
 
9813
 
-
 
9814
      }
-
 
9815
    }
-
 
9816
 
-
 
9817
    public Object getFieldValue(_Fields field) {
-
 
9818
      switch (field) {
-
 
9819
      case SUCCESS:
-
 
9820
        return getSuccess();
-
 
9821
 
-
 
9822
      case PE:
-
 
9823
        return getPe();
-
 
9824
 
-
 
9825
      }
-
 
9826
      throw new IllegalStateException();
-
 
9827
    }
-
 
9828
 
-
 
9829
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9830
    public boolean isSet(_Fields field) {
-
 
9831
      if (field == null) {
-
 
9832
        throw new IllegalArgumentException();
-
 
9833
      }
-
 
9834
 
-
 
9835
      switch (field) {
-
 
9836
      case SUCCESS:
-
 
9837
        return isSetSuccess();
-
 
9838
      case PE:
-
 
9839
        return isSetPe();
-
 
9840
      }
-
 
9841
      throw new IllegalStateException();
-
 
9842
    }
-
 
9843
 
-
 
9844
    @Override
-
 
9845
    public boolean equals(Object that) {
-
 
9846
      if (that == null)
-
 
9847
        return false;
-
 
9848
      if (that instanceof captureHdfcPayment_result)
-
 
9849
        return this.equals((captureHdfcPayment_result)that);
-
 
9850
      return false;
-
 
9851
    }
-
 
9852
 
-
 
9853
    public boolean equals(captureHdfcPayment_result that) {
-
 
9854
      if (that == null)
-
 
9855
        return false;
-
 
9856
 
-
 
9857
      boolean this_present_success = true && this.isSetSuccess();
-
 
9858
      boolean that_present_success = true && that.isSetSuccess();
-
 
9859
      if (this_present_success || that_present_success) {
-
 
9860
        if (!(this_present_success && that_present_success))
-
 
9861
          return false;
-
 
9862
        if (!this.success.equals(that.success))
-
 
9863
          return false;
-
 
9864
      }
-
 
9865
 
-
 
9866
      boolean this_present_pe = true && this.isSetPe();
-
 
9867
      boolean that_present_pe = true && that.isSetPe();
-
 
9868
      if (this_present_pe || that_present_pe) {
-
 
9869
        if (!(this_present_pe && that_present_pe))
-
 
9870
          return false;
-
 
9871
        if (!this.pe.equals(that.pe))
-
 
9872
          return false;
-
 
9873
      }
-
 
9874
 
-
 
9875
      return true;
-
 
9876
    }
-
 
9877
 
-
 
9878
    @Override
-
 
9879
    public int hashCode() {
-
 
9880
      return 0;
-
 
9881
    }
-
 
9882
 
-
 
9883
    public int compareTo(captureHdfcPayment_result other) {
-
 
9884
      if (!getClass().equals(other.getClass())) {
-
 
9885
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9886
      }
-
 
9887
 
-
 
9888
      int lastComparison = 0;
-
 
9889
      captureHdfcPayment_result typedOther = (captureHdfcPayment_result)other;
-
 
9890
 
-
 
9891
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
9892
      if (lastComparison != 0) {
-
 
9893
        return lastComparison;
-
 
9894
      }
-
 
9895
      if (isSetSuccess()) {
-
 
9896
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
9897
        if (lastComparison != 0) {
-
 
9898
          return lastComparison;
-
 
9899
        }
-
 
9900
      }
-
 
9901
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(typedOther.isSetPe());
-
 
9902
      if (lastComparison != 0) {
-
 
9903
        return lastComparison;
-
 
9904
      }
-
 
9905
      if (isSetPe()) {
-
 
9906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pe, typedOther.pe);
-
 
9907
        if (lastComparison != 0) {
-
 
9908
          return lastComparison;
-
 
9909
        }
-
 
9910
      }
-
 
9911
      return 0;
-
 
9912
    }
-
 
9913
 
-
 
9914
    public _Fields fieldForId(int fieldId) {
-
 
9915
      return _Fields.findByThriftId(fieldId);
-
 
9916
    }
-
 
9917
 
-
 
9918
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9919
      org.apache.thrift.protocol.TField field;
-
 
9920
      iprot.readStructBegin();
-
 
9921
      while (true)
-
 
9922
      {
-
 
9923
        field = iprot.readFieldBegin();
-
 
9924
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9925
          break;
-
 
9926
        }
-
 
9927
        switch (field.id) {
-
 
9928
          case 0: // SUCCESS
-
 
9929
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
9930
              {
-
 
9931
                org.apache.thrift.protocol.TMap _map37 = iprot.readMapBegin();
-
 
9932
                this.success = new HashMap<String,String>(2*_map37.size);
-
 
9933
                for (int _i38 = 0; _i38 < _map37.size; ++_i38)
-
 
9934
                {
-
 
9935
                  String _key39; // required
-
 
9936
                  String _val40; // required
-
 
9937
                  _key39 = iprot.readString();
-
 
9938
                  _val40 = iprot.readString();
-
 
9939
                  this.success.put(_key39, _val40);
-
 
9940
                }
-
 
9941
                iprot.readMapEnd();
-
 
9942
              }
-
 
9943
            } else { 
-
 
9944
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9945
            }
-
 
9946
            break;
-
 
9947
          case 1: // PE
-
 
9948
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
9949
              this.pe = new PaymentException();
-
 
9950
              this.pe.read(iprot);
-
 
9951
            } else { 
-
 
9952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9953
            }
-
 
9954
            break;
-
 
9955
          default:
-
 
9956
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9957
        }
-
 
9958
        iprot.readFieldEnd();
-
 
9959
      }
-
 
9960
      iprot.readStructEnd();
-
 
9961
      validate();
-
 
9962
    }
-
 
9963
 
-
 
9964
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9965
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9966
 
-
 
9967
      if (this.isSetSuccess()) {
-
 
9968
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9969
        {
-
 
9970
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
-
 
9971
          for (Map.Entry<String, String> _iter41 : this.success.entrySet())
-
 
9972
          {
-
 
9973
            oprot.writeString(_iter41.getKey());
-
 
9974
            oprot.writeString(_iter41.getValue());
-
 
9975
          }
-
 
9976
          oprot.writeMapEnd();
-
 
9977
        }
-
 
9978
        oprot.writeFieldEnd();
-
 
9979
      } else if (this.isSetPe()) {
-
 
9980
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
9981
        this.pe.write(oprot);
-
 
9982
        oprot.writeFieldEnd();
-
 
9983
      }
-
 
9984
      oprot.writeFieldStop();
-
 
9985
      oprot.writeStructEnd();
-
 
9986
    }
-
 
9987
 
-
 
9988
    @Override
-
 
9989
    public String toString() {
-
 
9990
      StringBuilder sb = new StringBuilder("captureHdfcPayment_result(");
-
 
9991
      boolean first = true;
-
 
9992
 
-
 
9993
      sb.append("success:");
-
 
9994
      if (this.success == null) {
-
 
9995
        sb.append("null");
-
 
9996
      } else {
-
 
9997
        sb.append(this.success);
-
 
9998
      }
-
 
9999
      first = false;
-
 
10000
      if (!first) sb.append(", ");
-
 
10001
      sb.append("pe:");
-
 
10002
      if (this.pe == null) {
-
 
10003
        sb.append("null");
-
 
10004
      } else {
-
 
10005
        sb.append(this.pe);
-
 
10006
      }
-
 
10007
      first = false;
-
 
10008
      sb.append(")");
-
 
10009
      return sb.toString();
-
 
10010
    }
-
 
10011
 
8399
 
10012
    public void validate() throws org.apache.thrift.TException {
8400
    public void validate() throws org.apache.thrift.TException {
10013
      // check for required fields
8401
      // check for required fields
10014
    }
8402
    }
10015
 
8403