Changes on CurrentAccount:
- New method approveTransfer: changes transfer status to FINISHED and
deposits the amount at destination account;
- New method cancelTransfer: changes transfer status to CANCELED and
deposits the amount at source account.
Changes on Branch and Database:
- Moved pendingTransfers and its related methods from Branch to
Database;
- Added new method removePendingTransfer to Database: removes the given
transfer from the list.
Changes in AccountOperationService and AccountOperationSeriviceImpl:
- Added method approvePendingTransfer: Finishes the pending transfer and
removes it from database;
- Added method cancelPendingTransfer: Cancels the pending transfer and
removes it from database.
Changes in Branch:
- Removed unused import.
Changes in CurrentAccount:
- Added public static final double ATM_TRANSFER_LIMIT = 5000;
- Changed method transfer so that if the amount is higher than
ATM_TRANSFER_LIMIT and the location is atm, the transfer status is set
as PENDING, the amount is not deposited at the destination account.
Changes in AccountOperationServiceImpl:
- In method transfer: if the created transfer status is PENDING, it is
added to the database