| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ImmutableAccount |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Created on Aug 12, 2007 by wyatt | |
| 3 | */ | |
| 4 | package org.homeunix.thecave.buddi.plugin.api.model; | |
| 5 | ||
| 6 | import java.util.Date; | |
| 7 | ||
| 8 | import org.homeunix.thecave.buddi.model.Account; | |
| 9 | ||
| 10 | public interface ImmutableAccount extends ImmutableSource { | |
| 11 | ||
| 12 | /** | |
| 13 | * Returns the wrapped object from the underlying data model. By | |
| 14 | * accessing this method, you bypass all protection which the Buddi API | |
| 15 | * gives you; it is not recommended to use this method unless you understand | |
| 16 | * the risks associated with it. | |
| 17 | * @return | |
| 18 | */ | |
| 19 | public Account getAccount(); | |
| 20 | ||
| 21 | /** | |
| 22 | * Returns the Type object associated with the account. | |
| 23 | * @return | |
| 24 | */ | |
| 25 | public ImmutableAccountType getAccountType(); | |
| 26 | ||
| 27 | /** | |
| 28 | * Returns the current balance of the account. | |
| 29 | * @return | |
| 30 | */ | |
| 31 | public long getBalance(); | |
| 32 | ||
| 33 | /** | |
| 34 | * Returns the balance as of the given date. | |
| 35 | * @param d | |
| 36 | * @return | |
| 37 | */ | |
| 38 | public long getBalance(Date d); | |
| 39 | ||
| 40 | /** | |
| 41 | * Returns the earliest date assoicated with this source. This is obtained | |
| 42 | * by looking at the associated transactions / period dates. | |
| 43 | * @return | |
| 44 | */ | |
| 45 | public Date getStartDate(); | |
| 46 | ||
| 47 | /** | |
| 48 | * Returns the starting balance for the account. | |
| 49 | * @return | |
| 50 | */ | |
| 51 | public long getStartingBalance(); | |
| 52 | ||
| 53 | ||
| 54 | /** | |
| 55 | * Returns the Overdraft Limit (for debit accounts) or Credit Limit (for credit accounts) | |
| 56 | * @return | |
| 57 | */ | |
| 58 | public long getOverdraftCreditLimit(); | |
| 59 | ||
| 60 | /** | |
| 61 | * Returns the interest rate. This is a three decimal-place value interpreted as a long; | |
| 62 | * for instance, the value "6123" would mean "6.123%". | |
| 63 | * @return | |
| 64 | */ | |
| 65 | public long getInterestRate(); | |
| 66 | } |