struct

Finfry::Changeset

Inherits JSON::Serializable < Struct < Value < Object

A reversible unit of work — one manual command, or one approved AI plan. Records exactly what it changed so it can be undone. The ledger is an append-only set of independent, self-balancing transactions, so removing the transactions a changeset added never unbalances anything that came after.

Constructors

new(id : Int32, at : String, summary : String)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

added_transaction_ids
Source
added_transaction_ids=(added_transaction_ids : Array(Int32))
Source
at=(at : String)
Source
budget_changes
Source
budget_changes=(budget_changes : Array(BudgetChange))
Source
declared_accounts
Source
declared_accounts=(declared_accounts : Array(String))
Source
empty?
Source
id=(id : Int32)
Source
reversal?
Source
reverses

If set, this changeset is the reversing entry that undid changeset N.

Source
reverses=(reverses : Int32 | Nil)

If set, this changeset is the reversing entry that undid changeset N.

Source
summary
Source
summary=(summary : String)
Source