| | | 1 | | using ArturRios.Heimdall.Shared.Security; |
| | | 2 | | using ArturRios.Mediator.Command; |
| | | 3 | | |
| | | 4 | | namespace ArturRios.Heimdall.Command.Input; |
| | | 5 | | |
| | | 6 | | /// <summary> |
| | | 7 | | /// Intent to permanently (hard) delete a person (UC-10). The person is addressed by |
| | | 8 | | /// <see cref="Id" />, bound from the route. Removing the person also permanently removes the |
| | | 9 | | /// applications they own, their password reset and email verification tokens, and their |
| | | 10 | | /// <c>SCOPE_USER</c>/<c>SCOPE_OWNER</c> join rows. <see cref="ActingPersonId" /> is set by the |
| | | 11 | | /// controller from the authenticated caller and is never bound from the request; it exists so the |
| | | 12 | | /// handler can refuse a self-deletion (AF-10c). |
| | | 13 | | /// </summary> |
| | | 14 | | public class HardDeletePersonCommand : BaseCommand, IActorScoped |
| | | 15 | | { |
| | | 16 | | /// <summary>Public identifier of the person to hard-delete (bound from the route).</summary> |
| | 38 | 17 | | public Guid Id { get; set; } |
| | | 18 | | |
| | 36 | 19 | | public Guid ActingPersonId { get; set; } |
| | | 20 | | |
| | 19 | 21 | | public int ActingRole { get; set; } |
| | | 22 | | } |