Replaced raw `int` values with the strongly-typed `FinalEmailType` enum for `FinalEmailToCreator` and `FinalEmailToReceivers` across the codebase. Updated DTOs, entities, commands, handlers, Razor components, and test controllers to reflect this change. This improves type safety, code readability, and maintainability. Default values now use `FinalEmailType.No` instead of integer casting. Adjusted database mappings and added necessary imports to support the new enum type.
24 lines
714 B
C#
24 lines
714 B
C#
using EnvelopeGenerator.Domain.Constants;
|
|
|
|
namespace EnvelopeGenerator.Server.Client.Components.Sender;
|
|
|
|
public sealed record CreateEnvelopeWizardResult(
|
|
string Title,
|
|
string Message,
|
|
EnvelopeType? Type,
|
|
string Language,
|
|
bool UseAccessCode,
|
|
bool TFAEnabled,
|
|
FinalEmailType FinalEmailToCreator,
|
|
FinalEmailType FinalEmailToReceivers,
|
|
bool SendReminderEmails,
|
|
int FirstReminderDays,
|
|
int ReminderIntervalDays,
|
|
int ExpiresWhenDays,
|
|
int ExpiresWarningWhenDays,
|
|
IReadOnlyList<CreateEnvelopeWizardReceiver> Receivers,
|
|
byte[]? DocumentBytes,
|
|
string? DocumentFileName);
|
|
|
|
public sealed record CreateEnvelopeWizardReceiver(string FullName, string EmailAddress);
|