Add initial DTO classes and parser skeleton
This commit is contained in:
42
PriorBankParser/StatementDto.cs
Normal file
42
PriorBankParser/StatementDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user