using EventFlow.Aggregates;
namespace Books.Api.Domain.JournalEntryDrafts.Events;
///
/// Event emitted when a journal entry draft is posted to the ledger.
/// Includes PostedAt timestamp for audit trail compliance.
///
public class JournalEntryDraftPostedEvent(
string transactionId,
string postedBy,
DateTimeOffset postedAt) : AggregateEvent
{
public string TransactionId { get; } = transactionId;
public string PostedBy { get; } = postedBy;
///
/// The exact timestamp when the draft was posted to the ledger.
///
public DateTimeOffset PostedAt { get; } = postedAt;
}