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.
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using EnvelopeGenerator.Domain.Constants;
|
|
|
|
namespace EnvelopeGenerator.Application.Common.Interfaces.Services.Notification;
|
|
|
|
/// <summary>
|
|
/// Payload for <see cref="EmailTemplateType.DocumentRejected_REC"/> template.
|
|
/// </summary>
|
|
public record DocumentRejectedRecNotification : EnvelopeNotificationBase
|
|
{
|
|
/// <summary>
|
|
/// Replaces <c>[DOCUMENT_TITLE]</c> in mail subject/body.
|
|
/// </summary>
|
|
public required string DocumentTitle { get; init; }
|
|
|
|
/// <summary>
|
|
/// Replaces <c>[NAME_RECEIVER]</c> in mail body.
|
|
/// </summary>
|
|
public required string NameReceiver { get; init; }
|
|
|
|
/// <summary>
|
|
/// Replaces <c>[NAME_SENDER]</c> in mail body.
|
|
/// </summary>
|
|
public required string NameSender { 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.DocumentRejected_REC;
|
|
}
|