23 lines
759 B
C#
23 lines
759 B
C#
using IdokladSdk.Enums;
|
|
|
|
namespace Idoklad.Credentials;
|
|
|
|
/// <summary>
|
|
/// Fully resolved set of credentials and request options used to build a <c>DokladApi</c>
|
|
/// instance for a single request.
|
|
/// </summary>
|
|
public sealed record IdokladCredentials
|
|
{
|
|
public required string ClientId { get; init; }
|
|
public required string ClientSecret { get; init; }
|
|
|
|
/// <summary>
|
|
/// Optional iDoklad ApplicationId (GUID from the developer portal). Only needed for partner
|
|
/// applications whose client_credentials grant requires application_id. When empty, the
|
|
/// service authenticates with client_id + client_secret only.
|
|
/// </summary>
|
|
public string? ApplicationId { get; init; }
|
|
|
|
public required Language Language { get; init; }
|
|
}
|