Class FacilitatorFee


  • public class FacilitatorFee
    extends java.lang.Object
    FacilitatorFee

    Total or markup fee.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  FacilitatorFee.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      FacilitatorFee()  
      FacilitatorFee​(java.util.Optional<java.lang.Long> total, java.util.Optional<java.lang.String> totalDecimal, java.util.Optional<java.lang.Long> markup, java.util.Optional<java.lang.String> markupDecimal)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static FacilitatorFee.Builder builder()  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.util.Optional<java.lang.Long> markup()
      Markup facilitator fee in cents.
      java.util.Optional<java.lang.String> markupDecimal()
      Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
      java.lang.String toString()  
      java.util.Optional<java.lang.Long> total()
      Total facilitator fee in cents.
      java.util.Optional<java.lang.String> totalDecimal()
      Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
      FacilitatorFee withMarkup​(long markup)
      Markup facilitator fee in cents.
      FacilitatorFee withMarkup​(java.util.Optional<java.lang.Long> markup)
      Markup facilitator fee in cents.
      FacilitatorFee withMarkupDecimal​(java.lang.String markupDecimal)
      Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
      FacilitatorFee withMarkupDecimal​(java.util.Optional<java.lang.String> markupDecimal)
      Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
      FacilitatorFee withTotal​(long total)
      Total facilitator fee in cents.
      FacilitatorFee withTotal​(java.util.Optional<java.lang.Long> total)
      Total facilitator fee in cents.
      FacilitatorFee withTotalDecimal​(java.lang.String totalDecimal)
      Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
      FacilitatorFee withTotalDecimal​(java.util.Optional<java.lang.String> totalDecimal)
      Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FacilitatorFee

        public FacilitatorFee​(java.util.Optional<java.lang.Long> total,
                              java.util.Optional<java.lang.String> totalDecimal,
                              java.util.Optional<java.lang.Long> markup,
                              java.util.Optional<java.lang.String> markupDecimal)
      • FacilitatorFee

        public FacilitatorFee()
    • Method Detail

      • total

        public java.util.Optional<java.lang.Long> total()
        Total facilitator fee in cents. Only either `total` or `totalDecimal` can be set.
      • totalDecimal

        public java.util.Optional<java.lang.String> totalDecimal()
        Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.

        Only either `total` or `totalDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.

      • markup

        public java.util.Optional<java.lang.Long> markup()
        Markup facilitator fee in cents. Only either `markup` or `markupDecimal` can be set.
      • markupDecimal

        public java.util.Optional<java.lang.String> markupDecimal()
        Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. Only either `markup` or `markupDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.
      • withTotal

        public FacilitatorFee withTotal​(long total)
        Total facilitator fee in cents. Only either `total` or `totalDecimal` can be set.
      • withTotal

        public FacilitatorFee withTotal​(java.util.Optional<java.lang.Long> total)
        Total facilitator fee in cents. Only either `total` or `totalDecimal` can be set.
      • withTotalDecimal

        public FacilitatorFee withTotalDecimal​(java.lang.String totalDecimal)
        Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.

        Only either `total` or `totalDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.

      • withTotalDecimal

        public FacilitatorFee withTotalDecimal​(java.util.Optional<java.lang.String> totalDecimal)
        Same as `total`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.

        Only either `total` or `totalDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.

      • withMarkup

        public FacilitatorFee withMarkup​(long markup)
        Markup facilitator fee in cents. Only either `markup` or `markupDecimal` can be set.
      • withMarkup

        public FacilitatorFee withMarkup​(java.util.Optional<java.lang.Long> markup)
        Markup facilitator fee in cents. Only either `markup` or `markupDecimal` can be set.
      • withMarkupDecimal

        public FacilitatorFee withMarkupDecimal​(java.lang.String markupDecimal)
        Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. Only either `markup` or `markupDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.
      • withMarkupDecimal

        public FacilitatorFee withMarkupDecimal​(java.util.Optional<java.lang.String> markupDecimal)
        Same as `markup`, but a decimal-formatted numerical string that represents up to 9 decimal place precision. Only either `markup` or `markupDecimal` can be set. Set this field if you expect the fee to be in fractions of a cent.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object