getFeeStep(final Scale, final long, final Currency, final Date) method

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

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.