Renamed `SignatureDto` to `DocReceiverElementDto` across the codebase to better reflect its purpose as a DTO for document receiver elements. Updated all references, including: - `SignatureController.cs`: Changed `doc.Elements` type to `IEnumerable<DocReceiverElementDto>`. - `DocumentDto.cs`: Updated `Elements` property type. - `MappingProfile.cs`: Adjusted mappings for the renamed DTO. - `IDocumentReceiverElementService.cs` and `DocumentReceiverElementService.cs`: Updated interfaces and services to use the new DTO. - `TestDocumentReceiverElementController.cs`: Updated generic type parameters. These changes improve clarity, align naming with the domain model, and ensure consistency throughout the application.
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace EnvelopeGenerator.Application.Common.Dto;
|
|
|
|
/// <summary>
|
|
/// Data Transfer Object representing a document within an envelope, including optional binary data and form elements.
|
|
/// </summary>
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
public class DocumentDto
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the unique identifier of the document.
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the envelope ID to which the document belongs.
|
|
/// </summary>
|
|
public int EnvelopeId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the date and time when the document was added.
|
|
/// </summary>
|
|
public DateTime AddedWhen { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the binary data of the document, if available.
|
|
/// </summary>
|
|
public byte[]? ByteData { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the collection of elements associated with the document for receiver interactions, if any.
|
|
/// </summary>
|
|
public IEnumerable<DocReceiverElementDto>? Elements { get; set; }
|
|
} |