From 97c28f146d87d7e720042a7ffc3e496cb83c914a Mon Sep 17 00:00:00 2001 From: Thomas Anderson Date: Thu, 12 Dec 2024 15:47:05 +0000 Subject: [PATCH] Updated Contact details to be sensitive, so they are redacted --- .../Features/GenerateModels/ClassMaps/Bootstrap.cs | 9 +++++++++ Btms.Types.Ipaffs.V1/ContactDetails.g.cs | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/Btms.Backend.Cli/Features/GenerateModels/ClassMaps/Bootstrap.cs b/Btms.Backend.Cli/Features/GenerateModels/ClassMaps/Bootstrap.cs index b754eba..dc586d7 100644 --- a/Btms.Backend.Cli/Features/GenerateModels/ClassMaps/Bootstrap.cs +++ b/Btms.Backend.Cli/Features/GenerateModels/ClassMaps/Bootstrap.cs @@ -57,6 +57,15 @@ public static void RegisterIpaffsEnumMaps() public static void RegisterIpaffsClassMaps() { + GeneratorClassMap.RegisterClassMap("ContactDetails", + map => + { + map.MapProperty("name").IsSensitive(); + map.MapProperty("telephone").IsSensitive(); + map.MapProperty("email").IsSensitive(); + map.MapProperty("agent").IsSensitive(); + }); + GeneratorClassMap.RegisterClassMap("Decision", map => { diff --git a/Btms.Types.Ipaffs.V1/ContactDetails.g.cs b/Btms.Types.Ipaffs.V1/ContactDetails.g.cs index 67c60e6..61f33bd 100644 --- a/Btms.Types.Ipaffs.V1/ContactDetails.g.cs +++ b/Btms.Types.Ipaffs.V1/ContactDetails.g.cs @@ -10,6 +10,7 @@ using System.Text.Json.Serialization; using System.Dynamic; +using Btms.SensitiveData; namespace Btms.Types.Ipaffs; @@ -25,6 +26,7 @@ public partial class ContactDetails // /// Name of designated contact /// [JsonPropertyName("name")] + [SensitiveData] public string? Name { get; set; } @@ -32,6 +34,7 @@ public partial class ContactDetails // /// Telephone number of designated contact /// [JsonPropertyName("telephone")] + [SensitiveData] public string? Telephone { get; set; } @@ -39,6 +42,7 @@ public partial class ContactDetails // /// Email address of designated contact /// [JsonPropertyName("email")] + [SensitiveData] public string? Email { get; set; } @@ -46,6 +50,7 @@ public partial class ContactDetails // /// Name of agent representing designated contact /// [JsonPropertyName("agent")] + [SensitiveData] public string? Agent { get; set; } }