From fceb266630251051a96d25de3c25f48634403ba0 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 9 Jun 2026 18:22:43 +0200 Subject: [PATCH] Deprecate DocSignedNotification and cleanup annotations Marked `DocSignedNotification` as `[Obsolete]` with a note to use `Signature.Commands.SignCommand` instead. Removed the `PsPdfKitAnnotation` record and its associated `using` directives from `DocSignedNotification.cs`. Added missing `using EnvelopeGenerator.Application.Common.Dto;` to `AnnotationHandler.cs` and `DocStatusHandler.cs` to ensure proper DTO support. --- .../Notifications/DocSigned/DocSignedNotification.cs | 10 +--------- .../DocSigned/Handlers/AnnotationHandler.cs | 1 + .../DocSigned/Handlers/DocStatusHandler.cs | 1 + 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/DocSignedNotification.cs b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/DocSignedNotification.cs index fc9b91eb..6307be3c 100644 --- a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/DocSignedNotification.cs +++ b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/DocSignedNotification.cs @@ -1,23 +1,15 @@ using EnvelopeGenerator.Application.Common.Dto; using EnvelopeGenerator.Application.Common.Dto.EnvelopeReceiver; using EnvelopeGenerator.Application.Common.Extensions; -using EnvelopeGenerator.Application.Common.Notifications.RemoveSignature; using EnvelopeGenerator.Domain.Constants; using MediatR; -using System.Dynamic; namespace EnvelopeGenerator.Application.Common.Notifications.DocSigned; -/// -/// -/// -/// -/// -public record PsPdfKitAnnotation(ExpandoObject Instant, IEnumerable Structured); - /// /// Notification raised when a document is signed by a receiver. /// +[Obsolete("This notification is deprecated. Use Signature.Commands.SignCommand instead.")] public record DocSignedNotification : INotification, ISendMailNotification { /// diff --git a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/AnnotationHandler.cs b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/AnnotationHandler.cs index 3b33cd76..05f91f97 100644 --- a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/AnnotationHandler.cs +++ b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/AnnotationHandler.cs @@ -1,5 +1,6 @@ using DigitalData.Core.Abstraction.Application.Repository; using EnvelopeGenerator.Domain.Entities; +using EnvelopeGenerator.Application.Common.Dto; using MediatR; namespace EnvelopeGenerator.Application.Common.Notifications.DocSigned.Handlers; diff --git a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/DocStatusHandler.cs b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/DocStatusHandler.cs index 4951aef6..0564ec95 100644 --- a/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/DocStatusHandler.cs +++ b/EnvelopeGenerator.Application/Common/Notifications/DocSigned/Handlers/DocStatusHandler.cs @@ -1,4 +1,5 @@ using EnvelopeGenerator.Application.DocStatus.Commands; +using EnvelopeGenerator.Application.Common.Dto; using EnvelopeGenerator.Domain.Constants; using MediatR; using System.Text.Json;