Class FeeProperties


  • public class FeeProperties
    extends java.lang.Object
    FeeProperties

    Defines the specific parameters used for fee calculation.

    • Constructor Detail

      • FeeProperties

        public FeeProperties​(java.util.Optional<? extends AmountDecimal> fixedAmount,
                             java.util.Optional<java.lang.String> variableRate,
                             java.util.Optional<? extends AmountDecimal> minPerTransaction,
                             java.util.Optional<? extends AmountDecimal> maxPerTransaction)
      • FeeProperties

        public FeeProperties()
    • Method Detail

      • fixedAmount

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

        public 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 java.util.Optional<AmountDecimal> minPerTransaction()
        Specifies the minimum allowable spending for a single transaction, working as a transaction floor.
      • maxPerTransaction

        public java.util.Optional<AmountDecimal> maxPerTransaction()
        Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.
      • withFixedAmount

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

        public FeeProperties withFixedAmount​(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.
      • withVariableRate

        public FeeProperties withVariableRate​(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'.

      • withVariableRate

        public FeeProperties withVariableRate​(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'.

      • withMinPerTransaction

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

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

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

        public FeeProperties withMaxPerTransaction​(java.util.Optional<? extends AmountDecimal> maxPerTransaction)
        Specifies the maximum allowable spending for a single transaction, working as a transaction ceiling.
      • 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