Files
android/docs/thijooree/06-transfer-history.md
T
2026-05-30 19:33:15 +05:00

56 lines
1.4 KiB
Markdown

# Transfer History
Shows a merged, chronologically sorted list of outgoing transfers across all connected bank accounts.
---
## Fragment — `TransferHistoryFragment`
Observes `HomeViewModel` for loaded account data and triggers parallel history fetches.
---
## Data Loading
On open, the fragment launches parallel coroutines — one per active bank session — to fetch transfer/payment history from each bank's API. Results arrive independently and are merged into a single sorted list as each bank completes.
| Bank | Source |
|---|---|
| MIB | MIB transfer history endpoint |
| BML | BML payment history endpoint |
| Fahipay | Fahipay payment history |
A per-bank loading indicator is shown while that bank's data is in flight. If one bank fails (session expired, network error) its section shows an error row rather than crashing the whole list.
---
## List Display
The merged list is sorted by date descending (newest first). Each row shows:
- Bank logo / icon
- Recipient name or account number
- Date and time
- Amount (hidden as `••••` when hide-amounts is active)
- Transfer status (where available)
---
## Pull-to-Refresh
A pull-to-refresh gesture re-fires all parallel fetches and rebuilds the merged list.
---
## Empty State
If no transfers are found across any bank, an empty-state illustration is shown.
---
 
---
[← Account History](05-account-history.md)     **Next →** [Transfer](07-transfer.md)