Files
NordigenDotNet/source/VMelnalksnis.NordigenDotNet/Accounts/Balance.cs
T

32 lines
967 B
C#
Raw Normal View History

2022-06-14 20:13:08 +03:00
// Copyright 2022 Valters Melnalksnis
// Licensed under the Apache License 2.0.
// See LICENSE file in the project root for full license information.
using System;
2022-06-14 20:13:08 +03:00
using System.Collections.Generic;
using NodaTime;
namespace VMelnalksnis.NordigenDotNet.Accounts;
/// <summary>Account balance.</summary>
public record Balance
2022-06-14 20:13:08 +03:00
{
/// <summary>Gets or sets the balance amount.</summary>
public AmountInCurrency BalanceAmount { get; set; } = null!;
/// <summary>Gets or sets the balance type.</summary>
public string BalanceType { get; set; } = null!;
/// <summary>Gets or sets a value indicating whether whether the credit limit is included in <see cref="BalanceAmount"/>.</summary>
public bool CreditLimitIncluded { get; set; }
/// <summary>Gets or sets the date on which the balance was calculated.</summary>
public DateTimeOffset? ReferenceDate { get; set; }
2022-06-14 20:13:08 +03:00
}
internal class BalancesWrapper
{
public List<Balance> Balances { get; set; } = null!;
}