Class FeeProperties.Builder

  • Enclosing class:
    FeeProperties

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

      • fixedAmount

        public FeeProperties.Builder fixedAmount​(AmountDecimal fixedAmount)
        A fixed fee that is applied to the amount of each transaction in the `fixed` and `blended` fee models.
      • fixedAmount

        public FeeProperties.Builder fixedAmount​(java.util.Optional<? extends AmountDecimal> fixedAmount)
        A fixed fee that is applied to the amount of each transaction in the `fixed` and `blended` fee models.
      • variableRate

        public FeeProperties.Builder variableRate​(java.lang.String variableRate)
        A percentage fee that is applied to the amount of each transaction in the `blended` fee model, expressed as a decimal.

        For example, 0.05% is '0.05'.

      • variableRate

        public FeeProperties.Builder variableRate​(java.util.Optional<java.lang.String> variableRate)
        A percentage fee that is applied to the amount of each transaction in the `blended` fee model, expressed as a decimal.

        For example, 0.05% is '0.05'.

      • minPerTransaction

        public FeeProperties.Builder minPerTransaction​(AmountDecimal minPerTransaction)
        Specifies the minimum allowable spending for a single transaction, working as a transaction floor.
      • minPerTransaction

        public FeeProperties.Builder minPerTransaction​(java.util.Optional<? extends AmountDecimal> minPerTransaction)
        Specifies the minimum allowable spending for a single transaction, working as a transaction floor.
      • maxPerTransaction

        public FeeProperties.Builder maxPerTransaction​(AmountDecimal maxPerTransaction)
        Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.
      • maxPerTransaction

        public FeeProperties.Builder maxPerTransaction​(java.util.Optional<? extends AmountDecimal> maxPerTransaction)
        Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.