Creates a new DateEntry instance.
Object containing entry properties
The date string in YYYY-MM-DD format
OptionalcommentOptional comment text associated with this entry
The date of this entry as a Temporal.PlainDate object
OptionalflagOptional transaction flag (e.g., '*' for cleared, '!' for pending)
Internal metadata key-value pairs associated with this entry. These can be anything, are not used in the output, and are meant to be used to allow your pipeline to keep track of an internal property
Set of link identifiers associated with this transaction
OptionalmetadataOptional metadata key-value pairs associated with this entry
OptionalnarrationOptional narration/description of the transaction
The payee of the transaction
Array of comments under this transaction (mixed in with the postings)
Array of postings (account movements) in this transaction
Array of tags associated with this transaction (from inline tags and tag stack)
The type of this dated entry
ProtectedgetReturns the common prefix for all DateEntry toString methods.
Format: "YYYY-MM-DD
The formatted date and type prefix string
Converts metadata and comment to a formatted string. If metadata exists, each key-value pair is formatted on separate indented lines.
The formatted metadata and comment string, or empty string if neither exists
ProtectedparseTransforms JSON data before creating a Transaction instance. Deserializes transaction-specific properties including postings, tags, links, and metadata.
The JSON data to transform
The transformed data with:
Converts this entry to a formatted string with aligned columns. Default implementation delegates to toString(). Subclasses can override for custom formatting.
Formatting options (unused in base implementation)
The formatted string representation of this entry
Converts this transaction to a JSON-serializable object. Ensures the links Set is properly serialized as an array.
A JSON-serializable representation of this transaction
StaticfromCreates a Transaction instance from a generic parse result. Parses payee, narration, links, tags, postings, and metadata.
The parsed transaction data
A new Transaction instance
StaticfromStaticfromStaticfrom
Represents a Beancount transaction entry. Transactions record financial movements between accounts with postings.