From 7e90d25f0ba26ff17de54cf455e8d3fd87ba2c82 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 25 Aug 2025 10:24:15 +0200 Subject: [PATCH] create CreateDocStatusCommand --- .../Commands/CreateDocStatusCommand.cs | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 EnvelopeGenerator.Application/DocStatus/Commands/CreateDocStatusCommand.cs diff --git a/EnvelopeGenerator.Application/DocStatus/Commands/CreateDocStatusCommand.cs b/EnvelopeGenerator.Application/DocStatus/Commands/CreateDocStatusCommand.cs new file mode 100644 index 00000000..461caffa --- /dev/null +++ b/EnvelopeGenerator.Application/DocStatus/Commands/CreateDocStatusCommand.cs @@ -0,0 +1,39 @@ +using EnvelopeGenerator.Domain; + +namespace EnvelopeGenerator.Application.DocStatus.Commands; + +/// +/// +/// +public class CreateDocStatusCommand +{ + /// + /// Gets or sets the ID of the associated envelope. + /// + public int EnvelopeId { get; set; } + + /// + /// Gets or sets the ID of the receiver associated with this status. + /// + public int ReceiverId { get; set; } + + /// + /// Gets the current status code. + /// + public Constants.DocumentStatus Status => Value is null ? Constants.DocumentStatus.Created : Constants.DocumentStatus.Signed; + + /// + /// Gets the timestamp when the status was changed. Retrns the AddedWhen value. + /// + public DateTime? StatusChangedWhen => AddedWhen; + + /// + /// Gets timestamp when this record was added. Returns the current date and time. + /// + public DateTime AddedWhen { get; } = DateTime.Now; + + /// + /// Gets or sets the display value associated with the status. + /// + public string? Value { get; set; } +} \ No newline at end of file