feat(notification): add typed payloads for non-link email templates

Add strongly typed notification records for remaining email templates that do not require document URL composition.

Each record maps template placeholders to explicit properties and returns the matching EmailTemplateType.

Also includes XML documentation so placeholder-to-property mapping is self-describing.
This commit is contained in:
2026-11-16 09:16:22 +01:00
parent 9c2de46253
commit 55140846ba
7 changed files with 239 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using EnvelopeGenerator.Domain.Constants;
namespace EnvelopeGenerator.Application.Common.Interfaces.Services.Notification;
/// <summary>
/// Payload for <see cref="EmailTemplateType.TotpSecret"/> template.
/// </summary>
public record TotpSecretNotification : EnvelopeNotificationBase
{
/// <summary>
/// Replaces <c>[TFA_EXPIRATION]</c> in mail body.
/// </summary>
public required string TfaExpiration { get; init; }
/// <summary>
/// Replaces <c>[TFA_QR_CODE]</c> in mail body.
/// </summary>
public required string TfaQrCode { get; init; }
/// <summary>
/// Replaces <c>[NAME_PORTAL]</c> in mail body.
/// </summary>
public string NamePortal { get; init; } = "signFLOW Portal";
/// <inheritdoc />
public override EmailTemplateType GetTemplateType() => EmailTemplateType.TotpSecret;
}