use chrono::NaiveDate;
use super::{
context::Account,
eval::{Amount, SingleAmount},
};
#[derive(Debug, PartialEq, Eq)]
#[non_exhaustive]
pub struct Transaction<'ctx> {
pub date: NaiveDate,
pub postings: bumpalo::boxed::Box<'ctx, [Posting<'ctx>]>,
}
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub struct Posting<'ctx> {
pub account: Account<'ctx>,
pub amount: Amount<'ctx>,
pub converted_amount: Option<SingleAmount<'ctx>>,
}