Transaction#
- class Transaction[source]#
Transaction entry (e.g.
2000-01-01 *).- property date: datetime.date#
- property links: MutableSequence[str]#
- property meta: Intersection[MutableSequence[MetaItem], MutableMapping[str, MetaValue | MetaRawValue]]#
- property postings: MutableSequence[Posting | BlockComment]#
- property raw_flag: TransactionFlag#
- property raw_inline_comment: Optional[InlineComment]#
- property raw_leading_comment: Optional[BlockComment]#
- property raw_meta: Intersection[MutableSequence[MetaItem], MutableMapping[str, MetaItem]]#
- property raw_meta_with_comments: MutableSequence[MetaItem | BlockComment]#
- property raw_narration: Optional[EscapedString]#
- property raw_payee: Optional[EscapedString]#
- property raw_postings: MutableSequence[Posting | BlockComment]#
- property raw_postings_with_comments: MutableSequence[Posting | BlockComment]#
- property raw_string0: Optional[EscapedString]#
- property raw_string1: Optional[EscapedString]#
- property raw_string2: Optional[EscapedString]#
- property raw_tags_links: MutableSequence[Link | Tag]#
- property raw_trailing_comment: Optional[BlockComment]#
- property tags: MutableSequence[str]#
- property raw_spacing_after: Sequence[RawTokenModel]#
- property raw_spacing_before: Sequence[RawTokenModel]#
- classmethod from_children(date: Date, flag: TransactionFlag, payee: Optional[EscapedString], narration: Optional[EscapedString], postings: Iterable[Posting], *, leading_comment: Optional[BlockComment] = None, tags_links: Iterable[Link | Tag] = (), inline_comment: Optional[InlineComment] = None, meta: Iterable[MetaItem | BlockComment] = (), trailing_comment: Optional[BlockComment] = None, indent_by: str = ' ') Self[source]#
- classmethod from_value(date: datetime.date, payee: Optional[str], narration: Optional[str], postings: Iterable[Posting], *, leading_comment: Optional[str] = None, flag: str = '*', tags: Iterable[str] = (), links: Iterable[str] = (), inline_comment: Optional[str] = None, meta: Optional[Mapping[str, MetaRawValue | MetaValue]] = None, trailing_comment: Optional[str] = None, indent_by: str = ' ') Self[source]#
- claim_leading_comment(*, ignore_if_already_claimed: bool = False) Optional[BlockComment]#
- claim_trailing_comment(*, ignore_if_already_claimed: bool = False) Optional[BlockComment]#
- unclaim_leading_comment() Optional[BlockComment]#
- unclaim_trailing_comment() Optional[BlockComment]#