Object GiftCardBalanceUtils

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final GiftCardBalanceStatus checkBalance(Amount balance, Amount transactionLimit, Amount amountToBePaid) Check whether a full or partial payment can be made with a certain gift card for a give amount.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • checkBalance

         final GiftCardBalanceStatus checkBalance(Amount balance, Amount transactionLimit, Amount amountToBePaid)

        Check whether a full or partial payment can be made with a certain gift card for a give amount.

        Parameters:
        balance - the balance of the gift card.
        transactionLimit - the maximum amount for a single transaction of the gift card.
        amountToBePaid - the desired amount to be paid using this gift card.
        Returns:

        the result of the balance check.