using MediatR; namespace EnvelopeGenerator.Application.Common.Notifications.RemoveSignature; /// /// /// /// /// /// /// public record RemoveSignatureNotification( int? EnvelopeId = null, int? ReceiverId = null, string? EnvelopeUuid = null, string? ReceiverSignature = null ) : INotification { /// /// /// public bool HasFilter => EnvelopeId is not null || ReceiverId is not null || EnvelopeUuid is not null || ReceiverSignature is not null; /// /// /// /// public void ThrowIfHasNoFilter() { if (!HasFilter) throw new InvalidOperationException("At least one filter parameter must be provided."); } }