Logistiki.Event.InterestAccrued (logistiki v0.1.0)

Copy Markdown View Source

Interest accrued on a client account.

Accounting impact: debit interest expense, credit client liability.

Fields

Inherits all common fields from Logistiki.Event plus:

  • interest_expense_account_codeString.t() | nil — the interest expense account code (e.g. "EXPENSES:INTEREST"). If not provided, the knowledge layer resolves this role via a static mapping.

Example

%Logistiki.Event.InterestAccrued{
  id: "evt_004",
  entity_type: "corporate",
  account_code: "LIABILITIES:CLIENT_DEPOSITS:USD:ACME:OPERATING",
  interest_expense_account_code: "EXPENSES:INTEREST",
  amount: Decimal.new("5.00"),
  currency: "USD",
  effective_date: ~D[2026-07-07]
}