Subversion Repositories SmartDukaan

Rev

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

Rev 2060 Rev 2462
Line 113... Line 113...
113
     * Returns the minimum and maximum amounts among successful payments.
113
     * Returns the minimum and maximum amounts among successful payments.
114
     * List contains two double values, first minimum and second maximum amount.
114
     * List contains two double values, first minimum and second maximum amount.
115
     */
115
     */
116
    public List<Double> getSuccessfulPaymentsAmountRange() throws TException;
116
    public List<Double> getSuccessfulPaymentsAmountRange() throws TException;
117
 
117
 
-
 
118
    /**
-
 
119
     * Update the authorization attributes of the payment and attempt to capture it in case it was authorized.
-
 
120
     * If either the authorization failed or the capture attempt failed, the payment is marked as failed.
-
 
121
     * 
-
 
122
     * @param paymentParams
-
 
123
     */
-
 
124
    public Payment updateAndCaptureEbsPayment(Map<String,String> paymentParams) throws PaymentException, TException;
-
 
125
 
-
 
126
    /**
-
 
127
     * Captures an already authorized Hdfc Payment and returns a map containing the details of the capture transaction
-
 
128
     * 
-
 
129
     * @param merchantPaymentId
-
 
130
     */
-
 
131
    public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, TException;
-
 
132
 
-
 
133
    /**
-
 
134
     * Initialize the payment pipe for a HDFC payment. The URL the user should be redirected to is returned.
-
 
135
     * In case of any processing error, an exception is raised.
-
 
136
     * 
-
 
137
     * @param merchantPaymentId
-
 
138
     */
-
 
139
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, TException;
-
 
140
 
118
  }
141
  }
119
 
142
 
120
  public static class Client implements Iface {
143
  public static class Client implements Iface {
121
    public Client(TProtocol prot)
144
    public Client(TProtocol prot)
122
    {
145
    {
Line 476... Line 499...
476
        return result.success;
499
        return result.success;
477
      }
500
      }
478
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
501
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
479
    }
502
    }
480
 
503
 
-
 
504
    public Payment updateAndCaptureEbsPayment(Map<String,String> paymentParams) throws PaymentException, TException
-
 
505
    {
-
 
506
      send_updateAndCaptureEbsPayment(paymentParams);
-
 
507
      return recv_updateAndCaptureEbsPayment();
-
 
508
    }
-
 
509
 
-
 
510
    public void send_updateAndCaptureEbsPayment(Map<String,String> paymentParams) throws TException
-
 
511
    {
-
 
512
      oprot_.writeMessageBegin(new TMessage("updateAndCaptureEbsPayment", TMessageType.CALL, seqid_));
-
 
513
      updateAndCaptureEbsPayment_args args = new updateAndCaptureEbsPayment_args();
-
 
514
      args.paymentParams = paymentParams;
-
 
515
      args.write(oprot_);
-
 
516
      oprot_.writeMessageEnd();
-
 
517
      oprot_.getTransport().flush();
-
 
518
    }
-
 
519
 
-
 
520
    public Payment recv_updateAndCaptureEbsPayment() throws PaymentException, TException
-
 
521
    {
-
 
522
      TMessage msg = iprot_.readMessageBegin();
-
 
523
      if (msg.type == TMessageType.EXCEPTION) {
-
 
524
        TApplicationException x = TApplicationException.read(iprot_);
-
 
525
        iprot_.readMessageEnd();
-
 
526
        throw x;
-
 
527
      }
-
 
528
      updateAndCaptureEbsPayment_result result = new updateAndCaptureEbsPayment_result();
-
 
529
      result.read(iprot_);
-
 
530
      iprot_.readMessageEnd();
-
 
531
      if (result.isSetSuccess()) {
-
 
532
        return result.success;
-
 
533
      }
-
 
534
      if (result.pe != null) {
-
 
535
        throw result.pe;
-
 
536
      }
-
 
537
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateAndCaptureEbsPayment failed: unknown result");
-
 
538
    }
-
 
539
 
-
 
540
    public Map<String,String> captureHdfcPayment(long merchantPaymentId) throws PaymentException, TException
-
 
541
    {
-
 
542
      send_captureHdfcPayment(merchantPaymentId);
-
 
543
      return recv_captureHdfcPayment();
-
 
544
    }
-
 
545
 
-
 
546
    public void send_captureHdfcPayment(long merchantPaymentId) throws TException
-
 
547
    {
-
 
548
      oprot_.writeMessageBegin(new TMessage("captureHdfcPayment", TMessageType.CALL, seqid_));
-
 
549
      captureHdfcPayment_args args = new captureHdfcPayment_args();
-
 
550
      args.merchantPaymentId = merchantPaymentId;
-
 
551
      args.write(oprot_);
-
 
552
      oprot_.writeMessageEnd();
-
 
553
      oprot_.getTransport().flush();
-
 
554
    }
-
 
555
 
-
 
556
    public Map<String,String> recv_captureHdfcPayment() throws PaymentException, TException
-
 
557
    {
-
 
558
      TMessage msg = iprot_.readMessageBegin();
-
 
559
      if (msg.type == TMessageType.EXCEPTION) {
-
 
560
        TApplicationException x = TApplicationException.read(iprot_);
-
 
561
        iprot_.readMessageEnd();
-
 
562
        throw x;
-
 
563
      }
-
 
564
      captureHdfcPayment_result result = new captureHdfcPayment_result();
-
 
565
      result.read(iprot_);
-
 
566
      iprot_.readMessageEnd();
-
 
567
      if (result.isSetSuccess()) {
-
 
568
        return result.success;
-
 
569
      }
-
 
570
      if (result.pe != null) {
-
 
571
        throw result.pe;
-
 
572
      }
-
 
573
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "captureHdfcPayment failed: unknown result");
-
 
574
    }
-
 
575
 
-
 
576
    public String initializeHdfcPayment(long merchantPaymentId) throws PaymentException, TException
-
 
577
    {
-
 
578
      send_initializeHdfcPayment(merchantPaymentId);
-
 
579
      return recv_initializeHdfcPayment();
-
 
580
    }
-
 
581
 
-
 
582
    public void send_initializeHdfcPayment(long merchantPaymentId) throws TException
-
 
583
    {
-
 
584
      oprot_.writeMessageBegin(new TMessage("initializeHdfcPayment", TMessageType.CALL, seqid_));
-
 
585
      initializeHdfcPayment_args args = new initializeHdfcPayment_args();
-
 
586
      args.merchantPaymentId = merchantPaymentId;
-
 
587
      args.write(oprot_);
-
 
588
      oprot_.writeMessageEnd();
-
 
589
      oprot_.getTransport().flush();
-
 
590
    }
-
 
591
 
-
 
592
    public String recv_initializeHdfcPayment() throws PaymentException, TException
-
 
593
    {
-
 
594
      TMessage msg = iprot_.readMessageBegin();
-
 
595
      if (msg.type == TMessageType.EXCEPTION) {
-
 
596
        TApplicationException x = TApplicationException.read(iprot_);
-
 
597
        iprot_.readMessageEnd();
-
 
598
        throw x;
-
 
599
      }
-
 
600
      initializeHdfcPayment_result result = new initializeHdfcPayment_result();
-
 
601
      result.read(iprot_);
-
 
602
      iprot_.readMessageEnd();
-
 
603
      if (result.isSetSuccess()) {
-
 
604
        return result.success;
-
 
605
      }
-
 
606
      if (result.pe != null) {
-
 
607
        throw result.pe;
-
 
608
      }
-
 
609
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "initializeHdfcPayment failed: unknown result");
-
 
610
    }
-
 
611
 
481
  }
612
  }
482
  public static class Processor implements TProcessor {
613
  public static class Processor implements TProcessor {
483
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
614
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
484
    public Processor(Iface iface)
615
    public Processor(Iface iface)
485
    {
616
    {
Line 491... Line 622...
491
      processMap_.put("getPaymentGateway", new getPaymentGateway());
622
      processMap_.put("getPaymentGateway", new getPaymentGateway());
492
      processMap_.put("getPayment", new getPayment());
623
      processMap_.put("getPayment", new getPayment());
493
      processMap_.put("getPaymentForTxnId", new getPaymentForTxnId());
624
      processMap_.put("getPaymentForTxnId", new getPaymentForTxnId());
494
      processMap_.put("updatePaymentDetails", new updatePaymentDetails());
625
      processMap_.put("updatePaymentDetails", new updatePaymentDetails());
495
      processMap_.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
626
      processMap_.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
-
 
627
      processMap_.put("updateAndCaptureEbsPayment", new updateAndCaptureEbsPayment());
-
 
628
      processMap_.put("captureHdfcPayment", new captureHdfcPayment());
-
 
629
      processMap_.put("initializeHdfcPayment", new initializeHdfcPayment());
496
    }
630
    }
497
 
631
 
498
    protected static interface ProcessFunction {
632
    protected static interface ProcessFunction {
499
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
633
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
500
    }
634
    }
Line 748... Line 882...
748
        oprot.getTransport().flush();
882
        oprot.getTransport().flush();
749
      }
883
      }
750
 
884
 
751
    }
885
    }
752
 
886
 
-
 
887
    private class updateAndCaptureEbsPayment implements ProcessFunction {
-
 
888
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
889
      {
-
 
890
        updateAndCaptureEbsPayment_args args = new updateAndCaptureEbsPayment_args();
-
 
891
        args.read(iprot);
-
 
892
        iprot.readMessageEnd();
-
 
893
        updateAndCaptureEbsPayment_result result = new updateAndCaptureEbsPayment_result();
-
 
894
        try {
-
 
895
          result.success = iface_.updateAndCaptureEbsPayment(args.paymentParams);
-
 
896
        } catch (PaymentException pe) {
-
 
897
          result.pe = pe;
-
 
898
        } catch (Throwable th) {
-
 
899
          LOGGER.error("Internal error processing updateAndCaptureEbsPayment", th);
-
 
900
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateAndCaptureEbsPayment");
-
 
901
          oprot.writeMessageBegin(new TMessage("updateAndCaptureEbsPayment", TMessageType.EXCEPTION, seqid));
-
 
902
          x.write(oprot);
-
 
903
          oprot.writeMessageEnd();
-
 
904
          oprot.getTransport().flush();
-
 
905
          return;
-
 
906
        }
-
 
907
        oprot.writeMessageBegin(new TMessage("updateAndCaptureEbsPayment", TMessageType.REPLY, seqid));
-
 
908
        result.write(oprot);
-
 
909
        oprot.writeMessageEnd();
-
 
910
        oprot.getTransport().flush();
-
 
911
      }
-
 
912
 
-
 
913
    }
-
 
914
 
-
 
915
    private class captureHdfcPayment implements ProcessFunction {
-
 
916
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
917
      {
-
 
918
        captureHdfcPayment_args args = new captureHdfcPayment_args();
-
 
919
        args.read(iprot);
-
 
920
        iprot.readMessageEnd();
-
 
921
        captureHdfcPayment_result result = new captureHdfcPayment_result();
-
 
922
        try {
-
 
923
          result.success = iface_.captureHdfcPayment(args.merchantPaymentId);
-
 
924
        } catch (PaymentException pe) {
-
 
925
          result.pe = pe;
-
 
926
        } catch (Throwable th) {
-
 
927
          LOGGER.error("Internal error processing captureHdfcPayment", th);
-
 
928
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing captureHdfcPayment");
-
 
929
          oprot.writeMessageBegin(new TMessage("captureHdfcPayment", TMessageType.EXCEPTION, seqid));
-
 
930
          x.write(oprot);
-
 
931
          oprot.writeMessageEnd();
-
 
932
          oprot.getTransport().flush();
-
 
933
          return;
-
 
934
        }
-
 
935
        oprot.writeMessageBegin(new TMessage("captureHdfcPayment", TMessageType.REPLY, seqid));
-
 
936
        result.write(oprot);
-
 
937
        oprot.writeMessageEnd();
-
 
938
        oprot.getTransport().flush();
-
 
939
      }
-
 
940
 
-
 
941
    }
-
 
942
 
-
 
943
    private class initializeHdfcPayment implements ProcessFunction {
-
 
944
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
945
      {
-
 
946
        initializeHdfcPayment_args args = new initializeHdfcPayment_args();
-
 
947
        args.read(iprot);
-
 
948
        iprot.readMessageEnd();
-
 
949
        initializeHdfcPayment_result result = new initializeHdfcPayment_result();
-
 
950
        try {
-
 
951
          result.success = iface_.initializeHdfcPayment(args.merchantPaymentId);
-
 
952
        } catch (PaymentException pe) {
-
 
953
          result.pe = pe;
-
 
954
        } catch (Throwable th) {
-
 
955
          LOGGER.error("Internal error processing initializeHdfcPayment", th);
-
 
956
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing initializeHdfcPayment");
-
 
957
          oprot.writeMessageBegin(new TMessage("initializeHdfcPayment", TMessageType.EXCEPTION, seqid));
-
 
958
          x.write(oprot);
-
 
959
          oprot.writeMessageEnd();
-
 
960
          oprot.getTransport().flush();
-
 
961
          return;
-
 
962
        }
-
 
963
        oprot.writeMessageBegin(new TMessage("initializeHdfcPayment", TMessageType.REPLY, seqid));
-
 
964
        result.write(oprot);
-
 
965
        oprot.writeMessageEnd();
-
 
966
        oprot.getTransport().flush();
-
 
967
      }
-
 
968
 
-
 
969
    }
-
 
970
 
753
  }
971
  }
754
 
972
 
755
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
973
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
756
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
974
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
757
 
975
 
Line 8054... Line 8272...
8054
      }
8272
      }
8055
      first = false;
8273
      first = false;
8056
      sb.append(")");
8274
      sb.append(")");
8057
      return sb.toString();
8275
      return sb.toString();
8058
    }
8276
    }
-
 
8277
 
-
 
8278
    public void validate() throws TException {
-
 
8279
      // check for required fields
-
 
8280
    }
-
 
8281
 
-
 
8282
  }
-
 
8283
 
-
 
8284
  public static class updateAndCaptureEbsPayment_args implements TBase<updateAndCaptureEbsPayment_args._Fields>, java.io.Serializable, Cloneable   {
-
 
8285
    private static final TStruct STRUCT_DESC = new TStruct("updateAndCaptureEbsPayment_args");
-
 
8286
 
-
 
8287
    private static final TField PAYMENT_PARAMS_FIELD_DESC = new TField("paymentParams", TType.MAP, (short)1);
-
 
8288
 
-
 
8289
    private Map<String,String> paymentParams;
-
 
8290
 
-
 
8291
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8292
    public enum _Fields implements TFieldIdEnum {
-
 
8293
      PAYMENT_PARAMS((short)1, "paymentParams");
-
 
8294
 
-
 
8295
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8296
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8297
 
-
 
8298
      static {
-
 
8299
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8300
          byId.put((int)field._thriftId, field);
-
 
8301
          byName.put(field.getFieldName(), field);
-
 
8302
        }
-
 
8303
      }
-
 
8304
 
-
 
8305
      /**
-
 
8306
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8307
       */
-
 
8308
      public static _Fields findByThriftId(int fieldId) {
-
 
8309
        return byId.get(fieldId);
-
 
8310
      }
-
 
8311
 
-
 
8312
      /**
-
 
8313
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8314
       * if it is not found.
-
 
8315
       */
-
 
8316
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8317
        _Fields fields = findByThriftId(fieldId);
-
 
8318
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8319
        return fields;
-
 
8320
      }
-
 
8321
 
-
 
8322
      /**
-
 
8323
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8324
       */
-
 
8325
      public static _Fields findByName(String name) {
-
 
8326
        return byName.get(name);
-
 
8327
      }
-
 
8328
 
-
 
8329
      private final short _thriftId;
-
 
8330
      private final String _fieldName;
-
 
8331
 
-
 
8332
      _Fields(short thriftId, String fieldName) {
-
 
8333
        _thriftId = thriftId;
-
 
8334
        _fieldName = fieldName;
-
 
8335
      }
-
 
8336
 
-
 
8337
      public short getThriftFieldId() {
-
 
8338
        return _thriftId;
-
 
8339
      }
-
 
8340
 
-
 
8341
      public String getFieldName() {
-
 
8342
        return _fieldName;
-
 
8343
      }
-
 
8344
    }
-
 
8345
 
-
 
8346
    // isset id assignments
-
 
8347
 
-
 
8348
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
8349
      put(_Fields.PAYMENT_PARAMS, new FieldMetaData("paymentParams", TFieldRequirementType.DEFAULT, 
-
 
8350
          new MapMetaData(TType.MAP, 
-
 
8351
              new FieldValueMetaData(TType.STRING), 
-
 
8352
              new FieldValueMetaData(TType.STRING))));
-
 
8353
    }});
-
 
8354
 
-
 
8355
    static {
-
 
8356
      FieldMetaData.addStructMetaDataMap(updateAndCaptureEbsPayment_args.class, metaDataMap);
-
 
8357
    }
-
 
8358
 
-
 
8359
    public updateAndCaptureEbsPayment_args() {
-
 
8360
    }
-
 
8361
 
-
 
8362
    public updateAndCaptureEbsPayment_args(
-
 
8363
      Map<String,String> paymentParams)
-
 
8364
    {
-
 
8365
      this();
-
 
8366
      this.paymentParams = paymentParams;
-
 
8367
    }
-
 
8368
 
-
 
8369
    /**
-
 
8370
     * Performs a deep copy on <i>other</i>.
-
 
8371
     */
-
 
8372
    public updateAndCaptureEbsPayment_args(updateAndCaptureEbsPayment_args other) {
-
 
8373
      if (other.isSetPaymentParams()) {
-
 
8374
        Map<String,String> __this__paymentParams = new HashMap<String,String>();
-
 
8375
        for (Map.Entry<String, String> other_element : other.paymentParams.entrySet()) {
-
 
8376
 
-
 
8377
          String other_element_key = other_element.getKey();
-
 
8378
          String other_element_value = other_element.getValue();
-
 
8379
 
-
 
8380
          String __this__paymentParams_copy_key = other_element_key;
-
 
8381
 
-
 
8382
          String __this__paymentParams_copy_value = other_element_value;
-
 
8383
 
-
 
8384
          __this__paymentParams.put(__this__paymentParams_copy_key, __this__paymentParams_copy_value);
-
 
8385
        }
-
 
8386
        this.paymentParams = __this__paymentParams;
-
 
8387
      }
-
 
8388
    }
-
 
8389
 
-
 
8390
    public updateAndCaptureEbsPayment_args deepCopy() {
-
 
8391
      return new updateAndCaptureEbsPayment_args(this);
-
 
8392
    }
-
 
8393
 
-
 
8394
    @Deprecated
-
 
8395
    public updateAndCaptureEbsPayment_args clone() {
-
 
8396
      return new updateAndCaptureEbsPayment_args(this);
-
 
8397
    }
-
 
8398
 
-
 
8399
    public int getPaymentParamsSize() {
-
 
8400
      return (this.paymentParams == null) ? 0 : this.paymentParams.size();
-
 
8401
    }
-
 
8402
 
-
 
8403
    public void putToPaymentParams(String key, String val) {
-
 
8404
      if (this.paymentParams == null) {
-
 
8405
        this.paymentParams = new HashMap<String,String>();
-
 
8406
      }
-
 
8407
      this.paymentParams.put(key, val);
-
 
8408
    }
-
 
8409
 
-
 
8410
    public Map<String,String> getPaymentParams() {
-
 
8411
      return this.paymentParams;
-
 
8412
    }
-
 
8413
 
-
 
8414
    public updateAndCaptureEbsPayment_args setPaymentParams(Map<String,String> paymentParams) {
-
 
8415
      this.paymentParams = paymentParams;
-
 
8416
      return this;
-
 
8417
    }
-
 
8418
 
-
 
8419
    public void unsetPaymentParams() {
-
 
8420
      this.paymentParams = null;
-
 
8421
    }
-
 
8422
 
-
 
8423
    /** Returns true if field paymentParams is set (has been asigned a value) and false otherwise */
-
 
8424
    public boolean isSetPaymentParams() {
-
 
8425
      return this.paymentParams != null;
-
 
8426
    }
-
 
8427
 
-
 
8428
    public void setPaymentParamsIsSet(boolean value) {
-
 
8429
      if (!value) {
-
 
8430
        this.paymentParams = null;
-
 
8431
      }
-
 
8432
    }
-
 
8433
 
-
 
8434
    public void setFieldValue(_Fields field, Object value) {
-
 
8435
      switch (field) {
-
 
8436
      case PAYMENT_PARAMS:
-
 
8437
        if (value == null) {
-
 
8438
          unsetPaymentParams();
-
 
8439
        } else {
-
 
8440
          setPaymentParams((Map<String,String>)value);
-
 
8441
        }
-
 
8442
        break;
-
 
8443
 
-
 
8444
      }
-
 
8445
    }
-
 
8446
 
-
 
8447
    public void setFieldValue(int fieldID, Object value) {
-
 
8448
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8449
    }
-
 
8450
 
-
 
8451
    public Object getFieldValue(_Fields field) {
-
 
8452
      switch (field) {
-
 
8453
      case PAYMENT_PARAMS:
-
 
8454
        return getPaymentParams();
-
 
8455
 
-
 
8456
      }
-
 
8457
      throw new IllegalStateException();
-
 
8458
    }
-
 
8459
 
-
 
8460
    public Object getFieldValue(int fieldId) {
-
 
8461
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8462
    }
-
 
8463
 
-
 
8464
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
8465
    public boolean isSet(_Fields field) {
-
 
8466
      switch (field) {
-
 
8467
      case PAYMENT_PARAMS:
-
 
8468
        return isSetPaymentParams();
-
 
8469
      }
-
 
8470
      throw new IllegalStateException();
-
 
8471
    }
-
 
8472
 
-
 
8473
    public boolean isSet(int fieldID) {
-
 
8474
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8475
    }
-
 
8476
 
-
 
8477
    @Override
-
 
8478
    public boolean equals(Object that) {
-
 
8479
      if (that == null)
-
 
8480
        return false;
-
 
8481
      if (that instanceof updateAndCaptureEbsPayment_args)
-
 
8482
        return this.equals((updateAndCaptureEbsPayment_args)that);
-
 
8483
      return false;
-
 
8484
    }
-
 
8485
 
-
 
8486
    public boolean equals(updateAndCaptureEbsPayment_args that) {
-
 
8487
      if (that == null)
-
 
8488
        return false;
-
 
8489
 
-
 
8490
      boolean this_present_paymentParams = true && this.isSetPaymentParams();
-
 
8491
      boolean that_present_paymentParams = true && that.isSetPaymentParams();
-
 
8492
      if (this_present_paymentParams || that_present_paymentParams) {
-
 
8493
        if (!(this_present_paymentParams && that_present_paymentParams))
-
 
8494
          return false;
-
 
8495
        if (!this.paymentParams.equals(that.paymentParams))
-
 
8496
          return false;
-
 
8497
      }
-
 
8498
 
-
 
8499
      return true;
-
 
8500
    }
-
 
8501
 
-
 
8502
    @Override
-
 
8503
    public int hashCode() {
-
 
8504
      return 0;
-
 
8505
    }
-
 
8506
 
-
 
8507
    public void read(TProtocol iprot) throws TException {
-
 
8508
      TField field;
-
 
8509
      iprot.readStructBegin();
-
 
8510
      while (true)
-
 
8511
      {
-
 
8512
        field = iprot.readFieldBegin();
-
 
8513
        if (field.type == TType.STOP) { 
-
 
8514
          break;
-
 
8515
        }
-
 
8516
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8517
        if (fieldId == null) {
-
 
8518
          TProtocolUtil.skip(iprot, field.type);
-
 
8519
        } else {
-
 
8520
          switch (fieldId) {
-
 
8521
            case PAYMENT_PARAMS:
-
 
8522
              if (field.type == TType.MAP) {
-
 
8523
                {
-
 
8524
                  TMap _map28 = iprot.readMapBegin();
-
 
8525
                  this.paymentParams = new HashMap<String,String>(2*_map28.size);
-
 
8526
                  for (int _i29 = 0; _i29 < _map28.size; ++_i29)
-
 
8527
                  {
-
 
8528
                    String _key30;
-
 
8529
                    String _val31;
-
 
8530
                    _key30 = iprot.readString();
-
 
8531
                    _val31 = iprot.readString();
-
 
8532
                    this.paymentParams.put(_key30, _val31);
-
 
8533
                  }
-
 
8534
                  iprot.readMapEnd();
-
 
8535
                }
-
 
8536
              } else { 
-
 
8537
                TProtocolUtil.skip(iprot, field.type);
-
 
8538
              }
-
 
8539
              break;
-
 
8540
          }
-
 
8541
          iprot.readFieldEnd();
-
 
8542
        }
-
 
8543
      }
-
 
8544
      iprot.readStructEnd();
-
 
8545
      validate();
-
 
8546
    }
-
 
8547
 
-
 
8548
    public void write(TProtocol oprot) throws TException {
-
 
8549
      validate();
-
 
8550
 
-
 
8551
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8552
      if (this.paymentParams != null) {
-
 
8553
        oprot.writeFieldBegin(PAYMENT_PARAMS_FIELD_DESC);
-
 
8554
        {
-
 
8555
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.paymentParams.size()));
-
 
8556
          for (Map.Entry<String, String> _iter32 : this.paymentParams.entrySet())
-
 
8557
          {
-
 
8558
            oprot.writeString(_iter32.getKey());
-
 
8559
            oprot.writeString(_iter32.getValue());
-
 
8560
          }
-
 
8561
          oprot.writeMapEnd();
-
 
8562
        }
-
 
8563
        oprot.writeFieldEnd();
-
 
8564
      }
-
 
8565
      oprot.writeFieldStop();
-
 
8566
      oprot.writeStructEnd();
-
 
8567
    }
-
 
8568
 
-
 
8569
    @Override
-
 
8570
    public String toString() {
-
 
8571
      StringBuilder sb = new StringBuilder("updateAndCaptureEbsPayment_args(");
-
 
8572
      boolean first = true;
-
 
8573
 
-
 
8574
      sb.append("paymentParams:");
-
 
8575
      if (this.paymentParams == null) {
-
 
8576
        sb.append("null");
-
 
8577
      } else {
-
 
8578
        sb.append(this.paymentParams);
-
 
8579
      }
-
 
8580
      first = false;
-
 
8581
      sb.append(")");
-
 
8582
      return sb.toString();
-
 
8583
    }
-
 
8584
 
-
 
8585
    public void validate() throws TException {
-
 
8586
      // check for required fields
-
 
8587
    }
-
 
8588
 
-
 
8589
  }
-
 
8590
 
-
 
8591
  public static class updateAndCaptureEbsPayment_result implements TBase<updateAndCaptureEbsPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateAndCaptureEbsPayment_result>   {
-
 
8592
    private static final TStruct STRUCT_DESC = new TStruct("updateAndCaptureEbsPayment_result");
-
 
8593
 
-
 
8594
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-
 
8595
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
-
 
8596
 
-
 
8597
    private Payment success;
-
 
8598
    private PaymentException pe;
-
 
8599
 
-
 
8600
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8601
    public enum _Fields implements TFieldIdEnum {
-
 
8602
      SUCCESS((short)0, "success"),
-
 
8603
      PE((short)1, "pe");
-
 
8604
 
-
 
8605
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8607
 
-
 
8608
      static {
-
 
8609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8610
          byId.put((int)field._thriftId, field);
-
 
8611
          byName.put(field.getFieldName(), field);
-
 
8612
        }
-
 
8613
      }
-
 
8614
 
-
 
8615
      /**
-
 
8616
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8617
       */
-
 
8618
      public static _Fields findByThriftId(int fieldId) {
-
 
8619
        return byId.get(fieldId);
-
 
8620
      }
-
 
8621
 
-
 
8622
      /**
-
 
8623
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8624
       * if it is not found.
-
 
8625
       */
-
 
8626
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8627
        _Fields fields = findByThriftId(fieldId);
-
 
8628
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8629
        return fields;
-
 
8630
      }
-
 
8631
 
-
 
8632
      /**
-
 
8633
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8634
       */
-
 
8635
      public static _Fields findByName(String name) {
-
 
8636
        return byName.get(name);
-
 
8637
      }
-
 
8638
 
-
 
8639
      private final short _thriftId;
-
 
8640
      private final String _fieldName;
-
 
8641
 
-
 
8642
      _Fields(short thriftId, String fieldName) {
-
 
8643
        _thriftId = thriftId;
-
 
8644
        _fieldName = fieldName;
-
 
8645
      }
-
 
8646
 
-
 
8647
      public short getThriftFieldId() {
-
 
8648
        return _thriftId;
-
 
8649
      }
-
 
8650
 
-
 
8651
      public String getFieldName() {
-
 
8652
        return _fieldName;
-
 
8653
      }
-
 
8654
    }
-
 
8655
 
-
 
8656
    // isset id assignments
-
 
8657
 
-
 
8658
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
8659
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
8660
          new StructMetaData(TType.STRUCT, Payment.class)));
-
 
8661
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
8662
          new FieldValueMetaData(TType.STRUCT)));
-
 
8663
    }});
-
 
8664
 
-
 
8665
    static {
-
 
8666
      FieldMetaData.addStructMetaDataMap(updateAndCaptureEbsPayment_result.class, metaDataMap);
-
 
8667
    }
-
 
8668
 
-
 
8669
    public updateAndCaptureEbsPayment_result() {
-
 
8670
    }
-
 
8671
 
-
 
8672
    public updateAndCaptureEbsPayment_result(
-
 
8673
      Payment success,
-
 
8674
      PaymentException pe)
-
 
8675
    {
-
 
8676
      this();
-
 
8677
      this.success = success;
-
 
8678
      this.pe = pe;
-
 
8679
    }
-
 
8680
 
-
 
8681
    /**
-
 
8682
     * Performs a deep copy on <i>other</i>.
-
 
8683
     */
-
 
8684
    public updateAndCaptureEbsPayment_result(updateAndCaptureEbsPayment_result other) {
-
 
8685
      if (other.isSetSuccess()) {
-
 
8686
        this.success = new Payment(other.success);
-
 
8687
      }
-
 
8688
      if (other.isSetPe()) {
-
 
8689
        this.pe = new PaymentException(other.pe);
-
 
8690
      }
-
 
8691
    }
-
 
8692
 
-
 
8693
    public updateAndCaptureEbsPayment_result deepCopy() {
-
 
8694
      return new updateAndCaptureEbsPayment_result(this);
-
 
8695
    }
-
 
8696
 
-
 
8697
    @Deprecated
-
 
8698
    public updateAndCaptureEbsPayment_result clone() {
-
 
8699
      return new updateAndCaptureEbsPayment_result(this);
-
 
8700
    }
-
 
8701
 
-
 
8702
    public Payment getSuccess() {
-
 
8703
      return this.success;
-
 
8704
    }
-
 
8705
 
-
 
8706
    public updateAndCaptureEbsPayment_result setSuccess(Payment success) {
-
 
8707
      this.success = success;
-
 
8708
      return this;
-
 
8709
    }
-
 
8710
 
-
 
8711
    public void unsetSuccess() {
-
 
8712
      this.success = null;
-
 
8713
    }
-
 
8714
 
-
 
8715
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
8716
    public boolean isSetSuccess() {
-
 
8717
      return this.success != null;
-
 
8718
    }
-
 
8719
 
-
 
8720
    public void setSuccessIsSet(boolean value) {
-
 
8721
      if (!value) {
-
 
8722
        this.success = null;
-
 
8723
      }
-
 
8724
    }
-
 
8725
 
-
 
8726
    public PaymentException getPe() {
-
 
8727
      return this.pe;
-
 
8728
    }
-
 
8729
 
-
 
8730
    public updateAndCaptureEbsPayment_result setPe(PaymentException pe) {
-
 
8731
      this.pe = pe;
-
 
8732
      return this;
-
 
8733
    }
-
 
8734
 
-
 
8735
    public void unsetPe() {
-
 
8736
      this.pe = null;
-
 
8737
    }
-
 
8738
 
-
 
8739
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
-
 
8740
    public boolean isSetPe() {
-
 
8741
      return this.pe != null;
-
 
8742
    }
-
 
8743
 
-
 
8744
    public void setPeIsSet(boolean value) {
-
 
8745
      if (!value) {
-
 
8746
        this.pe = null;
-
 
8747
      }
-
 
8748
    }
-
 
8749
 
-
 
8750
    public void setFieldValue(_Fields field, Object value) {
-
 
8751
      switch (field) {
-
 
8752
      case SUCCESS:
-
 
8753
        if (value == null) {
-
 
8754
          unsetSuccess();
-
 
8755
        } else {
-
 
8756
          setSuccess((Payment)value);
-
 
8757
        }
-
 
8758
        break;
-
 
8759
 
-
 
8760
      case PE:
-
 
8761
        if (value == null) {
-
 
8762
          unsetPe();
-
 
8763
        } else {
-
 
8764
          setPe((PaymentException)value);
-
 
8765
        }
-
 
8766
        break;
-
 
8767
 
-
 
8768
      }
-
 
8769
    }
-
 
8770
 
-
 
8771
    public void setFieldValue(int fieldID, Object value) {
-
 
8772
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8773
    }
-
 
8774
 
-
 
8775
    public Object getFieldValue(_Fields field) {
-
 
8776
      switch (field) {
-
 
8777
      case SUCCESS:
-
 
8778
        return getSuccess();
-
 
8779
 
-
 
8780
      case PE:
-
 
8781
        return getPe();
-
 
8782
 
-
 
8783
      }
-
 
8784
      throw new IllegalStateException();
-
 
8785
    }
-
 
8786
 
-
 
8787
    public Object getFieldValue(int fieldId) {
-
 
8788
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8789
    }
-
 
8790
 
-
 
8791
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
8792
    public boolean isSet(_Fields field) {
-
 
8793
      switch (field) {
-
 
8794
      case SUCCESS:
-
 
8795
        return isSetSuccess();
-
 
8796
      case PE:
-
 
8797
        return isSetPe();
-
 
8798
      }
-
 
8799
      throw new IllegalStateException();
-
 
8800
    }
-
 
8801
 
-
 
8802
    public boolean isSet(int fieldID) {
-
 
8803
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8804
    }
-
 
8805
 
-
 
8806
    @Override
-
 
8807
    public boolean equals(Object that) {
-
 
8808
      if (that == null)
-
 
8809
        return false;
-
 
8810
      if (that instanceof updateAndCaptureEbsPayment_result)
-
 
8811
        return this.equals((updateAndCaptureEbsPayment_result)that);
-
 
8812
      return false;
-
 
8813
    }
-
 
8814
 
-
 
8815
    public boolean equals(updateAndCaptureEbsPayment_result that) {
-
 
8816
      if (that == null)
-
 
8817
        return false;
-
 
8818
 
-
 
8819
      boolean this_present_success = true && this.isSetSuccess();
-
 
8820
      boolean that_present_success = true && that.isSetSuccess();
-
 
8821
      if (this_present_success || that_present_success) {
-
 
8822
        if (!(this_present_success && that_present_success))
-
 
8823
          return false;
-
 
8824
        if (!this.success.equals(that.success))
-
 
8825
          return false;
-
 
8826
      }
-
 
8827
 
-
 
8828
      boolean this_present_pe = true && this.isSetPe();
-
 
8829
      boolean that_present_pe = true && that.isSetPe();
-
 
8830
      if (this_present_pe || that_present_pe) {
-
 
8831
        if (!(this_present_pe && that_present_pe))
-
 
8832
          return false;
-
 
8833
        if (!this.pe.equals(that.pe))
-
 
8834
          return false;
-
 
8835
      }
-
 
8836
 
-
 
8837
      return true;
-
 
8838
    }
-
 
8839
 
-
 
8840
    @Override
-
 
8841
    public int hashCode() {
-
 
8842
      return 0;
-
 
8843
    }
-
 
8844
 
-
 
8845
    public int compareTo(updateAndCaptureEbsPayment_result other) {
-
 
8846
      if (!getClass().equals(other.getClass())) {
-
 
8847
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8848
      }
-
 
8849
 
-
 
8850
      int lastComparison = 0;
-
 
8851
      updateAndCaptureEbsPayment_result typedOther = (updateAndCaptureEbsPayment_result)other;
-
 
8852
 
-
 
8853
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
8854
      if (lastComparison != 0) {
-
 
8855
        return lastComparison;
-
 
8856
      }
-
 
8857
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
8858
      if (lastComparison != 0) {
-
 
8859
        return lastComparison;
-
 
8860
      }
-
 
8861
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
-
 
8862
      if (lastComparison != 0) {
-
 
8863
        return lastComparison;
-
 
8864
      }
-
 
8865
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
-
 
8866
      if (lastComparison != 0) {
-
 
8867
        return lastComparison;
-
 
8868
      }
-
 
8869
      return 0;
-
 
8870
    }
-
 
8871
 
-
 
8872
    public void read(TProtocol iprot) throws TException {
-
 
8873
      TField field;
-
 
8874
      iprot.readStructBegin();
-
 
8875
      while (true)
-
 
8876
      {
-
 
8877
        field = iprot.readFieldBegin();
-
 
8878
        if (field.type == TType.STOP) { 
-
 
8879
          break;
-
 
8880
        }
-
 
8881
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8882
        if (fieldId == null) {
-
 
8883
          TProtocolUtil.skip(iprot, field.type);
-
 
8884
        } else {
-
 
8885
          switch (fieldId) {
-
 
8886
            case SUCCESS:
-
 
8887
              if (field.type == TType.STRUCT) {
-
 
8888
                this.success = new Payment();
-
 
8889
                this.success.read(iprot);
-
 
8890
              } else { 
-
 
8891
                TProtocolUtil.skip(iprot, field.type);
-
 
8892
              }
-
 
8893
              break;
-
 
8894
            case PE:
-
 
8895
              if (field.type == TType.STRUCT) {
-
 
8896
                this.pe = new PaymentException();
-
 
8897
                this.pe.read(iprot);
-
 
8898
              } else { 
-
 
8899
                TProtocolUtil.skip(iprot, field.type);
-
 
8900
              }
-
 
8901
              break;
-
 
8902
          }
-
 
8903
          iprot.readFieldEnd();
-
 
8904
        }
-
 
8905
      }
-
 
8906
      iprot.readStructEnd();
-
 
8907
      validate();
-
 
8908
    }
-
 
8909
 
-
 
8910
    public void write(TProtocol oprot) throws TException {
-
 
8911
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8912
 
-
 
8913
      if (this.isSetSuccess()) {
-
 
8914
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8915
        this.success.write(oprot);
-
 
8916
        oprot.writeFieldEnd();
-
 
8917
      } else if (this.isSetPe()) {
-
 
8918
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
8919
        this.pe.write(oprot);
-
 
8920
        oprot.writeFieldEnd();
-
 
8921
      }
-
 
8922
      oprot.writeFieldStop();
-
 
8923
      oprot.writeStructEnd();
-
 
8924
    }
-
 
8925
 
-
 
8926
    @Override
-
 
8927
    public String toString() {
-
 
8928
      StringBuilder sb = new StringBuilder("updateAndCaptureEbsPayment_result(");
-
 
8929
      boolean first = true;
-
 
8930
 
-
 
8931
      sb.append("success:");
-
 
8932
      if (this.success == null) {
-
 
8933
        sb.append("null");
-
 
8934
      } else {
-
 
8935
        sb.append(this.success);
-
 
8936
      }
-
 
8937
      first = false;
-
 
8938
      if (!first) sb.append(", ");
-
 
8939
      sb.append("pe:");
-
 
8940
      if (this.pe == null) {
-
 
8941
        sb.append("null");
-
 
8942
      } else {
-
 
8943
        sb.append(this.pe);
-
 
8944
      }
-
 
8945
      first = false;
-
 
8946
      sb.append(")");
-
 
8947
      return sb.toString();
-
 
8948
    }
-
 
8949
 
-
 
8950
    public void validate() throws TException {
-
 
8951
      // check for required fields
-
 
8952
    }
-
 
8953
 
-
 
8954
  }
-
 
8955
 
-
 
8956
  public static class captureHdfcPayment_args implements TBase<captureHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<captureHdfcPayment_args>   {
-
 
8957
    private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_args");
-
 
8958
 
-
 
8959
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
-
 
8960
 
-
 
8961
    private long merchantPaymentId;
-
 
8962
 
-
 
8963
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8964
    public enum _Fields implements TFieldIdEnum {
-
 
8965
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
-
 
8966
 
-
 
8967
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8968
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8969
 
-
 
8970
      static {
-
 
8971
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8972
          byId.put((int)field._thriftId, field);
-
 
8973
          byName.put(field.getFieldName(), field);
-
 
8974
        }
-
 
8975
      }
-
 
8976
 
-
 
8977
      /**
-
 
8978
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8979
       */
-
 
8980
      public static _Fields findByThriftId(int fieldId) {
-
 
8981
        return byId.get(fieldId);
-
 
8982
      }
-
 
8983
 
-
 
8984
      /**
-
 
8985
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8986
       * if it is not found.
-
 
8987
       */
-
 
8988
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8989
        _Fields fields = findByThriftId(fieldId);
-
 
8990
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8991
        return fields;
-
 
8992
      }
-
 
8993
 
-
 
8994
      /**
-
 
8995
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8996
       */
-
 
8997
      public static _Fields findByName(String name) {
-
 
8998
        return byName.get(name);
-
 
8999
      }
-
 
9000
 
-
 
9001
      private final short _thriftId;
-
 
9002
      private final String _fieldName;
-
 
9003
 
-
 
9004
      _Fields(short thriftId, String fieldName) {
-
 
9005
        _thriftId = thriftId;
-
 
9006
        _fieldName = fieldName;
-
 
9007
      }
-
 
9008
 
-
 
9009
      public short getThriftFieldId() {
-
 
9010
        return _thriftId;
-
 
9011
      }
-
 
9012
 
-
 
9013
      public String getFieldName() {
-
 
9014
        return _fieldName;
-
 
9015
      }
-
 
9016
    }
-
 
9017
 
-
 
9018
    // isset id assignments
-
 
9019
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
-
 
9020
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9021
 
-
 
9022
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9023
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
-
 
9024
          new FieldValueMetaData(TType.I64)));
-
 
9025
    }});
-
 
9026
 
-
 
9027
    static {
-
 
9028
      FieldMetaData.addStructMetaDataMap(captureHdfcPayment_args.class, metaDataMap);
-
 
9029
    }
-
 
9030
 
-
 
9031
    public captureHdfcPayment_args() {
-
 
9032
    }
-
 
9033
 
-
 
9034
    public captureHdfcPayment_args(
-
 
9035
      long merchantPaymentId)
-
 
9036
    {
-
 
9037
      this();
-
 
9038
      this.merchantPaymentId = merchantPaymentId;
-
 
9039
      setMerchantPaymentIdIsSet(true);
-
 
9040
    }
-
 
9041
 
-
 
9042
    /**
-
 
9043
     * Performs a deep copy on <i>other</i>.
-
 
9044
     */
-
 
9045
    public captureHdfcPayment_args(captureHdfcPayment_args other) {
-
 
9046
      __isset_bit_vector.clear();
-
 
9047
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9048
      this.merchantPaymentId = other.merchantPaymentId;
-
 
9049
    }
-
 
9050
 
-
 
9051
    public captureHdfcPayment_args deepCopy() {
-
 
9052
      return new captureHdfcPayment_args(this);
-
 
9053
    }
-
 
9054
 
-
 
9055
    @Deprecated
-
 
9056
    public captureHdfcPayment_args clone() {
-
 
9057
      return new captureHdfcPayment_args(this);
-
 
9058
    }
-
 
9059
 
-
 
9060
    public long getMerchantPaymentId() {
-
 
9061
      return this.merchantPaymentId;
-
 
9062
    }
-
 
9063
 
-
 
9064
    public captureHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
-
 
9065
      this.merchantPaymentId = merchantPaymentId;
-
 
9066
      setMerchantPaymentIdIsSet(true);
-
 
9067
      return this;
-
 
9068
    }
-
 
9069
 
-
 
9070
    public void unsetMerchantPaymentId() {
-
 
9071
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
-
 
9072
    }
-
 
9073
 
-
 
9074
    /** Returns true if field merchantPaymentId is set (has been asigned a value) and false otherwise */
-
 
9075
    public boolean isSetMerchantPaymentId() {
-
 
9076
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
-
 
9077
    }
-
 
9078
 
-
 
9079
    public void setMerchantPaymentIdIsSet(boolean value) {
-
 
9080
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
-
 
9081
    }
-
 
9082
 
-
 
9083
    public void setFieldValue(_Fields field, Object value) {
-
 
9084
      switch (field) {
-
 
9085
      case MERCHANT_PAYMENT_ID:
-
 
9086
        if (value == null) {
-
 
9087
          unsetMerchantPaymentId();
-
 
9088
        } else {
-
 
9089
          setMerchantPaymentId((Long)value);
-
 
9090
        }
-
 
9091
        break;
-
 
9092
 
-
 
9093
      }
-
 
9094
    }
-
 
9095
 
-
 
9096
    public void setFieldValue(int fieldID, Object value) {
-
 
9097
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9098
    }
-
 
9099
 
-
 
9100
    public Object getFieldValue(_Fields field) {
-
 
9101
      switch (field) {
-
 
9102
      case MERCHANT_PAYMENT_ID:
-
 
9103
        return new Long(getMerchantPaymentId());
-
 
9104
 
-
 
9105
      }
-
 
9106
      throw new IllegalStateException();
-
 
9107
    }
-
 
9108
 
-
 
9109
    public Object getFieldValue(int fieldId) {
-
 
9110
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9111
    }
-
 
9112
 
-
 
9113
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9114
    public boolean isSet(_Fields field) {
-
 
9115
      switch (field) {
-
 
9116
      case MERCHANT_PAYMENT_ID:
-
 
9117
        return isSetMerchantPaymentId();
-
 
9118
      }
-
 
9119
      throw new IllegalStateException();
-
 
9120
    }
-
 
9121
 
-
 
9122
    public boolean isSet(int fieldID) {
-
 
9123
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9124
    }
-
 
9125
 
-
 
9126
    @Override
-
 
9127
    public boolean equals(Object that) {
-
 
9128
      if (that == null)
-
 
9129
        return false;
-
 
9130
      if (that instanceof captureHdfcPayment_args)
-
 
9131
        return this.equals((captureHdfcPayment_args)that);
-
 
9132
      return false;
-
 
9133
    }
-
 
9134
 
-
 
9135
    public boolean equals(captureHdfcPayment_args that) {
-
 
9136
      if (that == null)
-
 
9137
        return false;
-
 
9138
 
-
 
9139
      boolean this_present_merchantPaymentId = true;
-
 
9140
      boolean that_present_merchantPaymentId = true;
-
 
9141
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
-
 
9142
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
-
 
9143
          return false;
-
 
9144
        if (this.merchantPaymentId != that.merchantPaymentId)
-
 
9145
          return false;
-
 
9146
      }
-
 
9147
 
-
 
9148
      return true;
-
 
9149
    }
-
 
9150
 
-
 
9151
    @Override
-
 
9152
    public int hashCode() {
-
 
9153
      return 0;
-
 
9154
    }
-
 
9155
 
-
 
9156
    public int compareTo(captureHdfcPayment_args other) {
-
 
9157
      if (!getClass().equals(other.getClass())) {
-
 
9158
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9159
      }
-
 
9160
 
-
 
9161
      int lastComparison = 0;
-
 
9162
      captureHdfcPayment_args typedOther = (captureHdfcPayment_args)other;
-
 
9163
 
-
 
9164
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
-
 
9165
      if (lastComparison != 0) {
-
 
9166
        return lastComparison;
-
 
9167
      }
-
 
9168
      lastComparison = TBaseHelper.compareTo(merchantPaymentId, typedOther.merchantPaymentId);
-
 
9169
      if (lastComparison != 0) {
-
 
9170
        return lastComparison;
-
 
9171
      }
-
 
9172
      return 0;
-
 
9173
    }
-
 
9174
 
-
 
9175
    public void read(TProtocol iprot) throws TException {
-
 
9176
      TField field;
-
 
9177
      iprot.readStructBegin();
-
 
9178
      while (true)
-
 
9179
      {
-
 
9180
        field = iprot.readFieldBegin();
-
 
9181
        if (field.type == TType.STOP) { 
-
 
9182
          break;
-
 
9183
        }
-
 
9184
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9185
        if (fieldId == null) {
-
 
9186
          TProtocolUtil.skip(iprot, field.type);
-
 
9187
        } else {
-
 
9188
          switch (fieldId) {
-
 
9189
            case MERCHANT_PAYMENT_ID:
-
 
9190
              if (field.type == TType.I64) {
-
 
9191
                this.merchantPaymentId = iprot.readI64();
-
 
9192
                setMerchantPaymentIdIsSet(true);
-
 
9193
              } else { 
-
 
9194
                TProtocolUtil.skip(iprot, field.type);
-
 
9195
              }
-
 
9196
              break;
-
 
9197
          }
-
 
9198
          iprot.readFieldEnd();
-
 
9199
        }
-
 
9200
      }
-
 
9201
      iprot.readStructEnd();
-
 
9202
      validate();
-
 
9203
    }
-
 
9204
 
-
 
9205
    public void write(TProtocol oprot) throws TException {
-
 
9206
      validate();
-
 
9207
 
-
 
9208
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9209
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
-
 
9210
      oprot.writeI64(this.merchantPaymentId);
-
 
9211
      oprot.writeFieldEnd();
-
 
9212
      oprot.writeFieldStop();
-
 
9213
      oprot.writeStructEnd();
-
 
9214
    }
-
 
9215
 
-
 
9216
    @Override
-
 
9217
    public String toString() {
-
 
9218
      StringBuilder sb = new StringBuilder("captureHdfcPayment_args(");
-
 
9219
      boolean first = true;
-
 
9220
 
-
 
9221
      sb.append("merchantPaymentId:");
-
 
9222
      sb.append(this.merchantPaymentId);
-
 
9223
      first = false;
-
 
9224
      sb.append(")");
-
 
9225
      return sb.toString();
-
 
9226
    }
-
 
9227
 
-
 
9228
    public void validate() throws TException {
-
 
9229
      // check for required fields
-
 
9230
    }
-
 
9231
 
-
 
9232
  }
-
 
9233
 
-
 
9234
  public static class captureHdfcPayment_result implements TBase<captureHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
-
 
9235
    private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_result");
-
 
9236
 
-
 
9237
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0);
-
 
9238
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
-
 
9239
 
-
 
9240
    private Map<String,String> success;
-
 
9241
    private PaymentException pe;
-
 
9242
 
-
 
9243
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9244
    public enum _Fields implements TFieldIdEnum {
-
 
9245
      SUCCESS((short)0, "success"),
-
 
9246
      PE((short)1, "pe");
-
 
9247
 
-
 
9248
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9249
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9250
 
-
 
9251
      static {
-
 
9252
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9253
          byId.put((int)field._thriftId, field);
-
 
9254
          byName.put(field.getFieldName(), field);
-
 
9255
        }
-
 
9256
      }
-
 
9257
 
-
 
9258
      /**
-
 
9259
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9260
       */
-
 
9261
      public static _Fields findByThriftId(int fieldId) {
-
 
9262
        return byId.get(fieldId);
-
 
9263
      }
-
 
9264
 
-
 
9265
      /**
-
 
9266
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9267
       * if it is not found.
-
 
9268
       */
-
 
9269
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9270
        _Fields fields = findByThriftId(fieldId);
-
 
9271
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9272
        return fields;
-
 
9273
      }
-
 
9274
 
-
 
9275
      /**
-
 
9276
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9277
       */
-
 
9278
      public static _Fields findByName(String name) {
-
 
9279
        return byName.get(name);
-
 
9280
      }
-
 
9281
 
-
 
9282
      private final short _thriftId;
-
 
9283
      private final String _fieldName;
-
 
9284
 
-
 
9285
      _Fields(short thriftId, String fieldName) {
-
 
9286
        _thriftId = thriftId;
-
 
9287
        _fieldName = fieldName;
-
 
9288
      }
-
 
9289
 
-
 
9290
      public short getThriftFieldId() {
-
 
9291
        return _thriftId;
-
 
9292
      }
-
 
9293
 
-
 
9294
      public String getFieldName() {
-
 
9295
        return _fieldName;
-
 
9296
      }
-
 
9297
    }
-
 
9298
 
-
 
9299
    // isset id assignments
-
 
9300
 
-
 
9301
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9302
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
9303
          new MapMetaData(TType.MAP, 
-
 
9304
              new FieldValueMetaData(TType.STRING), 
-
 
9305
              new FieldValueMetaData(TType.STRING))));
-
 
9306
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
9307
          new FieldValueMetaData(TType.STRUCT)));
-
 
9308
    }});
-
 
9309
 
-
 
9310
    static {
-
 
9311
      FieldMetaData.addStructMetaDataMap(captureHdfcPayment_result.class, metaDataMap);
-
 
9312
    }
-
 
9313
 
-
 
9314
    public captureHdfcPayment_result() {
-
 
9315
    }
-
 
9316
 
-
 
9317
    public captureHdfcPayment_result(
-
 
9318
      Map<String,String> success,
-
 
9319
      PaymentException pe)
-
 
9320
    {
-
 
9321
      this();
-
 
9322
      this.success = success;
-
 
9323
      this.pe = pe;
-
 
9324
    }
-
 
9325
 
-
 
9326
    /**
-
 
9327
     * Performs a deep copy on <i>other</i>.
-
 
9328
     */
-
 
9329
    public captureHdfcPayment_result(captureHdfcPayment_result other) {
-
 
9330
      if (other.isSetSuccess()) {
-
 
9331
        Map<String,String> __this__success = new HashMap<String,String>();
-
 
9332
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
-
 
9333
 
-
 
9334
          String other_element_key = other_element.getKey();
-
 
9335
          String other_element_value = other_element.getValue();
-
 
9336
 
-
 
9337
          String __this__success_copy_key = other_element_key;
-
 
9338
 
-
 
9339
          String __this__success_copy_value = other_element_value;
-
 
9340
 
-
 
9341
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
9342
        }
-
 
9343
        this.success = __this__success;
-
 
9344
      }
-
 
9345
      if (other.isSetPe()) {
-
 
9346
        this.pe = new PaymentException(other.pe);
-
 
9347
      }
-
 
9348
    }
-
 
9349
 
-
 
9350
    public captureHdfcPayment_result deepCopy() {
-
 
9351
      return new captureHdfcPayment_result(this);
-
 
9352
    }
-
 
9353
 
-
 
9354
    @Deprecated
-
 
9355
    public captureHdfcPayment_result clone() {
-
 
9356
      return new captureHdfcPayment_result(this);
-
 
9357
    }
-
 
9358
 
-
 
9359
    public int getSuccessSize() {
-
 
9360
      return (this.success == null) ? 0 : this.success.size();
-
 
9361
    }
-
 
9362
 
-
 
9363
    public void putToSuccess(String key, String val) {
-
 
9364
      if (this.success == null) {
-
 
9365
        this.success = new HashMap<String,String>();
-
 
9366
      }
-
 
9367
      this.success.put(key, val);
-
 
9368
    }
-
 
9369
 
-
 
9370
    public Map<String,String> getSuccess() {
-
 
9371
      return this.success;
-
 
9372
    }
-
 
9373
 
-
 
9374
    public captureHdfcPayment_result setSuccess(Map<String,String> success) {
-
 
9375
      this.success = success;
-
 
9376
      return this;
-
 
9377
    }
-
 
9378
 
-
 
9379
    public void unsetSuccess() {
-
 
9380
      this.success = null;
-
 
9381
    }
-
 
9382
 
-
 
9383
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
9384
    public boolean isSetSuccess() {
-
 
9385
      return this.success != null;
-
 
9386
    }
-
 
9387
 
-
 
9388
    public void setSuccessIsSet(boolean value) {
-
 
9389
      if (!value) {
-
 
9390
        this.success = null;
-
 
9391
      }
-
 
9392
    }
-
 
9393
 
-
 
9394
    public PaymentException getPe() {
-
 
9395
      return this.pe;
-
 
9396
    }
-
 
9397
 
-
 
9398
    public captureHdfcPayment_result setPe(PaymentException pe) {
-
 
9399
      this.pe = pe;
-
 
9400
      return this;
-
 
9401
    }
-
 
9402
 
-
 
9403
    public void unsetPe() {
-
 
9404
      this.pe = null;
-
 
9405
    }
-
 
9406
 
-
 
9407
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
-
 
9408
    public boolean isSetPe() {
-
 
9409
      return this.pe != null;
-
 
9410
    }
-
 
9411
 
-
 
9412
    public void setPeIsSet(boolean value) {
-
 
9413
      if (!value) {
-
 
9414
        this.pe = null;
-
 
9415
      }
-
 
9416
    }
-
 
9417
 
-
 
9418
    public void setFieldValue(_Fields field, Object value) {
-
 
9419
      switch (field) {
-
 
9420
      case SUCCESS:
-
 
9421
        if (value == null) {
-
 
9422
          unsetSuccess();
-
 
9423
        } else {
-
 
9424
          setSuccess((Map<String,String>)value);
-
 
9425
        }
-
 
9426
        break;
-
 
9427
 
-
 
9428
      case PE:
-
 
9429
        if (value == null) {
-
 
9430
          unsetPe();
-
 
9431
        } else {
-
 
9432
          setPe((PaymentException)value);
-
 
9433
        }
-
 
9434
        break;
-
 
9435
 
-
 
9436
      }
-
 
9437
    }
-
 
9438
 
-
 
9439
    public void setFieldValue(int fieldID, Object value) {
-
 
9440
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9441
    }
-
 
9442
 
-
 
9443
    public Object getFieldValue(_Fields field) {
-
 
9444
      switch (field) {
-
 
9445
      case SUCCESS:
-
 
9446
        return getSuccess();
-
 
9447
 
-
 
9448
      case PE:
-
 
9449
        return getPe();
-
 
9450
 
-
 
9451
      }
-
 
9452
      throw new IllegalStateException();
-
 
9453
    }
-
 
9454
 
-
 
9455
    public Object getFieldValue(int fieldId) {
-
 
9456
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9457
    }
-
 
9458
 
-
 
9459
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9460
    public boolean isSet(_Fields field) {
-
 
9461
      switch (field) {
-
 
9462
      case SUCCESS:
-
 
9463
        return isSetSuccess();
-
 
9464
      case PE:
-
 
9465
        return isSetPe();
-
 
9466
      }
-
 
9467
      throw new IllegalStateException();
-
 
9468
    }
-
 
9469
 
-
 
9470
    public boolean isSet(int fieldID) {
-
 
9471
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9472
    }
-
 
9473
 
-
 
9474
    @Override
-
 
9475
    public boolean equals(Object that) {
-
 
9476
      if (that == null)
-
 
9477
        return false;
-
 
9478
      if (that instanceof captureHdfcPayment_result)
-
 
9479
        return this.equals((captureHdfcPayment_result)that);
-
 
9480
      return false;
-
 
9481
    }
-
 
9482
 
-
 
9483
    public boolean equals(captureHdfcPayment_result that) {
-
 
9484
      if (that == null)
-
 
9485
        return false;
-
 
9486
 
-
 
9487
      boolean this_present_success = true && this.isSetSuccess();
-
 
9488
      boolean that_present_success = true && that.isSetSuccess();
-
 
9489
      if (this_present_success || that_present_success) {
-
 
9490
        if (!(this_present_success && that_present_success))
-
 
9491
          return false;
-
 
9492
        if (!this.success.equals(that.success))
-
 
9493
          return false;
-
 
9494
      }
-
 
9495
 
-
 
9496
      boolean this_present_pe = true && this.isSetPe();
-
 
9497
      boolean that_present_pe = true && that.isSetPe();
-
 
9498
      if (this_present_pe || that_present_pe) {
-
 
9499
        if (!(this_present_pe && that_present_pe))
-
 
9500
          return false;
-
 
9501
        if (!this.pe.equals(that.pe))
-
 
9502
          return false;
-
 
9503
      }
-
 
9504
 
-
 
9505
      return true;
-
 
9506
    }
-
 
9507
 
-
 
9508
    @Override
-
 
9509
    public int hashCode() {
-
 
9510
      return 0;
-
 
9511
    }
-
 
9512
 
-
 
9513
    public void read(TProtocol iprot) throws TException {
-
 
9514
      TField field;
-
 
9515
      iprot.readStructBegin();
-
 
9516
      while (true)
-
 
9517
      {
-
 
9518
        field = iprot.readFieldBegin();
-
 
9519
        if (field.type == TType.STOP) { 
-
 
9520
          break;
-
 
9521
        }
-
 
9522
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9523
        if (fieldId == null) {
-
 
9524
          TProtocolUtil.skip(iprot, field.type);
-
 
9525
        } else {
-
 
9526
          switch (fieldId) {
-
 
9527
            case SUCCESS:
-
 
9528
              if (field.type == TType.MAP) {
-
 
9529
                {
-
 
9530
                  TMap _map33 = iprot.readMapBegin();
-
 
9531
                  this.success = new HashMap<String,String>(2*_map33.size);
-
 
9532
                  for (int _i34 = 0; _i34 < _map33.size; ++_i34)
-
 
9533
                  {
-
 
9534
                    String _key35;
-
 
9535
                    String _val36;
-
 
9536
                    _key35 = iprot.readString();
-
 
9537
                    _val36 = iprot.readString();
-
 
9538
                    this.success.put(_key35, _val36);
-
 
9539
                  }
-
 
9540
                  iprot.readMapEnd();
-
 
9541
                }
-
 
9542
              } else { 
-
 
9543
                TProtocolUtil.skip(iprot, field.type);
-
 
9544
              }
-
 
9545
              break;
-
 
9546
            case PE:
-
 
9547
              if (field.type == TType.STRUCT) {
-
 
9548
                this.pe = new PaymentException();
-
 
9549
                this.pe.read(iprot);
-
 
9550
              } else { 
-
 
9551
                TProtocolUtil.skip(iprot, field.type);
-
 
9552
              }
-
 
9553
              break;
-
 
9554
          }
-
 
9555
          iprot.readFieldEnd();
-
 
9556
        }
-
 
9557
      }
-
 
9558
      iprot.readStructEnd();
-
 
9559
      validate();
-
 
9560
    }
-
 
9561
 
-
 
9562
    public void write(TProtocol oprot) throws TException {
-
 
9563
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9564
 
-
 
9565
      if (this.isSetSuccess()) {
-
 
9566
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9567
        {
-
 
9568
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size()));
-
 
9569
          for (Map.Entry<String, String> _iter37 : this.success.entrySet())
-
 
9570
          {
-
 
9571
            oprot.writeString(_iter37.getKey());
-
 
9572
            oprot.writeString(_iter37.getValue());
-
 
9573
          }
-
 
9574
          oprot.writeMapEnd();
-
 
9575
        }
-
 
9576
        oprot.writeFieldEnd();
-
 
9577
      } else if (this.isSetPe()) {
-
 
9578
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
9579
        this.pe.write(oprot);
-
 
9580
        oprot.writeFieldEnd();
-
 
9581
      }
-
 
9582
      oprot.writeFieldStop();
-
 
9583
      oprot.writeStructEnd();
-
 
9584
    }
-
 
9585
 
-
 
9586
    @Override
-
 
9587
    public String toString() {
-
 
9588
      StringBuilder sb = new StringBuilder("captureHdfcPayment_result(");
-
 
9589
      boolean first = true;
-
 
9590
 
-
 
9591
      sb.append("success:");
-
 
9592
      if (this.success == null) {
-
 
9593
        sb.append("null");
-
 
9594
      } else {
-
 
9595
        sb.append(this.success);
-
 
9596
      }
-
 
9597
      first = false;
-
 
9598
      if (!first) sb.append(", ");
-
 
9599
      sb.append("pe:");
-
 
9600
      if (this.pe == null) {
-
 
9601
        sb.append("null");
-
 
9602
      } else {
-
 
9603
        sb.append(this.pe);
-
 
9604
      }
-
 
9605
      first = false;
-
 
9606
      sb.append(")");
-
 
9607
      return sb.toString();
-
 
9608
    }
-
 
9609
 
-
 
9610
    public void validate() throws TException {
-
 
9611
      // check for required fields
-
 
9612
    }
-
 
9613
 
-
 
9614
  }
-
 
9615
 
-
 
9616
  public static class initializeHdfcPayment_args implements TBase<initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_args>   {
-
 
9617
    private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_args");
-
 
9618
 
-
 
9619
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
-
 
9620
 
-
 
9621
    private long merchantPaymentId;
-
 
9622
 
-
 
9623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9624
    public enum _Fields implements TFieldIdEnum {
-
 
9625
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
-
 
9626
 
-
 
9627
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9628
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9629
 
-
 
9630
      static {
-
 
9631
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9632
          byId.put((int)field._thriftId, field);
-
 
9633
          byName.put(field.getFieldName(), field);
-
 
9634
        }
-
 
9635
      }
-
 
9636
 
-
 
9637
      /**
-
 
9638
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9639
       */
-
 
9640
      public static _Fields findByThriftId(int fieldId) {
-
 
9641
        return byId.get(fieldId);
-
 
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
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
-
 
9680
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9681
 
-
 
9682
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9683
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
-
 
9684
          new FieldValueMetaData(TType.I64)));
-
 
9685
    }});
-
 
9686
 
-
 
9687
    static {
-
 
9688
      FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
-
 
9689
    }
-
 
9690
 
-
 
9691
    public initializeHdfcPayment_args() {
-
 
9692
    }
-
 
9693
 
-
 
9694
    public initializeHdfcPayment_args(
-
 
9695
      long merchantPaymentId)
-
 
9696
    {
-
 
9697
      this();
-
 
9698
      this.merchantPaymentId = merchantPaymentId;
-
 
9699
      setMerchantPaymentIdIsSet(true);
-
 
9700
    }
-
 
9701
 
-
 
9702
    /**
-
 
9703
     * Performs a deep copy on <i>other</i>.
-
 
9704
     */
-
 
9705
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
-
 
9706
      __isset_bit_vector.clear();
-
 
9707
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9708
      this.merchantPaymentId = other.merchantPaymentId;
-
 
9709
    }
-
 
9710
 
-
 
9711
    public initializeHdfcPayment_args deepCopy() {
-
 
9712
      return new initializeHdfcPayment_args(this);
-
 
9713
    }
-
 
9714
 
-
 
9715
    @Deprecated
-
 
9716
    public initializeHdfcPayment_args clone() {
-
 
9717
      return new initializeHdfcPayment_args(this);
-
 
9718
    }
-
 
9719
 
-
 
9720
    public long getMerchantPaymentId() {
-
 
9721
      return this.merchantPaymentId;
-
 
9722
    }
-
 
9723
 
-
 
9724
    public initializeHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
-
 
9725
      this.merchantPaymentId = merchantPaymentId;
-
 
9726
      setMerchantPaymentIdIsSet(true);
-
 
9727
      return this;
-
 
9728
    }
-
 
9729
 
-
 
9730
    public void unsetMerchantPaymentId() {
-
 
9731
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
-
 
9732
    }
-
 
9733
 
-
 
9734
    /** Returns true if field merchantPaymentId is set (has been asigned a value) and false otherwise */
-
 
9735
    public boolean isSetMerchantPaymentId() {
-
 
9736
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
-
 
9737
    }
-
 
9738
 
-
 
9739
    public void setMerchantPaymentIdIsSet(boolean value) {
-
 
9740
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
-
 
9741
    }
-
 
9742
 
-
 
9743
    public void setFieldValue(_Fields field, Object value) {
-
 
9744
      switch (field) {
-
 
9745
      case MERCHANT_PAYMENT_ID:
-
 
9746
        if (value == null) {
-
 
9747
          unsetMerchantPaymentId();
-
 
9748
        } else {
-
 
9749
          setMerchantPaymentId((Long)value);
-
 
9750
        }
-
 
9751
        break;
-
 
9752
 
-
 
9753
      }
-
 
9754
    }
-
 
9755
 
-
 
9756
    public void setFieldValue(int fieldID, Object value) {
-
 
9757
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9758
    }
-
 
9759
 
-
 
9760
    public Object getFieldValue(_Fields field) {
-
 
9761
      switch (field) {
-
 
9762
      case MERCHANT_PAYMENT_ID:
-
 
9763
        return new Long(getMerchantPaymentId());
-
 
9764
 
-
 
9765
      }
-
 
9766
      throw new IllegalStateException();
-
 
9767
    }
-
 
9768
 
-
 
9769
    public Object getFieldValue(int fieldId) {
-
 
9770
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9771
    }
-
 
9772
 
-
 
9773
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9774
    public boolean isSet(_Fields field) {
-
 
9775
      switch (field) {
-
 
9776
      case MERCHANT_PAYMENT_ID:
-
 
9777
        return isSetMerchantPaymentId();
-
 
9778
      }
-
 
9779
      throw new IllegalStateException();
-
 
9780
    }
-
 
9781
 
-
 
9782
    public boolean isSet(int fieldID) {
-
 
9783
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9784
    }
-
 
9785
 
-
 
9786
    @Override
-
 
9787
    public boolean equals(Object that) {
-
 
9788
      if (that == null)
-
 
9789
        return false;
-
 
9790
      if (that instanceof initializeHdfcPayment_args)
-
 
9791
        return this.equals((initializeHdfcPayment_args)that);
-
 
9792
      return false;
-
 
9793
    }
-
 
9794
 
-
 
9795
    public boolean equals(initializeHdfcPayment_args that) {
-
 
9796
      if (that == null)
-
 
9797
        return false;
-
 
9798
 
-
 
9799
      boolean this_present_merchantPaymentId = true;
-
 
9800
      boolean that_present_merchantPaymentId = true;
-
 
9801
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
-
 
9802
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
-
 
9803
          return false;
-
 
9804
        if (this.merchantPaymentId != that.merchantPaymentId)
-
 
9805
          return false;
-
 
9806
      }
-
 
9807
 
-
 
9808
      return true;
-
 
9809
    }
-
 
9810
 
-
 
9811
    @Override
-
 
9812
    public int hashCode() {
-
 
9813
      return 0;
-
 
9814
    }
-
 
9815
 
-
 
9816
    public int compareTo(initializeHdfcPayment_args other) {
-
 
9817
      if (!getClass().equals(other.getClass())) {
-
 
9818
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9819
      }
-
 
9820
 
-
 
9821
      int lastComparison = 0;
-
 
9822
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
-
 
9823
 
-
 
9824
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
-
 
9825
      if (lastComparison != 0) {
-
 
9826
        return lastComparison;
-
 
9827
      }
-
 
9828
      lastComparison = TBaseHelper.compareTo(merchantPaymentId, typedOther.merchantPaymentId);
-
 
9829
      if (lastComparison != 0) {
-
 
9830
        return lastComparison;
-
 
9831
      }
-
 
9832
      return 0;
-
 
9833
    }
-
 
9834
 
-
 
9835
    public void read(TProtocol iprot) throws TException {
-
 
9836
      TField field;
-
 
9837
      iprot.readStructBegin();
-
 
9838
      while (true)
-
 
9839
      {
-
 
9840
        field = iprot.readFieldBegin();
-
 
9841
        if (field.type == TType.STOP) { 
-
 
9842
          break;
-
 
9843
        }
-
 
9844
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9845
        if (fieldId == null) {
-
 
9846
          TProtocolUtil.skip(iprot, field.type);
-
 
9847
        } else {
-
 
9848
          switch (fieldId) {
-
 
9849
            case MERCHANT_PAYMENT_ID:
-
 
9850
              if (field.type == TType.I64) {
-
 
9851
                this.merchantPaymentId = iprot.readI64();
-
 
9852
                setMerchantPaymentIdIsSet(true);
-
 
9853
              } else { 
-
 
9854
                TProtocolUtil.skip(iprot, field.type);
-
 
9855
              }
-
 
9856
              break;
-
 
9857
          }
-
 
9858
          iprot.readFieldEnd();
-
 
9859
        }
-
 
9860
      }
-
 
9861
      iprot.readStructEnd();
-
 
9862
      validate();
-
 
9863
    }
-
 
9864
 
-
 
9865
    public void write(TProtocol oprot) throws TException {
-
 
9866
      validate();
-
 
9867
 
-
 
9868
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9869
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
-
 
9870
      oprot.writeI64(this.merchantPaymentId);
-
 
9871
      oprot.writeFieldEnd();
-
 
9872
      oprot.writeFieldStop();
-
 
9873
      oprot.writeStructEnd();
-
 
9874
    }
-
 
9875
 
-
 
9876
    @Override
-
 
9877
    public String toString() {
-
 
9878
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
-
 
9879
      boolean first = true;
-
 
9880
 
-
 
9881
      sb.append("merchantPaymentId:");
-
 
9882
      sb.append(this.merchantPaymentId);
-
 
9883
      first = false;
-
 
9884
      sb.append(")");
-
 
9885
      return sb.toString();
-
 
9886
    }
-
 
9887
 
-
 
9888
    public void validate() throws TException {
-
 
9889
      // check for required fields
-
 
9890
    }
-
 
9891
 
-
 
9892
  }
-
 
9893
 
-
 
9894
  public static class initializeHdfcPayment_result implements TBase<initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_result>   {
-
 
9895
    private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_result");
-
 
9896
 
-
 
9897
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
-
 
9898
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
-
 
9899
 
-
 
9900
    private String success;
-
 
9901
    private PaymentException pe;
-
 
9902
 
-
 
9903
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9904
    public enum _Fields implements TFieldIdEnum {
-
 
9905
      SUCCESS((short)0, "success"),
-
 
9906
      PE((short)1, "pe");
-
 
9907
 
-
 
9908
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9910
 
-
 
9911
      static {
-
 
9912
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9913
          byId.put((int)field._thriftId, field);
-
 
9914
          byName.put(field.getFieldName(), field);
-
 
9915
        }
-
 
9916
      }
-
 
9917
 
-
 
9918
      /**
-
 
9919
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9920
       */
-
 
9921
      public static _Fields findByThriftId(int fieldId) {
-
 
9922
        return byId.get(fieldId);
-
 
9923
      }
-
 
9924
 
-
 
9925
      /**
-
 
9926
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9927
       * if it is not found.
-
 
9928
       */
-
 
9929
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9930
        _Fields fields = findByThriftId(fieldId);
-
 
9931
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9932
        return fields;
-
 
9933
      }
-
 
9934
 
-
 
9935
      /**
-
 
9936
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9937
       */
-
 
9938
      public static _Fields findByName(String name) {
-
 
9939
        return byName.get(name);
-
 
9940
      }
-
 
9941
 
-
 
9942
      private final short _thriftId;
-
 
9943
      private final String _fieldName;
-
 
9944
 
-
 
9945
      _Fields(short thriftId, String fieldName) {
-
 
9946
        _thriftId = thriftId;
-
 
9947
        _fieldName = fieldName;
-
 
9948
      }
-
 
9949
 
-
 
9950
      public short getThriftFieldId() {
-
 
9951
        return _thriftId;
-
 
9952
      }
-
 
9953
 
-
 
9954
      public String getFieldName() {
-
 
9955
        return _fieldName;
-
 
9956
      }
-
 
9957
    }
-
 
9958
 
-
 
9959
    // isset id assignments
-
 
9960
 
-
 
9961
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9962
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
9963
          new FieldValueMetaData(TType.STRING)));
-
 
9964
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
-
 
9965
          new FieldValueMetaData(TType.STRUCT)));
-
 
9966
    }});
-
 
9967
 
-
 
9968
    static {
-
 
9969
      FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
-
 
9970
    }
-
 
9971
 
-
 
9972
    public initializeHdfcPayment_result() {
-
 
9973
    }
-
 
9974
 
-
 
9975
    public initializeHdfcPayment_result(
-
 
9976
      String success,
-
 
9977
      PaymentException pe)
-
 
9978
    {
-
 
9979
      this();
-
 
9980
      this.success = success;
-
 
9981
      this.pe = pe;
-
 
9982
    }
-
 
9983
 
-
 
9984
    /**
-
 
9985
     * Performs a deep copy on <i>other</i>.
-
 
9986
     */
-
 
9987
    public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
-
 
9988
      if (other.isSetSuccess()) {
-
 
9989
        this.success = other.success;
-
 
9990
      }
-
 
9991
      if (other.isSetPe()) {
-
 
9992
        this.pe = new PaymentException(other.pe);
-
 
9993
      }
-
 
9994
    }
-
 
9995
 
-
 
9996
    public initializeHdfcPayment_result deepCopy() {
-
 
9997
      return new initializeHdfcPayment_result(this);
-
 
9998
    }
-
 
9999
 
-
 
10000
    @Deprecated
-
 
10001
    public initializeHdfcPayment_result clone() {
-
 
10002
      return new initializeHdfcPayment_result(this);
-
 
10003
    }
-
 
10004
 
-
 
10005
    public String getSuccess() {
-
 
10006
      return this.success;
-
 
10007
    }
-
 
10008
 
-
 
10009
    public initializeHdfcPayment_result setSuccess(String success) {
-
 
10010
      this.success = success;
-
 
10011
      return this;
-
 
10012
    }
-
 
10013
 
-
 
10014
    public void unsetSuccess() {
-
 
10015
      this.success = null;
-
 
10016
    }
-
 
10017
 
-
 
10018
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
10019
    public boolean isSetSuccess() {
-
 
10020
      return this.success != null;
-
 
10021
    }
-
 
10022
 
-
 
10023
    public void setSuccessIsSet(boolean value) {
-
 
10024
      if (!value) {
-
 
10025
        this.success = null;
-
 
10026
      }
-
 
10027
    }
-
 
10028
 
-
 
10029
    public PaymentException getPe() {
-
 
10030
      return this.pe;
-
 
10031
    }
-
 
10032
 
-
 
10033
    public initializeHdfcPayment_result setPe(PaymentException pe) {
-
 
10034
      this.pe = pe;
-
 
10035
      return this;
-
 
10036
    }
-
 
10037
 
-
 
10038
    public void unsetPe() {
-
 
10039
      this.pe = null;
-
 
10040
    }
-
 
10041
 
-
 
10042
    /** Returns true if field pe is set (has been asigned a value) and false otherwise */
-
 
10043
    public boolean isSetPe() {
-
 
10044
      return this.pe != null;
-
 
10045
    }
-
 
10046
 
-
 
10047
    public void setPeIsSet(boolean value) {
-
 
10048
      if (!value) {
-
 
10049
        this.pe = null;
-
 
10050
      }
-
 
10051
    }
-
 
10052
 
-
 
10053
    public void setFieldValue(_Fields field, Object value) {
-
 
10054
      switch (field) {
-
 
10055
      case SUCCESS:
-
 
10056
        if (value == null) {
-
 
10057
          unsetSuccess();
-
 
10058
        } else {
-
 
10059
          setSuccess((String)value);
-
 
10060
        }
-
 
10061
        break;
-
 
10062
 
-
 
10063
      case PE:
-
 
10064
        if (value == null) {
-
 
10065
          unsetPe();
-
 
10066
        } else {
-
 
10067
          setPe((PaymentException)value);
-
 
10068
        }
-
 
10069
        break;
-
 
10070
 
-
 
10071
      }
-
 
10072
    }
-
 
10073
 
-
 
10074
    public void setFieldValue(int fieldID, Object value) {
-
 
10075
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10076
    }
-
 
10077
 
-
 
10078
    public Object getFieldValue(_Fields field) {
-
 
10079
      switch (field) {
-
 
10080
      case SUCCESS:
-
 
10081
        return getSuccess();
-
 
10082
 
-
 
10083
      case PE:
-
 
10084
        return getPe();
-
 
10085
 
-
 
10086
      }
-
 
10087
      throw new IllegalStateException();
-
 
10088
    }
-
 
10089
 
-
 
10090
    public Object getFieldValue(int fieldId) {
-
 
10091
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10092
    }
-
 
10093
 
-
 
10094
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
10095
    public boolean isSet(_Fields field) {
-
 
10096
      switch (field) {
-
 
10097
      case SUCCESS:
-
 
10098
        return isSetSuccess();
-
 
10099
      case PE:
-
 
10100
        return isSetPe();
-
 
10101
      }
-
 
10102
      throw new IllegalStateException();
-
 
10103
    }
-
 
10104
 
-
 
10105
    public boolean isSet(int fieldID) {
-
 
10106
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10107
    }
-
 
10108
 
-
 
10109
    @Override
-
 
10110
    public boolean equals(Object that) {
-
 
10111
      if (that == null)
-
 
10112
        return false;
-
 
10113
      if (that instanceof initializeHdfcPayment_result)
-
 
10114
        return this.equals((initializeHdfcPayment_result)that);
-
 
10115
      return false;
-
 
10116
    }
-
 
10117
 
-
 
10118
    public boolean equals(initializeHdfcPayment_result that) {
-
 
10119
      if (that == null)
-
 
10120
        return false;
-
 
10121
 
-
 
10122
      boolean this_present_success = true && this.isSetSuccess();
-
 
10123
      boolean that_present_success = true && that.isSetSuccess();
-
 
10124
      if (this_present_success || that_present_success) {
-
 
10125
        if (!(this_present_success && that_present_success))
-
 
10126
          return false;
-
 
10127
        if (!this.success.equals(that.success))
-
 
10128
          return false;
-
 
10129
      }
-
 
10130
 
-
 
10131
      boolean this_present_pe = true && this.isSetPe();
-
 
10132
      boolean that_present_pe = true && that.isSetPe();
-
 
10133
      if (this_present_pe || that_present_pe) {
-
 
10134
        if (!(this_present_pe && that_present_pe))
-
 
10135
          return false;
-
 
10136
        if (!this.pe.equals(that.pe))
-
 
10137
          return false;
-
 
10138
      }
-
 
10139
 
-
 
10140
      return true;
-
 
10141
    }
-
 
10142
 
-
 
10143
    @Override
-
 
10144
    public int hashCode() {
-
 
10145
      return 0;
-
 
10146
    }
-
 
10147
 
-
 
10148
    public int compareTo(initializeHdfcPayment_result other) {
-
 
10149
      if (!getClass().equals(other.getClass())) {
-
 
10150
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10151
      }
-
 
10152
 
-
 
10153
      int lastComparison = 0;
-
 
10154
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
-
 
10155
 
-
 
10156
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
10157
      if (lastComparison != 0) {
-
 
10158
        return lastComparison;
-
 
10159
      }
-
 
10160
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
10161
      if (lastComparison != 0) {
-
 
10162
        return lastComparison;
-
 
10163
      }
-
 
10164
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
-
 
10165
      if (lastComparison != 0) {
-
 
10166
        return lastComparison;
-
 
10167
      }
-
 
10168
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
-
 
10169
      if (lastComparison != 0) {
-
 
10170
        return lastComparison;
-
 
10171
      }
-
 
10172
      return 0;
-
 
10173
    }
-
 
10174
 
-
 
10175
    public void read(TProtocol iprot) throws TException {
-
 
10176
      TField field;
-
 
10177
      iprot.readStructBegin();
-
 
10178
      while (true)
-
 
10179
      {
-
 
10180
        field = iprot.readFieldBegin();
-
 
10181
        if (field.type == TType.STOP) { 
-
 
10182
          break;
-
 
10183
        }
-
 
10184
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10185
        if (fieldId == null) {
-
 
10186
          TProtocolUtil.skip(iprot, field.type);
-
 
10187
        } else {
-
 
10188
          switch (fieldId) {
-
 
10189
            case SUCCESS:
-
 
10190
              if (field.type == TType.STRING) {
-
 
10191
                this.success = iprot.readString();
-
 
10192
              } else { 
-
 
10193
                TProtocolUtil.skip(iprot, field.type);
-
 
10194
              }
-
 
10195
              break;
-
 
10196
            case PE:
-
 
10197
              if (field.type == TType.STRUCT) {
-
 
10198
                this.pe = new PaymentException();
-
 
10199
                this.pe.read(iprot);
-
 
10200
              } else { 
-
 
10201
                TProtocolUtil.skip(iprot, field.type);
-
 
10202
              }
-
 
10203
              break;
-
 
10204
          }
-
 
10205
          iprot.readFieldEnd();
-
 
10206
        }
-
 
10207
      }
-
 
10208
      iprot.readStructEnd();
-
 
10209
      validate();
-
 
10210
    }
-
 
10211
 
-
 
10212
    public void write(TProtocol oprot) throws TException {
-
 
10213
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10214
 
-
 
10215
      if (this.isSetSuccess()) {
-
 
10216
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
10217
        oprot.writeString(this.success);
-
 
10218
        oprot.writeFieldEnd();
-
 
10219
      } else if (this.isSetPe()) {
-
 
10220
        oprot.writeFieldBegin(PE_FIELD_DESC);
-
 
10221
        this.pe.write(oprot);
-
 
10222
        oprot.writeFieldEnd();
-
 
10223
      }
-
 
10224
      oprot.writeFieldStop();
-
 
10225
      oprot.writeStructEnd();
-
 
10226
    }
-
 
10227
 
-
 
10228
    @Override
-
 
10229
    public String toString() {
-
 
10230
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
-
 
10231
      boolean first = true;
-
 
10232
 
-
 
10233
      sb.append("success:");
-
 
10234
      if (this.success == null) {
-
 
10235
        sb.append("null");
-
 
10236
      } else {
-
 
10237
        sb.append(this.success);
-
 
10238
      }
-
 
10239
      first = false;
-
 
10240
      if (!first) sb.append(", ");
-
 
10241
      sb.append("pe:");
-
 
10242
      if (this.pe == null) {
-
 
10243
        sb.append("null");
-
 
10244
      } else {
-
 
10245
        sb.append(this.pe);
-
 
10246
      }
-
 
10247
      first = false;
-
 
10248
      sb.append(")");
-
 
10249
      return sb.toString();
-
 
10250
    }
8059
 
10251
 
8060
    public void validate() throws TException {
10252
    public void validate() throws TException {
8061
      // check for required fields
10253
      // check for required fields
8062
    }
10254
    }
8063
 
10255