Subversion Repositories SmartDukaan

Rev

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

Rev 1629 Rev 1731
Line 54... Line 54...
54
     * @param gatewayId
54
     * @param gatewayId
55
     */
55
     */
56
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException;
56
    public List<Payment> getPaymentsForUser(long userId, long fromTime, long toTime, PaymentStatus status, long gatewayId) throws PaymentException, TException;
57
 
57
 
58
    /**
58
    /**
59
     * get all payments for user. Gateway is mandatory.
59
     * * Returns all payments based on following filters.
-
 
60
     * status
-
 
61
     * fromTime: if 0 then not considered else filters on initTimestamp >= fromTime
-
 
62
     * toTime: if -1 then not considered else filters on successTimestamp or errorTimestamp <= toTime
60
     * 
63
     * *
61
     * 
64
     * 
62
     * @param fromTime
65
     * @param fromTime
63
     * @param toTime
66
     * @param toTime
64
     * @param status
67
     * @param status
65
     * @param gatewayId
68
     * @param gatewayId
Line 108... Line 111...
108
     * @param attributes
111
     * @param attributes
109
     */
112
     */
110
    public boolean updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes) throws PaymentException, TException;
113
    public boolean updatePaymentDetails(long id, String gatewayPaymentId, String sessionId, String gatewayTxnStatus, String description, String gatewayTxnId, String authCode, String referenceCode, String errorCode, PaymentStatus status, String gatewayTxnDate, List<Attribute> attributes) throws PaymentException, TException;
111
 
114
 
112
    /**
115
    /**
113
     * Returns the maximum amount of a single payment.
116
     * Returns the minimum and maximum amounts among successful payments.
114
     */
-
 
115
    public double getMaxPaymentAmount() throws TException;
-
 
116
 
-
 
117
    /**
-
 
118
     * Returns the minimum amount of a single payment.
117
     * List contains two double values, first minimum and second maximum amount.
119
     */
118
     */
120
    public double getMinPaymentAmount() throws TException;
119
    public List<Double> getSuccessfulPaymentsAmountRange() throws TException;
121
 
120
 
122
  }
121
  }
123
 
122
 
124
  public static class Client implements Iface {
123
  public static class Client implements Iface {
125
    public Client(TProtocol prot)
124
    public Client(TProtocol prot)
Line 448... Line 447...
448
        throw result.pe;
447
        throw result.pe;
449
      }
448
      }
450
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
449
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePaymentDetails failed: unknown result");
451
    }
450
    }
452
 
451
 
453
    public double getMaxPaymentAmount() throws TException
452
    public List<Double> getSuccessfulPaymentsAmountRange() throws TException
454
    {
-
 
455
      send_getMaxPaymentAmount();
-
 
456
      return recv_getMaxPaymentAmount();
-
 
457
    }
-
 
458
 
-
 
459
    public void send_getMaxPaymentAmount() throws TException
-
 
460
    {
-
 
461
      oprot_.writeMessageBegin(new TMessage("getMaxPaymentAmount", TMessageType.CALL, seqid_));
-
 
462
      getMaxPaymentAmount_args args = new getMaxPaymentAmount_args();
-
 
463
      args.write(oprot_);
-
 
464
      oprot_.writeMessageEnd();
-
 
465
      oprot_.getTransport().flush();
-
 
466
    }
-
 
467
 
-
 
468
    public double recv_getMaxPaymentAmount() throws TException
-
 
469
    {
-
 
470
      TMessage msg = iprot_.readMessageBegin();
-
 
471
      if (msg.type == TMessageType.EXCEPTION) {
-
 
472
        TApplicationException x = TApplicationException.read(iprot_);
-
 
473
        iprot_.readMessageEnd();
-
 
474
        throw x;
-
 
475
      }
-
 
476
      getMaxPaymentAmount_result result = new getMaxPaymentAmount_result();
-
 
477
      result.read(iprot_);
-
 
478
      iprot_.readMessageEnd();
-
 
479
      if (result.isSetSuccess()) {
-
 
480
        return result.success;
-
 
481
      }
-
 
482
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMaxPaymentAmount failed: unknown result");
-
 
483
    }
-
 
484
 
-
 
485
    public double getMinPaymentAmount() throws TException
-
 
486
    {
453
    {
487
      send_getMinPaymentAmount();
454
      send_getSuccessfulPaymentsAmountRange();
488
      return recv_getMinPaymentAmount();
455
      return recv_getSuccessfulPaymentsAmountRange();
489
    }
456
    }
490
 
457
 
491
    public void send_getMinPaymentAmount() throws TException
458
    public void send_getSuccessfulPaymentsAmountRange() throws TException
492
    {
459
    {
493
      oprot_.writeMessageBegin(new TMessage("getMinPaymentAmount", TMessageType.CALL, seqid_));
460
      oprot_.writeMessageBegin(new TMessage("getSuccessfulPaymentsAmountRange", TMessageType.CALL, seqid_));
494
      getMinPaymentAmount_args args = new getMinPaymentAmount_args();
461
      getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
495
      args.write(oprot_);
462
      args.write(oprot_);
496
      oprot_.writeMessageEnd();
463
      oprot_.writeMessageEnd();
497
      oprot_.getTransport().flush();
464
      oprot_.getTransport().flush();
498
    }
465
    }
499
 
466
 
500
    public double recv_getMinPaymentAmount() throws TException
467
    public List<Double> recv_getSuccessfulPaymentsAmountRange() throws TException
501
    {
468
    {
502
      TMessage msg = iprot_.readMessageBegin();
469
      TMessage msg = iprot_.readMessageBegin();
503
      if (msg.type == TMessageType.EXCEPTION) {
470
      if (msg.type == TMessageType.EXCEPTION) {
504
        TApplicationException x = TApplicationException.read(iprot_);
471
        TApplicationException x = TApplicationException.read(iprot_);
505
        iprot_.readMessageEnd();
472
        iprot_.readMessageEnd();
506
        throw x;
473
        throw x;
507
      }
474
      }
508
      getMinPaymentAmount_result result = new getMinPaymentAmount_result();
475
      getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
509
      result.read(iprot_);
476
      result.read(iprot_);
510
      iprot_.readMessageEnd();
477
      iprot_.readMessageEnd();
511
      if (result.isSetSuccess()) {
478
      if (result.isSetSuccess()) {
512
        return result.success;
479
        return result.success;
513
      }
480
      }
514
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMinPaymentAmount failed: unknown result");
481
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSuccessfulPaymentsAmountRange failed: unknown result");
515
    }
482
    }
516
 
483
 
517
  }
484
  }
518
  public static class Processor implements TProcessor {
485
  public static class Processor implements TProcessor {
519
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
486
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
Line 526... Line 493...
526
      processMap_.put("getPayments", new getPayments());
493
      processMap_.put("getPayments", new getPayments());
527
      processMap_.put("getPaymentGateway", new getPaymentGateway());
494
      processMap_.put("getPaymentGateway", new getPaymentGateway());
528
      processMap_.put("getPayment", new getPayment());
495
      processMap_.put("getPayment", new getPayment());
529
      processMap_.put("getPaymentForTxnId", new getPaymentForTxnId());
496
      processMap_.put("getPaymentForTxnId", new getPaymentForTxnId());
530
      processMap_.put("updatePaymentDetails", new updatePaymentDetails());
497
      processMap_.put("updatePaymentDetails", new updatePaymentDetails());
531
      processMap_.put("getMaxPaymentAmount", new getMaxPaymentAmount());
-
 
532
      processMap_.put("getMinPaymentAmount", new getMinPaymentAmount());
498
      processMap_.put("getSuccessfulPaymentsAmountRange", new getSuccessfulPaymentsAmountRange());
533
    }
499
    }
534
 
500
 
535
    protected static interface ProcessFunction {
501
    protected static interface ProcessFunction {
536
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
502
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
537
    }
503
    }
Line 769... Line 735...
769
        oprot.getTransport().flush();
735
        oprot.getTransport().flush();
770
      }
736
      }
771
 
737
 
772
    }
738
    }
773
 
739
 
774
    private class getMaxPaymentAmount implements ProcessFunction {
740
    private class getSuccessfulPaymentsAmountRange implements ProcessFunction {
775
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
776
      {
-
 
777
        getMaxPaymentAmount_args args = new getMaxPaymentAmount_args();
-
 
778
        args.read(iprot);
-
 
779
        iprot.readMessageEnd();
-
 
780
        getMaxPaymentAmount_result result = new getMaxPaymentAmount_result();
-
 
781
        result.success = iface_.getMaxPaymentAmount();
-
 
782
        result.setSuccessIsSet(true);
-
 
783
        oprot.writeMessageBegin(new TMessage("getMaxPaymentAmount", TMessageType.REPLY, seqid));
-
 
784
        result.write(oprot);
-
 
785
        oprot.writeMessageEnd();
-
 
786
        oprot.getTransport().flush();
-
 
787
      }
-
 
788
 
-
 
789
    }
-
 
790
 
-
 
791
    private class getMinPaymentAmount implements ProcessFunction {
-
 
792
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
741
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
793
      {
742
      {
794
        getMinPaymentAmount_args args = new getMinPaymentAmount_args();
743
        getSuccessfulPaymentsAmountRange_args args = new getSuccessfulPaymentsAmountRange_args();
795
        args.read(iprot);
744
        args.read(iprot);
796
        iprot.readMessageEnd();
745
        iprot.readMessageEnd();
797
        getMinPaymentAmount_result result = new getMinPaymentAmount_result();
746
        getSuccessfulPaymentsAmountRange_result result = new getSuccessfulPaymentsAmountRange_result();
798
        result.success = iface_.getMinPaymentAmount();
747
        result.success = iface_.getSuccessfulPaymentsAmountRange();
799
        result.setSuccessIsSet(true);
-
 
800
        oprot.writeMessageBegin(new TMessage("getMinPaymentAmount", TMessageType.REPLY, seqid));
748
        oprot.writeMessageBegin(new TMessage("getSuccessfulPaymentsAmountRange", TMessageType.REPLY, seqid));
801
        result.write(oprot);
749
        result.write(oprot);
802
        oprot.writeMessageEnd();
750
        oprot.writeMessageEnd();
803
        oprot.getTransport().flush();
751
        oprot.getTransport().flush();
804
      }
752
      }
805
 
753
 
Line 7608... Line 7556...
7608
      // check for required fields
7556
      // check for required fields
7609
    }
7557
    }
7610
 
7558
 
7611
  }
7559
  }
7612
 
7560
 
7613
  public static class getMaxPaymentAmount_args implements TBase<getMaxPaymentAmount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMaxPaymentAmount_args>   {
7561
  public static class getSuccessfulPaymentsAmountRange_args implements TBase<getSuccessfulPaymentsAmountRange_args._Fields>, java.io.Serializable, Cloneable, Comparable<getSuccessfulPaymentsAmountRange_args>   {
7614
    private static final TStruct STRUCT_DESC = new TStruct("getMaxPaymentAmount_args");
7562
    private static final TStruct STRUCT_DESC = new TStruct("getSuccessfulPaymentsAmountRange_args");
7615
 
7563
 
7616
 
7564
 
7617
 
7565
 
7618
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7566
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7619
    public enum _Fields implements TFieldIdEnum {
7567
    public enum _Fields implements TFieldIdEnum {
Line 7671... Line 7619...
7671
    }
7619
    }
7672
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7620
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7673
    }});
7621
    }});
7674
 
7622
 
7675
    static {
7623
    static {
7676
      FieldMetaData.addStructMetaDataMap(getMaxPaymentAmount_args.class, metaDataMap);
7624
      FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_args.class, metaDataMap);
7677
    }
7625
    }
7678
 
7626
 
7679
    public getMaxPaymentAmount_args() {
7627
    public getSuccessfulPaymentsAmountRange_args() {
7680
    }
7628
    }
7681
 
7629
 
7682
    /**
7630
    /**
7683
     * Performs a deep copy on <i>other</i>.
7631
     * Performs a deep copy on <i>other</i>.
7684
     */
7632
     */
7685
    public getMaxPaymentAmount_args(getMaxPaymentAmount_args other) {
7633
    public getSuccessfulPaymentsAmountRange_args(getSuccessfulPaymentsAmountRange_args other) {
7686
    }
7634
    }
7687
 
7635
 
7688
    public getMaxPaymentAmount_args deepCopy() {
7636
    public getSuccessfulPaymentsAmountRange_args deepCopy() {
7689
      return new getMaxPaymentAmount_args(this);
7637
      return new getSuccessfulPaymentsAmountRange_args(this);
7690
    }
7638
    }
7691
 
7639
 
7692
    @Deprecated
7640
    @Deprecated
7693
    public getMaxPaymentAmount_args clone() {
7641
    public getSuccessfulPaymentsAmountRange_args clone() {
7694
      return new getMaxPaymentAmount_args(this);
7642
      return new getSuccessfulPaymentsAmountRange_args(this);
7695
    }
7643
    }
7696
 
7644
 
7697
    public void setFieldValue(_Fields field, Object value) {
7645
    public void setFieldValue(_Fields field, Object value) {
7698
      switch (field) {
7646
      switch (field) {
7699
      }
7647
      }
Line 7726... Line 7674...
7726
 
7674
 
7727
    @Override
7675
    @Override
7728
    public boolean equals(Object that) {
7676
    public boolean equals(Object that) {
7729
      if (that == null)
7677
      if (that == null)
7730
        return false;
7678
        return false;
7731
      if (that instanceof getMaxPaymentAmount_args)
7679
      if (that instanceof getSuccessfulPaymentsAmountRange_args)
7732
        return this.equals((getMaxPaymentAmount_args)that);
7680
        return this.equals((getSuccessfulPaymentsAmountRange_args)that);
7733
      return false;
7681
      return false;
7734
    }
7682
    }
7735
 
7683
 
7736
    public boolean equals(getMaxPaymentAmount_args that) {
7684
    public boolean equals(getSuccessfulPaymentsAmountRange_args that) {
7737
      if (that == null)
7685
      if (that == null)
7738
        return false;
7686
        return false;
7739
 
7687
 
7740
      return true;
7688
      return true;
7741
    }
7689
    }
Line 7743... Line 7691...
7743
    @Override
7691
    @Override
7744
    public int hashCode() {
7692
    public int hashCode() {
7745
      return 0;
7693
      return 0;
7746
    }
7694
    }
7747
 
7695
 
7748
    public int compareTo(getMaxPaymentAmount_args other) {
7696
    public int compareTo(getSuccessfulPaymentsAmountRange_args other) {
7749
      if (!getClass().equals(other.getClass())) {
7697
      if (!getClass().equals(other.getClass())) {
7750
        return getClass().getName().compareTo(other.getClass().getName());
7698
        return getClass().getName().compareTo(other.getClass().getName());
7751
      }
7699
      }
7752
 
7700
 
7753
      int lastComparison = 0;
7701
      int lastComparison = 0;
7754
      getMaxPaymentAmount_args typedOther = (getMaxPaymentAmount_args)other;
7702
      getSuccessfulPaymentsAmountRange_args typedOther = (getSuccessfulPaymentsAmountRange_args)other;
7755
 
7703
 
7756
      return 0;
7704
      return 0;
7757
    }
7705
    }
7758
 
7706
 
7759
    public void read(TProtocol iprot) throws TException {
7707
    public void read(TProtocol iprot) throws TException {
Line 7786... Line 7734...
7786
      oprot.writeStructEnd();
7734
      oprot.writeStructEnd();
7787
    }
7735
    }
7788
 
7736
 
7789
    @Override
7737
    @Override
7790
    public String toString() {
7738
    public String toString() {
7791
      StringBuilder sb = new StringBuilder("getMaxPaymentAmount_args(");
7739
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_args(");
7792
      boolean first = true;
7740
      boolean first = true;
7793
 
7741
 
7794
      sb.append(")");
7742
      sb.append(")");
7795
      return sb.toString();
7743
      return sb.toString();
7796
    }
7744
    }
Line 7799... Line 7747...
7799
      // check for required fields
7747
      // check for required fields
7800
    }
7748
    }
7801
 
7749
 
7802
  }
7750
  }
7803
 
7751
 
7804
  public static class getMaxPaymentAmount_result implements TBase<getMaxPaymentAmount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMaxPaymentAmount_result>   {
7752
  public static class getSuccessfulPaymentsAmountRange_result implements TBase<getSuccessfulPaymentsAmountRange_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSuccessfulPaymentsAmountRange_result>   {
7805
    private static final TStruct STRUCT_DESC = new TStruct("getMaxPaymentAmount_result");
7753
    private static final TStruct STRUCT_DESC = new TStruct("getSuccessfulPaymentsAmountRange_result");
7806
 
7754
 
7807
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.DOUBLE, (short)0);
7755
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
7808
 
7756
 
7809
    private double success;
7757
    private List<Double> success;
7810
 
7758
 
7811
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7759
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7812
    public enum _Fields implements TFieldIdEnum {
7760
    public enum _Fields implements TFieldIdEnum {
7813
      SUCCESS((short)0, "success");
7761
      SUCCESS((short)0, "success");
7814
 
7762
 
Line 7862... Line 7810...
7862
        return _fieldName;
7810
        return _fieldName;
7863
      }
7811
      }
7864
    }
7812
    }
7865
 
7813
 
7866
    // isset id assignments
7814
    // isset id assignments
7867
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
7868
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
7869
 
7815
 
7870
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7816
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7871
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
7817
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7818
          new ListMetaData(TType.LIST, 
7872
          new FieldValueMetaData(TType.DOUBLE)));
7819
              new FieldValueMetaData(TType.DOUBLE))));
7873
    }});
7820
    }});
7874
 
7821
 
7875
    static {
7822
    static {
7876
      FieldMetaData.addStructMetaDataMap(getMaxPaymentAmount_result.class, metaDataMap);
7823
      FieldMetaData.addStructMetaDataMap(getSuccessfulPaymentsAmountRange_result.class, metaDataMap);
7877
    }
7824
    }
7878
 
7825
 
7879
    public getMaxPaymentAmount_result() {
7826
    public getSuccessfulPaymentsAmountRange_result() {
7880
    }
7827
    }
7881
 
7828
 
7882
    public getMaxPaymentAmount_result(
7829
    public getSuccessfulPaymentsAmountRange_result(
7883
      double success)
7830
      List<Double> success)
7884
    {
7831
    {
7885
      this();
7832
      this();
7886
      this.success = success;
7833
      this.success = success;
7887
      setSuccessIsSet(true);
-
 
7888
    }
7834
    }
7889
 
7835
 
7890
    /**
7836
    /**
7891
     * Performs a deep copy on <i>other</i>.
7837
     * Performs a deep copy on <i>other</i>.
7892
     */
7838
     */
7893
    public getMaxPaymentAmount_result(getMaxPaymentAmount_result other) {
7839
    public getSuccessfulPaymentsAmountRange_result(getSuccessfulPaymentsAmountRange_result other) {
7894
      __isset_bit_vector.clear();
-
 
7895
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
7896
      this.success = other.success;
-
 
7897
    }
-
 
7898
 
-
 
7899
    public getMaxPaymentAmount_result deepCopy() {
-
 
7900
      return new getMaxPaymentAmount_result(this);
-
 
7901
    }
-
 
7902
 
-
 
7903
    @Deprecated
-
 
7904
    public getMaxPaymentAmount_result clone() {
-
 
7905
      return new getMaxPaymentAmount_result(this);
-
 
7906
    }
-
 
7907
 
-
 
7908
    public double getSuccess() {
-
 
7909
      return this.success;
-
 
7910
    }
-
 
7911
 
-
 
7912
    public getMaxPaymentAmount_result setSuccess(double success) {
-
 
7913
      this.success = success;
-
 
7914
      setSuccessIsSet(true);
-
 
7915
      return this;
-
 
7916
    }
-
 
7917
 
-
 
7918
    public void unsetSuccess() {
-
 
7919
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
7920
    }
-
 
7921
 
-
 
7922
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
7923
    public boolean isSetSuccess() {
-
 
7924
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
7925
    }
-
 
7926
 
-
 
7927
    public void setSuccessIsSet(boolean value) {
-
 
7928
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
7929
    }
-
 
7930
 
-
 
7931
    public void setFieldValue(_Fields field, Object value) {
-
 
7932
      switch (field) {
-
 
7933
      case SUCCESS:
-
 
7934
        if (value == null) {
-
 
7935
          unsetSuccess();
-
 
7936
        } else {
-
 
7937
          setSuccess((Double)value);
-
 
7938
        }
-
 
7939
        break;
-
 
7940
 
-
 
7941
      }
-
 
7942
    }
-
 
7943
 
-
 
7944
    public void setFieldValue(int fieldID, Object value) {
-
 
7945
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7946
    }
-
 
7947
 
-
 
7948
    public Object getFieldValue(_Fields field) {
-
 
7949
      switch (field) {
-
 
7950
      case SUCCESS:
-
 
7951
        return new Double(getSuccess());
-
 
7952
 
-
 
7953
      }
-
 
7954
      throw new IllegalStateException();
-
 
7955
    }
-
 
7956
 
-
 
7957
    public Object getFieldValue(int fieldId) {
-
 
7958
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7959
    }
-
 
7960
 
-
 
7961
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7962
    public boolean isSet(_Fields field) {
-
 
7963
      switch (field) {
-
 
7964
      case SUCCESS:
-
 
7965
        return isSetSuccess();
7840
      if (other.isSetSuccess()) {
7966
      }
-
 
7967
      throw new IllegalStateException();
-
 
7968
    }
-
 
7969
 
-
 
7970
    public boolean isSet(int fieldID) {
-
 
7971
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7972
    }
-
 
7973
 
-
 
7974
    @Override
-
 
7975
    public boolean equals(Object that) {
-
 
7976
      if (that == null)
-
 
7977
        return false;
-
 
7978
      if (that instanceof getMaxPaymentAmount_result)
-
 
7979
        return this.equals((getMaxPaymentAmount_result)that);
-
 
7980
      return false;
-
 
7981
    }
-
 
7982
 
-
 
7983
    public boolean equals(getMaxPaymentAmount_result that) {
-
 
7984
      if (that == null)
-
 
7985
        return false;
-
 
7986
 
-
 
7987
      boolean this_present_success = true;
-
 
7988
      boolean that_present_success = true;
-
 
7989
      if (this_present_success || that_present_success) {
-
 
7990
        if (!(this_present_success && that_present_success))
7841
        List<Double> __this__success = new ArrayList<Double>();
7991
          return false;
-
 
7992
        if (this.success != that.success)
7842
        for (Double other_element : other.success) {
7993
          return false;
-
 
7994
      }
-
 
7995
 
-
 
7996
      return true;
-
 
7997
    }
-
 
7998
 
-
 
7999
    @Override
-
 
8000
    public int hashCode() {
-
 
8001
      return 0;
-
 
8002
    }
-
 
8003
 
-
 
8004
    public int compareTo(getMaxPaymentAmount_result other) {
-
 
8005
      if (!getClass().equals(other.getClass())) {
-
 
8006
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8007
      }
-
 
8008
 
-
 
8009
      int lastComparison = 0;
-
 
8010
      getMaxPaymentAmount_result typedOther = (getMaxPaymentAmount_result)other;
-
 
8011
 
-
 
8012
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
8013
      if (lastComparison != 0) {
-
 
8014
        return lastComparison;
-
 
8015
      }
-
 
8016
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
8017
      if (lastComparison != 0) {
-
 
8018
        return lastComparison;
-
 
8019
      }
-
 
8020
      return 0;
-
 
8021
    }
-
 
8022
 
-
 
8023
    public void read(TProtocol iprot) throws TException {
-
 
8024
      TField field;
-
 
8025
      iprot.readStructBegin();
-
 
8026
      while (true)
-
 
8027
      {
-
 
8028
        field = iprot.readFieldBegin();
-
 
8029
        if (field.type == TType.STOP) { 
-
 
8030
          break;
-
 
8031
        }
-
 
8032
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8033
        if (fieldId == null) {
-
 
8034
          TProtocolUtil.skip(iprot, field.type);
-
 
8035
        } else {
-
 
8036
          switch (fieldId) {
-
 
8037
            case SUCCESS:
-
 
8038
              if (field.type == TType.DOUBLE) {
-
 
8039
                this.success = iprot.readDouble();
7843
          __this__success.add(other_element);
8040
                setSuccessIsSet(true);
-
 
8041
              } else { 
-
 
8042
                TProtocolUtil.skip(iprot, field.type);
-
 
8043
              }
-
 
8044
              break;
-
 
8045
          }
-
 
8046
          iprot.readFieldEnd();
-
 
8047
        }
-
 
8048
      }
-
 
8049
      iprot.readStructEnd();
-
 
8050
      validate();
-
 
8051
    }
-
 
8052
 
-
 
8053
    public void write(TProtocol oprot) throws TException {
-
 
8054
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8055
 
-
 
8056
      if (this.isSetSuccess()) {
-
 
8057
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8058
        oprot.writeDouble(this.success);
-
 
8059
        oprot.writeFieldEnd();
-
 
8060
      }
-
 
8061
      oprot.writeFieldStop();
-
 
8062
      oprot.writeStructEnd();
-
 
8063
    }
-
 
8064
 
-
 
8065
    @Override
-
 
8066
    public String toString() {
-
 
8067
      StringBuilder sb = new StringBuilder("getMaxPaymentAmount_result(");
-
 
8068
      boolean first = true;
-
 
8069
 
-
 
8070
      sb.append("success:");
-
 
8071
      sb.append(this.success);
-
 
8072
      first = false;
-
 
8073
      sb.append(")");
-
 
8074
      return sb.toString();
-
 
8075
    }
-
 
8076
 
-
 
8077
    public void validate() throws TException {
-
 
8078
      // check for required fields
-
 
8079
    }
-
 
8080
 
-
 
8081
  }
-
 
8082
 
-
 
8083
  public static class getMinPaymentAmount_args implements TBase<getMinPaymentAmount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMinPaymentAmount_args>   {
-
 
8084
    private static final TStruct STRUCT_DESC = new TStruct("getMinPaymentAmount_args");
-
 
8085
 
-
 
8086
 
-
 
8087
 
-
 
8088
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8089
    public enum _Fields implements TFieldIdEnum {
-
 
8090
;
-
 
8091
 
-
 
8092
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8093
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8094
 
-
 
8095
      static {
-
 
8096
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8097
          byId.put((int)field._thriftId, field);
-
 
8098
          byName.put(field.getFieldName(), field);
-
 
8099
        }
7844
        }
-
 
7845
        this.success = __this__success;
8100
      }
7846
      }
8101
 
-
 
8102
      /**
-
 
8103
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8104
       */
-
 
8105
      public static _Fields findByThriftId(int fieldId) {
-
 
8106
        return byId.get(fieldId);
-
 
8107
      }
-
 
8108
 
-
 
8109
      /**
-
 
8110
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8111
       * if it is not found.
-
 
8112
       */
-
 
8113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8114
        _Fields fields = findByThriftId(fieldId);
-
 
8115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8116
        return fields;
-
 
8117
      }
-
 
8118
 
-
 
8119
      /**
-
 
8120
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8121
       */
-
 
8122
      public static _Fields findByName(String name) {
-
 
8123
        return byName.get(name);
-
 
8124
      }
-
 
8125
 
-
 
8126
      private final short _thriftId;
-
 
8127
      private final String _fieldName;
-
 
8128
 
-
 
8129
      _Fields(short thriftId, String fieldName) {
-
 
8130
        _thriftId = thriftId;
-
 
8131
        _fieldName = fieldName;
-
 
8132
      }
-
 
8133
 
-
 
8134
      public short getThriftFieldId() {
-
 
8135
        return _thriftId;
-
 
8136
      }
-
 
8137
 
-
 
8138
      public String getFieldName() {
-
 
8139
        return _fieldName;
-
 
8140
      }
-
 
8141
    }
-
 
8142
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
8143
    }});
-
 
8144
 
-
 
8145
    static {
-
 
8146
      FieldMetaData.addStructMetaDataMap(getMinPaymentAmount_args.class, metaDataMap);
-
 
8147
    }
-
 
8148
 
-
 
8149
    public getMinPaymentAmount_args() {
-
 
8150
    }
-
 
8151
 
-
 
8152
    /**
-
 
8153
     * Performs a deep copy on <i>other</i>.
-
 
8154
     */
-
 
8155
    public getMinPaymentAmount_args(getMinPaymentAmount_args other) {
-
 
8156
    }
7847
    }
8157
 
7848
 
8158
    public getMinPaymentAmount_args deepCopy() {
7849
    public getSuccessfulPaymentsAmountRange_result deepCopy() {
8159
      return new getMinPaymentAmount_args(this);
7850
      return new getSuccessfulPaymentsAmountRange_result(this);
8160
    }
7851
    }
8161
 
7852
 
8162
    @Deprecated
7853
    @Deprecated
8163
    public getMinPaymentAmount_args clone() {
7854
    public getSuccessfulPaymentsAmountRange_result clone() {
8164
      return new getMinPaymentAmount_args(this);
7855
      return new getSuccessfulPaymentsAmountRange_result(this);
8165
    }
-
 
8166
 
-
 
8167
    public void setFieldValue(_Fields field, Object value) {
-
 
8168
      switch (field) {
-
 
8169
      }
-
 
8170
    }
-
 
8171
 
-
 
8172
    public void setFieldValue(int fieldID, Object value) {
-
 
8173
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8174
    }
-
 
8175
 
-
 
8176
    public Object getFieldValue(_Fields field) {
-
 
8177
      switch (field) {
-
 
8178
      }
-
 
8179
      throw new IllegalStateException();
-
 
8180
    }
-
 
8181
 
-
 
8182
    public Object getFieldValue(int fieldId) {
-
 
8183
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8184
    }
-
 
8185
 
-
 
8186
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
8187
    public boolean isSet(_Fields field) {
-
 
8188
      switch (field) {
-
 
8189
      }
-
 
8190
      throw new IllegalStateException();
-
 
8191
    }
-
 
8192
 
-
 
8193
    public boolean isSet(int fieldID) {
-
 
8194
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8195
    }
-
 
8196
 
-
 
8197
    @Override
-
 
8198
    public boolean equals(Object that) {
-
 
8199
      if (that == null)
-
 
8200
        return false;
-
 
8201
      if (that instanceof getMinPaymentAmount_args)
-
 
8202
        return this.equals((getMinPaymentAmount_args)that);
-
 
8203
      return false;
-
 
8204
    }
-
 
8205
 
-
 
8206
    public boolean equals(getMinPaymentAmount_args that) {
-
 
8207
      if (that == null)
-
 
8208
        return false;
-
 
8209
 
-
 
8210
      return true;
-
 
8211
    }
-
 
8212
 
-
 
8213
    @Override
-
 
8214
    public int hashCode() {
-
 
8215
      return 0;
-
 
8216
    }
-
 
8217
 
-
 
8218
    public int compareTo(getMinPaymentAmount_args other) {
-
 
8219
      if (!getClass().equals(other.getClass())) {
-
 
8220
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8221
      }
-
 
8222
 
-
 
8223
      int lastComparison = 0;
-
 
8224
      getMinPaymentAmount_args typedOther = (getMinPaymentAmount_args)other;
-
 
8225
 
-
 
8226
      return 0;
-
 
8227
    }
-
 
8228
 
-
 
8229
    public void read(TProtocol iprot) throws TException {
-
 
8230
      TField field;
-
 
8231
      iprot.readStructBegin();
-
 
8232
      while (true)
-
 
8233
      {
-
 
8234
        field = iprot.readFieldBegin();
-
 
8235
        if (field.type == TType.STOP) { 
-
 
8236
          break;
-
 
8237
        }
-
 
8238
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8239
        if (fieldId == null) {
-
 
8240
          TProtocolUtil.skip(iprot, field.type);
-
 
8241
        } else {
-
 
8242
          switch (fieldId) {
-
 
8243
          }
-
 
8244
          iprot.readFieldEnd();
-
 
8245
        }
-
 
8246
      }
-
 
8247
      iprot.readStructEnd();
-
 
8248
      validate();
-
 
8249
    }
-
 
8250
 
-
 
8251
    public void write(TProtocol oprot) throws TException {
-
 
8252
      validate();
-
 
8253
 
-
 
8254
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8255
      oprot.writeFieldStop();
-
 
8256
      oprot.writeStructEnd();
-
 
8257
    }
7856
    }
8258
 
7857
 
8259
    @Override
-
 
8260
    public String toString() {
7858
    public int getSuccessSize() {
8261
      StringBuilder sb = new StringBuilder("getMinPaymentAmount_args(");
7859
      return (this.success == null) ? 0 : this.success.size();
8262
      boolean first = true;
-
 
8263
 
-
 
8264
      sb.append(")");
-
 
8265
      return sb.toString();
-
 
8266
    }
7860
    }
8267
 
7861
 
8268
    public void validate() throws TException {
7862
    public java.util.Iterator<Double> getSuccessIterator() {
8269
      // check for required fields
7863
      return (this.success == null) ? null : this.success.iterator();
8270
    }
7864
    }
8271
 
7865
 
8272
  }
-
 
8273
 
-
 
8274
  public static class getMinPaymentAmount_result implements TBase<getMinPaymentAmount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMinPaymentAmount_result>   {
-
 
8275
    private static final TStruct STRUCT_DESC = new TStruct("getMinPaymentAmount_result");
-
 
8276
 
-
 
8277
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.DOUBLE, (short)0);
-
 
8278
 
-
 
8279
    private double success;
-
 
8280
 
-
 
8281
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8282
    public enum _Fields implements TFieldIdEnum {
7866
    public void addToSuccess(double elem) {
8283
      SUCCESS((short)0, "success");
-
 
8284
 
-
 
8285
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8286
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8287
 
-
 
8288
      static {
-
 
8289
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8290
          byId.put((int)field._thriftId, field);
-
 
8291
          byName.put(field.getFieldName(), field);
-
 
8292
        }
-
 
8293
      }
-
 
8294
 
-
 
8295
      /**
-
 
8296
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8297
       */
-
 
8298
      public static _Fields findByThriftId(int fieldId) {
-
 
8299
        return byId.get(fieldId);
-
 
8300
      }
-
 
8301
 
-
 
8302
      /**
-
 
8303
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8304
       * if it is not found.
7867
      if (this.success == null) {
8305
       */
-
 
8306
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8307
        _Fields fields = findByThriftId(fieldId);
7868
        this.success = new ArrayList<Double>();
8308
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8309
        return fields;
-
 
8310
      }
-
 
8311
 
-
 
8312
      /**
-
 
8313
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8314
       */
-
 
8315
      public static _Fields findByName(String name) {
-
 
8316
        return byName.get(name);
-
 
8317
      }
-
 
8318
 
-
 
8319
      private final short _thriftId;
-
 
8320
      private final String _fieldName;
-
 
8321
 
-
 
8322
      _Fields(short thriftId, String fieldName) {
-
 
8323
        _thriftId = thriftId;
-
 
8324
        _fieldName = fieldName;
-
 
8325
      }
-
 
8326
 
-
 
8327
      public short getThriftFieldId() {
-
 
8328
        return _thriftId;
-
 
8329
      }
-
 
8330
 
-
 
8331
      public String getFieldName() {
-
 
8332
        return _fieldName;
-
 
8333
      }
7869
      }
-
 
7870
      this.success.add(elem);
8334
    }
7871
    }
8335
 
7872
 
8336
    // isset id assignments
-
 
8337
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
8338
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
8339
 
-
 
8340
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
8341
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
8342
          new FieldValueMetaData(TType.DOUBLE)));
-
 
8343
    }});
-
 
8344
 
-
 
8345
    static {
-
 
8346
      FieldMetaData.addStructMetaDataMap(getMinPaymentAmount_result.class, metaDataMap);
-
 
8347
    }
-
 
8348
 
-
 
8349
    public getMinPaymentAmount_result() {
-
 
8350
    }
-
 
8351
 
-
 
8352
    public getMinPaymentAmount_result(
-
 
8353
      double success)
-
 
8354
    {
-
 
8355
      this();
-
 
8356
      this.success = success;
-
 
8357
      setSuccessIsSet(true);
-
 
8358
    }
-
 
8359
 
-
 
8360
    /**
-
 
8361
     * Performs a deep copy on <i>other</i>.
-
 
8362
     */
-
 
8363
    public getMinPaymentAmount_result(getMinPaymentAmount_result other) {
-
 
8364
      __isset_bit_vector.clear();
-
 
8365
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
8366
      this.success = other.success;
-
 
8367
    }
-
 
8368
 
-
 
8369
    public getMinPaymentAmount_result deepCopy() {
-
 
8370
      return new getMinPaymentAmount_result(this);
-
 
8371
    }
-
 
8372
 
-
 
8373
    @Deprecated
-
 
8374
    public getMinPaymentAmount_result clone() {
-
 
8375
      return new getMinPaymentAmount_result(this);
-
 
8376
    }
-
 
8377
 
-
 
8378
    public double getSuccess() {
7873
    public List<Double> getSuccess() {
8379
      return this.success;
7874
      return this.success;
8380
    }
7875
    }
8381
 
7876
 
8382
    public getMinPaymentAmount_result setSuccess(double success) {
7877
    public getSuccessfulPaymentsAmountRange_result setSuccess(List<Double> success) {
8383
      this.success = success;
7878
      this.success = success;
8384
      setSuccessIsSet(true);
-
 
8385
      return this;
7879
      return this;
8386
    }
7880
    }
8387
 
7881
 
8388
    public void unsetSuccess() {
7882
    public void unsetSuccess() {
8389
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7883
      this.success = null;
8390
    }
7884
    }
8391
 
7885
 
8392
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
7886
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
8393
    public boolean isSetSuccess() {
7887
    public boolean isSetSuccess() {
8394
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7888
      return this.success != null;
8395
    }
7889
    }
8396
 
7890
 
8397
    public void setSuccessIsSet(boolean value) {
7891
    public void setSuccessIsSet(boolean value) {
-
 
7892
      if (!value) {
8398
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
7893
        this.success = null;
-
 
7894
      }
8399
    }
7895
    }
8400
 
7896
 
8401
    public void setFieldValue(_Fields field, Object value) {
7897
    public void setFieldValue(_Fields field, Object value) {
8402
      switch (field) {
7898
      switch (field) {
8403
      case SUCCESS:
7899
      case SUCCESS:
8404
        if (value == null) {
7900
        if (value == null) {
8405
          unsetSuccess();
7901
          unsetSuccess();
8406
        } else {
7902
        } else {
8407
          setSuccess((Double)value);
7903
          setSuccess((List<Double>)value);
8408
        }
7904
        }
8409
        break;
7905
        break;
8410
 
7906
 
8411
      }
7907
      }
8412
    }
7908
    }
Line 8416... Line 7912...
8416
    }
7912
    }
8417
 
7913
 
8418
    public Object getFieldValue(_Fields field) {
7914
    public Object getFieldValue(_Fields field) {
8419
      switch (field) {
7915
      switch (field) {
8420
      case SUCCESS:
7916
      case SUCCESS:
8421
        return new Double(getSuccess());
7917
        return getSuccess();
8422
 
7918
 
8423
      }
7919
      }
8424
      throw new IllegalStateException();
7920
      throw new IllegalStateException();
8425
    }
7921
    }
8426
 
7922
 
Line 8443... Line 7939...
8443
 
7939
 
8444
    @Override
7940
    @Override
8445
    public boolean equals(Object that) {
7941
    public boolean equals(Object that) {
8446
      if (that == null)
7942
      if (that == null)
8447
        return false;
7943
        return false;
8448
      if (that instanceof getMinPaymentAmount_result)
7944
      if (that instanceof getSuccessfulPaymentsAmountRange_result)
8449
        return this.equals((getMinPaymentAmount_result)that);
7945
        return this.equals((getSuccessfulPaymentsAmountRange_result)that);
8450
      return false;
7946
      return false;
8451
    }
7947
    }
8452
 
7948
 
8453
    public boolean equals(getMinPaymentAmount_result that) {
7949
    public boolean equals(getSuccessfulPaymentsAmountRange_result that) {
8454
      if (that == null)
7950
      if (that == null)
8455
        return false;
7951
        return false;
8456
 
7952
 
8457
      boolean this_present_success = true;
7953
      boolean this_present_success = true && this.isSetSuccess();
8458
      boolean that_present_success = true;
7954
      boolean that_present_success = true && that.isSetSuccess();
8459
      if (this_present_success || that_present_success) {
7955
      if (this_present_success || that_present_success) {
8460
        if (!(this_present_success && that_present_success))
7956
        if (!(this_present_success && that_present_success))
8461
          return false;
7957
          return false;
8462
        if (this.success != that.success)
7958
        if (!this.success.equals(that.success))
8463
          return false;
7959
          return false;
8464
      }
7960
      }
8465
 
7961
 
8466
      return true;
7962
      return true;
8467
    }
7963
    }
Line 8469... Line 7965...
8469
    @Override
7965
    @Override
8470
    public int hashCode() {
7966
    public int hashCode() {
8471
      return 0;
7967
      return 0;
8472
    }
7968
    }
8473
 
7969
 
8474
    public int compareTo(getMinPaymentAmount_result other) {
7970
    public int compareTo(getSuccessfulPaymentsAmountRange_result other) {
8475
      if (!getClass().equals(other.getClass())) {
7971
      if (!getClass().equals(other.getClass())) {
8476
        return getClass().getName().compareTo(other.getClass().getName());
7972
        return getClass().getName().compareTo(other.getClass().getName());
8477
      }
7973
      }
8478
 
7974
 
8479
      int lastComparison = 0;
7975
      int lastComparison = 0;
8480
      getMinPaymentAmount_result typedOther = (getMinPaymentAmount_result)other;
7976
      getSuccessfulPaymentsAmountRange_result typedOther = (getSuccessfulPaymentsAmountRange_result)other;
8481
 
7977
 
8482
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
7978
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
8483
      if (lastComparison != 0) {
7979
      if (lastComparison != 0) {
8484
        return lastComparison;
7980
        return lastComparison;
8485
      }
7981
      }
Line 8503... Line 7999...
8503
        if (fieldId == null) {
7999
        if (fieldId == null) {
8504
          TProtocolUtil.skip(iprot, field.type);
8000
          TProtocolUtil.skip(iprot, field.type);
8505
        } else {
8001
        } else {
8506
          switch (fieldId) {
8002
          switch (fieldId) {
8507
            case SUCCESS:
8003
            case SUCCESS:
8508
              if (field.type == TType.DOUBLE) {
8004
              if (field.type == TType.LIST) {
-
 
8005
                {
-
 
8006
                  TList _list24 = iprot.readListBegin();
-
 
8007
                  this.success = new ArrayList<Double>(_list24.size);
-
 
8008
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
8009
                  {
-
 
8010
                    double _elem26;
8509
                this.success = iprot.readDouble();
8011
                    _elem26 = iprot.readDouble();
8510
                setSuccessIsSet(true);
8012
                    this.success.add(_elem26);
-
 
8013
                  }
-
 
8014
                  iprot.readListEnd();
-
 
8015
                }
8511
              } else { 
8016
              } else { 
8512
                TProtocolUtil.skip(iprot, field.type);
8017
                TProtocolUtil.skip(iprot, field.type);
8513
              }
8018
              }
8514
              break;
8019
              break;
8515
          }
8020
          }
Line 8523... Line 8028...
8523
    public void write(TProtocol oprot) throws TException {
8028
    public void write(TProtocol oprot) throws TException {
8524
      oprot.writeStructBegin(STRUCT_DESC);
8029
      oprot.writeStructBegin(STRUCT_DESC);
8525
 
8030
 
8526
      if (this.isSetSuccess()) {
8031
      if (this.isSetSuccess()) {
8527
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8032
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
8033
        {
-
 
8034
          oprot.writeListBegin(new TList(TType.DOUBLE, this.success.size()));
-
 
8035
          for (double _iter27 : this.success)
-
 
8036
          {
8528
        oprot.writeDouble(this.success);
8037
            oprot.writeDouble(_iter27);
-
 
8038
          }
-
 
8039
          oprot.writeListEnd();
-
 
8040
        }
8529
        oprot.writeFieldEnd();
8041
        oprot.writeFieldEnd();
8530
      }
8042
      }
8531
      oprot.writeFieldStop();
8043
      oprot.writeFieldStop();
8532
      oprot.writeStructEnd();
8044
      oprot.writeStructEnd();
8533
    }
8045
    }
8534
 
8046
 
8535
    @Override
8047
    @Override
8536
    public String toString() {
8048
    public String toString() {
8537
      StringBuilder sb = new StringBuilder("getMinPaymentAmount_result(");
8049
      StringBuilder sb = new StringBuilder("getSuccessfulPaymentsAmountRange_result(");
8538
      boolean first = true;
8050
      boolean first = true;
8539
 
8051
 
8540
      sb.append("success:");
8052
      sb.append("success:");
-
 
8053
      if (this.success == null) {
-
 
8054
        sb.append("null");
-
 
8055
      } else {
8541
      sb.append(this.success);
8056
        sb.append(this.success);
-
 
8057
      }
8542
      first = false;
8058
      first = false;
8543
      sb.append(")");
8059
      sb.append(")");
8544
      return sb.toString();
8060
      return sb.toString();
8545
    }
8061
    }
8546
 
8062