From 849a282ec54eb025da327d853134a0f3153f5f6c Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 2 Feb 2026 11:55:17 +0100 Subject: [PATCH] Refactor Role constants; add Receiver class, mark obsolete Refactored the Role class by introducing a nested static Receiver class containing PreAuth and FullyAuth constants. Marked the original Role.PreAuth and Role.FullyAuth as [Obsolete] with guidance to use the new Receiver constants. Added a conditional using directive for System for NETFRAMEWORK compatibility. --- EnvelopeGenerator.Domain/Constants/Role.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.Domain/Constants/Role.cs b/EnvelopeGenerator.Domain/Constants/Role.cs index b0670ff2..bc2ee0c6 100644 --- a/EnvelopeGenerator.Domain/Constants/Role.cs +++ b/EnvelopeGenerator.Domain/Constants/Role.cs @@ -1,8 +1,21 @@ -namespace EnvelopeGenerator.Domain.Constants +#if NETFRAMEWORK +using System; +#endif + +namespace EnvelopeGenerator.Domain.Constants { public static class Role { + [Obsolete("Use Receiver.PreAuth or Receiver.FullyAuth")] public const string PreAuth = "PreAuth"; + + [Obsolete("Use Receiver.PreAuth or Receiver.FullyAuth")] public const string FullyAuth = "FullyAuth"; + + public static class Receiver + { + public const string PreAuth = "PreAuth"; + public const string FullyAuth = "FullyAuth"; + } } } \ No newline at end of file