Files
NordigenDotNet/source/VMelnalksnis.NordigenDotNet/NordigenOptions.cs
T
Valters Melnalksnis 5a458e0c53 feat: Add endpoints
2022-06-14 20:13:08 +03:00

28 lines
889 B
C#

// 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.ComponentModel.DataAnnotations;
namespace VMelnalksnis.NordigenDotNet;
/// <summary>Options for configuring <see cref="INordigenClient"/>.</summary>
public sealed record NordigenOptions
{
/// <summary>The name of the configuration section.</summary>
public const string SectionName = "Nordigen";
/// <summary>Gets the base address of the Nordigen API.</summary>
[Required]
public Uri BaseAddress { get; init; } = null!;
/// <summary>Gets the secret ID used to create new access tokens.</summary>
[Required]
public string SecretId { get; init; } = null!;
/// <summary>Gets the secret key used to create new access tokens.</summary>
[Required]
public string SecretKey { get; init; } = null!;
}