| Use Case #4: |
The customer is allowed to withdraw money within certain rules. |
| Actor: |
Customer |
| Business rules: |
- The customer is allowed to withdraw if the balance of the account is sufficient (including the withdraw fees)
- The customer is allowed to withdraw a maximum of 200.00$ from an ATM and Interact for savings and checking account.
|
BUSINESS RULES: Limit of withdrawal
| Rule for |
Limit of withdrawal |
| Account Type |
Withdraw Type |
Limit? |
| Savings |
ATM |
$200.00 |
| Savings |
Interact |
$100.00 |
| Savings |
Personal Check |
nothing |
| Checking |
ATM |
$200.00 |
| Checking |
Interact |
$200.00 |
| Checking |
Interact |
$200.00 |
| Checking |
Interact |
$200.00 |
| Checking |
Interact |
$200.00 |
| Checking |
Personal Check |
nothing |
| Checking |
Personal Check |
nothing |
Examples:
| Rule for |
Limit of withdrawal |
| Account Type |
Withdraw Type |
Limit? |
| Savings |
ATM |
$200.00 |
| Savings |
Interact |
$200.00 |
Examples:
Scenario #1 : Create a saving account
| Do with |
bank |
| Create |
savings |
account |
12345-15555 |
for |
Fred |
|
Flintstone |
with balance of |
$1200.25 |
| Withdraw |
$100.25 |
from account |
12345-15555 |
using |
ATM |
| Check |
that balance of account |
12345-15555 |
is |
$1098.50 |
| Accept |
withdraw |
$600.00 |
from account |
12345-15555 |
using |
personal check |
| Reject |
withdraw |
$300.00 |
from account |
12345-15555 |
using |
interact |
| Check |
that balance of account |
12345-15555 |
is |
$498.00 |
Scenario #3 : Create a checking account
| Create |
checking |
account |
12345-16666 |
for |
Wilma |
|
Flintstone |
with balance of |
$1500.00 |
| Withdraw |
$400.00 |
from account |
12345-16666 |
using |
personal check |
| Reject |
withdraw |
$250.00 |
from account |
12345-16666 |
using |
ATM |
| Withdraw |
$200.00 |
from account |
12345-16666 |
using |
Interact |
| Check |
that balance of account |
12345-16666 |
is |
$897.50 |
| Set of |
Opened accounts |
| Number |
Type |
Owner name |
Balance |
| 12345-15555 |
savings |
Fred Flintstone |
$498.00 |
comment 1