add new props
This commit is contained in:
@@ -24,6 +24,12 @@ public record Account
|
||||
[JsonPropertyName("last_accessed")]
|
||||
public DateTimeOffset LastAccessed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.</summary>
|
||||
public string? OwnerName { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the account IBAN.</summary>
|
||||
public string Iban { get; set; } = null!;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
/// <summary>All possible states of an account.</summary>
|
||||
public enum AccountDetailStatus
|
||||
{
|
||||
Enabled,
|
||||
Deleted,
|
||||
Blocked
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
/// <summary>Additional details of an account.</summary>
|
||||
@@ -13,6 +15,12 @@ public record AccountDetails
|
||||
/// <summary>Gets or sets the IBAN of the account.</summary>
|
||||
public string? Iban { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the BIC of the account.</summary>
|
||||
public string? Bic { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the BBAN of the account.</summary>
|
||||
public string? Bban { get; set; }
|
||||
|
||||
/// <summary>Gets or sets a ISO 4217 currency code.</summary>
|
||||
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.</summary>
|
||||
[JsonPropertyName("owner_name")]
|
||||
public string? OwnerName { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the name of the account, as assigned by the financial institution.</summary>
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the name of the account, as assigned by the financial institution.</summary>
|
||||
public string? Details { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the name of the account, as assigned by the financial institution.</summary>
|
||||
public string? DisplayName { get; set; }
|
||||
|
||||
/// <summary>Gets or sets product Name of the Bank for this account, proprietary definition.</summary>
|
||||
public string? Product { get; set; }
|
||||
|
||||
/// <summary>Gets or sets externalCashAccountType1Code from ISO 20022.</summary>
|
||||
public string? CashAccountType { get; set; }
|
||||
|
||||
/// <summary>Gets or sets the processing status of this account.</summary>
|
||||
public AccountDetailStatus Status { get; set; }
|
||||
|
||||
public AccountUsage Usage { get; set; }
|
||||
}
|
||||
|
||||
internal class AccountDetailsWrapper
|
||||
|
||||
@@ -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;
|
||||
|
||||
/// <summary>All possible states of an account.</summary>
|
||||
public enum AccountUsage
|
||||
{
|
||||
PRIV,
|
||||
ORGA
|
||||
}
|
||||
Reference in New Issue
Block a user