From 59e73dbcf0e054f24ad1b46411a3e663f0b40f0d Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 26 Aug 2025 10:36:46 +0200 Subject: [PATCH] refactor(CreateHistoryCommand): add Envelope and Receiver queries --- .../Commands/CreateHistoryCommand.cs | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/EnvelopeGenerator.Application/Histories/Commands/CreateHistoryCommand.cs b/EnvelopeGenerator.Application/Histories/Commands/CreateHistoryCommand.cs index dd19e05e..045d2fce 100644 --- a/EnvelopeGenerator.Application/Histories/Commands/CreateHistoryCommand.cs +++ b/EnvelopeGenerator.Application/Histories/Commands/CreateHistoryCommand.cs @@ -40,7 +40,57 @@ public record CreateHistoryCommand : IRequest /// /// public string? Comment { get; set; } + + /// + /// + /// + public EnvelopeQuery? Envelope { get; init; } + + /// + /// / + /// + public ReceiverQuery? Receiver { get; init; } +} + +#region Queries +/// +/// Repräsentiert eine Abfrage für Umschläge. +/// +public record EnvelopeQuery +{ + /// + /// Die eindeutige Kennung des Umschlags. + /// + public int? Id { get; init; } + + /// + /// Die universell eindeutige Kennung des Umschlags. + /// + public string? Uuid { get; set; } +} + +/// +/// Stellt eine Abfrage dar, um die Details eines Empfängers zu lesen. +/// um spezifische Informationen über einen Empfänger abzurufen. +/// +public record ReceiverQuery +{ + /// + /// ID des Empfängers + /// + public int? Id { get; init; } + + /// + /// E-Mail Adresse des Empfängers + /// + public string? EmailAddress { get; init; } + + /// + /// Eindeutige Signatur des Empfängers + /// + public string? Signature { get; set; } } +#endregion /// ///