Add IsReadAndConfirm to DocumentSignedNotification and derive the action, status, and final action labels from it so read-only envelopes do not report a signature. Pass the envelope read-and-confirm mode when finalizing so the signed email matches the receiver workflow.
59 lines
1.5 KiB
C#
59 lines
1.5 KiB
C#
using EnvelopeGenerator.Domain.Constants;
|
|
|
|
namespace EnvelopeGenerator.Application.Common.Interfaces.Services.Notification;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public record DocumentSignedNotification : EnvelopeNotificationBase
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public required string DocumentTitle { get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public required string NameReceiver { get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string NamePortal { get; init; } = "signFLOW Portal";
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public required bool IsReadAndConfirm { private get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string ReceiverAction => IsReadAndConfirm ? "bestätigt" : "unterschrieben";
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string FinalStatus => IsReadAndConfirm ? "Lesebestätigung" : "Signatur";
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string FinalAction => IsReadAndConfirm ? "Empfänger bestätigt" : "Vertragspartner unterzeichnet";
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override EmailTemplateType GetTemplateType() => EmailTemplateType.DocumentSigned;
|
|
}
|
|
|
|
/*
|
|
|
|
Umschlag abgeschlossen: '[DOCUMENT_TITLE]'
|
|
|
|
---
|
|
|
|
Guten Tag [NAME_RECEIVER],<br /> <br /> Der Vorgang <B><I>'[DOCUMENT_TITLE]'</I></B> wurde erfolgreich abgeschlossen.<br /> <br /> Sie erhalten das Dokument mit einem detaillierten Ergebnisbericht als Anhang zu dieser Email.<br /> <br /> Mit freundlichen Grüßen<br /> <br /> [NAME_PORTAL]
|
|
|
|
*/ |