-
public class GiftCardBalanceUtils
-
-
Field Summary
Fields Modifier and Type Field Description public final static GiftCardBalanceUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final GiftCardBalanceStatuscheckBalance(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. -
-
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.
-
-
-
-