Infrastructure low complexity Shared Component backend
0
Dependencies
1
Dependents
3
Entities
0
Integrations

Description

Infrastructure component that writes structured audit log entries to audit_logs for every approval lifecycle event: submission, auto-approval trigger, manual decision, and threshold configuration change. Ensures defensible documentation for Bufdir reporting requirements and internal compliance.

Feature: Automated & Manual Reimbursement Approval

approval-audit-logger

Responsibilities

  • Write audit entries for auto-approval events with rule evaluation details
  • Write audit entries for manual approval, rejection, and clarify decisions
  • Record threshold configuration changes with before/after values
  • Include approver identity, organization context, and ISO timestamp on every entry
  • Support audit log querying for compliance reporting

Interfaces

logAutoApproval(reimbursementId, organizationId, rulesEvaluated)
logManualDecision(reimbursementId, approverId, decision, notes)
logThresholdChange(organizationId, adminId, oldConfig, newConfig)
queryAuditLog(filters)
getAuditTrailForClaim(reimbursementId)

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (3)

Data entities managed by this component