Package 

Object GiftCardBalanceUtils

    • 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
    • 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.