Class FacilitatorFee.Builder

  • Enclosing class:
    FacilitatorFee

    public static final class FacilitatorFee.Builder
    extends java.lang.Object
    • Method Detail

      • total

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

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

        public FacilitatorFee.Builder totalDecimal​(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.

      • totalDecimal

        public FacilitatorFee.Builder totalDecimal​(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 FacilitatorFee.Builder markup​(long markup)
        Markup facilitator fee in cents. Only either `markup` or `markupDecimal` can be set.
      • markup

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

        public FacilitatorFee.Builder markupDecimal​(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.
      • markupDecimal

        public FacilitatorFee.Builder markupDecimal​(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.