Updated documentation to include details on the `TBSIG_EMAIL_TEMPLATE` table, its structure, and runtime behavior. Enhanced code by introducing the `IDocument` interface and adding properties/methods to support email templates and document signing workflows. Replaced `int` with the `EnvelopeStatus` enum for improved type safety. Removed unused `Signed` property from `EnvelopeReceiverDto`. Added extension methods for `IDocument` and `IDocReceiverElement` to verify signing status. Updated deployment and troubleshooting guides to highlight email template requirements.
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
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 : IDocument
|
|
{
|
|
/// <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; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public IEnumerable<IDocReceiverElement>? ElementsBase => Elements;
|
|
}
|