BudgetApp/BudgetApp.PublicModels/YearSummaryDto.cs
Martin Svrcina e14e552388 Initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 01:52:43 +01:00

39 lines
1.2 KiB
C#

namespace BudgetApp.PublicModels
{
public class YearSummaryDto
{
public int Year { get; set; }
public decimal Balance { get; set; }
public List<MonthSummaryDto> Months { get; set; } = [];
}
public class MonthSummaryDto
{
public int Month { get; set; }
public decimal Balance { get; set; }
public List<DaySummaryDto> Days { get; set; } = [];
}
public class DaySummaryDto
{
public DateOnly Date { get; set; }
public decimal Balance { get; set; }
public List<TransactionDto> Transactions { get; set; } = [];
}
public class TransactionDto
{
public int Id { get; set; }
public DateOnly Date { get; set; }
public decimal Amount { get; set; }
public decimal Balance { get; set; }
public string OperationDescription { get; set; } = string.Empty;
public string Note { get; set; } = string.Empty;
public string Category { get; set; } = string.Empty;
public string TransactionId { get; set; } = string.Empty;
public DateTime Created { get; set; }
public DateTime Updated { get; set; }
public DateTime? Deleted { get; set; }
}
}