Skip to main content

Module journal_workflow_handler

Module journal_workflow_handler 

Source
Expand description

Non-CRUD HTTP surface for the manual-journal approval workflow.

Hand-authored (user-owned; see metaphor.codegen.yaml). Wraps JournalWorkflowService: POST /journals/:id/submit (no body) POST /journals/:id/approve body { approved_by } POST /journals/:id/reject body { reason, rejected_by? } POST /journals/:id/void body { voided_by?, reason }

approve posts the journal to the ledger; void posts a reversal. Both flow through the audited PostingService core (FOR UPDATE per-account lock, idempotency, immutable ledger).

Tenancy (ADR-0029): the wire carries no tenant. The composing service’s decorator scopes every read and write from the request’s own scope.

Structs§

ApproveBody
CompanyQuery
RejectBody
VoidBody

Functions§

create_journal_workflow_routes
Route composer for the manual-journal workflow endpoints.