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