Files
silver-octo-spoon/wolverine/a-frame-architecture/FinancialApi.Domain/JournalEntry.cs
T

24 lines
563 B
C#

using System;
using System.Collections.Generic;
namespace FinancialApi.Domain;
public record JournalEntry
{
public Guid Id { get; init; }
public string Description { get; init; }
public DateTimeOffset CreatedAt { get; init; }
public List<JournalLine> Lines { get; init; } = [];
internal JournalEntry()
{
}
internal JournalEntry(Guid id, string description, DateTimeOffset createdAt, List<JournalLine> lines)
{
Lines = lines;
Id = id;
Description = description;
CreatedAt = createdAt;
}
}