Class semper.payment.AccountBasedPurse
All Packages Class Hierarchy This Package Previous Next Index
Class semper.payment.AccountBasedPurse
java.lang.Object
|
+----semper.payment.Purse
|
+----semper.payment.AccountBasedPurse
- public class AccountBasedPurse
- extends Purse
Generic representation of an account based payment system
- Version:
- $Revision: 1.4 $ $Date: 1997/02/25 10:49:07 $
- Author:
- N. Asokan ([email protected])
- See Also:
- Purse
-
AccountBasedPurse()
-
-
getAmountFromBank()
- Get the amount (balance) in our bank account.
AccountBasedPurse
public AccountBasedPurse()
getAmountFromBank
public Amount getAmountFromBank() throws AmountNotApplicable, PaymentServiceException
- Get the amount (balance) in our bank account. The value of the
amount can be positive or negative, the latter indicating money
owed. This makes sense only for account-based payment systems.
The amount is retrieved by asking the bank that maintains the
account.
Contrast this with the
getAmount()
method which
returns the amount according to the local state of the purse.
This method may have the side-effect of updating the local
balance (maintained as part of the local state) of the purse.
- Returns:
- amount according to the bank account
- Throws: AmountNotApplicable
- in those systems where it is not
possible to check the bank balance
- Throws: PaymentServiceException
- for other miscellaneous errors
- See Also:
- getAmount
All Packages Class Hierarchy This Package Previous Next Index