diff --git a/EnvelopeGenerator.Application/Common/Interfaces/Services/Notification/DocumentSignedNotification.cs b/EnvelopeGenerator.Application/Common/Interfaces/Services/Notification/DocumentSignedNotification.cs index 90784253..84818236 100644 --- a/EnvelopeGenerator.Application/Common/Interfaces/Services/Notification/DocumentSignedNotification.cs +++ b/EnvelopeGenerator.Application/Common/Interfaces/Services/Notification/DocumentSignedNotification.cs @@ -21,7 +21,27 @@ public record DocumentSignedNotification : EnvelopeNotificationBase /// /// public string NamePortal { get; init; } = "signFLOW Portal"; - + + /// + /// + /// + public required bool IsReadAndConfirm { private get; init; } + + /// + /// + /// + public string ReceiverAction => IsReadAndConfirm ? "bestätigt" : "unterschrieben"; + + /// + /// + /// + public string FinalStatus => IsReadAndConfirm ? "Lesebestätigung" : "Signatur"; + + /// + /// + /// + public string FinalAction => IsReadAndConfirm ? "Empfänger bestätigt" : "Vertragspartner unterzeichnet"; + /// /// /// diff --git a/EnvelopeGenerator.Application/PdfSigning/FinalizeEnvelopeCommand.cs b/EnvelopeGenerator.Application/PdfSigning/FinalizeEnvelopeCommand.cs index 737320a8..3a649478 100644 --- a/EnvelopeGenerator.Application/PdfSigning/FinalizeEnvelopeCommand.cs +++ b/EnvelopeGenerator.Application/PdfSigning/FinalizeEnvelopeCommand.cs @@ -98,7 +98,8 @@ public class FinalizeEnvelopeCommandHandler(IRepository Repo, ISender { DocumentTitle = envelope.Title, NameReceiver = er.Name, - Attachments = [($"unterzeichnetes-dokument.pdf", doc)] + Attachments = [($"unterzeichnetes-dokument.pdf", doc)], + IsReadAndConfirm = envelope.IsReadAndConfirm(), }, cancel); }