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.
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.
Introduce a new `DocumentDetailsDto` record to encapsulate shared document metadata and elements without binary payload. Refactor `DocumentDto` to inherit from `DocumentDetailsDto`, eliminating redundant properties and improving code reuse.
Convert `DocumentDto` from a class to a record for immutability. Add a parameterized constructor to `DocumentDto` for initializing binary data alongside metadata. Update `ByteData` to use the `init` accessor.
These changes enhance maintainability, reduce duplication, and enforce immutability by leveraging C# records and inheritance.