* @param transactionAmount amount that the client is using for transaction.
* @return boolean
*/
public static boolean amountIsWithinRange( BigDecimal transactionAmount) {
AmountConfigs amountConfigs = ConfigUtil.getAmountConfigs();
Validate.notNull( amountConfigs, "Error, Configurations are NULL");
Validate.notNull( amountConfigs.getMinimumAmount(), "Error, Config (Min Amount) is NULL");
Validate.notNull( amountConfigs.getMaximumAmount(), "Error, Config (Max Amount) is NULL");
if ( !amountMoreThanMinimum( transactionAmount, amountConfigs.getMinimumAmount()) ||
!amountLessThanMaximum( transactionAmount, amountConfigs.getMaximumAmount())) {
return false;
}
return true;
}