Add initial DTO classes and parser skeleton

This commit is contained in:
Karaychentsev, Vladimir
2020-02-16 22:39:53 +03:00
parent dacd82ecb2
commit 8312e10cb3
5 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
using System.Collections.Generic;
namespace PriorBankParser
{
public class StatementDto
{
public ICollection<KeyValuePair<string, string>> AccountInfos { get; set; }
public ICollection<OperationalSectionDto> ContractsInfo { get; set; }
public ICollection<LockedSection> LockedInfo { get; set; }
public TotalDto StatementTotal { get; set; }
}
public class LockedSection
{
public string SectionName { get; set; }
public IReadOnlyCollection<TransactionInfoDto> Items { get; set; }
}
public class OperationalSectionDto
{
public string SectionName { get; set; }
public IReadOnlyCollection<TransactionInfoDto> Items { get; set; }
public TotalDto Total { get; set; }
}
public class TotalDto
{
public decimal IncomeAmount { get; set; }
public decimal OutcomeAmount { get; set; }
public decimal Commission { get; set; }
public decimal FinalAmount { get; set; }
}
}