From a6d6dc8c4dfeceb008f2a37eb5a1542276aba68f Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 6 Mar 2026 14:43:59 +0100 Subject: [PATCH] Add expiration, reminder, and comment fields to EnvelopeDto Expanded EnvelopeDto with new properties for expiration dates, reminder scheduling, notification options, and an optional comment field. These changes provide finer control over envelope lifecycle and metadata. --- .../Common/Dto/EnvelopeDto.cs | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs b/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs index 01c24251..a64b0e09 100644 --- a/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs +++ b/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs @@ -44,6 +44,16 @@ public record EnvelopeDto : IEnvelope [TemplatePlaceholder("[MESSAGE]")] public string Message { get; set; } = string.Empty; + /// + /// + /// + public DateTime? ExpiresWhen { get; set; } + + /// + /// + /// + public DateTime? ExpiresWarningWhen { get; set; } + /// /// /// @@ -60,6 +70,11 @@ public record EnvelopeDto : IEnvelope [TemplatePlaceholder("[DOCUMENT_TITLE]")] public string Title { get; set; } = string.Empty; + /// + /// Default value is string.Empty + /// + public string? Comment { get; set; } + /// /// /// @@ -70,6 +85,21 @@ public record EnvelopeDto : IEnvelope /// public string Language { get; set; } = "de-DE"; + /// + /// + /// + public bool SendReminderEmails { get; set; } + + /// + /// + /// + public int? FirstReminderDays { get; set; } + + /// + /// + /// + public int? ReminderIntervalDays { get; set; } + /// /// /// @@ -90,6 +120,26 @@ public record EnvelopeDto : IEnvelope /// public bool UseAccessCode { get; set; } = true; + /// + /// + /// + public int? FinalEmailToCreator { get; set; } + + /// + /// + /// + public int? FinalEmailToReceivers { get; set; } + + /// + /// + /// + public int? ExpiresWhenDays { get; set; } + + /// + /// + /// + public int? ExpiresWarningWhenDays { get; set; } + /// /// ///