Accounting Gateway
Component Detail
Infrastructure
medium complexity
backend
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
Infrastructure adapter that handles the actual outbound communication with external accounting systems such as Xledger and Dynamics. Encapsulates authentication, protocol differences, and low-level error translation behind a uniform interface.
accounting-gateway
Sources & reasoning
Tied to Fase 3 in §5 ("Regnskapsintegrasjon ... følger derfor Fase 3"), which maps to the Growth & Engagement phase name. Driven by HLF and Blindeforbundet's stated need for direct API integration with their existing accounting systems.
-
docs/source/likeperson.md · line 45API-integrasjon mot regnskapssystem (Xledger for Blindeforbundet, Dynamics-portal for HLF).
-
docs/source/likeperson.md · line 269Regnskapsintegrasjon (Xledger for Blindeforbundet, Dynamics accounting for HLF)
Responsibilities
- Authenticate against external accounting APIs using stored credentials
- Translate Meander expense payloads into vendor-specific request formats
- Execute HTTP requests with timeout and retry handling
- Normalize vendor error responses into a common error model
- Audit-log all outbound requests and responses
Interfaces
authenticate(systemType, credentials): AuthSession
postExpense(session, payload): GatewayResponse
testEndpoint(systemType, config): EndpointStatus
translateError(vendorError): NormalizedError