19 lines
515 B
C#
19 lines
515 B
C#
namespace FinancialApi.Domain.Entities;
|
|
|
|
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;
|
|
}
|
|
} |