Refactor envelope type handling and validation logic

- Change ContractType property to use Constants.ContractType enum for improved type safety.
- Move EnvelopeType selection to a shared module-level variable for consistent access.
- Allow user selection of contract type when creating envelopes.
- Refine envelope validation to check for required elements per receiver, with improved error messages.
This commit is contained in:
OlgunR
2026-02-19 13:37:58 +01:00
parent 341713d4cb
commit ae33254743
4 changed files with 20 additions and 15 deletions

View File

@@ -56,7 +56,7 @@ namespace EnvelopeGenerator.Domain.Entities
public int ReminderIntervalDays { get; set; } = 0;
[Column("CONTRACT_TYPE")]
public int ContractType { get; set; }
public Constants.ContractType ContractType { get; set; }
[NotMapped]
public bool TFA_Enabled { get; set; } = false;