Files
EnvelopeGenerator/EnvelopeGenerator.Application/Common/Dto/DocumentDetailsDto.cs
TekH 4b3358828f Remove IDocument interface and related dependencies
Decoupled `Document` and `DocumentDetailsDto` from the `IDocument`
interface by removing its implementation. Eliminated the `ElementsBase`
property from both classes as it was tied to the interface.

Simplified the `FinalizeEnvelopeCommandHandler` constructor by
removing the unused `HistoryRepo` parameter.

Deleted the `IDocument` interface and its extension methods, including
`IsSigned`, to reduce unnecessary abstractions and improve code
maintainability.
2026-11-26 18:03:31 +01:00

30 lines
905 B
C#

using EnvelopeGenerator.Domain.Interfaces;
namespace EnvelopeGenerator.Application.Common.Dto;
/// <summary>
/// Data Transfer Object representing document metadata and elements without binary payload.
/// </summary>
public record DocumentDetailsDto
{
/// <summary>
/// Gets or sets the unique identifier of the document.
/// </summary>
public int Id { get; init; }
/// <summary>
/// Gets or sets the envelope ID to which the document belongs.
/// </summary>
public int EnvelopeId { get; init; }
/// <summary>
/// Gets or sets the date and time when the document was added.
/// </summary>
public DateTime AddedWhen { get; init; }
/// <summary>
/// Gets or sets the collection of elements associated with the document for receiver interactions, if any.
/// </summary>
public IEnumerable<DocReceiverElementDto>? Elements { get; init; }
}