C4 Level 3 -- Accounting API Components
Simplified after extracting event logic to Event Store API. Now only handles Folio/Fiken calls.

Layers
Clients
| Endpoint |
Purpose |
GET /folio/balance |
Account balances |
GET /folio/transactions |
Events with attachments |
POST /folio/attach-receipt |
Attach receipt to Folio event |
GET /fiken/invoices |
List invoices |
GET /fiken/expenses |
List expenses |
POST /fiken/register-purchase |
Register supplier invoice |
POST /fiken/journal-entry |
Create journal entry (utlegg) |
Engines (No I/O)
| Engine |
Responsibility |
| AmountEngine |
VAT calculations — net/gross/VAT split |
Resource Access
| Provider |
External System |
| FolioProvider |
Folio API v2 — accounts, events, attachments |
| FikenProvider |
Fiken API v2 — invoices, expenses, journal entries |
What Moved to Event Store API
- EventManager, ReviewManager (Managers)
- ConfidenceEngine, RulesEngine (Engines)
- EventStore, PatternStore (Resource Access)
- Proposal/Review/Check endpoints (Clients)