Returns the Fee Step that best matches the input parameters.
Syntax
Step
getFeeStep
(
final Scale
scale
,
final long
amount
,
final Currency
currency
,
final Date
transactionDate
)
Parameters
-
scale –
The Scale for which to retrieve the Step
-
amount –
The amount used to select the right step based on hte threshold
-
currency –
The currency matching the anmount
-
transactionDate –
The date the transaction occurred - in most cases the current date.
Returns
The Fee Step that matches all the input parameters or null in case no step was found. This is mostly due to mis-configuration (e.g. no configuration for the currency or no step with threshold of 0) but should be handled anyway.
Usage
The Fee Step that matches all the input parameters or null in case no step was found. This is mostly due to mis-configuration (e.g. no configuration for the currency or no step with threshold of 0) but should be handled anyway.