using EnvelopeGenerator.Domain.Constants;
namespace EnvelopeGenerator.Application.Common.Interfaces.Services.Notification;
///
/// Payload for template.
///
public record DocumentAccessCodeReceivedNotification : EnvelopeNotificationBase
{
///
/// Replaces [DOCUMENT_TITLE] in mail subject/body.
///
public required string DocumentTitle { get; init; }
///
/// Replaces [NAME_RECEIVER] in mail body.
///
public required string NameReceiver { get; init; }
///
/// Replaces [NAME_SENDER] in mail body.
///
public required string NameSender { get; init; }
///
/// Determines [SIGNATURE_TYPE] text in mail body.
///
public required bool IsReadAndConfirm { private get; init; }
///
/// Replaces [SIGNATURE_TYPE] in mail body.
///
public string SignatureType => IsReadAndConfirm ? "Signieren" : "Lesen und bestätigen";
///
/// Replaces [DOCUMENT_ACCESS_CODE] in mail body.
///
public required string DocumentAccessCode { get; init; }
///
/// Replaces [NAME_PORTAL] in mail body.
///
public string NamePortal { get; init; } = "signFLOW Portal";
///
public override EmailTemplateType GetTemplateType() => EmailTemplateType.DocumentAccessCodeReceived;
}