From f17820e0115025ecc222a92379d8be686e1a2a37 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Sat, 12 Apr 2025 00:42:04 +0200 Subject: [PATCH] Add UpdateToDefaultCommand for email template reset Introduces a new namespace `EnvelopeGenerator.Application.EmailTemplates.Commands.UpdateToDefault` and defines the `UpdateToDefaultCommand` record. This command allows resetting an email template to its default values, inheriting from `EmailTemplateQuery`. It includes optional parameters for `Id` and `Type`, with comprehensive XML documentation detailing the command's purpose and the possible email template types. --- .../UpdateToDefault/UpdateToDefaultCommand.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 EnvelopeGenerator.Application/EmailTemplates/Commands/UpdateToDefault/UpdateToDefaultCommand.cs diff --git a/EnvelopeGenerator.Application/EmailTemplates/Commands/UpdateToDefault/UpdateToDefaultCommand.cs b/EnvelopeGenerator.Application/EmailTemplates/Commands/UpdateToDefault/UpdateToDefaultCommand.cs new file mode 100644 index 00000000..ee79caf2 --- /dev/null +++ b/EnvelopeGenerator.Application/EmailTemplates/Commands/UpdateToDefault/UpdateToDefaultCommand.cs @@ -0,0 +1,20 @@ +namespace EnvelopeGenerator.Application.EmailTemplates.Commands.UpdateToDefault; + +/// +/// Ein Befehl zum Zurücksetzen einer E-Mail-Vorlage auf die Standardwerte. +/// Erbt von und ermöglicht die Angabe einer optionalen ID und eines Typs der E-Mail-Vorlage. +/// +/// Die optionale ID der E-Mail-Vorlage, die zurückgesetzt werden soll. +/// Der Typ der E-Mail-Vorlage, z. B. (optional). Beispiele: +/// 0 - DocumentReceived: Benachrichtigung über den Empfang eines Dokuments. +/// 1 - DocumentSigned: Benachrichtigung über die Unterzeichnung eines Dokuments. +/// 2 - DocumentDeleted: Benachrichtigung über das Löschen eines Dokuments. +/// 3 - DocumentCompleted: Benachrichtigung über den Abschluss eines Dokuments. +/// 4 - DocumentAccessCodeReceived: Benachrichtigung über den Erhalt eines Zugangscodes. +/// 5 - DocumentShared: Benachrichtigung über das Teilen eines Dokuments. +/// 6 - TotpSecret: Benachrichtigung über ein TOTP-Geheimnis. +/// 7 - DocumentRejected_ADM (Für den Absender): Mail an den Absender, wenn das Dokument abgelehnt wird. +/// 8 - DocumentRejected_REC (Für den ablehnenden Empfänger): Mail an den ablehnenden Empfänger, wenn das Dokument abgelehnt wird. +/// 9 - DocumentRejected_REC_2 (Für sonstige Empfänger): Mail an andere Empfänger (Brief), wenn das Dokument abgelehnt wird. +/// +public record UpdateToDefaultCommand(int? Id, Common.Constants.EmailTemplateType? Type) : EmailTemplateQuery(Id, Type);