-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2385e8d
commit 1166fd9
Showing
3 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using Dolittle.SDK.Events; | ||
using Dolittle.SDK.Events.Redaction; | ||
|
||
namespace Customers; | ||
|
||
[EventType("849494db-3173-4259-a4f7-e409ae1785dc")] | ||
public class CustomerDetailsForgotten : PersonalDataRedactedForEvent<CustomerRegistered> | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
#nullable enable | ||
using Dolittle.SDK.Events; | ||
using Dolittle.SDK.Events.Redaction; | ||
|
||
namespace Customers; | ||
|
||
[EventType("24e3a119-57d5-45d7-b7ef-a736fe6331e7")] | ||
public class CustomerRegistered | ||
{ | ||
public string Name { get; init; } | ||
|
||
// These will be replaced with the given value | ||
[RedactablePersonalData<string>("<email redacted>")] | ||
public string Email { get; init; } | ||
|
||
[RedactablePersonalData<string>("<phone redacted>")] | ||
public string PhoneNumber { get; init; } | ||
|
||
// If the type is not specified, the property will be removed. | ||
[RedactablePersonalData] | ||
public Address? CustomerAddress { get; init; } | ||
|
||
} | ||
|
||
public class Address | ||
{ | ||
public string Street { get; init; } | ||
public string City { get; init; } | ||
public string ZipCode { get; init; } | ||
} |