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,8 +40,58 @@ 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 + /// /// ///