Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added additional sensitive data fields that should be redacted #22

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion Btms.Backend.Cli/Features/GenerateModels/ClassMaps/Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,23 @@ public static void RegisterIpaffsClassMaps()
map.MapProperty("email").IsSensitive();
map.MapProperty("ukTelephone").IsSensitive();
map.MapProperty("telephone").IsSensitive();
map.MapProperty("countryISOCode").SetName("countryIsoCode");
map.MapProperty("countryISOCode").SetName("countryIsoCode").IsSensitive();
});

GeneratorClassMap.RegisterClassMap("OfficialInspector", map =>
{
map.MapProperty("firstName").IsSensitive();
map.MapProperty("lastName").IsSensitive();
map.MapProperty("email").IsSensitive();
map.MapProperty("phone").IsSensitive();
map.MapProperty("fax").IsSensitive();
});

GeneratorClassMap.RegisterClassMap("NominatedContact", map =>
{
map.MapProperty("name").IsSensitive();
map.MapProperty("email").IsSensitive();
map.MapProperty("telephone").IsSensitive();
});


Expand Down
1 change: 1 addition & 0 deletions Btms.Types.Ipaffs.V1/Address.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public partial class Address //
/// country 2-digits ISO code
/// </summary>
[JsonPropertyName("countryISOCode")]
[Btms.SensitiveData.SensitiveData]
public string? CountryIsoCode { get; set; }


Expand Down
3 changes: 3 additions & 0 deletions Btms.Types.Ipaffs.V1/NominatedContact.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,23 @@ public partial class NominatedContact //
/// Name of nominated contact
/// </summary>
[JsonPropertyName("name")]
[Btms.SensitiveData.SensitiveData]
public string? Name { get; set; }


/// <summary>
/// Email address of nominated contact
/// </summary>
[JsonPropertyName("email")]
[Btms.SensitiveData.SensitiveData]
public string? Email { get; set; }


/// <summary>
/// Telephone number of nominated contact
/// </summary>
[JsonPropertyName("telephone")]
[Btms.SensitiveData.SensitiveData]
public string? Telephone { get; set; }

}
Expand Down
5 changes: 5 additions & 0 deletions Btms.Types.Ipaffs.V1/OfficialInspector.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,39 @@ public partial class OfficialInspector //
/// First name of inspector
/// </summary>
[JsonPropertyName("firstName")]
[Btms.SensitiveData.SensitiveData]
public string? FirstName { get; set; }


/// <summary>
/// Last name of inspector
/// </summary>
[JsonPropertyName("lastName")]
[Btms.SensitiveData.SensitiveData]
public string? LastName { get; set; }


/// <summary>
/// Email of inspector
/// </summary>
[JsonPropertyName("email")]
[Btms.SensitiveData.SensitiveData]
public string? Email { get; set; }


/// <summary>
/// Phone number of inspector
/// </summary>
[JsonPropertyName("phone")]
[Btms.SensitiveData.SensitiveData]
public string? Phone { get; set; }


/// <summary>
/// Fax number of inspector
/// </summary>
[JsonPropertyName("fax")]
[Btms.SensitiveData.SensitiveData]
public string? Fax { get; set; }


Expand Down
Loading