feat(Receiver): EnvelopeReceiver-Eigenschaft zu Entität, ReadDto und Updated Dto hinzugefügt.
This commit is contained in:
parent
311009bc97
commit
ee49538f1e
@ -4,8 +4,8 @@ using DigitalData.EmailProfilerDispatcher.Abstraction.Attributes;
|
|||||||
using EnvelopeGenerator.Application.DTOs.EnvelopeReceiver;
|
using EnvelopeGenerator.Application.DTOs.EnvelopeReceiver;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace EnvelopeGenerator.Application.DTOs.Receiver
|
namespace EnvelopeGenerator.Application.DTOs.Receiver;
|
||||||
{
|
|
||||||
public record ReceiverReadDto(
|
public record ReceiverReadDto(
|
||||||
int Id,
|
int Id,
|
||||||
string EmailAddress,
|
string EmailAddress,
|
||||||
@ -22,5 +22,6 @@ namespace EnvelopeGenerator.Application.DTOs.Receiver
|
|||||||
|
|
||||||
[TemplatePlaceholder("[TFA_QR_EXPIRATION]")]
|
[TemplatePlaceholder("[TFA_QR_EXPIRATION]")]
|
||||||
public DateTime? TotpExpiration { get; set; } = null;
|
public DateTime? TotpExpiration { get; set; } = null;
|
||||||
|
|
||||||
|
public DateTime? TfaRegDeadline { get; set; }
|
||||||
};
|
};
|
||||||
}
|
|
||||||
@ -1,6 +1,5 @@
|
|||||||
using DigitalData.Core.Abstractions;
|
using DigitalData.Core.Abstractions;
|
||||||
|
|
||||||
namespace EnvelopeGenerator.Application.DTOs.Receiver
|
namespace EnvelopeGenerator.Application.DTOs.Receiver;
|
||||||
{
|
|
||||||
public record ReceiverUpdateDto(int Id, string? TotpSecretkey = null, DateTime? TotpExpiration = null) : IUnique<int>;
|
public record ReceiverUpdateDto(int Id, string? TotpSecretkey = null, DateTime? TotpExpiration = null, DateTime? TfaRegDeadline = null) : IUnique<int>;
|
||||||
}
|
|
||||||
@ -2,8 +2,8 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace EnvelopeGenerator.Domain.Entities
|
namespace EnvelopeGenerator.Domain.Entities;
|
||||||
{
|
|
||||||
[Table("TBSIG_RECEIVER", Schema = "dbo")]
|
[Table("TBSIG_RECEIVER", Schema = "dbo")]
|
||||||
public class Receiver : IUnique<int>
|
public class Receiver : IUnique<int>
|
||||||
{
|
{
|
||||||
@ -30,6 +30,8 @@ namespace EnvelopeGenerator.Domain.Entities
|
|||||||
[Column("TOTP_EXPIRATION", TypeName = "datetime")]
|
[Column("TOTP_EXPIRATION", TypeName = "datetime")]
|
||||||
public DateTime? TotpExpiration { get; set; }
|
public DateTime? TotpExpiration { get; set; }
|
||||||
|
|
||||||
|
[Column("TFA_REG_DEADLINE", TypeName = "datetime")]
|
||||||
|
public DateTime? TfaRegDeadline { get; set; }
|
||||||
|
|
||||||
public IEnumerable<EnvelopeReceiver>? EnvelopeReceivers { get; init; }
|
public IEnumerable<EnvelopeReceiver>? EnvelopeReceivers { get; init; }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user