Updated the `EnvelopeDto` class by removing several properties to simplify the data structure and added `AddedWhen`, `ChangedWhen`, and a nullable `EnvelopeType`. Modified the return statement in `EnvelopeController.cs` to return `NotFound()` when no envelopes are present, enhancing the accuracy of HTTP responses.
56 lines
1.4 KiB
C#
56 lines
1.4 KiB
C#
using DigitalData.Core.Abstractions;
|
|
using DigitalData.EmailProfilerDispatcher.Abstraction.Attributes;
|
|
using DigitalData.UserManager.Application.DTOs.User;
|
|
using EnvelopeGenerator.Domain.Entities;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace EnvelopeGenerator.Application.DTOs
|
|
{
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
public record EnvelopeDto() : IUnique<int>
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public int UserId { get; set; }
|
|
|
|
public int Status { get; set; }
|
|
|
|
public string StatusName { get; set; }
|
|
|
|
public string Uuid { get; set; }
|
|
|
|
[TemplatePlaceholder("[MESSAGE]")]
|
|
public string Message { get; set; }
|
|
|
|
public DateTime AddedWhen { get; set; }
|
|
|
|
public DateTime? ChangedWhen { get; set; }
|
|
|
|
[TemplatePlaceholder("[DOCUMENT_TITLE]")]
|
|
public string Title { get; set; }
|
|
|
|
public int? ContractType { get; set; }
|
|
|
|
public string Language { get; set; }
|
|
|
|
public int? EnvelopeTypeId { get; set; }
|
|
|
|
public int? CertificationType { get; set; }
|
|
|
|
public bool? UseAccessCode { get; set; }
|
|
|
|
public bool TFAEnabled { get; init; }
|
|
|
|
public UserReadDto? User { get; set; }
|
|
|
|
public EnvelopeType? EnvelopeType { get; set; }
|
|
|
|
public string? EnvelopeTypeTitle { get; set; }
|
|
|
|
public bool IsAlreadySent { get; set; }
|
|
|
|
public byte[]? DocResult { get; init; }
|
|
|
|
public IEnumerable<EnvelopeDocumentDto>? Documents { get; set; }
|
|
}
|
|
} |