24 lines
1.2 KiB
C#
24 lines
1.2 KiB
C#
using DigitalData.Core.Contracts.Application;
|
|
using DigitalData.Core.DTO;
|
|
using EnvelopeGenerator.Application.DTOs.EnvelopeHistory;
|
|
using EnvelopeGenerator.Domain.Entities;
|
|
using EnvelopeGenerator.Infrastructure.Contracts;
|
|
using static EnvelopeGenerator.Common.Constants;
|
|
|
|
namespace EnvelopeGenerator.Application.Contracts
|
|
{
|
|
public interface IEnvelopeHistoryService : ICRUDService<IEnvelopeHistoryRepository, EnvelopeHistoryCreateDto, EnvelopeHistoryDto, EnvelopeHistoryDto, EnvelopeHistory, long>
|
|
{
|
|
Task<int> CountAsync(int? envelopeId = null, string? userReference = null, int? status = null);
|
|
|
|
Task<bool> AccessCodeAlreadyRequested(int envelopeId, string userReference);
|
|
|
|
Task<bool> IsSigned(int envelopeId, string userReference);
|
|
|
|
Task<IEnumerable<EnvelopeHistoryDto>> ReadAsync(int? envelopeId = null, string? userReference = null, ReferenceType? referenceType = null, int? status = null);
|
|
|
|
Task<IEnumerable<EnvelopeHistoryDto>> ReadRejectedAsync(int envelopeId, string? userReference = null);
|
|
|
|
Task<DataResult<long>> RecordAsync(int envelopeId, string userReference, EnvelopeStatus status, string? comment = null);
|
|
}
|
|
} |