Subversion Repositories SmartDukaan

Rev

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

Rev 2747 Rev 3010
Line 114... Line 114...
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
    /**
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 EBS Payment and returns a map containing the details of the captured transaction
119
     * Captures an already authorized EBS Payment and returns a map containing the details of the captured transaction
128
     * 
120
     * 
129
     * @param merchantPaymentId
121
     * @param merchantPaymentId
130
     */
122
     */
131
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, TException;
123
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, TException;
Line 154... Line 146...
154
     * @param merchantTxnId
146
     * @param merchantTxnId
155
     * @param amount
147
     * @param amount
156
     */
148
     */
157
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, TException;
149
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, TException;
158
 
150
 
-
 
151
    /**
-
 
152
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
-
 
153
     * transaction. If the capture attempt failed, the payment is marked as failed.
-
 
154
     * 
-
 
155
     * @param merchantTxnId
-
 
156
     */
-
 
157
    public boolean capturePayment(long merchantTxnId) throws PaymentException, TException;
-
 
158
 
159
  }
159
  }
160
 
160
 
161
  public static class Client implements Iface {
161
  public static class Client implements Iface {
162
    public Client(TProtocol prot)
162
    public Client(TProtocol prot)
163
    {
163
    {
Line 517... Line 517...
517
        return result.success;
517
        return result.success;
518
      }
518
      }
519
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
519
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
520
    }
520
    }
521
 
521
 
522
    public Payment updateAndCaptureEbsPayment(Map<String,String> paymentParams) throws PaymentException, TException
-
 
523
    {
-
 
524
      send_updateAndCaptureEbsPayment(paymentParams);
-
 
525
      return recv_updateAndCaptureEbsPayment();
-
 
526
    }
-
 
527
 
-
 
528
    public void send_updateAndCaptureEbsPayment(Map<String,String> paymentParams) throws TException
-
 
529
    {
-
 
530
      oprot_.writeMessageBegin(new TMessage("updateAndCaptureEbsPayment", TMessageType.CALL, seqid_));
-
 
531
      updateAndCaptureEbsPayment_args args = new updateAndCaptureEbsPayment_args();
-
 
532
      args.paymentParams = paymentParams;
-
 
533
      args.write(oprot_);
-
 
534
      oprot_.writeMessageEnd();
-
 
535
      oprot_.getTransport().flush();
-
 
536
    }
-
 
537
 
-
 
538
    public Payment recv_updateAndCaptureEbsPayment() throws PaymentException, TException
-
 
539
    {
-
 
540
      TMessage msg = iprot_.readMessageBegin();
-
 
541
      if (msg.type == TMessageType.EXCEPTION) {
-
 
542
        TApplicationException x = TApplicationException.read(iprot_);
-
 
543
        iprot_.readMessageEnd();
-
 
544
        throw x;
-
 
545
      }
-
 
546
      updateAndCaptureEbsPayment_result result = new updateAndCaptureEbsPayment_result();
-
 
547
      result.read(iprot_);
-
 
548
      iprot_.readMessageEnd();
-
 
549
      if (result.isSetSuccess()) {
-
 
550
        return result.success;
-
 
551
      }
-
 
552
      if (result.pe != null) {
-
 
553
        throw result.pe;
-
 
554
      }
-
 
555
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updateAndCaptureEbsPayment failed: unknown result");
-
 
556
    }
-
 
557
 
-
 
558
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, TException
522
    public Map<String,String> captureEbsPayment(long merchantPaymentId) throws PaymentException, TException
559
    {
523
    {
560
      send_captureEbsPayment(merchantPaymentId);
524
      send_captureEbsPayment(merchantPaymentId);
561
      return recv_captureEbsPayment();
525
      return recv_captureEbsPayment();
562
    }
526
    }
Line 699... Line 663...
699
        throw result.pe;
663
        throw result.pe;
700
      }
664
      }
701
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
665
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "createRefund failed: unknown result");
702
    }
666
    }
703
 
667
 
-
 
668
    public boolean capturePayment(long merchantTxnId) throws PaymentException, TException
-
 
669
    {
-
 
670
      send_capturePayment(merchantTxnId);
-
 
671
      return recv_capturePayment();
-
 
672
    }
-
 
673
 
-
 
674
    public void send_capturePayment(long merchantTxnId) throws TException
-
 
675
    {
-
 
676
      oprot_.writeMessageBegin(new TMessage("capturePayment", TMessageType.CALL, seqid_));
-
 
677
      capturePayment_args args = new capturePayment_args();
-
 
678
      args.merchantTxnId = merchantTxnId;
-
 
679
      args.write(oprot_);
-
 
680
      oprot_.writeMessageEnd();
-
 
681
      oprot_.getTransport().flush();
-
 
682
    }
-
 
683
 
-
 
684
    public boolean recv_capturePayment() throws PaymentException, TException
-
 
685
    {
-
 
686
      TMessage msg = iprot_.readMessageBegin();
-
 
687
      if (msg.type == TMessageType.EXCEPTION) {
-
 
688
        TApplicationException x = TApplicationException.read(iprot_);
-
 
689
        iprot_.readMessageEnd();
-
 
690
        throw x;
-
 
691
      }
-
 
692
      capturePayment_result result = new capturePayment_result();
-
 
693
      result.read(iprot_);
-
 
694
      iprot_.readMessageEnd();
-
 
695
      if (result.isSetSuccess()) {
-
 
696
        return result.success;
-
 
697
      }
-
 
698
      if (result.pe != null) {
-
 
699
        throw result.pe;
-
 
700
      }
-
 
701
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "capturePayment failed: unknown result");
-
 
702
    }
-
 
703
 
704
  }
704
  }
705
  public static class Processor implements TProcessor {
705
  public static class Processor implements TProcessor {
706
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
706
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
707
    public Processor(Iface iface)
707
    public Processor(Iface iface)
708
    {
708
    {
Line 714... Line 714...
714
      processMap_.put("getPaymentGateway", new getPaymentGateway());
714
      processMap_.put("getPaymentGateway", new getPaymentGateway());
715
      processMap_.put("getPayment", new getPayment());
715
      processMap_.put("getPayment", new getPayment());
716
      processMap_.put("getPaymentForTxnId", new getPaymentForTxnId());
716
      processMap_.put("getPaymentForTxnId", new getPaymentForTxnId());
717
      processMap_.put("updatePaymentDetails", new updatePaymentDetails());
717
      processMap_.put("updatePaymentDetails", new updatePaymentDetails());
718
      processMap_.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
718
      processMap_.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
719
      processMap_.put("updateAndCaptureEbsPayment", new updateAndCaptureEbsPayment());
-
 
720
      processMap_.put("captureEbsPayment", new captureEbsPayment());
719
      processMap_.put("captureEbsPayment", new captureEbsPayment());
721
      processMap_.put("captureHdfcPayment", new captureHdfcPayment());
720
      processMap_.put("captureHdfcPayment", new captureHdfcPayment());
722
      processMap_.put("initializeHdfcPayment", new initializeHdfcPayment());
721
      processMap_.put("initializeHdfcPayment", new initializeHdfcPayment());
723
      processMap_.put("createRefund", new createRefund());
722
      processMap_.put("createRefund", new createRefund());
-
 
723
      processMap_.put("capturePayment", new capturePayment());
724
    }
724
    }
725
 
725
 
726
    protected static interface ProcessFunction {
726
    protected static interface ProcessFunction {
727
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
727
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
728
    }
728
    }
Line 976... Line 976...
976
        oprot.getTransport().flush();
976
        oprot.getTransport().flush();
977
      }
977
      }
978
 
978
 
979
    }
979
    }
980
 
980
 
981
    private class updateAndCaptureEbsPayment implements ProcessFunction {
-
 
982
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
983
      {
-
 
984
        updateAndCaptureEbsPayment_args args = new updateAndCaptureEbsPayment_args();
-
 
985
        args.read(iprot);
-
 
986
        iprot.readMessageEnd();
-
 
987
        updateAndCaptureEbsPayment_result result = new updateAndCaptureEbsPayment_result();
-
 
988
        try {
-
 
989
          result.success = iface_.updateAndCaptureEbsPayment(args.paymentParams);
-
 
990
        } catch (PaymentException pe) {
-
 
991
          result.pe = pe;
-
 
992
        } catch (Throwable th) {
-
 
993
          LOGGER.error("Internal error processing updateAndCaptureEbsPayment", th);
-
 
994
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateAndCaptureEbsPayment");
-
 
995
          oprot.writeMessageBegin(new TMessage("updateAndCaptureEbsPayment", TMessageType.EXCEPTION, seqid));
-
 
996
          x.write(oprot);
-
 
997
          oprot.writeMessageEnd();
-
 
998
          oprot.getTransport().flush();
-
 
999
          return;
-
 
1000
        }
-
 
1001
        oprot.writeMessageBegin(new TMessage("updateAndCaptureEbsPayment", TMessageType.REPLY, seqid));
-
 
1002
        result.write(oprot);
-
 
1003
        oprot.writeMessageEnd();
-
 
1004
        oprot.getTransport().flush();
-
 
1005
      }
-
 
1006
 
-
 
1007
    }
-
 
1008
 
-
 
1009
    private class captureEbsPayment implements ProcessFunction {
981
    private class captureEbsPayment implements ProcessFunction {
1010
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
982
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1011
      {
983
      {
1012
        captureEbsPayment_args args = new captureEbsPayment_args();
984
        captureEbsPayment_args args = new captureEbsPayment_args();
1013
        args.read(iprot);
985
        args.read(iprot);
Line 1117... Line 1089...
1117
        oprot.getTransport().flush();
1089
        oprot.getTransport().flush();
1118
      }
1090
      }
1119
 
1091
 
1120
    }
1092
    }
1121
 
1093
 
-
 
1094
    private class capturePayment implements ProcessFunction {
-
 
1095
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1096
      {
-
 
1097
        capturePayment_args args = new capturePayment_args();
-
 
1098
        args.read(iprot);
-
 
1099
        iprot.readMessageEnd();
-
 
1100
        capturePayment_result result = new capturePayment_result();
-
 
1101
        try {
-
 
1102
          result.success = iface_.capturePayment(args.merchantTxnId);
-
 
1103
          result.setSuccessIsSet(true);
-
 
1104
        } catch (PaymentException pe) {
-
 
1105
          result.pe = pe;
-
 
1106
        } catch (Throwable th) {
-
 
1107
          LOGGER.error("Internal error processing capturePayment", th);
-
 
1108
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing capturePayment");
-
 
1109
          oprot.writeMessageBegin(new TMessage("capturePayment", TMessageType.EXCEPTION, seqid));
-
 
1110
          x.write(oprot);
-
 
1111
          oprot.writeMessageEnd();
-
 
1112
          oprot.getTransport().flush();
-
 
1113
          return;
-
 
1114
        }
-
 
1115
        oprot.writeMessageBegin(new TMessage("capturePayment", TMessageType.REPLY, seqid));
-
 
1116
        result.write(oprot);
-
 
1117
        oprot.writeMessageEnd();
-
 
1118
        oprot.getTransport().flush();
-
 
1119
      }
-
 
1120
 
-
 
1121
    }
-
 
1122
 
1122
  }
1123
  }
1123
 
1124
 
1124
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
1125
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
1125
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
1126
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
1126
 
1127
 
Line 8430... Line 8431...
8430
      // check for required fields
8431
      // check for required fields
8431
    }
8432
    }
8432
 
8433
 
8433
  }
8434
  }
8434
 
8435
 
8435
  public static class updateAndCaptureEbsPayment_args implements TBase<updateAndCaptureEbsPayment_args._Fields>, java.io.Serializable, Cloneable   {
8436
  public static class captureEbsPayment_args implements TBase<captureEbsPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<captureEbsPayment_args>   {
8436
    private static final TStruct STRUCT_DESC = new TStruct("updateAndCaptureEbsPayment_args");
8437
    private static final TStruct STRUCT_DESC = new TStruct("captureEbsPayment_args");
8437
 
8438
 
8438
    private static final TField PAYMENT_PARAMS_FIELD_DESC = new TField("paymentParams", TType.MAP, (short)1);
8439
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
8439
 
8440
 
8440
    private Map<String,String> paymentParams;
8441
    private long merchantPaymentId;
8441
 
8442
 
8442
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8443
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8443
    public enum _Fields implements TFieldIdEnum {
8444
    public enum _Fields implements TFieldIdEnum {
8444
      PAYMENT_PARAMS((short)1, "paymentParams");
8445
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
8445
 
8446
 
8446
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
8447
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
8447
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8448
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8448
 
8449
 
8449
      static {
8450
      static {
Line 8493... Line 8494...
8493
        return _fieldName;
8494
        return _fieldName;
8494
      }
8495
      }
8495
    }
8496
    }
8496
 
8497
 
8497
    // isset id assignments
8498
    // isset id assignments
-
 
8499
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
-
 
8500
    private BitSet __isset_bit_vector = new BitSet(1);
8498
 
8501
 
8499
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8502
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8500
      put(_Fields.PAYMENT_PARAMS, new FieldMetaData("paymentParams", TFieldRequirementType.DEFAULT, 
8503
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
8501
          new MapMetaData(TType.MAP, 
-
 
8502
              new FieldValueMetaData(TType.STRING), 
-
 
8503
              new FieldValueMetaData(TType.STRING))));
8504
          new FieldValueMetaData(TType.I64)));
8504
    }});
8505
    }});
8505
 
8506
 
8506
    static {
8507
    static {
8507
      FieldMetaData.addStructMetaDataMap(updateAndCaptureEbsPayment_args.class, metaDataMap);
8508
      FieldMetaData.addStructMetaDataMap(captureEbsPayment_args.class, metaDataMap);
8508
    }
8509
    }
8509
 
8510
 
8510
    public updateAndCaptureEbsPayment_args() {
8511
    public captureEbsPayment_args() {
8511
    }
8512
    }
8512
 
8513
 
8513
    public updateAndCaptureEbsPayment_args(
8514
    public captureEbsPayment_args(
8514
      Map<String,String> paymentParams)
8515
      long merchantPaymentId)
8515
    {
8516
    {
8516
      this();
8517
      this();
8517
      this.paymentParams = paymentParams;
8518
      this.merchantPaymentId = merchantPaymentId;
-
 
8519
      setMerchantPaymentIdIsSet(true);
8518
    }
8520
    }
8519
 
8521
 
8520
    /**
8522
    /**
8521
     * Performs a deep copy on <i>other</i>.
8523
     * Performs a deep copy on <i>other</i>.
8522
     */
8524
     */
8523
    public updateAndCaptureEbsPayment_args(updateAndCaptureEbsPayment_args other) {
8525
    public captureEbsPayment_args(captureEbsPayment_args other) {
8524
      if (other.isSetPaymentParams()) {
8526
      __isset_bit_vector.clear();
8525
        Map<String,String> __this__paymentParams = new HashMap<String,String>();
-
 
8526
        for (Map.Entry<String, String> other_element : other.paymentParams.entrySet()) {
-
 
8527
 
-
 
8528
          String other_element_key = other_element.getKey();
8527
      __isset_bit_vector.or(other.__isset_bit_vector);
8529
          String other_element_value = other_element.getValue();
-
 
8530
 
-
 
8531
          String __this__paymentParams_copy_key = other_element_key;
-
 
8532
 
-
 
8533
          String __this__paymentParams_copy_value = other_element_value;
-
 
8534
 
-
 
8535
          __this__paymentParams.put(__this__paymentParams_copy_key, __this__paymentParams_copy_value);
-
 
8536
        }
-
 
8537
        this.paymentParams = __this__paymentParams;
8528
      this.merchantPaymentId = other.merchantPaymentId;
8538
      }
-
 
8539
    }
8529
    }
8540
 
8530
 
8541
    public updateAndCaptureEbsPayment_args deepCopy() {
8531
    public captureEbsPayment_args deepCopy() {
8542
      return new updateAndCaptureEbsPayment_args(this);
8532
      return new captureEbsPayment_args(this);
8543
    }
8533
    }
8544
 
8534
 
8545
    @Deprecated
8535
    @Deprecated
8546
    public updateAndCaptureEbsPayment_args clone() {
8536
    public captureEbsPayment_args clone() {
8547
      return new updateAndCaptureEbsPayment_args(this);
8537
      return new captureEbsPayment_args(this);
8548
    }
-
 
8549
 
-
 
8550
    public int getPaymentParamsSize() {
-
 
8551
      return (this.paymentParams == null) ? 0 : this.paymentParams.size();
-
 
8552
    }
-
 
8553
 
-
 
8554
    public void putToPaymentParams(String key, String val) {
-
 
8555
      if (this.paymentParams == null) {
-
 
8556
        this.paymentParams = new HashMap<String,String>();
-
 
8557
      }
-
 
8558
      this.paymentParams.put(key, val);
-
 
8559
    }
8538
    }
8560
 
8539
 
8561
    public Map<String,String> getPaymentParams() {
8540
    public long getMerchantPaymentId() {
8562
      return this.paymentParams;
8541
      return this.merchantPaymentId;
8563
    }
8542
    }
8564
 
8543
 
8565
    public updateAndCaptureEbsPayment_args setPaymentParams(Map<String,String> paymentParams) {
8544
    public captureEbsPayment_args setMerchantPaymentId(long merchantPaymentId) {
8566
      this.paymentParams = paymentParams;
8545
      this.merchantPaymentId = merchantPaymentId;
-
 
8546
      setMerchantPaymentIdIsSet(true);
8567
      return this;
8547
      return this;
8568
    }
8548
    }
8569
 
8549
 
8570
    public void unsetPaymentParams() {
8550
    public void unsetMerchantPaymentId() {
8571
      this.paymentParams = null;
8551
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
8572
    }
8552
    }
8573
 
8553
 
8574
    /** Returns true if field paymentParams is set (has been asigned a value) and false otherwise */
8554
    /** Returns true if field merchantPaymentId is set (has been asigned a value) and false otherwise */
8575
    public boolean isSetPaymentParams() {
8555
    public boolean isSetMerchantPaymentId() {
8576
      return this.paymentParams != null;
8556
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
8577
    }
8557
    }
8578
 
8558
 
8579
    public void setPaymentParamsIsSet(boolean value) {
8559
    public void setMerchantPaymentIdIsSet(boolean value) {
8580
      if (!value) {
-
 
8581
        this.paymentParams = null;
8560
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
8582
      }
-
 
8583
    }
8561
    }
8584
 
8562
 
8585
    public void setFieldValue(_Fields field, Object value) {
8563
    public void setFieldValue(_Fields field, Object value) {
8586
      switch (field) {
8564
      switch (field) {
8587
      case PAYMENT_PARAMS:
8565
      case MERCHANT_PAYMENT_ID:
8588
        if (value == null) {
8566
        if (value == null) {
8589
          unsetPaymentParams();
8567
          unsetMerchantPaymentId();
8590
        } else {
8568
        } else {
8591
          setPaymentParams((Map<String,String>)value);
8569
          setMerchantPaymentId((Long)value);
8592
        }
8570
        }
8593
        break;
8571
        break;
8594
 
8572
 
8595
      }
8573
      }
8596
    }
8574
    }
Line 8599... Line 8577...
8599
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
8577
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
8600
    }
8578
    }
8601
 
8579
 
8602
    public Object getFieldValue(_Fields field) {
8580
    public Object getFieldValue(_Fields field) {
8603
      switch (field) {
8581
      switch (field) {
8604
      case PAYMENT_PARAMS:
8582
      case MERCHANT_PAYMENT_ID:
8605
        return getPaymentParams();
8583
        return new Long(getMerchantPaymentId());
8606
 
8584
 
8607
      }
8585
      }
8608
      throw new IllegalStateException();
8586
      throw new IllegalStateException();
8609
    }
8587
    }
8610
 
8588
 
Line 8613... Line 8591...
8613
    }
8591
    }
8614
 
8592
 
8615
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8593
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8616
    public boolean isSet(_Fields field) {
8594
    public boolean isSet(_Fields field) {
8617
      switch (field) {
8595
      switch (field) {
8618
      case PAYMENT_PARAMS:
8596
      case MERCHANT_PAYMENT_ID:
8619
        return isSetPaymentParams();
8597
        return isSetMerchantPaymentId();
8620
      }
8598
      }
8621
      throw new IllegalStateException();
8599
      throw new IllegalStateException();
8622
    }
8600
    }
8623
 
8601
 
8624
    public boolean isSet(int fieldID) {
8602
    public boolean isSet(int fieldID) {
Line 8627... Line 8605...
8627
 
8605
 
8628
    @Override
8606
    @Override
8629
    public boolean equals(Object that) {
8607
    public boolean equals(Object that) {
8630
      if (that == null)
8608
      if (that == null)
8631
        return false;
8609
        return false;
8632
      if (that instanceof updateAndCaptureEbsPayment_args)
8610
      if (that instanceof captureEbsPayment_args)
8633
        return this.equals((updateAndCaptureEbsPayment_args)that);
8611
        return this.equals((captureEbsPayment_args)that);
8634
      return false;
8612
      return false;
8635
    }
8613
    }
8636
 
8614
 
8637
    public boolean equals(updateAndCaptureEbsPayment_args that) {
8615
    public boolean equals(captureEbsPayment_args that) {
8638
      if (that == null)
8616
      if (that == null)
8639
        return false;
8617
        return false;
8640
 
8618
 
8641
      boolean this_present_paymentParams = true && this.isSetPaymentParams();
8619
      boolean this_present_merchantPaymentId = true;
8642
      boolean that_present_paymentParams = true && that.isSetPaymentParams();
8620
      boolean that_present_merchantPaymentId = true;
8643
      if (this_present_paymentParams || that_present_paymentParams) {
8621
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
8644
        if (!(this_present_paymentParams && that_present_paymentParams))
8622
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
8645
          return false;
8623
          return false;
8646
        if (!this.paymentParams.equals(that.paymentParams))
8624
        if (this.merchantPaymentId != that.merchantPaymentId)
8647
          return false;
8625
          return false;
8648
      }
8626
      }
8649
 
8627
 
8650
      return true;
8628
      return true;
8651
    }
8629
    }
Line 8653... Line 8631...
8653
    @Override
8631
    @Override
8654
    public int hashCode() {
8632
    public int hashCode() {
8655
      return 0;
8633
      return 0;
8656
    }
8634
    }
8657
 
8635
 
-
 
8636
    public int compareTo(captureEbsPayment_args other) {
-
 
8637
      if (!getClass().equals(other.getClass())) {
-
 
8638
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8639
      }
-
 
8640
 
-
 
8641
      int lastComparison = 0;
-
 
8642
      captureEbsPayment_args typedOther = (captureEbsPayment_args)other;
-
 
8643
 
-
 
8644
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
-
 
8645
      if (lastComparison != 0) {
-
 
8646
        return lastComparison;
-
 
8647
      }
-
 
8648
      lastComparison = TBaseHelper.compareTo(merchantPaymentId, typedOther.merchantPaymentId);
-
 
8649
      if (lastComparison != 0) {
-
 
8650
        return lastComparison;
-
 
8651
      }
-
 
8652
      return 0;
-
 
8653
    }
-
 
8654
 
8658
    public void read(TProtocol iprot) throws TException {
8655
    public void read(TProtocol iprot) throws TException {
8659
      TField field;
8656
      TField field;
8660
      iprot.readStructBegin();
8657
      iprot.readStructBegin();
8661
      while (true)
8658
      while (true)
8662
      {
8659
      {
Line 8667... Line 8664...
8667
        _Fields fieldId = _Fields.findByThriftId(field.id);
8664
        _Fields fieldId = _Fields.findByThriftId(field.id);
8668
        if (fieldId == null) {
8665
        if (fieldId == null) {
8669
          TProtocolUtil.skip(iprot, field.type);
8666
          TProtocolUtil.skip(iprot, field.type);
8670
        } else {
8667
        } else {
8671
          switch (fieldId) {
8668
          switch (fieldId) {
8672
            case PAYMENT_PARAMS:
8669
            case MERCHANT_PAYMENT_ID:
8673
              if (field.type == TType.MAP) {
8670
              if (field.type == TType.I64) {
8674
                {
-
 
8675
                  TMap _map32 = iprot.readMapBegin();
-
 
8676
                  this.paymentParams = new HashMap<String,String>(2*_map32.size);
-
 
8677
                  for (int _i33 = 0; _i33 < _map32.size; ++_i33)
-
 
8678
                  {
-
 
8679
                    String _key34;
-
 
8680
                    String _val35;
-
 
8681
                    _key34 = iprot.readString();
8671
                this.merchantPaymentId = iprot.readI64();
8682
                    _val35 = iprot.readString();
8672
                setMerchantPaymentIdIsSet(true);
8683
                    this.paymentParams.put(_key34, _val35);
-
 
8684
                  }
-
 
8685
                  iprot.readMapEnd();
-
 
8686
                }
-
 
8687
              } else { 
8673
              } else { 
8688
                TProtocolUtil.skip(iprot, field.type);
8674
                TProtocolUtil.skip(iprot, field.type);
8689
              }
8675
              }
8690
              break;
8676
              break;
8691
          }
8677
          }
Line 8698... Line 8684...
8698
 
8684
 
8699
    public void write(TProtocol oprot) throws TException {
8685
    public void write(TProtocol oprot) throws TException {
8700
      validate();
8686
      validate();
8701
 
8687
 
8702
      oprot.writeStructBegin(STRUCT_DESC);
8688
      oprot.writeStructBegin(STRUCT_DESC);
8703
      if (this.paymentParams != null) {
-
 
8704
        oprot.writeFieldBegin(PAYMENT_PARAMS_FIELD_DESC);
8689
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
8705
        {
-
 
8706
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.paymentParams.size()));
-
 
8707
          for (Map.Entry<String, String> _iter36 : this.paymentParams.entrySet())
-
 
8708
          {
-
 
8709
            oprot.writeString(_iter36.getKey());
-
 
8710
            oprot.writeString(_iter36.getValue());
8690
      oprot.writeI64(this.merchantPaymentId);
8711
          }
-
 
8712
          oprot.writeMapEnd();
-
 
8713
        }
-
 
8714
        oprot.writeFieldEnd();
8691
      oprot.writeFieldEnd();
8715
      }
-
 
8716
      oprot.writeFieldStop();
8692
      oprot.writeFieldStop();
8717
      oprot.writeStructEnd();
8693
      oprot.writeStructEnd();
8718
    }
8694
    }
8719
 
8695
 
8720
    @Override
8696
    @Override
8721
    public String toString() {
8697
    public String toString() {
8722
      StringBuilder sb = new StringBuilder("updateAndCaptureEbsPayment_args(");
8698
      StringBuilder sb = new StringBuilder("captureEbsPayment_args(");
8723
      boolean first = true;
8699
      boolean first = true;
8724
 
8700
 
8725
      sb.append("paymentParams:");
8701
      sb.append("merchantPaymentId:");
8726
      if (this.paymentParams == null) {
-
 
8727
        sb.append("null");
-
 
8728
      } else {
-
 
8729
        sb.append(this.paymentParams);
8702
      sb.append(this.merchantPaymentId);
8730
      }
-
 
8731
      first = false;
8703
      first = false;
8732
      sb.append(")");
8704
      sb.append(")");
8733
      return sb.toString();
8705
      return sb.toString();
8734
    }
8706
    }
8735
 
8707
 
Line 8737... Line 8709...
8737
      // check for required fields
8709
      // check for required fields
8738
    }
8710
    }
8739
 
8711
 
8740
  }
8712
  }
8741
 
8713
 
8742
  public static class updateAndCaptureEbsPayment_result implements TBase<updateAndCaptureEbsPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateAndCaptureEbsPayment_result>   {
8714
  public static class captureEbsPayment_result implements TBase<captureEbsPayment_result._Fields>, java.io.Serializable, Cloneable   {
8743
    private static final TStruct STRUCT_DESC = new TStruct("updateAndCaptureEbsPayment_result");
8715
    private static final TStruct STRUCT_DESC = new TStruct("captureEbsPayment_result");
8744
 
8716
 
8745
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
8717
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0);
8746
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
8718
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
8747
 
8719
 
8748
    private Payment success;
8720
    private Map<String,String> success;
8749
    private PaymentException pe;
8721
    private PaymentException pe;
8750
 
8722
 
8751
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8723
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8752
    public enum _Fields implements TFieldIdEnum {
8724
    public enum _Fields implements TFieldIdEnum {
8753
      SUCCESS((short)0, "success"),
8725
      SUCCESS((short)0, "success"),
Line 8806... Line 8778...
8806
 
8778
 
8807
    // isset id assignments
8779
    // isset id assignments
8808
 
8780
 
8809
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8781
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8810
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
8782
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
8783
          new MapMetaData(TType.MAP, 
-
 
8784
              new FieldValueMetaData(TType.STRING), 
8811
          new StructMetaData(TType.STRUCT, Payment.class)));
8785
              new FieldValueMetaData(TType.STRING))));
8812
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
8786
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
8813
          new FieldValueMetaData(TType.STRUCT)));
8787
          new FieldValueMetaData(TType.STRUCT)));
8814
    }});
8788
    }});
8815
 
8789
 
8816
    static {
8790
    static {
8817
      FieldMetaData.addStructMetaDataMap(updateAndCaptureEbsPayment_result.class, metaDataMap);
8791
      FieldMetaData.addStructMetaDataMap(captureEbsPayment_result.class, metaDataMap);
8818
    }
8792
    }
8819
 
8793
 
8820
    public updateAndCaptureEbsPayment_result() {
8794
    public captureEbsPayment_result() {
8821
    }
8795
    }
8822
 
8796
 
8823
    public updateAndCaptureEbsPayment_result(
8797
    public captureEbsPayment_result(
8824
      Payment success,
8798
      Map<String,String> success,
8825
      PaymentException pe)
8799
      PaymentException pe)
8826
    {
8800
    {
8827
      this();
8801
      this();
8828
      this.success = success;
8802
      this.success = success;
8829
      this.pe = pe;
8803
      this.pe = pe;
8830
    }
8804
    }
8831
 
8805
 
8832
    /**
8806
    /**
8833
     * Performs a deep copy on <i>other</i>.
8807
     * Performs a deep copy on <i>other</i>.
8834
     */
8808
     */
8835
    public updateAndCaptureEbsPayment_result(updateAndCaptureEbsPayment_result other) {
8809
    public captureEbsPayment_result(captureEbsPayment_result other) {
8836
      if (other.isSetSuccess()) {
8810
      if (other.isSetSuccess()) {
-
 
8811
        Map<String,String> __this__success = new HashMap<String,String>();
-
 
8812
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
-
 
8813
 
-
 
8814
          String other_element_key = other_element.getKey();
-
 
8815
          String other_element_value = other_element.getValue();
-
 
8816
 
-
 
8817
          String __this__success_copy_key = other_element_key;
-
 
8818
 
-
 
8819
          String __this__success_copy_value = other_element_value;
-
 
8820
 
-
 
8821
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
8822
        }
8837
        this.success = new Payment(other.success);
8823
        this.success = __this__success;
8838
      }
8824
      }
8839
      if (other.isSetPe()) {
8825
      if (other.isSetPe()) {
8840
        this.pe = new PaymentException(other.pe);
8826
        this.pe = new PaymentException(other.pe);
8841
      }
8827
      }
8842
    }
8828
    }
8843
 
8829
 
8844
    public updateAndCaptureEbsPayment_result deepCopy() {
8830
    public captureEbsPayment_result deepCopy() {
8845
      return new updateAndCaptureEbsPayment_result(this);
8831
      return new captureEbsPayment_result(this);
8846
    }
8832
    }
8847
 
8833
 
8848
    @Deprecated
8834
    @Deprecated
8849
    public updateAndCaptureEbsPayment_result clone() {
8835
    public captureEbsPayment_result clone() {
8850
      return new updateAndCaptureEbsPayment_result(this);
8836
      return new captureEbsPayment_result(this);
8851
    }
8837
    }
8852
 
8838
 
8853
    public Payment getSuccess() {
8839
    public int getSuccessSize() {
-
 
8840
      return (this.success == null) ? 0 : this.success.size();
-
 
8841
    }
-
 
8842
 
-
 
8843
    public void putToSuccess(String key, String val) {
-
 
8844
      if (this.success == null) {
-
 
8845
        this.success = new HashMap<String,String>();
-
 
8846
      }
-
 
8847
      this.success.put(key, val);
-
 
8848
    }
-
 
8849
 
-
 
8850
    public Map<String,String> getSuccess() {
8854
      return this.success;
8851
      return this.success;
8855
    }
8852
    }
8856
 
8853
 
8857
    public updateAndCaptureEbsPayment_result setSuccess(Payment success) {
8854
    public captureEbsPayment_result setSuccess(Map<String,String> success) {
8858
      this.success = success;
8855
      this.success = success;
8859
      return this;
8856
      return this;
8860
    }
8857
    }
8861
 
8858
 
8862
    public void unsetSuccess() {
8859
    public void unsetSuccess() {
Line 8876... Line 8873...
8876
 
8873
 
8877
    public PaymentException getPe() {
8874
    public PaymentException getPe() {
8878
      return this.pe;
8875
      return this.pe;
8879
    }
8876
    }
8880
 
8877
 
8881
    public updateAndCaptureEbsPayment_result setPe(PaymentException pe) {
8878
    public captureEbsPayment_result setPe(PaymentException pe) {
8882
      this.pe = pe;
8879
      this.pe = pe;
8883
      return this;
8880
      return this;
8884
    }
8881
    }
8885
 
8882
 
8886
    public void unsetPe() {
8883
    public void unsetPe() {
Line 8902... Line 8899...
8902
      switch (field) {
8899
      switch (field) {
8903
      case SUCCESS:
8900
      case SUCCESS:
8904
        if (value == null) {
8901
        if (value == null) {
8905
          unsetSuccess();
8902
          unsetSuccess();
8906
        } else {
8903
        } else {
8907
          setSuccess((Payment)value);
8904
          setSuccess((Map<String,String>)value);
8908
        }
8905
        }
8909
        break;
8906
        break;
8910
 
8907
 
8911
      case PE:
8908
      case PE:
8912
        if (value == null) {
8909
        if (value == null) {
Line 8956... Line 8953...
8956
 
8953
 
8957
    @Override
8954
    @Override
8958
    public boolean equals(Object that) {
8955
    public boolean equals(Object that) {
8959
      if (that == null)
8956
      if (that == null)
8960
        return false;
8957
        return false;
8961
      if (that instanceof updateAndCaptureEbsPayment_result)
8958
      if (that instanceof captureEbsPayment_result)
8962
        return this.equals((updateAndCaptureEbsPayment_result)that);
8959
        return this.equals((captureEbsPayment_result)that);
8963
      return false;
8960
      return false;
8964
    }
8961
    }
8965
 
8962
 
8966
    public boolean equals(updateAndCaptureEbsPayment_result that) {
8963
    public boolean equals(captureEbsPayment_result that) {
8967
      if (that == null)
8964
      if (that == null)
8968
        return false;
8965
        return false;
8969
 
8966
 
8970
      boolean this_present_success = true && this.isSetSuccess();
8967
      boolean this_present_success = true && this.isSetSuccess();
8971
      boolean that_present_success = true && that.isSetSuccess();
8968
      boolean that_present_success = true && that.isSetSuccess();
Line 8991... Line 8988...
8991
    @Override
8988
    @Override
8992
    public int hashCode() {
8989
    public int hashCode() {
8993
      return 0;
8990
      return 0;
8994
    }
8991
    }
8995
 
8992
 
8996
    public int compareTo(updateAndCaptureEbsPayment_result other) {
-
 
8997
      if (!getClass().equals(other.getClass())) {
-
 
8998
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8999
      }
-
 
9000
 
-
 
9001
      int lastComparison = 0;
-
 
9002
      updateAndCaptureEbsPayment_result typedOther = (updateAndCaptureEbsPayment_result)other;
-
 
9003
 
-
 
9004
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
9005
      if (lastComparison != 0) {
-
 
9006
        return lastComparison;
-
 
9007
      }
-
 
9008
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
9009
      if (lastComparison != 0) {
-
 
9010
        return lastComparison;
-
 
9011
      }
-
 
9012
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
-
 
9013
      if (lastComparison != 0) {
-
 
9014
        return lastComparison;
-
 
9015
      }
-
 
9016
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
-
 
9017
      if (lastComparison != 0) {
-
 
9018
        return lastComparison;
-
 
9019
      }
-
 
9020
      return 0;
-
 
9021
    }
-
 
9022
 
-
 
9023
    public void read(TProtocol iprot) throws TException {
8993
    public void read(TProtocol iprot) throws TException {
9024
      TField field;
8994
      TField field;
9025
      iprot.readStructBegin();
8995
      iprot.readStructBegin();
9026
      while (true)
8996
      while (true)
9027
      {
8997
      {
Line 9033... Line 9003...
9033
        if (fieldId == null) {
9003
        if (fieldId == null) {
9034
          TProtocolUtil.skip(iprot, field.type);
9004
          TProtocolUtil.skip(iprot, field.type);
9035
        } else {
9005
        } else {
9036
          switch (fieldId) {
9006
          switch (fieldId) {
9037
            case SUCCESS:
9007
            case SUCCESS:
9038
              if (field.type == TType.STRUCT) {
9008
              if (field.type == TType.MAP) {
-
 
9009
                {
-
 
9010
                  TMap _map32 = iprot.readMapBegin();
-
 
9011
                  this.success = new HashMap<String,String>(2*_map32.size);
-
 
9012
                  for (int _i33 = 0; _i33 < _map32.size; ++_i33)
-
 
9013
                  {
-
 
9014
                    String _key34;
-
 
9015
                    String _val35;
-
 
9016
                    _key34 = iprot.readString();
-
 
9017
                    _val35 = iprot.readString();
9039
                this.success = new Payment();
9018
                    this.success.put(_key34, _val35);
-
 
9019
                  }
9040
                this.success.read(iprot);
9020
                  iprot.readMapEnd();
-
 
9021
                }
9041
              } else { 
9022
              } else { 
9042
                TProtocolUtil.skip(iprot, field.type);
9023
                TProtocolUtil.skip(iprot, field.type);
9043
              }
9024
              }
9044
              break;
9025
              break;
9045
            case PE:
9026
            case PE:
Line 9061... Line 9042...
9061
    public void write(TProtocol oprot) throws TException {
9042
    public void write(TProtocol oprot) throws TException {
9062
      oprot.writeStructBegin(STRUCT_DESC);
9043
      oprot.writeStructBegin(STRUCT_DESC);
9063
 
9044
 
9064
      if (this.isSetSuccess()) {
9045
      if (this.isSetSuccess()) {
9065
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9046
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9047
        {
-
 
9048
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size()));
-
 
9049
          for (Map.Entry<String, String> _iter36 : this.success.entrySet())
-
 
9050
          {
-
 
9051
            oprot.writeString(_iter36.getKey());
-
 
9052
            oprot.writeString(_iter36.getValue());
-
 
9053
          }
9066
        this.success.write(oprot);
9054
          oprot.writeMapEnd();
-
 
9055
        }
9067
        oprot.writeFieldEnd();
9056
        oprot.writeFieldEnd();
9068
      } else if (this.isSetPe()) {
9057
      } else if (this.isSetPe()) {
9069
        oprot.writeFieldBegin(PE_FIELD_DESC);
9058
        oprot.writeFieldBegin(PE_FIELD_DESC);
9070
        this.pe.write(oprot);
9059
        this.pe.write(oprot);
9071
        oprot.writeFieldEnd();
9060
        oprot.writeFieldEnd();
Line 9074... Line 9063...
9074
      oprot.writeStructEnd();
9063
      oprot.writeStructEnd();
9075
    }
9064
    }
9076
 
9065
 
9077
    @Override
9066
    @Override
9078
    public String toString() {
9067
    public String toString() {
9079
      StringBuilder sb = new StringBuilder("updateAndCaptureEbsPayment_result(");
9068
      StringBuilder sb = new StringBuilder("captureEbsPayment_result(");
9080
      boolean first = true;
9069
      boolean first = true;
9081
 
9070
 
9082
      sb.append("success:");
9071
      sb.append("success:");
9083
      if (this.success == null) {
9072
      if (this.success == null) {
9084
        sb.append("null");
9073
        sb.append("null");
Line 9102... Line 9091...
9102
      // check for required fields
9091
      // check for required fields
9103
    }
9092
    }
9104
 
9093
 
9105
  }
9094
  }
9106
 
9095
 
9107
  public static class captureEbsPayment_args implements TBase<captureEbsPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<captureEbsPayment_args>   {
9096
  public static class captureHdfcPayment_args implements TBase<captureHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<captureHdfcPayment_args>   {
9108
    private static final TStruct STRUCT_DESC = new TStruct("captureEbsPayment_args");
9097
    private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_args");
9109
 
9098
 
9110
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
9099
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
9111
 
9100
 
9112
    private long merchantPaymentId;
9101
    private long merchantPaymentId;
9113
 
9102
 
Line 9174... Line 9163...
9174
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
9163
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
9175
          new FieldValueMetaData(TType.I64)));
9164
          new FieldValueMetaData(TType.I64)));
9176
    }});
9165
    }});
9177
 
9166
 
9178
    static {
9167
    static {
9179
      FieldMetaData.addStructMetaDataMap(captureEbsPayment_args.class, metaDataMap);
9168
      FieldMetaData.addStructMetaDataMap(captureHdfcPayment_args.class, metaDataMap);
9180
    }
9169
    }
9181
 
9170
 
9182
    public captureEbsPayment_args() {
9171
    public captureHdfcPayment_args() {
9183
    }
9172
    }
9184
 
9173
 
9185
    public captureEbsPayment_args(
9174
    public captureHdfcPayment_args(
9186
      long merchantPaymentId)
9175
      long merchantPaymentId)
9187
    {
9176
    {
9188
      this();
9177
      this();
9189
      this.merchantPaymentId = merchantPaymentId;
9178
      this.merchantPaymentId = merchantPaymentId;
9190
      setMerchantPaymentIdIsSet(true);
9179
      setMerchantPaymentIdIsSet(true);
9191
    }
9180
    }
9192
 
9181
 
9193
    /**
9182
    /**
9194
     * Performs a deep copy on <i>other</i>.
9183
     * Performs a deep copy on <i>other</i>.
9195
     */
9184
     */
9196
    public captureEbsPayment_args(captureEbsPayment_args other) {
9185
    public captureHdfcPayment_args(captureHdfcPayment_args other) {
9197
      __isset_bit_vector.clear();
9186
      __isset_bit_vector.clear();
9198
      __isset_bit_vector.or(other.__isset_bit_vector);
9187
      __isset_bit_vector.or(other.__isset_bit_vector);
9199
      this.merchantPaymentId = other.merchantPaymentId;
9188
      this.merchantPaymentId = other.merchantPaymentId;
9200
    }
9189
    }
9201
 
9190
 
9202
    public captureEbsPayment_args deepCopy() {
9191
    public captureHdfcPayment_args deepCopy() {
9203
      return new captureEbsPayment_args(this);
9192
      return new captureHdfcPayment_args(this);
9204
    }
9193
    }
9205
 
9194
 
9206
    @Deprecated
9195
    @Deprecated
9207
    public captureEbsPayment_args clone() {
9196
    public captureHdfcPayment_args clone() {
9208
      return new captureEbsPayment_args(this);
9197
      return new captureHdfcPayment_args(this);
9209
    }
9198
    }
9210
 
9199
 
9211
    public long getMerchantPaymentId() {
9200
    public long getMerchantPaymentId() {
9212
      return this.merchantPaymentId;
9201
      return this.merchantPaymentId;
9213
    }
9202
    }
9214
 
9203
 
9215
    public captureEbsPayment_args setMerchantPaymentId(long merchantPaymentId) {
9204
    public captureHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
9216
      this.merchantPaymentId = merchantPaymentId;
9205
      this.merchantPaymentId = merchantPaymentId;
9217
      setMerchantPaymentIdIsSet(true);
9206
      setMerchantPaymentIdIsSet(true);
9218
      return this;
9207
      return this;
9219
    }
9208
    }
9220
 
9209
 
Line 9276... Line 9265...
9276
 
9265
 
9277
    @Override
9266
    @Override
9278
    public boolean equals(Object that) {
9267
    public boolean equals(Object that) {
9279
      if (that == null)
9268
      if (that == null)
9280
        return false;
9269
        return false;
9281
      if (that instanceof captureEbsPayment_args)
9270
      if (that instanceof captureHdfcPayment_args)
9282
        return this.equals((captureEbsPayment_args)that);
9271
        return this.equals((captureHdfcPayment_args)that);
9283
      return false;
9272
      return false;
9284
    }
9273
    }
9285
 
9274
 
9286
    public boolean equals(captureEbsPayment_args that) {
9275
    public boolean equals(captureHdfcPayment_args that) {
9287
      if (that == null)
9276
      if (that == null)
9288
        return false;
9277
        return false;
9289
 
9278
 
9290
      boolean this_present_merchantPaymentId = true;
9279
      boolean this_present_merchantPaymentId = true;
9291
      boolean that_present_merchantPaymentId = true;
9280
      boolean that_present_merchantPaymentId = true;
Line 9302... Line 9291...
9302
    @Override
9291
    @Override
9303
    public int hashCode() {
9292
    public int hashCode() {
9304
      return 0;
9293
      return 0;
9305
    }
9294
    }
9306
 
9295
 
9307
    public int compareTo(captureEbsPayment_args other) {
9296
    public int compareTo(captureHdfcPayment_args other) {
9308
      if (!getClass().equals(other.getClass())) {
9297
      if (!getClass().equals(other.getClass())) {
9309
        return getClass().getName().compareTo(other.getClass().getName());
9298
        return getClass().getName().compareTo(other.getClass().getName());
9310
      }
9299
      }
9311
 
9300
 
9312
      int lastComparison = 0;
9301
      int lastComparison = 0;
9313
      captureEbsPayment_args typedOther = (captureEbsPayment_args)other;
9302
      captureHdfcPayment_args typedOther = (captureHdfcPayment_args)other;
9314
 
9303
 
9315
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
9304
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
9316
      if (lastComparison != 0) {
9305
      if (lastComparison != 0) {
9317
        return lastComparison;
9306
        return lastComparison;
9318
      }
9307
      }
Line 9364... Line 9353...
9364
      oprot.writeStructEnd();
9353
      oprot.writeStructEnd();
9365
    }
9354
    }
9366
 
9355
 
9367
    @Override
9356
    @Override
9368
    public String toString() {
9357
    public String toString() {
9369
      StringBuilder sb = new StringBuilder("captureEbsPayment_args(");
9358
      StringBuilder sb = new StringBuilder("captureHdfcPayment_args(");
9370
      boolean first = true;
9359
      boolean first = true;
9371
 
9360
 
9372
      sb.append("merchantPaymentId:");
9361
      sb.append("merchantPaymentId:");
9373
      sb.append(this.merchantPaymentId);
9362
      sb.append(this.merchantPaymentId);
9374
      first = false;
9363
      first = false;
Line 9380... Line 9369...
9380
      // check for required fields
9369
      // check for required fields
9381
    }
9370
    }
9382
 
9371
 
9383
  }
9372
  }
9384
 
9373
 
9385
  public static class captureEbsPayment_result implements TBase<captureEbsPayment_result._Fields>, java.io.Serializable, Cloneable   {
9374
  public static class captureHdfcPayment_result implements TBase<captureHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
9386
    private static final TStruct STRUCT_DESC = new TStruct("captureEbsPayment_result");
9375
    private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_result");
9387
 
9376
 
9388
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0);
9377
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0);
9389
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
9378
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
9390
 
9379
 
9391
    private Map<String,String> success;
9380
    private Map<String,String> success;
Line 9457... Line 9446...
9457
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
9446
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
9458
          new FieldValueMetaData(TType.STRUCT)));
9447
          new FieldValueMetaData(TType.STRUCT)));
9459
    }});
9448
    }});
9460
 
9449
 
9461
    static {
9450
    static {
9462
      FieldMetaData.addStructMetaDataMap(captureEbsPayment_result.class, metaDataMap);
9451
      FieldMetaData.addStructMetaDataMap(captureHdfcPayment_result.class, metaDataMap);
9463
    }
9452
    }
9464
 
9453
 
9465
    public captureEbsPayment_result() {
9454
    public captureHdfcPayment_result() {
9466
    }
9455
    }
9467
 
9456
 
9468
    public captureEbsPayment_result(
9457
    public captureHdfcPayment_result(
9469
      Map<String,String> success,
9458
      Map<String,String> success,
9470
      PaymentException pe)
9459
      PaymentException pe)
9471
    {
9460
    {
9472
      this();
9461
      this();
9473
      this.success = success;
9462
      this.success = success;
Line 9475... Line 9464...
9475
    }
9464
    }
9476
 
9465
 
9477
    /**
9466
    /**
9478
     * Performs a deep copy on <i>other</i>.
9467
     * Performs a deep copy on <i>other</i>.
9479
     */
9468
     */
9480
    public captureEbsPayment_result(captureEbsPayment_result other) {
9469
    public captureHdfcPayment_result(captureHdfcPayment_result other) {
9481
      if (other.isSetSuccess()) {
9470
      if (other.isSetSuccess()) {
9482
        Map<String,String> __this__success = new HashMap<String,String>();
9471
        Map<String,String> __this__success = new HashMap<String,String>();
9483
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
9472
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
9484
 
9473
 
9485
          String other_element_key = other_element.getKey();
9474
          String other_element_key = other_element.getKey();
Line 9496... Line 9485...
9496
      if (other.isSetPe()) {
9485
      if (other.isSetPe()) {
9497
        this.pe = new PaymentException(other.pe);
9486
        this.pe = new PaymentException(other.pe);
9498
      }
9487
      }
9499
    }
9488
    }
9500
 
9489
 
9501
    public captureEbsPayment_result deepCopy() {
9490
    public captureHdfcPayment_result deepCopy() {
9502
      return new captureEbsPayment_result(this);
9491
      return new captureHdfcPayment_result(this);
9503
    }
9492
    }
9504
 
9493
 
9505
    @Deprecated
9494
    @Deprecated
9506
    public captureEbsPayment_result clone() {
9495
    public captureHdfcPayment_result clone() {
9507
      return new captureEbsPayment_result(this);
9496
      return new captureHdfcPayment_result(this);
9508
    }
9497
    }
9509
 
9498
 
9510
    public int getSuccessSize() {
9499
    public int getSuccessSize() {
9511
      return (this.success == null) ? 0 : this.success.size();
9500
      return (this.success == null) ? 0 : this.success.size();
9512
    }
9501
    }
Line 9520... Line 9509...
9520
 
9509
 
9521
    public Map<String,String> getSuccess() {
9510
    public Map<String,String> getSuccess() {
9522
      return this.success;
9511
      return this.success;
9523
    }
9512
    }
9524
 
9513
 
9525
    public captureEbsPayment_result setSuccess(Map<String,String> success) {
9514
    public captureHdfcPayment_result setSuccess(Map<String,String> success) {
9526
      this.success = success;
9515
      this.success = success;
9527
      return this;
9516
      return this;
9528
    }
9517
    }
9529
 
9518
 
9530
    public void unsetSuccess() {
9519
    public void unsetSuccess() {
Line 9544... Line 9533...
9544
 
9533
 
9545
    public PaymentException getPe() {
9534
    public PaymentException getPe() {
9546
      return this.pe;
9535
      return this.pe;
9547
    }
9536
    }
9548
 
9537
 
9549
    public captureEbsPayment_result setPe(PaymentException pe) {
9538
    public captureHdfcPayment_result setPe(PaymentException pe) {
9550
      this.pe = pe;
9539
      this.pe = pe;
9551
      return this;
9540
      return this;
9552
    }
9541
    }
9553
 
9542
 
9554
    public void unsetPe() {
9543
    public void unsetPe() {
Line 9624... Line 9613...
9624
 
9613
 
9625
    @Override
9614
    @Override
9626
    public boolean equals(Object that) {
9615
    public boolean equals(Object that) {
9627
      if (that == null)
9616
      if (that == null)
9628
        return false;
9617
        return false;
9629
      if (that instanceof captureEbsPayment_result)
9618
      if (that instanceof captureHdfcPayment_result)
9630
        return this.equals((captureEbsPayment_result)that);
9619
        return this.equals((captureHdfcPayment_result)that);
9631
      return false;
9620
      return false;
9632
    }
9621
    }
9633
 
9622
 
9634
    public boolean equals(captureEbsPayment_result that) {
9623
    public boolean equals(captureHdfcPayment_result that) {
9635
      if (that == null)
9624
      if (that == null)
9636
        return false;
9625
        return false;
9637
 
9626
 
9638
      boolean this_present_success = true && this.isSetSuccess();
9627
      boolean this_present_success = true && this.isSetSuccess();
9639
      boolean that_present_success = true && that.isSetSuccess();
9628
      boolean that_present_success = true && that.isSetSuccess();
Line 9734... Line 9723...
9734
      oprot.writeStructEnd();
9723
      oprot.writeStructEnd();
9735
    }
9724
    }
9736
 
9725
 
9737
    @Override
9726
    @Override
9738
    public String toString() {
9727
    public String toString() {
9739
      StringBuilder sb = new StringBuilder("captureEbsPayment_result(");
9728
      StringBuilder sb = new StringBuilder("captureHdfcPayment_result(");
9740
      boolean first = true;
9729
      boolean first = true;
9741
 
9730
 
9742
      sb.append("success:");
9731
      sb.append("success:");
9743
      if (this.success == null) {
9732
      if (this.success == null) {
9744
        sb.append("null");
9733
        sb.append("null");
Line 9762... Line 9751...
9762
      // check for required fields
9751
      // check for required fields
9763
    }
9752
    }
9764
 
9753
 
9765
  }
9754
  }
9766
 
9755
 
9767
  public static class captureHdfcPayment_args implements TBase<captureHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<captureHdfcPayment_args>   {
9756
  public static class initializeHdfcPayment_args implements TBase<initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_args>   {
9768
    private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_args");
9757
    private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_args");
9769
 
9758
 
9770
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
9759
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
9771
 
9760
 
9772
    private long merchantPaymentId;
9761
    private long merchantPaymentId;
9773
 
9762
 
Line 9834... Line 9823...
9834
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
9823
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
9835
          new FieldValueMetaData(TType.I64)));
9824
          new FieldValueMetaData(TType.I64)));
9836
    }});
9825
    }});
9837
 
9826
 
9838
    static {
9827
    static {
9839
      FieldMetaData.addStructMetaDataMap(captureHdfcPayment_args.class, metaDataMap);
9828
      FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
9840
    }
9829
    }
9841
 
9830
 
9842
    public captureHdfcPayment_args() {
9831
    public initializeHdfcPayment_args() {
9843
    }
9832
    }
9844
 
9833
 
9845
    public captureHdfcPayment_args(
9834
    public initializeHdfcPayment_args(
9846
      long merchantPaymentId)
9835
      long merchantPaymentId)
9847
    {
9836
    {
9848
      this();
9837
      this();
9849
      this.merchantPaymentId = merchantPaymentId;
9838
      this.merchantPaymentId = merchantPaymentId;
9850
      setMerchantPaymentIdIsSet(true);
9839
      setMerchantPaymentIdIsSet(true);
9851
    }
9840
    }
9852
 
9841
 
9853
    /**
9842
    /**
9854
     * Performs a deep copy on <i>other</i>.
9843
     * Performs a deep copy on <i>other</i>.
9855
     */
9844
     */
9856
    public captureHdfcPayment_args(captureHdfcPayment_args other) {
9845
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
9857
      __isset_bit_vector.clear();
9846
      __isset_bit_vector.clear();
9858
      __isset_bit_vector.or(other.__isset_bit_vector);
9847
      __isset_bit_vector.or(other.__isset_bit_vector);
9859
      this.merchantPaymentId = other.merchantPaymentId;
9848
      this.merchantPaymentId = other.merchantPaymentId;
9860
    }
9849
    }
9861
 
9850
 
9862
    public captureHdfcPayment_args deepCopy() {
9851
    public initializeHdfcPayment_args deepCopy() {
9863
      return new captureHdfcPayment_args(this);
9852
      return new initializeHdfcPayment_args(this);
9864
    }
9853
    }
9865
 
9854
 
9866
    @Deprecated
9855
    @Deprecated
9867
    public captureHdfcPayment_args clone() {
9856
    public initializeHdfcPayment_args clone() {
9868
      return new captureHdfcPayment_args(this);
9857
      return new initializeHdfcPayment_args(this);
9869
    }
9858
    }
9870
 
9859
 
9871
    public long getMerchantPaymentId() {
9860
    public long getMerchantPaymentId() {
9872
      return this.merchantPaymentId;
9861
      return this.merchantPaymentId;
9873
    }
9862
    }
9874
 
9863
 
9875
    public captureHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
9864
    public initializeHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
9876
      this.merchantPaymentId = merchantPaymentId;
9865
      this.merchantPaymentId = merchantPaymentId;
9877
      setMerchantPaymentIdIsSet(true);
9866
      setMerchantPaymentIdIsSet(true);
9878
      return this;
9867
      return this;
9879
    }
9868
    }
9880
 
9869
 
Line 9936... Line 9925...
9936
 
9925
 
9937
    @Override
9926
    @Override
9938
    public boolean equals(Object that) {
9927
    public boolean equals(Object that) {
9939
      if (that == null)
9928
      if (that == null)
9940
        return false;
9929
        return false;
9941
      if (that instanceof captureHdfcPayment_args)
9930
      if (that instanceof initializeHdfcPayment_args)
9942
        return this.equals((captureHdfcPayment_args)that);
9931
        return this.equals((initializeHdfcPayment_args)that);
9943
      return false;
9932
      return false;
9944
    }
9933
    }
9945
 
9934
 
9946
    public boolean equals(captureHdfcPayment_args that) {
9935
    public boolean equals(initializeHdfcPayment_args that) {
9947
      if (that == null)
9936
      if (that == null)
9948
        return false;
9937
        return false;
9949
 
9938
 
9950
      boolean this_present_merchantPaymentId = true;
9939
      boolean this_present_merchantPaymentId = true;
9951
      boolean that_present_merchantPaymentId = true;
9940
      boolean that_present_merchantPaymentId = true;
Line 9962... Line 9951...
9962
    @Override
9951
    @Override
9963
    public int hashCode() {
9952
    public int hashCode() {
9964
      return 0;
9953
      return 0;
9965
    }
9954
    }
9966
 
9955
 
9967
    public int compareTo(captureHdfcPayment_args other) {
9956
    public int compareTo(initializeHdfcPayment_args other) {
9968
      if (!getClass().equals(other.getClass())) {
9957
      if (!getClass().equals(other.getClass())) {
9969
        return getClass().getName().compareTo(other.getClass().getName());
9958
        return getClass().getName().compareTo(other.getClass().getName());
9970
      }
9959
      }
9971
 
9960
 
9972
      int lastComparison = 0;
9961
      int lastComparison = 0;
9973
      captureHdfcPayment_args typedOther = (captureHdfcPayment_args)other;
9962
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
9974
 
9963
 
9975
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
9964
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
9976
      if (lastComparison != 0) {
9965
      if (lastComparison != 0) {
9977
        return lastComparison;
9966
        return lastComparison;
9978
      }
9967
      }
Line 10024... Line 10013...
10024
      oprot.writeStructEnd();
10013
      oprot.writeStructEnd();
10025
    }
10014
    }
10026
 
10015
 
10027
    @Override
10016
    @Override
10028
    public String toString() {
10017
    public String toString() {
10029
      StringBuilder sb = new StringBuilder("captureHdfcPayment_args(");
10018
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
10030
      boolean first = true;
10019
      boolean first = true;
10031
 
10020
 
10032
      sb.append("merchantPaymentId:");
10021
      sb.append("merchantPaymentId:");
10033
      sb.append(this.merchantPaymentId);
10022
      sb.append(this.merchantPaymentId);
10034
      first = false;
10023
      first = false;
Line 10040... Line 10029...
10040
      // check for required fields
10029
      // check for required fields
10041
    }
10030
    }
10042
 
10031
 
10043
  }
10032
  }
10044
 
10033
 
10045
  public static class captureHdfcPayment_result implements TBase<captureHdfcPayment_result._Fields>, java.io.Serializable, Cloneable   {
10034
  public static class initializeHdfcPayment_result implements TBase<initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_result>   {
10046
    private static final TStruct STRUCT_DESC = new TStruct("captureHdfcPayment_result");
10035
    private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_result");
10047
 
10036
 
10048
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.MAP, (short)0);
10037
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
10049
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
10038
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
10050
 
10039
 
10051
    private Map<String,String> success;
10040
    private String success;
10052
    private PaymentException pe;
10041
    private PaymentException pe;
10053
 
10042
 
10054
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10043
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10055
    public enum _Fields implements TFieldIdEnum {
10044
    public enum _Fields implements TFieldIdEnum {
10056
      SUCCESS((short)0, "success"),
10045
      SUCCESS((short)0, "success"),
Line 10109... Line 10098...
10109
 
10098
 
10110
    // isset id assignments
10099
    // isset id assignments
10111
 
10100
 
10112
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10101
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10113
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
10102
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
10114
          new MapMetaData(TType.MAP, 
-
 
10115
              new FieldValueMetaData(TType.STRING), 
-
 
10116
              new FieldValueMetaData(TType.STRING))));
10103
          new FieldValueMetaData(TType.STRING)));
10117
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
10104
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
10118
          new FieldValueMetaData(TType.STRUCT)));
10105
          new FieldValueMetaData(TType.STRUCT)));
10119
    }});
10106
    }});
10120
 
10107
 
10121
    static {
10108
    static {
10122
      FieldMetaData.addStructMetaDataMap(captureHdfcPayment_result.class, metaDataMap);
10109
      FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
10123
    }
10110
    }
10124
 
10111
 
10125
    public captureHdfcPayment_result() {
10112
    public initializeHdfcPayment_result() {
10126
    }
10113
    }
10127
 
10114
 
10128
    public captureHdfcPayment_result(
10115
    public initializeHdfcPayment_result(
10129
      Map<String,String> success,
10116
      String success,
10130
      PaymentException pe)
10117
      PaymentException pe)
10131
    {
10118
    {
10132
      this();
10119
      this();
10133
      this.success = success;
10120
      this.success = success;
10134
      this.pe = pe;
10121
      this.pe = pe;
10135
    }
10122
    }
10136
 
10123
 
10137
    /**
10124
    /**
10138
     * Performs a deep copy on <i>other</i>.
10125
     * Performs a deep copy on <i>other</i>.
10139
     */
10126
     */
10140
    public captureHdfcPayment_result(captureHdfcPayment_result other) {
10127
    public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
10141
      if (other.isSetSuccess()) {
10128
      if (other.isSetSuccess()) {
10142
        Map<String,String> __this__success = new HashMap<String,String>();
-
 
10143
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
-
 
10144
 
-
 
10145
          String other_element_key = other_element.getKey();
-
 
10146
          String other_element_value = other_element.getValue();
-
 
10147
 
-
 
10148
          String __this__success_copy_key = other_element_key;
-
 
10149
 
-
 
10150
          String __this__success_copy_value = other_element_value;
-
 
10151
 
-
 
10152
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
-
 
10153
        }
-
 
10154
        this.success = __this__success;
10129
        this.success = other.success;
10155
      }
10130
      }
10156
      if (other.isSetPe()) {
10131
      if (other.isSetPe()) {
10157
        this.pe = new PaymentException(other.pe);
10132
        this.pe = new PaymentException(other.pe);
10158
      }
10133
      }
10159
    }
10134
    }
10160
 
10135
 
10161
    public captureHdfcPayment_result deepCopy() {
10136
    public initializeHdfcPayment_result deepCopy() {
10162
      return new captureHdfcPayment_result(this);
10137
      return new initializeHdfcPayment_result(this);
10163
    }
10138
    }
10164
 
10139
 
10165
    @Deprecated
10140
    @Deprecated
10166
    public captureHdfcPayment_result clone() {
10141
    public initializeHdfcPayment_result clone() {
10167
      return new captureHdfcPayment_result(this);
10142
      return new initializeHdfcPayment_result(this);
10168
    }
-
 
10169
 
-
 
10170
    public int getSuccessSize() {
-
 
10171
      return (this.success == null) ? 0 : this.success.size();
-
 
10172
    }
-
 
10173
 
-
 
10174
    public void putToSuccess(String key, String val) {
-
 
10175
      if (this.success == null) {
-
 
10176
        this.success = new HashMap<String,String>();
-
 
10177
      }
-
 
10178
      this.success.put(key, val);
-
 
10179
    }
10143
    }
10180
 
10144
 
10181
    public Map<String,String> getSuccess() {
10145
    public String getSuccess() {
10182
      return this.success;
10146
      return this.success;
10183
    }
10147
    }
10184
 
10148
 
10185
    public captureHdfcPayment_result setSuccess(Map<String,String> success) {
10149
    public initializeHdfcPayment_result setSuccess(String success) {
10186
      this.success = success;
10150
      this.success = success;
10187
      return this;
10151
      return this;
10188
    }
10152
    }
10189
 
10153
 
10190
    public void unsetSuccess() {
10154
    public void unsetSuccess() {
Line 10204... Line 10168...
10204
 
10168
 
10205
    public PaymentException getPe() {
10169
    public PaymentException getPe() {
10206
      return this.pe;
10170
      return this.pe;
10207
    }
10171
    }
10208
 
10172
 
10209
    public captureHdfcPayment_result setPe(PaymentException pe) {
10173
    public initializeHdfcPayment_result setPe(PaymentException pe) {
10210
      this.pe = pe;
10174
      this.pe = pe;
10211
      return this;
10175
      return this;
10212
    }
10176
    }
10213
 
10177
 
10214
    public void unsetPe() {
10178
    public void unsetPe() {
Line 10230... Line 10194...
10230
      switch (field) {
10194
      switch (field) {
10231
      case SUCCESS:
10195
      case SUCCESS:
10232
        if (value == null) {
10196
        if (value == null) {
10233
          unsetSuccess();
10197
          unsetSuccess();
10234
        } else {
10198
        } else {
10235
          setSuccess((Map<String,String>)value);
10199
          setSuccess((String)value);
10236
        }
10200
        }
10237
        break;
10201
        break;
10238
 
10202
 
10239
      case PE:
10203
      case PE:
10240
        if (value == null) {
10204
        if (value == null) {
Line 10284... Line 10248...
10284
 
10248
 
10285
    @Override
10249
    @Override
10286
    public boolean equals(Object that) {
10250
    public boolean equals(Object that) {
10287
      if (that == null)
10251
      if (that == null)
10288
        return false;
10252
        return false;
10289
      if (that instanceof captureHdfcPayment_result)
10253
      if (that instanceof initializeHdfcPayment_result)
10290
        return this.equals((captureHdfcPayment_result)that);
10254
        return this.equals((initializeHdfcPayment_result)that);
10291
      return false;
10255
      return false;
10292
    }
10256
    }
10293
 
10257
 
10294
    public boolean equals(captureHdfcPayment_result that) {
10258
    public boolean equals(initializeHdfcPayment_result that) {
10295
      if (that == null)
10259
      if (that == null)
10296
        return false;
10260
        return false;
10297
 
10261
 
10298
      boolean this_present_success = true && this.isSetSuccess();
10262
      boolean this_present_success = true && this.isSetSuccess();
10299
      boolean that_present_success = true && that.isSetSuccess();
10263
      boolean that_present_success = true && that.isSetSuccess();
Line 10319... Line 10283...
10319
    @Override
10283
    @Override
10320
    public int hashCode() {
10284
    public int hashCode() {
10321
      return 0;
10285
      return 0;
10322
    }
10286
    }
10323
 
10287
 
-
 
10288
    public int compareTo(initializeHdfcPayment_result other) {
-
 
10289
      if (!getClass().equals(other.getClass())) {
-
 
10290
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10291
      }
-
 
10292
 
-
 
10293
      int lastComparison = 0;
-
 
10294
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
-
 
10295
 
-
 
10296
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
10297
      if (lastComparison != 0) {
-
 
10298
        return lastComparison;
-
 
10299
      }
-
 
10300
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
10301
      if (lastComparison != 0) {
-
 
10302
        return lastComparison;
-
 
10303
      }
-
 
10304
      lastComparison = Boolean.valueOf(isSetPe()).compareTo(isSetPe());
-
 
10305
      if (lastComparison != 0) {
-
 
10306
        return lastComparison;
-
 
10307
      }
-
 
10308
      lastComparison = TBaseHelper.compareTo(pe, typedOther.pe);
-
 
10309
      if (lastComparison != 0) {
-
 
10310
        return lastComparison;
-
 
10311
      }
-
 
10312
      return 0;
-
 
10313
    }
-
 
10314
 
10324
    public void read(TProtocol iprot) throws TException {
10315
    public void read(TProtocol iprot) throws TException {
10325
      TField field;
10316
      TField field;
10326
      iprot.readStructBegin();
10317
      iprot.readStructBegin();
10327
      while (true)
10318
      while (true)
10328
      {
10319
      {
Line 10334... Line 10325...
10334
        if (fieldId == null) {
10325
        if (fieldId == null) {
10335
          TProtocolUtil.skip(iprot, field.type);
10326
          TProtocolUtil.skip(iprot, field.type);
10336
        } else {
10327
        } else {
10337
          switch (fieldId) {
10328
          switch (fieldId) {
10338
            case SUCCESS:
10329
            case SUCCESS:
10339
              if (field.type == TType.MAP) {
10330
              if (field.type == TType.STRING) {
10340
                {
-
 
10341
                  TMap _map42 = iprot.readMapBegin();
-
 
10342
                  this.success = new HashMap<String,String>(2*_map42.size);
-
 
10343
                  for (int _i43 = 0; _i43 < _map42.size; ++_i43)
-
 
10344
                  {
-
 
10345
                    String _key44;
-
 
10346
                    String _val45;
-
 
10347
                    _key44 = iprot.readString();
-
 
10348
                    _val45 = iprot.readString();
10331
                this.success = iprot.readString();
10349
                    this.success.put(_key44, _val45);
-
 
10350
                  }
-
 
10351
                  iprot.readMapEnd();
-
 
10352
                }
-
 
10353
              } else { 
10332
              } else { 
10354
                TProtocolUtil.skip(iprot, field.type);
10333
                TProtocolUtil.skip(iprot, field.type);
10355
              }
10334
              }
10356
              break;
10335
              break;
10357
            case PE:
10336
            case PE:
Line 10373... Line 10352...
10373
    public void write(TProtocol oprot) throws TException {
10352
    public void write(TProtocol oprot) throws TException {
10374
      oprot.writeStructBegin(STRUCT_DESC);
10353
      oprot.writeStructBegin(STRUCT_DESC);
10375
 
10354
 
10376
      if (this.isSetSuccess()) {
10355
      if (this.isSetSuccess()) {
10377
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10356
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10378
        {
-
 
10379
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.success.size()));
-
 
10380
          for (Map.Entry<String, String> _iter46 : this.success.entrySet())
-
 
10381
          {
-
 
10382
            oprot.writeString(_iter46.getKey());
10357
        oprot.writeString(this.success);
10383
            oprot.writeString(_iter46.getValue());
-
 
10384
          }
-
 
10385
          oprot.writeMapEnd();
-
 
10386
        }
-
 
10387
        oprot.writeFieldEnd();
10358
        oprot.writeFieldEnd();
10388
      } else if (this.isSetPe()) {
10359
      } else if (this.isSetPe()) {
10389
        oprot.writeFieldBegin(PE_FIELD_DESC);
10360
        oprot.writeFieldBegin(PE_FIELD_DESC);
10390
        this.pe.write(oprot);
10361
        this.pe.write(oprot);
10391
        oprot.writeFieldEnd();
10362
        oprot.writeFieldEnd();
Line 10394... Line 10365...
10394
      oprot.writeStructEnd();
10365
      oprot.writeStructEnd();
10395
    }
10366
    }
10396
 
10367
 
10397
    @Override
10368
    @Override
10398
    public String toString() {
10369
    public String toString() {
10399
      StringBuilder sb = new StringBuilder("captureHdfcPayment_result(");
10370
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
10400
      boolean first = true;
10371
      boolean first = true;
10401
 
10372
 
10402
      sb.append("success:");
10373
      sb.append("success:");
10403
      if (this.success == null) {
10374
      if (this.success == null) {
10404
        sb.append("null");
10375
        sb.append("null");
Line 10422... Line 10393...
10422
      // check for required fields
10393
      // check for required fields
10423
    }
10394
    }
10424
 
10395
 
10425
  }
10396
  }
10426
 
10397
 
10427
  public static class initializeHdfcPayment_args implements TBase<initializeHdfcPayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_args>   {
10398
  public static class createRefund_args implements TBase<createRefund_args._Fields>, java.io.Serializable, Cloneable, Comparable<createRefund_args>   {
10428
    private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_args");
10399
    private static final TStruct STRUCT_DESC = new TStruct("createRefund_args");
10429
 
10400
 
-
 
10401
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
10430
    private static final TField MERCHANT_PAYMENT_ID_FIELD_DESC = new TField("merchantPaymentId", TType.I64, (short)1);
10402
    private static final TField MERCHANT_TXN_ID_FIELD_DESC = new TField("merchantTxnId", TType.I64, (short)2);
-
 
10403
    private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)3);
10431
 
10404
 
-
 
10405
    private long orderId;
10432
    private long merchantPaymentId;
10406
    private long merchantTxnId;
-
 
10407
    private double amount;
10433
 
10408
 
10434
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10409
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10435
    public enum _Fields implements TFieldIdEnum {
10410
    public enum _Fields implements TFieldIdEnum {
-
 
10411
      ORDER_ID((short)1, "orderId"),
10436
      MERCHANT_PAYMENT_ID((short)1, "merchantPaymentId");
10412
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
-
 
10413
      AMOUNT((short)3, "amount");
10437
 
10414
 
10438
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
10415
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
10439
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10416
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10440
 
10417
 
10441
      static {
10418
      static {
Line 10485... Line 10462...
10485
        return _fieldName;
10462
        return _fieldName;
10486
      }
10463
      }
10487
    }
10464
    }
10488
 
10465
 
10489
    // isset id assignments
10466
    // isset id assignments
-
 
10467
    private static final int __ORDERID_ISSET_ID = 0;
10490
    private static final int __MERCHANTPAYMENTID_ISSET_ID = 0;
10468
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
-
 
10469
    private static final int __AMOUNT_ISSET_ID = 2;
10491
    private BitSet __isset_bit_vector = new BitSet(1);
10470
    private BitSet __isset_bit_vector = new BitSet(3);
10492
 
10471
 
10493
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10472
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10494
      put(_Fields.MERCHANT_PAYMENT_ID, new FieldMetaData("merchantPaymentId", TFieldRequirementType.DEFAULT, 
10473
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
10495
          new FieldValueMetaData(TType.I64)));
10474
          new FieldValueMetaData(TType.I64)));
-
 
10475
      put(_Fields.MERCHANT_TXN_ID, new FieldMetaData("merchantTxnId", TFieldRequirementType.DEFAULT, 
-
 
10476
          new FieldValueMetaData(TType.I64)));
-
 
10477
      put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT, 
-
 
10478
          new FieldValueMetaData(TType.DOUBLE)));
10496
    }});
10479
    }});
10497
 
10480
 
10498
    static {
10481
    static {
10499
      FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_args.class, metaDataMap);
10482
      FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
10500
    }
10483
    }
10501
 
10484
 
10502
    public initializeHdfcPayment_args() {
10485
    public createRefund_args() {
10503
    }
10486
    }
10504
 
10487
 
10505
    public initializeHdfcPayment_args(
10488
    public createRefund_args(
-
 
10489
      long orderId,
10506
      long merchantPaymentId)
10490
      long merchantTxnId,
-
 
10491
      double amount)
10507
    {
10492
    {
10508
      this();
10493
      this();
-
 
10494
      this.orderId = orderId;
-
 
10495
      setOrderIdIsSet(true);
10509
      this.merchantPaymentId = merchantPaymentId;
10496
      this.merchantTxnId = merchantTxnId;
10510
      setMerchantPaymentIdIsSet(true);
10497
      setMerchantTxnIdIsSet(true);
-
 
10498
      this.amount = amount;
-
 
10499
      setAmountIsSet(true);
10511
    }
10500
    }
10512
 
10501
 
10513
    /**
10502
    /**
10514
     * Performs a deep copy on <i>other</i>.
10503
     * Performs a deep copy on <i>other</i>.
10515
     */
10504
     */
10516
    public initializeHdfcPayment_args(initializeHdfcPayment_args other) {
10505
    public createRefund_args(createRefund_args other) {
10517
      __isset_bit_vector.clear();
10506
      __isset_bit_vector.clear();
10518
      __isset_bit_vector.or(other.__isset_bit_vector);
10507
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
10508
      this.orderId = other.orderId;
10519
      this.merchantPaymentId = other.merchantPaymentId;
10509
      this.merchantTxnId = other.merchantTxnId;
-
 
10510
      this.amount = other.amount;
10520
    }
10511
    }
10521
 
10512
 
10522
    public initializeHdfcPayment_args deepCopy() {
10513
    public createRefund_args deepCopy() {
10523
      return new initializeHdfcPayment_args(this);
10514
      return new createRefund_args(this);
10524
    }
10515
    }
10525
 
10516
 
10526
    @Deprecated
10517
    @Deprecated
10527
    public initializeHdfcPayment_args clone() {
10518
    public createRefund_args clone() {
10528
      return new initializeHdfcPayment_args(this);
10519
      return new createRefund_args(this);
10529
    }
10520
    }
10530
 
10521
 
10531
    public long getMerchantPaymentId() {
10522
    public long getOrderId() {
10532
      return this.merchantPaymentId;
10523
      return this.orderId;
10533
    }
10524
    }
10534
 
10525
 
10535
    public initializeHdfcPayment_args setMerchantPaymentId(long merchantPaymentId) {
10526
    public createRefund_args setOrderId(long orderId) {
10536
      this.merchantPaymentId = merchantPaymentId;
10527
      this.orderId = orderId;
10537
      setMerchantPaymentIdIsSet(true);
10528
      setOrderIdIsSet(true);
10538
      return this;
10529
      return this;
10539
    }
10530
    }
10540
 
10531
 
10541
    public void unsetMerchantPaymentId() {
10532
    public void unsetOrderId() {
10542
      __isset_bit_vector.clear(__MERCHANTPAYMENTID_ISSET_ID);
10533
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
10543
    }
10534
    }
10544
 
10535
 
10545
    /** Returns true if field merchantPaymentId is set (has been asigned a value) and false otherwise */
10536
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
10546
    public boolean isSetMerchantPaymentId() {
10537
    public boolean isSetOrderId() {
10547
      return __isset_bit_vector.get(__MERCHANTPAYMENTID_ISSET_ID);
10538
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
10548
    }
10539
    }
10549
 
10540
 
-
 
10541
    public void setOrderIdIsSet(boolean value) {
-
 
10542
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
10543
    }
-
 
10544
 
-
 
10545
    public long getMerchantTxnId() {
-
 
10546
      return this.merchantTxnId;
-
 
10547
    }
-
 
10548
 
-
 
10549
    public createRefund_args setMerchantTxnId(long merchantTxnId) {
-
 
10550
      this.merchantTxnId = merchantTxnId;
-
 
10551
      setMerchantTxnIdIsSet(true);
-
 
10552
      return this;
-
 
10553
    }
-
 
10554
 
-
 
10555
    public void unsetMerchantTxnId() {
-
 
10556
      __isset_bit_vector.clear(__MERCHANTTXNID_ISSET_ID);
-
 
10557
    }
-
 
10558
 
-
 
10559
    /** Returns true if field merchantTxnId is set (has been asigned a value) and false otherwise */
-
 
10560
    public boolean isSetMerchantTxnId() {
-
 
10561
      return __isset_bit_vector.get(__MERCHANTTXNID_ISSET_ID);
-
 
10562
    }
-
 
10563
 
10550
    public void setMerchantPaymentIdIsSet(boolean value) {
10564
    public void setMerchantTxnIdIsSet(boolean value) {
10551
      __isset_bit_vector.set(__MERCHANTPAYMENTID_ISSET_ID, value);
10565
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
-
 
10566
    }
-
 
10567
 
-
 
10568
    public double getAmount() {
-
 
10569
      return this.amount;
-
 
10570
    }
-
 
10571
 
-
 
10572
    public createRefund_args setAmount(double amount) {
-
 
10573
      this.amount = amount;
-
 
10574
      setAmountIsSet(true);
-
 
10575
      return this;
-
 
10576
    }
-
 
10577
 
-
 
10578
    public void unsetAmount() {
-
 
10579
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
-
 
10580
    }
-
 
10581
 
-
 
10582
    /** Returns true if field amount is set (has been asigned a value) and false otherwise */
-
 
10583
    public boolean isSetAmount() {
-
 
10584
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
-
 
10585
    }
-
 
10586
 
-
 
10587
    public void setAmountIsSet(boolean value) {
-
 
10588
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
10552
    }
10589
    }
10553
 
10590
 
10554
    public void setFieldValue(_Fields field, Object value) {
10591
    public void setFieldValue(_Fields field, Object value) {
10555
      switch (field) {
10592
      switch (field) {
10556
      case MERCHANT_PAYMENT_ID:
10593
      case ORDER_ID:
10557
        if (value == null) {
10594
        if (value == null) {
10558
          unsetMerchantPaymentId();
10595
          unsetOrderId();
10559
        } else {
10596
        } else {
-
 
10597
          setOrderId((Long)value);
-
 
10598
        }
-
 
10599
        break;
-
 
10600
 
-
 
10601
      case MERCHANT_TXN_ID:
-
 
10602
        if (value == null) {
-
 
10603
          unsetMerchantTxnId();
-
 
10604
        } else {
10560
          setMerchantPaymentId((Long)value);
10605
          setMerchantTxnId((Long)value);
-
 
10606
        }
-
 
10607
        break;
-
 
10608
 
-
 
10609
      case AMOUNT:
-
 
10610
        if (value == null) {
-
 
10611
          unsetAmount();
-
 
10612
        } else {
-
 
10613
          setAmount((Double)value);
10561
        }
10614
        }
10562
        break;
10615
        break;
10563
 
10616
 
10564
      }
10617
      }
10565
    }
10618
    }
Line 10568... Line 10621...
10568
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
10621
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
10569
    }
10622
    }
10570
 
10623
 
10571
    public Object getFieldValue(_Fields field) {
10624
    public Object getFieldValue(_Fields field) {
10572
      switch (field) {
10625
      switch (field) {
-
 
10626
      case ORDER_ID:
-
 
10627
        return new Long(getOrderId());
-
 
10628
 
10573
      case MERCHANT_PAYMENT_ID:
10629
      case MERCHANT_TXN_ID:
10574
        return new Long(getMerchantPaymentId());
10630
        return new Long(getMerchantTxnId());
-
 
10631
 
-
 
10632
      case AMOUNT:
-
 
10633
        return new Double(getAmount());
10575
 
10634
 
10576
      }
10635
      }
10577
      throw new IllegalStateException();
10636
      throw new IllegalStateException();
10578
    }
10637
    }
10579
 
10638
 
Line 10582... Line 10641...
10582
    }
10641
    }
10583
 
10642
 
10584
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10643
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10585
    public boolean isSet(_Fields field) {
10644
    public boolean isSet(_Fields field) {
10586
      switch (field) {
10645
      switch (field) {
-
 
10646
      case ORDER_ID:
-
 
10647
        return isSetOrderId();
10587
      case MERCHANT_PAYMENT_ID:
10648
      case MERCHANT_TXN_ID:
10588
        return isSetMerchantPaymentId();
10649
        return isSetMerchantTxnId();
-
 
10650
      case AMOUNT:
-
 
10651
        return isSetAmount();
10589
      }
10652
      }
10590
      throw new IllegalStateException();
10653
      throw new IllegalStateException();
10591
    }
10654
    }
10592
 
10655
 
10593
    public boolean isSet(int fieldID) {
10656
    public boolean isSet(int fieldID) {
Line 10596... Line 10659...
10596
 
10659
 
10597
    @Override
10660
    @Override
10598
    public boolean equals(Object that) {
10661
    public boolean equals(Object that) {
10599
      if (that == null)
10662
      if (that == null)
10600
        return false;
10663
        return false;
10601
      if (that instanceof initializeHdfcPayment_args)
10664
      if (that instanceof createRefund_args)
10602
        return this.equals((initializeHdfcPayment_args)that);
10665
        return this.equals((createRefund_args)that);
10603
      return false;
10666
      return false;
10604
    }
10667
    }
10605
 
10668
 
10606
    public boolean equals(initializeHdfcPayment_args that) {
10669
    public boolean equals(createRefund_args that) {
10607
      if (that == null)
10670
      if (that == null)
10608
        return false;
10671
        return false;
10609
 
10672
 
10610
      boolean this_present_merchantPaymentId = true;
10673
      boolean this_present_orderId = true;
10611
      boolean that_present_merchantPaymentId = true;
10674
      boolean that_present_orderId = true;
10612
      if (this_present_merchantPaymentId || that_present_merchantPaymentId) {
10675
      if (this_present_orderId || that_present_orderId) {
10613
        if (!(this_present_merchantPaymentId && that_present_merchantPaymentId))
10676
        if (!(this_present_orderId && that_present_orderId))
10614
          return false;
10677
          return false;
-
 
10678
        if (this.orderId != that.orderId)
-
 
10679
          return false;
-
 
10680
      }
-
 
10681
 
-
 
10682
      boolean this_present_merchantTxnId = true;
-
 
10683
      boolean that_present_merchantTxnId = true;
-
 
10684
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
-
 
10685
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
-
 
10686
          return false;
10615
        if (this.merchantPaymentId != that.merchantPaymentId)
10687
        if (this.merchantTxnId != that.merchantTxnId)
-
 
10688
          return false;
-
 
10689
      }
-
 
10690
 
-
 
10691
      boolean this_present_amount = true;
-
 
10692
      boolean that_present_amount = true;
-
 
10693
      if (this_present_amount || that_present_amount) {
-
 
10694
        if (!(this_present_amount && that_present_amount))
-
 
10695
          return false;
-
 
10696
        if (this.amount != that.amount)
10616
          return false;
10697
          return false;
10617
      }
10698
      }
10618
 
10699
 
10619
      return true;
10700
      return true;
10620
    }
10701
    }
Line 10622... Line 10703...
10622
    @Override
10703
    @Override
10623
    public int hashCode() {
10704
    public int hashCode() {
10624
      return 0;
10705
      return 0;
10625
    }
10706
    }
10626
 
10707
 
10627
    public int compareTo(initializeHdfcPayment_args other) {
10708
    public int compareTo(createRefund_args other) {
10628
      if (!getClass().equals(other.getClass())) {
10709
      if (!getClass().equals(other.getClass())) {
10629
        return getClass().getName().compareTo(other.getClass().getName());
10710
        return getClass().getName().compareTo(other.getClass().getName());
10630
      }
10711
      }
10631
 
10712
 
10632
      int lastComparison = 0;
10713
      int lastComparison = 0;
10633
      initializeHdfcPayment_args typedOther = (initializeHdfcPayment_args)other;
10714
      createRefund_args typedOther = (createRefund_args)other;
10634
 
10715
 
10635
      lastComparison = Boolean.valueOf(isSetMerchantPaymentId()).compareTo(isSetMerchantPaymentId());
10716
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
10636
      if (lastComparison != 0) {
10717
      if (lastComparison != 0) {
10637
        return lastComparison;
10718
        return lastComparison;
10638
      }
10719
      }
-
 
10720
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
10721
      if (lastComparison != 0) {
-
 
10722
        return lastComparison;
-
 
10723
      }
-
 
10724
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(isSetMerchantTxnId());
-
 
10725
      if (lastComparison != 0) {
-
 
10726
        return lastComparison;
-
 
10727
      }
10639
      lastComparison = TBaseHelper.compareTo(merchantPaymentId, typedOther.merchantPaymentId);
10728
      lastComparison = TBaseHelper.compareTo(merchantTxnId, typedOther.merchantTxnId);
-
 
10729
      if (lastComparison != 0) {
-
 
10730
        return lastComparison;
-
 
10731
      }
-
 
10732
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(isSetAmount());
-
 
10733
      if (lastComparison != 0) {
-
 
10734
        return lastComparison;
-
 
10735
      }
-
 
10736
      lastComparison = TBaseHelper.compareTo(amount, typedOther.amount);
10640
      if (lastComparison != 0) {
10737
      if (lastComparison != 0) {
10641
        return lastComparison;
10738
        return lastComparison;
10642
      }
10739
      }
10643
      return 0;
10740
      return 0;
10644
    }
10741
    }
Line 10655... Line 10752...
10655
        _Fields fieldId = _Fields.findByThriftId(field.id);
10752
        _Fields fieldId = _Fields.findByThriftId(field.id);
10656
        if (fieldId == null) {
10753
        if (fieldId == null) {
10657
          TProtocolUtil.skip(iprot, field.type);
10754
          TProtocolUtil.skip(iprot, field.type);
10658
        } else {
10755
        } else {
10659
          switch (fieldId) {
10756
          switch (fieldId) {
10660
            case MERCHANT_PAYMENT_ID:
10757
            case ORDER_ID:
10661
              if (field.type == TType.I64) {
10758
              if (field.type == TType.I64) {
-
 
10759
                this.orderId = iprot.readI64();
-
 
10760
                setOrderIdIsSet(true);
-
 
10761
              } else { 
-
 
10762
                TProtocolUtil.skip(iprot, field.type);
-
 
10763
              }
-
 
10764
              break;
-
 
10765
            case MERCHANT_TXN_ID:
-
 
10766
              if (field.type == TType.I64) {
10662
                this.merchantPaymentId = iprot.readI64();
10767
                this.merchantTxnId = iprot.readI64();
10663
                setMerchantPaymentIdIsSet(true);
10768
                setMerchantTxnIdIsSet(true);
-
 
10769
              } else { 
-
 
10770
                TProtocolUtil.skip(iprot, field.type);
-
 
10771
              }
-
 
10772
              break;
-
 
10773
            case AMOUNT:
-
 
10774
              if (field.type == TType.DOUBLE) {
-
 
10775
                this.amount = iprot.readDouble();
-
 
10776
                setAmountIsSet(true);
10664
              } else { 
10777
              } else { 
10665
                TProtocolUtil.skip(iprot, field.type);
10778
                TProtocolUtil.skip(iprot, field.type);
10666
              }
10779
              }
10667
              break;
10780
              break;
10668
          }
10781
          }
Line 10675... Line 10788...
10675
 
10788
 
10676
    public void write(TProtocol oprot) throws TException {
10789
    public void write(TProtocol oprot) throws TException {
10677
      validate();
10790
      validate();
10678
 
10791
 
10679
      oprot.writeStructBegin(STRUCT_DESC);
10792
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10793
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
10794
      oprot.writeI64(this.orderId);
-
 
10795
      oprot.writeFieldEnd();
10680
      oprot.writeFieldBegin(MERCHANT_PAYMENT_ID_FIELD_DESC);
10796
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
10681
      oprot.writeI64(this.merchantPaymentId);
10797
      oprot.writeI64(this.merchantTxnId);
-
 
10798
      oprot.writeFieldEnd();
-
 
10799
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
-
 
10800
      oprot.writeDouble(this.amount);
10682
      oprot.writeFieldEnd();
10801
      oprot.writeFieldEnd();
10683
      oprot.writeFieldStop();
10802
      oprot.writeFieldStop();
10684
      oprot.writeStructEnd();
10803
      oprot.writeStructEnd();
10685
    }
10804
    }
10686
 
10805
 
10687
    @Override
10806
    @Override
10688
    public String toString() {
10807
    public String toString() {
10689
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_args(");
10808
      StringBuilder sb = new StringBuilder("createRefund_args(");
10690
      boolean first = true;
10809
      boolean first = true;
10691
 
10810
 
-
 
10811
      sb.append("orderId:");
-
 
10812
      sb.append(this.orderId);
-
 
10813
      first = false;
-
 
10814
      if (!first) sb.append(", ");
10692
      sb.append("merchantPaymentId:");
10815
      sb.append("merchantTxnId:");
10693
      sb.append(this.merchantPaymentId);
10816
      sb.append(this.merchantTxnId);
-
 
10817
      first = false;
-
 
10818
      if (!first) sb.append(", ");
-
 
10819
      sb.append("amount:");
-
 
10820
      sb.append(this.amount);
10694
      first = false;
10821
      first = false;
10695
      sb.append(")");
10822
      sb.append(")");
10696
      return sb.toString();
10823
      return sb.toString();
10697
    }
10824
    }
10698
 
10825
 
Line 10700... Line 10827...
10700
      // check for required fields
10827
      // check for required fields
10701
    }
10828
    }
10702
 
10829
 
10703
  }
10830
  }
10704
 
10831
 
10705
  public static class initializeHdfcPayment_result implements TBase<initializeHdfcPayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<initializeHdfcPayment_result>   {
10832
  public static class createRefund_result implements TBase<createRefund_result._Fields>, java.io.Serializable, Cloneable, Comparable<createRefund_result>   {
10706
    private static final TStruct STRUCT_DESC = new TStruct("initializeHdfcPayment_result");
10833
    private static final TStruct STRUCT_DESC = new TStruct("createRefund_result");
10707
 
10834
 
10708
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
10835
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
10709
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
10836
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
10710
 
10837
 
10711
    private String success;
10838
    private long success;
10712
    private PaymentException pe;
10839
    private PaymentException pe;
10713
 
10840
 
10714
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10841
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10715
    public enum _Fields implements TFieldIdEnum {
10842
    public enum _Fields implements TFieldIdEnum {
10716
      SUCCESS((short)0, "success"),
10843
      SUCCESS((short)0, "success"),
Line 10766... Line 10893...
10766
        return _fieldName;
10893
        return _fieldName;
10767
      }
10894
      }
10768
    }
10895
    }
10769
 
10896
 
10770
    // isset id assignments
10897
    // isset id assignments
-
 
10898
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
10899
    private BitSet __isset_bit_vector = new BitSet(1);
10771
 
10900
 
10772
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10901
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10773
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
10902
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
10774
          new FieldValueMetaData(TType.STRING)));
10903
          new FieldValueMetaData(TType.I64)));
10775
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
10904
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
10776
          new FieldValueMetaData(TType.STRUCT)));
10905
          new FieldValueMetaData(TType.STRUCT)));
10777
    }});
10906
    }});
10778
 
10907
 
10779
    static {
10908
    static {
10780
      FieldMetaData.addStructMetaDataMap(initializeHdfcPayment_result.class, metaDataMap);
10909
      FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
10781
    }
10910
    }
10782
 
10911
 
10783
    public initializeHdfcPayment_result() {
10912
    public createRefund_result() {
10784
    }
10913
    }
10785
 
10914
 
10786
    public initializeHdfcPayment_result(
10915
    public createRefund_result(
10787
      String success,
10916
      long success,
10788
      PaymentException pe)
10917
      PaymentException pe)
10789
    {
10918
    {
10790
      this();
10919
      this();
10791
      this.success = success;
10920
      this.success = success;
-
 
10921
      setSuccessIsSet(true);
10792
      this.pe = pe;
10922
      this.pe = pe;
10793
    }
10923
    }
10794
 
10924
 
10795
    /**
10925
    /**
10796
     * Performs a deep copy on <i>other</i>.
10926
     * Performs a deep copy on <i>other</i>.
10797
     */
10927
     */
10798
    public initializeHdfcPayment_result(initializeHdfcPayment_result other) {
10928
    public createRefund_result(createRefund_result other) {
10799
      if (other.isSetSuccess()) {
10929
      __isset_bit_vector.clear();
-
 
10930
      __isset_bit_vector.or(other.__isset_bit_vector);
10800
        this.success = other.success;
10931
      this.success = other.success;
10801
      }
-
 
10802
      if (other.isSetPe()) {
10932
      if (other.isSetPe()) {
10803
        this.pe = new PaymentException(other.pe);
10933
        this.pe = new PaymentException(other.pe);
10804
      }
10934
      }
10805
    }
10935
    }
10806
 
10936
 
10807
    public initializeHdfcPayment_result deepCopy() {
10937
    public createRefund_result deepCopy() {
10808
      return new initializeHdfcPayment_result(this);
10938
      return new createRefund_result(this);
10809
    }
10939
    }
10810
 
10940
 
10811
    @Deprecated
10941
    @Deprecated
10812
    public initializeHdfcPayment_result clone() {
10942
    public createRefund_result clone() {
10813
      return new initializeHdfcPayment_result(this);
10943
      return new createRefund_result(this);
10814
    }
10944
    }
10815
 
10945
 
10816
    public String getSuccess() {
10946
    public long getSuccess() {
10817
      return this.success;
10947
      return this.success;
10818
    }
10948
    }
10819
 
10949
 
10820
    public initializeHdfcPayment_result setSuccess(String success) {
10950
    public createRefund_result setSuccess(long success) {
10821
      this.success = success;
10951
      this.success = success;
-
 
10952
      setSuccessIsSet(true);
10822
      return this;
10953
      return this;
10823
    }
10954
    }
10824
 
10955
 
10825
    public void unsetSuccess() {
10956
    public void unsetSuccess() {
10826
      this.success = null;
10957
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10827
    }
10958
    }
10828
 
10959
 
10829
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
10960
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
10830
    public boolean isSetSuccess() {
10961
    public boolean isSetSuccess() {
10831
      return this.success != null;
10962
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10832
    }
10963
    }
10833
 
10964
 
10834
    public void setSuccessIsSet(boolean value) {
10965
    public void setSuccessIsSet(boolean value) {
10835
      if (!value) {
-
 
10836
        this.success = null;
10966
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10837
      }
-
 
10838
    }
10967
    }
10839
 
10968
 
10840
    public PaymentException getPe() {
10969
    public PaymentException getPe() {
10841
      return this.pe;
10970
      return this.pe;
10842
    }
10971
    }
10843
 
10972
 
10844
    public initializeHdfcPayment_result setPe(PaymentException pe) {
10973
    public createRefund_result setPe(PaymentException pe) {
10845
      this.pe = pe;
10974
      this.pe = pe;
10846
      return this;
10975
      return this;
10847
    }
10976
    }
10848
 
10977
 
10849
    public void unsetPe() {
10978
    public void unsetPe() {
Line 10865... Line 10994...
10865
      switch (field) {
10994
      switch (field) {
10866
      case SUCCESS:
10995
      case SUCCESS:
10867
        if (value == null) {
10996
        if (value == null) {
10868
          unsetSuccess();
10997
          unsetSuccess();
10869
        } else {
10998
        } else {
10870
          setSuccess((String)value);
10999
          setSuccess((Long)value);
10871
        }
11000
        }
10872
        break;
11001
        break;
10873
 
11002
 
10874
      case PE:
11003
      case PE:
10875
        if (value == null) {
11004
        if (value == null) {
Line 10887... Line 11016...
10887
    }
11016
    }
10888
 
11017
 
10889
    public Object getFieldValue(_Fields field) {
11018
    public Object getFieldValue(_Fields field) {
10890
      switch (field) {
11019
      switch (field) {
10891
      case SUCCESS:
11020
      case SUCCESS:
10892
        return getSuccess();
11021
        return new Long(getSuccess());
10893
 
11022
 
10894
      case PE:
11023
      case PE:
10895
        return getPe();
11024
        return getPe();
10896
 
11025
 
10897
      }
11026
      }
Line 10919... Line 11048...
10919
 
11048
 
10920
    @Override
11049
    @Override
10921
    public boolean equals(Object that) {
11050
    public boolean equals(Object that) {
10922
      if (that == null)
11051
      if (that == null)
10923
        return false;
11052
        return false;
10924
      if (that instanceof initializeHdfcPayment_result)
11053
      if (that instanceof createRefund_result)
10925
        return this.equals((initializeHdfcPayment_result)that);
11054
        return this.equals((createRefund_result)that);
10926
      return false;
11055
      return false;
10927
    }
11056
    }
10928
 
11057
 
10929
    public boolean equals(initializeHdfcPayment_result that) {
11058
    public boolean equals(createRefund_result that) {
10930
      if (that == null)
11059
      if (that == null)
10931
        return false;
11060
        return false;
10932
 
11061
 
10933
      boolean this_present_success = true && this.isSetSuccess();
11062
      boolean this_present_success = true;
10934
      boolean that_present_success = true && that.isSetSuccess();
11063
      boolean that_present_success = true;
10935
      if (this_present_success || that_present_success) {
11064
      if (this_present_success || that_present_success) {
10936
        if (!(this_present_success && that_present_success))
11065
        if (!(this_present_success && that_present_success))
10937
          return false;
11066
          return false;
10938
        if (!this.success.equals(that.success))
11067
        if (this.success != that.success)
10939
          return false;
11068
          return false;
10940
      }
11069
      }
10941
 
11070
 
10942
      boolean this_present_pe = true && this.isSetPe();
11071
      boolean this_present_pe = true && this.isSetPe();
10943
      boolean that_present_pe = true && that.isSetPe();
11072
      boolean that_present_pe = true && that.isSetPe();
Line 10954... Line 11083...
10954
    @Override
11083
    @Override
10955
    public int hashCode() {
11084
    public int hashCode() {
10956
      return 0;
11085
      return 0;
10957
    }
11086
    }
10958
 
11087
 
10959
    public int compareTo(initializeHdfcPayment_result other) {
11088
    public int compareTo(createRefund_result other) {
10960
      if (!getClass().equals(other.getClass())) {
11089
      if (!getClass().equals(other.getClass())) {
10961
        return getClass().getName().compareTo(other.getClass().getName());
11090
        return getClass().getName().compareTo(other.getClass().getName());
10962
      }
11091
      }
10963
 
11092
 
10964
      int lastComparison = 0;
11093
      int lastComparison = 0;
10965
      initializeHdfcPayment_result typedOther = (initializeHdfcPayment_result)other;
11094
      createRefund_result typedOther = (createRefund_result)other;
10966
 
11095
 
10967
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
11096
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
10968
      if (lastComparison != 0) {
11097
      if (lastComparison != 0) {
10969
        return lastComparison;
11098
        return lastComparison;
10970
      }
11099
      }
Line 10996... Line 11125...
10996
        if (fieldId == null) {
11125
        if (fieldId == null) {
10997
          TProtocolUtil.skip(iprot, field.type);
11126
          TProtocolUtil.skip(iprot, field.type);
10998
        } else {
11127
        } else {
10999
          switch (fieldId) {
11128
          switch (fieldId) {
11000
            case SUCCESS:
11129
            case SUCCESS:
11001
              if (field.type == TType.STRING) {
11130
              if (field.type == TType.I64) {
11002
                this.success = iprot.readString();
11131
                this.success = iprot.readI64();
-
 
11132
                setSuccessIsSet(true);
11003
              } else { 
11133
              } else { 
11004
                TProtocolUtil.skip(iprot, field.type);
11134
                TProtocolUtil.skip(iprot, field.type);
11005
              }
11135
              }
11006
              break;
11136
              break;
11007
            case PE:
11137
            case PE:
Line 11023... Line 11153...
11023
    public void write(TProtocol oprot) throws TException {
11153
    public void write(TProtocol oprot) throws TException {
11024
      oprot.writeStructBegin(STRUCT_DESC);
11154
      oprot.writeStructBegin(STRUCT_DESC);
11025
 
11155
 
11026
      if (this.isSetSuccess()) {
11156
      if (this.isSetSuccess()) {
11027
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11157
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11028
        oprot.writeString(this.success);
11158
        oprot.writeI64(this.success);
11029
        oprot.writeFieldEnd();
11159
        oprot.writeFieldEnd();
11030
      } else if (this.isSetPe()) {
11160
      } else if (this.isSetPe()) {
11031
        oprot.writeFieldBegin(PE_FIELD_DESC);
11161
        oprot.writeFieldBegin(PE_FIELD_DESC);
11032
        this.pe.write(oprot);
11162
        this.pe.write(oprot);
11033
        oprot.writeFieldEnd();
11163
        oprot.writeFieldEnd();
Line 11036... Line 11166...
11036
      oprot.writeStructEnd();
11166
      oprot.writeStructEnd();
11037
    }
11167
    }
11038
 
11168
 
11039
    @Override
11169
    @Override
11040
    public String toString() {
11170
    public String toString() {
11041
      StringBuilder sb = new StringBuilder("initializeHdfcPayment_result(");
11171
      StringBuilder sb = new StringBuilder("createRefund_result(");
11042
      boolean first = true;
11172
      boolean first = true;
11043
 
11173
 
11044
      sb.append("success:");
11174
      sb.append("success:");
11045
      if (this.success == null) {
-
 
11046
        sb.append("null");
-
 
11047
      } else {
-
 
11048
        sb.append(this.success);
11175
      sb.append(this.success);
11049
      }
-
 
11050
      first = false;
11176
      first = false;
11051
      if (!first) sb.append(", ");
11177
      if (!first) sb.append(", ");
11052
      sb.append("pe:");
11178
      sb.append("pe:");
11053
      if (this.pe == null) {
11179
      if (this.pe == null) {
11054
        sb.append("null");
11180
        sb.append("null");
Line 11064... Line 11190...
11064
      // check for required fields
11190
      // check for required fields
11065
    }
11191
    }
11066
 
11192
 
11067
  }
11193
  }
11068
 
11194
 
11069
  public static class createRefund_args implements TBase<createRefund_args._Fields>, java.io.Serializable, Cloneable, Comparable<createRefund_args>   {
11195
  public static class capturePayment_args implements TBase<capturePayment_args._Fields>, java.io.Serializable, Cloneable, Comparable<capturePayment_args>   {
11070
    private static final TStruct STRUCT_DESC = new TStruct("createRefund_args");
11196
    private static final TStruct STRUCT_DESC = new TStruct("capturePayment_args");
11071
 
11197
 
11072
    private static final TField ORDER_ID_FIELD_DESC = new TField("orderId", TType.I64, (short)1);
-
 
11073
    private static final TField MERCHANT_TXN_ID_FIELD_DESC = new TField("merchantTxnId", TType.I64, (short)2);
11198
    private static final TField MERCHANT_TXN_ID_FIELD_DESC = new TField("merchantTxnId", TType.I64, (short)1);
11074
    private static final TField AMOUNT_FIELD_DESC = new TField("amount", TType.DOUBLE, (short)3);
-
 
11075
 
11199
 
11076
    private long orderId;
-
 
11077
    private long merchantTxnId;
11200
    private long merchantTxnId;
11078
    private double amount;
-
 
11079
 
11201
 
11080
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11081
    public enum _Fields implements TFieldIdEnum {
11203
    public enum _Fields implements TFieldIdEnum {
11082
      ORDER_ID((short)1, "orderId"),
-
 
11083
      MERCHANT_TXN_ID((short)2, "merchantTxnId"),
11204
      MERCHANT_TXN_ID((short)1, "merchantTxnId");
11084
      AMOUNT((short)3, "amount");
-
 
11085
 
11205
 
11086
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
11206
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
11087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11207
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11088
 
11208
 
11089
      static {
11209
      static {
Line 11133... Line 11253...
11133
        return _fieldName;
11253
        return _fieldName;
11134
      }
11254
      }
11135
    }
11255
    }
11136
 
11256
 
11137
    // isset id assignments
11257
    // isset id assignments
11138
    private static final int __ORDERID_ISSET_ID = 0;
-
 
11139
    private static final int __MERCHANTTXNID_ISSET_ID = 1;
11258
    private static final int __MERCHANTTXNID_ISSET_ID = 0;
11140
    private static final int __AMOUNT_ISSET_ID = 2;
-
 
11141
    private BitSet __isset_bit_vector = new BitSet(3);
11259
    private BitSet __isset_bit_vector = new BitSet(1);
11142
 
11260
 
11143
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11261
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11144
      put(_Fields.ORDER_ID, new FieldMetaData("orderId", TFieldRequirementType.DEFAULT, 
-
 
11145
          new FieldValueMetaData(TType.I64)));
-
 
11146
      put(_Fields.MERCHANT_TXN_ID, new FieldMetaData("merchantTxnId", TFieldRequirementType.DEFAULT, 
11262
      put(_Fields.MERCHANT_TXN_ID, new FieldMetaData("merchantTxnId", TFieldRequirementType.DEFAULT, 
11147
          new FieldValueMetaData(TType.I64)));
11263
          new FieldValueMetaData(TType.I64)));
11148
      put(_Fields.AMOUNT, new FieldMetaData("amount", TFieldRequirementType.DEFAULT, 
-
 
11149
          new FieldValueMetaData(TType.DOUBLE)));
-
 
11150
    }});
11264
    }});
11151
 
11265
 
11152
    static {
11266
    static {
11153
      FieldMetaData.addStructMetaDataMap(createRefund_args.class, metaDataMap);
11267
      FieldMetaData.addStructMetaDataMap(capturePayment_args.class, metaDataMap);
11154
    }
11268
    }
11155
 
11269
 
11156
    public createRefund_args() {
11270
    public capturePayment_args() {
11157
    }
11271
    }
11158
 
11272
 
11159
    public createRefund_args(
11273
    public capturePayment_args(
11160
      long orderId,
-
 
11161
      long merchantTxnId,
11274
      long merchantTxnId)
11162
      double amount)
-
 
11163
    {
11275
    {
11164
      this();
11276
      this();
11165
      this.orderId = orderId;
-
 
11166
      setOrderIdIsSet(true);
-
 
11167
      this.merchantTxnId = merchantTxnId;
11277
      this.merchantTxnId = merchantTxnId;
11168
      setMerchantTxnIdIsSet(true);
11278
      setMerchantTxnIdIsSet(true);
11169
      this.amount = amount;
-
 
11170
      setAmountIsSet(true);
-
 
11171
    }
11279
    }
11172
 
11280
 
11173
    /**
11281
    /**
11174
     * Performs a deep copy on <i>other</i>.
11282
     * Performs a deep copy on <i>other</i>.
11175
     */
11283
     */
11176
    public createRefund_args(createRefund_args other) {
11284
    public capturePayment_args(capturePayment_args other) {
11177
      __isset_bit_vector.clear();
11285
      __isset_bit_vector.clear();
11178
      __isset_bit_vector.or(other.__isset_bit_vector);
11286
      __isset_bit_vector.or(other.__isset_bit_vector);
11179
      this.orderId = other.orderId;
-
 
11180
      this.merchantTxnId = other.merchantTxnId;
11287
      this.merchantTxnId = other.merchantTxnId;
11181
      this.amount = other.amount;
-
 
11182
    }
11288
    }
11183
 
11289
 
11184
    public createRefund_args deepCopy() {
11290
    public capturePayment_args deepCopy() {
11185
      return new createRefund_args(this);
11291
      return new capturePayment_args(this);
11186
    }
11292
    }
11187
 
11293
 
11188
    @Deprecated
11294
    @Deprecated
11189
    public createRefund_args clone() {
11295
    public capturePayment_args clone() {
11190
      return new createRefund_args(this);
11296
      return new capturePayment_args(this);
11191
    }
-
 
11192
 
-
 
11193
    public long getOrderId() {
-
 
11194
      return this.orderId;
-
 
11195
    }
-
 
11196
 
-
 
11197
    public createRefund_args setOrderId(long orderId) {
-
 
11198
      this.orderId = orderId;
-
 
11199
      setOrderIdIsSet(true);
-
 
11200
      return this;
-
 
11201
    }
-
 
11202
 
-
 
11203
    public void unsetOrderId() {
-
 
11204
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
-
 
11205
    }
-
 
11206
 
-
 
11207
    /** Returns true if field orderId is set (has been asigned a value) and false otherwise */
-
 
11208
    public boolean isSetOrderId() {
-
 
11209
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
-
 
11210
    }
-
 
11211
 
-
 
11212
    public void setOrderIdIsSet(boolean value) {
-
 
11213
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
-
 
11214
    }
11297
    }
11215
 
11298
 
11216
    public long getMerchantTxnId() {
11299
    public long getMerchantTxnId() {
11217
      return this.merchantTxnId;
11300
      return this.merchantTxnId;
11218
    }
11301
    }
11219
 
11302
 
11220
    public createRefund_args setMerchantTxnId(long merchantTxnId) {
11303
    public capturePayment_args setMerchantTxnId(long merchantTxnId) {
11221
      this.merchantTxnId = merchantTxnId;
11304
      this.merchantTxnId = merchantTxnId;
11222
      setMerchantTxnIdIsSet(true);
11305
      setMerchantTxnIdIsSet(true);
11223
      return this;
11306
      return this;
11224
    }
11307
    }
11225
 
11308
 
Line 11234... Line 11317...
11234
 
11317
 
11235
    public void setMerchantTxnIdIsSet(boolean value) {
11318
    public void setMerchantTxnIdIsSet(boolean value) {
11236
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
11319
      __isset_bit_vector.set(__MERCHANTTXNID_ISSET_ID, value);
11237
    }
11320
    }
11238
 
11321
 
11239
    public double getAmount() {
-
 
11240
      return this.amount;
-
 
11241
    }
-
 
11242
 
-
 
11243
    public createRefund_args setAmount(double amount) {
-
 
11244
      this.amount = amount;
-
 
11245
      setAmountIsSet(true);
-
 
11246
      return this;
-
 
11247
    }
-
 
11248
 
-
 
11249
    public void unsetAmount() {
-
 
11250
      __isset_bit_vector.clear(__AMOUNT_ISSET_ID);
-
 
11251
    }
-
 
11252
 
-
 
11253
    /** Returns true if field amount is set (has been asigned a value) and false otherwise */
-
 
11254
    public boolean isSetAmount() {
-
 
11255
      return __isset_bit_vector.get(__AMOUNT_ISSET_ID);
-
 
11256
    }
-
 
11257
 
-
 
11258
    public void setAmountIsSet(boolean value) {
-
 
11259
      __isset_bit_vector.set(__AMOUNT_ISSET_ID, value);
-
 
11260
    }
-
 
11261
 
-
 
11262
    public void setFieldValue(_Fields field, Object value) {
11322
    public void setFieldValue(_Fields field, Object value) {
11263
      switch (field) {
11323
      switch (field) {
11264
      case ORDER_ID:
-
 
11265
        if (value == null) {
-
 
11266
          unsetOrderId();
-
 
11267
        } else {
-
 
11268
          setOrderId((Long)value);
-
 
11269
        }
-
 
11270
        break;
-
 
11271
 
-
 
11272
      case MERCHANT_TXN_ID:
11324
      case MERCHANT_TXN_ID:
11273
        if (value == null) {
11325
        if (value == null) {
11274
          unsetMerchantTxnId();
11326
          unsetMerchantTxnId();
11275
        } else {
11327
        } else {
11276
          setMerchantTxnId((Long)value);
11328
          setMerchantTxnId((Long)value);
11277
        }
11329
        }
11278
        break;
11330
        break;
11279
 
11331
 
11280
      case AMOUNT:
-
 
11281
        if (value == null) {
-
 
11282
          unsetAmount();
-
 
11283
        } else {
-
 
11284
          setAmount((Double)value);
-
 
11285
        }
-
 
11286
        break;
-
 
11287
 
-
 
11288
      }
11332
      }
11289
    }
11333
    }
11290
 
11334
 
11291
    public void setFieldValue(int fieldID, Object value) {
11335
    public void setFieldValue(int fieldID, Object value) {
11292
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
11336
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
11293
    }
11337
    }
11294
 
11338
 
11295
    public Object getFieldValue(_Fields field) {
11339
    public Object getFieldValue(_Fields field) {
11296
      switch (field) {
11340
      switch (field) {
11297
      case ORDER_ID:
-
 
11298
        return new Long(getOrderId());
-
 
11299
 
-
 
11300
      case MERCHANT_TXN_ID:
11341
      case MERCHANT_TXN_ID:
11301
        return new Long(getMerchantTxnId());
11342
        return new Long(getMerchantTxnId());
11302
 
11343
 
11303
      case AMOUNT:
-
 
11304
        return new Double(getAmount());
-
 
11305
 
-
 
11306
      }
11344
      }
11307
      throw new IllegalStateException();
11345
      throw new IllegalStateException();
11308
    }
11346
    }
11309
 
11347
 
11310
    public Object getFieldValue(int fieldId) {
11348
    public Object getFieldValue(int fieldId) {
Line 11312... Line 11350...
11312
    }
11350
    }
11313
 
11351
 
11314
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
11352
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
11315
    public boolean isSet(_Fields field) {
11353
    public boolean isSet(_Fields field) {
11316
      switch (field) {
11354
      switch (field) {
11317
      case ORDER_ID:
-
 
11318
        return isSetOrderId();
-
 
11319
      case MERCHANT_TXN_ID:
11355
      case MERCHANT_TXN_ID:
11320
        return isSetMerchantTxnId();
11356
        return isSetMerchantTxnId();
11321
      case AMOUNT:
-
 
11322
        return isSetAmount();
-
 
11323
      }
11357
      }
11324
      throw new IllegalStateException();
11358
      throw new IllegalStateException();
11325
    }
11359
    }
11326
 
11360
 
11327
    public boolean isSet(int fieldID) {
11361
    public boolean isSet(int fieldID) {
Line 11330... Line 11364...
11330
 
11364
 
11331
    @Override
11365
    @Override
11332
    public boolean equals(Object that) {
11366
    public boolean equals(Object that) {
11333
      if (that == null)
11367
      if (that == null)
11334
        return false;
11368
        return false;
11335
      if (that instanceof createRefund_args)
11369
      if (that instanceof capturePayment_args)
11336
        return this.equals((createRefund_args)that);
11370
        return this.equals((capturePayment_args)that);
11337
      return false;
11371
      return false;
11338
    }
11372
    }
11339
 
11373
 
11340
    public boolean equals(createRefund_args that) {
11374
    public boolean equals(capturePayment_args that) {
11341
      if (that == null)
11375
      if (that == null)
11342
        return false;
11376
        return false;
11343
 
11377
 
11344
      boolean this_present_orderId = true;
-
 
11345
      boolean that_present_orderId = true;
-
 
11346
      if (this_present_orderId || that_present_orderId) {
-
 
11347
        if (!(this_present_orderId && that_present_orderId))
-
 
11348
          return false;
-
 
11349
        if (this.orderId != that.orderId)
-
 
11350
          return false;
-
 
11351
      }
-
 
11352
 
-
 
11353
      boolean this_present_merchantTxnId = true;
11378
      boolean this_present_merchantTxnId = true;
11354
      boolean that_present_merchantTxnId = true;
11379
      boolean that_present_merchantTxnId = true;
11355
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
11380
      if (this_present_merchantTxnId || that_present_merchantTxnId) {
11356
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
11381
        if (!(this_present_merchantTxnId && that_present_merchantTxnId))
11357
          return false;
11382
          return false;
11358
        if (this.merchantTxnId != that.merchantTxnId)
11383
        if (this.merchantTxnId != that.merchantTxnId)
11359
          return false;
11384
          return false;
11360
      }
11385
      }
11361
 
11386
 
11362
      boolean this_present_amount = true;
-
 
11363
      boolean that_present_amount = true;
-
 
11364
      if (this_present_amount || that_present_amount) {
-
 
11365
        if (!(this_present_amount && that_present_amount))
-
 
11366
          return false;
-
 
11367
        if (this.amount != that.amount)
-
 
11368
          return false;
-
 
11369
      }
-
 
11370
 
-
 
11371
      return true;
11387
      return true;
11372
    }
11388
    }
11373
 
11389
 
11374
    @Override
11390
    @Override
11375
    public int hashCode() {
11391
    public int hashCode() {
11376
      return 0;
11392
      return 0;
11377
    }
11393
    }
11378
 
11394
 
11379
    public int compareTo(createRefund_args other) {
11395
    public int compareTo(capturePayment_args other) {
11380
      if (!getClass().equals(other.getClass())) {
11396
      if (!getClass().equals(other.getClass())) {
11381
        return getClass().getName().compareTo(other.getClass().getName());
11397
        return getClass().getName().compareTo(other.getClass().getName());
11382
      }
11398
      }
11383
 
11399
 
11384
      int lastComparison = 0;
11400
      int lastComparison = 0;
11385
      createRefund_args typedOther = (createRefund_args)other;
11401
      capturePayment_args typedOther = (capturePayment_args)other;
11386
 
11402
 
11387
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(isSetOrderId());
-
 
11388
      if (lastComparison != 0) {
-
 
11389
        return lastComparison;
-
 
11390
      }
-
 
11391
      lastComparison = TBaseHelper.compareTo(orderId, typedOther.orderId);
-
 
11392
      if (lastComparison != 0) {
-
 
11393
        return lastComparison;
-
 
11394
      }
-
 
11395
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(isSetMerchantTxnId());
11403
      lastComparison = Boolean.valueOf(isSetMerchantTxnId()).compareTo(isSetMerchantTxnId());
11396
      if (lastComparison != 0) {
11404
      if (lastComparison != 0) {
11397
        return lastComparison;
11405
        return lastComparison;
11398
      }
11406
      }
11399
      lastComparison = TBaseHelper.compareTo(merchantTxnId, typedOther.merchantTxnId);
11407
      lastComparison = TBaseHelper.compareTo(merchantTxnId, typedOther.merchantTxnId);
11400
      if (lastComparison != 0) {
11408
      if (lastComparison != 0) {
11401
        return lastComparison;
11409
        return lastComparison;
11402
      }
11410
      }
11403
      lastComparison = Boolean.valueOf(isSetAmount()).compareTo(isSetAmount());
-
 
11404
      if (lastComparison != 0) {
-
 
11405
        return lastComparison;
-
 
11406
      }
-
 
11407
      lastComparison = TBaseHelper.compareTo(amount, typedOther.amount);
-
 
11408
      if (lastComparison != 0) {
-
 
11409
        return lastComparison;
-
 
11410
      }
-
 
11411
      return 0;
11411
      return 0;
11412
    }
11412
    }
11413
 
11413
 
11414
    public void read(TProtocol iprot) throws TException {
11414
    public void read(TProtocol iprot) throws TException {
11415
      TField field;
11415
      TField field;
Line 11423... Line 11423...
11423
        _Fields fieldId = _Fields.findByThriftId(field.id);
11423
        _Fields fieldId = _Fields.findByThriftId(field.id);
11424
        if (fieldId == null) {
11424
        if (fieldId == null) {
11425
          TProtocolUtil.skip(iprot, field.type);
11425
          TProtocolUtil.skip(iprot, field.type);
11426
        } else {
11426
        } else {
11427
          switch (fieldId) {
11427
          switch (fieldId) {
11428
            case ORDER_ID:
-
 
11429
              if (field.type == TType.I64) {
-
 
11430
                this.orderId = iprot.readI64();
-
 
11431
                setOrderIdIsSet(true);
-
 
11432
              } else { 
-
 
11433
                TProtocolUtil.skip(iprot, field.type);
-
 
11434
              }
-
 
11435
              break;
-
 
11436
            case MERCHANT_TXN_ID:
11428
            case MERCHANT_TXN_ID:
11437
              if (field.type == TType.I64) {
11429
              if (field.type == TType.I64) {
11438
                this.merchantTxnId = iprot.readI64();
11430
                this.merchantTxnId = iprot.readI64();
11439
                setMerchantTxnIdIsSet(true);
11431
                setMerchantTxnIdIsSet(true);
11440
              } else { 
11432
              } else { 
11441
                TProtocolUtil.skip(iprot, field.type);
11433
                TProtocolUtil.skip(iprot, field.type);
11442
              }
11434
              }
11443
              break;
11435
              break;
11444
            case AMOUNT:
-
 
11445
              if (field.type == TType.DOUBLE) {
-
 
11446
                this.amount = iprot.readDouble();
-
 
11447
                setAmountIsSet(true);
-
 
11448
              } else { 
-
 
11449
                TProtocolUtil.skip(iprot, field.type);
-
 
11450
              }
-
 
11451
              break;
-
 
11452
          }
11436
          }
11453
          iprot.readFieldEnd();
11437
          iprot.readFieldEnd();
11454
        }
11438
        }
11455
      }
11439
      }
11456
      iprot.readStructEnd();
11440
      iprot.readStructEnd();
Line 11459... Line 11443...
11459
 
11443
 
11460
    public void write(TProtocol oprot) throws TException {
11444
    public void write(TProtocol oprot) throws TException {
11461
      validate();
11445
      validate();
11462
 
11446
 
11463
      oprot.writeStructBegin(STRUCT_DESC);
11447
      oprot.writeStructBegin(STRUCT_DESC);
11464
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
-
 
11465
      oprot.writeI64(this.orderId);
-
 
11466
      oprot.writeFieldEnd();
-
 
11467
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
11448
      oprot.writeFieldBegin(MERCHANT_TXN_ID_FIELD_DESC);
11468
      oprot.writeI64(this.merchantTxnId);
11449
      oprot.writeI64(this.merchantTxnId);
11469
      oprot.writeFieldEnd();
11450
      oprot.writeFieldEnd();
11470
      oprot.writeFieldBegin(AMOUNT_FIELD_DESC);
-
 
11471
      oprot.writeDouble(this.amount);
-
 
11472
      oprot.writeFieldEnd();
-
 
11473
      oprot.writeFieldStop();
11451
      oprot.writeFieldStop();
11474
      oprot.writeStructEnd();
11452
      oprot.writeStructEnd();
11475
    }
11453
    }
11476
 
11454
 
11477
    @Override
11455
    @Override
11478
    public String toString() {
11456
    public String toString() {
11479
      StringBuilder sb = new StringBuilder("createRefund_args(");
11457
      StringBuilder sb = new StringBuilder("capturePayment_args(");
11480
      boolean first = true;
11458
      boolean first = true;
11481
 
11459
 
11482
      sb.append("orderId:");
-
 
11483
      sb.append(this.orderId);
-
 
11484
      first = false;
-
 
11485
      if (!first) sb.append(", ");
-
 
11486
      sb.append("merchantTxnId:");
11460
      sb.append("merchantTxnId:");
11487
      sb.append(this.merchantTxnId);
11461
      sb.append(this.merchantTxnId);
11488
      first = false;
11462
      first = false;
11489
      if (!first) sb.append(", ");
-
 
11490
      sb.append("amount:");
-
 
11491
      sb.append(this.amount);
-
 
11492
      first = false;
-
 
11493
      sb.append(")");
11463
      sb.append(")");
11494
      return sb.toString();
11464
      return sb.toString();
11495
    }
11465
    }
11496
 
11466
 
11497
    public void validate() throws TException {
11467
    public void validate() throws TException {
11498
      // check for required fields
11468
      // check for required fields
11499
    }
11469
    }
11500
 
11470
 
11501
  }
11471
  }
11502
 
11472
 
11503
  public static class createRefund_result implements TBase<createRefund_result._Fields>, java.io.Serializable, Cloneable, Comparable<createRefund_result>   {
11473
  public static class capturePayment_result implements TBase<capturePayment_result._Fields>, java.io.Serializable, Cloneable, Comparable<capturePayment_result>   {
11504
    private static final TStruct STRUCT_DESC = new TStruct("createRefund_result");
11474
    private static final TStruct STRUCT_DESC = new TStruct("capturePayment_result");
11505
 
11475
 
11506
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
11476
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
11507
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
11477
    private static final TField PE_FIELD_DESC = new TField("pe", TType.STRUCT, (short)1);
11508
 
11478
 
11509
    private long success;
11479
    private boolean success;
11510
    private PaymentException pe;
11480
    private PaymentException pe;
11511
 
11481
 
11512
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11482
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11513
    public enum _Fields implements TFieldIdEnum {
11483
    public enum _Fields implements TFieldIdEnum {
11514
      SUCCESS((short)0, "success"),
11484
      SUCCESS((short)0, "success"),
Line 11569... Line 11539...
11569
    private static final int __SUCCESS_ISSET_ID = 0;
11539
    private static final int __SUCCESS_ISSET_ID = 0;
11570
    private BitSet __isset_bit_vector = new BitSet(1);
11540
    private BitSet __isset_bit_vector = new BitSet(1);
11571
 
11541
 
11572
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11542
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11573
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
11543
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
11574
          new FieldValueMetaData(TType.I64)));
11544
          new FieldValueMetaData(TType.BOOL)));
11575
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
11545
      put(_Fields.PE, new FieldMetaData("pe", TFieldRequirementType.DEFAULT, 
11576
          new FieldValueMetaData(TType.STRUCT)));
11546
          new FieldValueMetaData(TType.STRUCT)));
11577
    }});
11547
    }});
11578
 
11548
 
11579
    static {
11549
    static {
11580
      FieldMetaData.addStructMetaDataMap(createRefund_result.class, metaDataMap);
11550
      FieldMetaData.addStructMetaDataMap(capturePayment_result.class, metaDataMap);
11581
    }
11551
    }
11582
 
11552
 
11583
    public createRefund_result() {
11553
    public capturePayment_result() {
11584
    }
11554
    }
11585
 
11555
 
11586
    public createRefund_result(
11556
    public capturePayment_result(
11587
      long success,
11557
      boolean success,
11588
      PaymentException pe)
11558
      PaymentException pe)
11589
    {
11559
    {
11590
      this();
11560
      this();
11591
      this.success = success;
11561
      this.success = success;
11592
      setSuccessIsSet(true);
11562
      setSuccessIsSet(true);
Line 11594... Line 11564...
11594
    }
11564
    }
11595
 
11565
 
11596
    /**
11566
    /**
11597
     * Performs a deep copy on <i>other</i>.
11567
     * Performs a deep copy on <i>other</i>.
11598
     */
11568
     */
11599
    public createRefund_result(createRefund_result other) {
11569
    public capturePayment_result(capturePayment_result other) {
11600
      __isset_bit_vector.clear();
11570
      __isset_bit_vector.clear();
11601
      __isset_bit_vector.or(other.__isset_bit_vector);
11571
      __isset_bit_vector.or(other.__isset_bit_vector);
11602
      this.success = other.success;
11572
      this.success = other.success;
11603
      if (other.isSetPe()) {
11573
      if (other.isSetPe()) {
11604
        this.pe = new PaymentException(other.pe);
11574
        this.pe = new PaymentException(other.pe);
11605
      }
11575
      }
11606
    }
11576
    }
11607
 
11577
 
11608
    public createRefund_result deepCopy() {
11578
    public capturePayment_result deepCopy() {
11609
      return new createRefund_result(this);
11579
      return new capturePayment_result(this);
11610
    }
11580
    }
11611
 
11581
 
11612
    @Deprecated
11582
    @Deprecated
11613
    public createRefund_result clone() {
11583
    public capturePayment_result clone() {
11614
      return new createRefund_result(this);
11584
      return new capturePayment_result(this);
11615
    }
11585
    }
11616
 
11586
 
11617
    public long getSuccess() {
11587
    public boolean isSuccess() {
11618
      return this.success;
11588
      return this.success;
11619
    }
11589
    }
11620
 
11590
 
11621
    public createRefund_result setSuccess(long success) {
11591
    public capturePayment_result setSuccess(boolean success) {
11622
      this.success = success;
11592
      this.success = success;
11623
      setSuccessIsSet(true);
11593
      setSuccessIsSet(true);
11624
      return this;
11594
      return this;
11625
    }
11595
    }
11626
 
11596
 
Line 11639... Line 11609...
11639
 
11609
 
11640
    public PaymentException getPe() {
11610
    public PaymentException getPe() {
11641
      return this.pe;
11611
      return this.pe;
11642
    }
11612
    }
11643
 
11613
 
11644
    public createRefund_result setPe(PaymentException pe) {
11614
    public capturePayment_result setPe(PaymentException pe) {
11645
      this.pe = pe;
11615
      this.pe = pe;
11646
      return this;
11616
      return this;
11647
    }
11617
    }
11648
 
11618
 
11649
    public void unsetPe() {
11619
    public void unsetPe() {
Line 11665... Line 11635...
11665
      switch (field) {
11635
      switch (field) {
11666
      case SUCCESS:
11636
      case SUCCESS:
11667
        if (value == null) {
11637
        if (value == null) {
11668
          unsetSuccess();
11638
          unsetSuccess();
11669
        } else {
11639
        } else {
11670
          setSuccess((Long)value);
11640
          setSuccess((Boolean)value);
11671
        }
11641
        }
11672
        break;
11642
        break;
11673
 
11643
 
11674
      case PE:
11644
      case PE:
11675
        if (value == null) {
11645
        if (value == null) {
Line 11687... Line 11657...
11687
    }
11657
    }
11688
 
11658
 
11689
    public Object getFieldValue(_Fields field) {
11659
    public Object getFieldValue(_Fields field) {
11690
      switch (field) {
11660
      switch (field) {
11691
      case SUCCESS:
11661
      case SUCCESS:
11692
        return new Long(getSuccess());
11662
        return new Boolean(isSuccess());
11693
 
11663
 
11694
      case PE:
11664
      case PE:
11695
        return getPe();
11665
        return getPe();
11696
 
11666
 
11697
      }
11667
      }
Line 11719... Line 11689...
11719
 
11689
 
11720
    @Override
11690
    @Override
11721
    public boolean equals(Object that) {
11691
    public boolean equals(Object that) {
11722
      if (that == null)
11692
      if (that == null)
11723
        return false;
11693
        return false;
11724
      if (that instanceof createRefund_result)
11694
      if (that instanceof capturePayment_result)
11725
        return this.equals((createRefund_result)that);
11695
        return this.equals((capturePayment_result)that);
11726
      return false;
11696
      return false;
11727
    }
11697
    }
11728
 
11698
 
11729
    public boolean equals(createRefund_result that) {
11699
    public boolean equals(capturePayment_result that) {
11730
      if (that == null)
11700
      if (that == null)
11731
        return false;
11701
        return false;
11732
 
11702
 
11733
      boolean this_present_success = true;
11703
      boolean this_present_success = true;
11734
      boolean that_present_success = true;
11704
      boolean that_present_success = true;
Line 11754... Line 11724...
11754
    @Override
11724
    @Override
11755
    public int hashCode() {
11725
    public int hashCode() {
11756
      return 0;
11726
      return 0;
11757
    }
11727
    }
11758
 
11728
 
11759
    public int compareTo(createRefund_result other) {
11729
    public int compareTo(capturePayment_result other) {
11760
      if (!getClass().equals(other.getClass())) {
11730
      if (!getClass().equals(other.getClass())) {
11761
        return getClass().getName().compareTo(other.getClass().getName());
11731
        return getClass().getName().compareTo(other.getClass().getName());
11762
      }
11732
      }
11763
 
11733
 
11764
      int lastComparison = 0;
11734
      int lastComparison = 0;
11765
      createRefund_result typedOther = (createRefund_result)other;
11735
      capturePayment_result typedOther = (capturePayment_result)other;
11766
 
11736
 
11767
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
11737
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
11768
      if (lastComparison != 0) {
11738
      if (lastComparison != 0) {
11769
        return lastComparison;
11739
        return lastComparison;
11770
      }
11740
      }
Line 11796... Line 11766...
11796
        if (fieldId == null) {
11766
        if (fieldId == null) {
11797
          TProtocolUtil.skip(iprot, field.type);
11767
          TProtocolUtil.skip(iprot, field.type);
11798
        } else {
11768
        } else {
11799
          switch (fieldId) {
11769
          switch (fieldId) {
11800
            case SUCCESS:
11770
            case SUCCESS:
11801
              if (field.type == TType.I64) {
11771
              if (field.type == TType.BOOL) {
11802
                this.success = iprot.readI64();
11772
                this.success = iprot.readBool();
11803
                setSuccessIsSet(true);
11773
                setSuccessIsSet(true);
11804
              } else { 
11774
              } else { 
11805
                TProtocolUtil.skip(iprot, field.type);
11775
                TProtocolUtil.skip(iprot, field.type);
11806
              }
11776
              }
11807
              break;
11777
              break;
Line 11824... Line 11794...
11824
    public void write(TProtocol oprot) throws TException {
11794
    public void write(TProtocol oprot) throws TException {
11825
      oprot.writeStructBegin(STRUCT_DESC);
11795
      oprot.writeStructBegin(STRUCT_DESC);
11826
 
11796
 
11827
      if (this.isSetSuccess()) {
11797
      if (this.isSetSuccess()) {
11828
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11798
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11829
        oprot.writeI64(this.success);
11799
        oprot.writeBool(this.success);
11830
        oprot.writeFieldEnd();
11800
        oprot.writeFieldEnd();
11831
      } else if (this.isSetPe()) {
11801
      } else if (this.isSetPe()) {
11832
        oprot.writeFieldBegin(PE_FIELD_DESC);
11802
        oprot.writeFieldBegin(PE_FIELD_DESC);
11833
        this.pe.write(oprot);
11803
        this.pe.write(oprot);
11834
        oprot.writeFieldEnd();
11804
        oprot.writeFieldEnd();
Line 11837... Line 11807...
11837
      oprot.writeStructEnd();
11807
      oprot.writeStructEnd();
11838
    }
11808
    }
11839
 
11809
 
11840
    @Override
11810
    @Override
11841
    public String toString() {
11811
    public String toString() {
11842
      StringBuilder sb = new StringBuilder("createRefund_result(");
11812
      StringBuilder sb = new StringBuilder("capturePayment_result(");
11843
      boolean first = true;
11813
      boolean first = true;
11844
 
11814
 
11845
      sb.append("success:");
11815
      sb.append("success:");
11846
      sb.append(this.success);
11816
      sb.append(this.success);
11847
      first = false;
11817
      first = false;