diff --git a/source/VMelnalksnis.NordigenDotNet/Accounts/Account.cs b/source/VMelnalksnis.NordigenDotNet/Accounts/Account.cs
index e8a0ec9..a92c859 100644
--- a/source/VMelnalksnis.NordigenDotNet/Accounts/Account.cs
+++ b/source/VMelnalksnis.NordigenDotNet/Accounts/Account.cs
@@ -24,6 +24,12 @@ public record Account
[JsonPropertyName("last_accessed")]
public DateTimeOffset LastAccessed { get; set; }
+ ///
+ /// Gets or sets the name of the legal account owner.
+ /// If there is more than one owner, then e.g. two names might be noted here.
+ /// For a corporate account, the corporate name is used for this attribute.
+ public string? OwnerName { get; set; }
+
/// Gets or sets the account IBAN.
public string Iban { get; set; } = null!;
diff --git a/source/VMelnalksnis.NordigenDotNet/Accounts/AccountDetailStatus.cs b/source/VMelnalksnis.NordigenDotNet/Accounts/AccountDetailStatus.cs
new file mode 100644
index 0000000..f469d4d
--- /dev/null
+++ b/source/VMelnalksnis.NordigenDotNet/Accounts/AccountDetailStatus.cs
@@ -0,0 +1,13 @@
+// Copyright 2022 Valters Melnalksnis
+// Licensed under the Apache License 2.0.
+// See LICENSE file in the project root for full license information.
+
+namespace VMelnalksnis.NordigenDotNet.Accounts;
+
+/// All possible states of an account.
+public enum AccountDetailStatus
+{
+ Enabled,
+ Deleted,
+ Blocked
+}
diff --git a/source/VMelnalksnis.NordigenDotNet/Accounts/AccountDetails.cs b/source/VMelnalksnis.NordigenDotNet/Accounts/AccountDetails.cs
index d4fac42..31be075 100644
--- a/source/VMelnalksnis.NordigenDotNet/Accounts/AccountDetails.cs
+++ b/source/VMelnalksnis.NordigenDotNet/Accounts/AccountDetails.cs
@@ -2,6 +2,8 @@
// Licensed under the Apache License 2.0.
// See LICENSE file in the project root for full license information.
+using System.Text.Json.Serialization;
+
namespace VMelnalksnis.NordigenDotNet.Accounts;
/// Additional details of an account.
@@ -13,6 +15,12 @@ public record AccountDetails
/// Gets or sets the IBAN of the account.
public string? Iban { get; set; }
+ /// Gets or sets the BIC of the account.
+ public string? Bic { get; set; }
+
+ /// Gets or sets the BBAN of the account.
+ public string? Bban { get; set; }
+
/// Gets or sets a ISO 4217 currency code.
public string Currency { get; set; } = null!;
@@ -20,16 +28,28 @@ public record AccountDetails
/// Gets or sets the name of the legal account owner.
/// If there is more than one owner, then e.g. two names might be noted here.
/// For a corporate account, the corporate name is used for this attribute.
+ [JsonPropertyName("owner_name")]
public string? OwnerName { get; set; }
/// Gets or sets the name of the account, as assigned by the financial institution.
public string? Name { get; set; }
+ /// Gets or sets the name of the account, as assigned by the financial institution.
+ public string? Details { get; set; }
+
+ /// Gets or sets the name of the account, as assigned by the financial institution.
+ public string? DisplayName { get; set; }
+
/// Gets or sets product Name of the Bank for this account, proprietary definition.
public string? Product { get; set; }
/// Gets or sets externalCashAccountType1Code from ISO 20022.
public string? CashAccountType { get; set; }
+
+ /// Gets or sets the processing status of this account.
+ public AccountDetailStatus Status { get; set; }
+
+ public AccountUsage Usage { get; set; }
}
internal class AccountDetailsWrapper
diff --git a/source/VMelnalksnis.NordigenDotNet/Accounts/AccountUsage.cs b/source/VMelnalksnis.NordigenDotNet/Accounts/AccountUsage.cs
new file mode 100644
index 0000000..33875a1
--- /dev/null
+++ b/source/VMelnalksnis.NordigenDotNet/Accounts/AccountUsage.cs
@@ -0,0 +1,14 @@
+// Copyright 2022 Valters Melnalksnis
+// Licensed under the Apache License 2.0.
+// See LICENSE file in the project root for full license information.
+
+using System.Text.Json.Serialization;
+
+namespace VMelnalksnis.NordigenDotNet.Accounts;
+
+/// All possible states of an account.
+public enum AccountUsage
+{
+ PRIV,
+ ORGA
+}