| | | 1 | | using System.Text.Json.Serialization; |
| | | 2 | | using ArturRios.Heimdall.Shared.Security; |
| | | 3 | | using ArturRios.Mediator.Command; |
| | | 4 | | |
| | | 5 | | namespace ArturRios.Heimdall.Command.Input; |
| | | 6 | | |
| | | 7 | | /// <summary> |
| | | 8 | | /// Intent to open or close self-registration for a scope (UC-47 toggle, FR-SR-02). Shaped exactly |
| | | 9 | | /// like <see cref="SetGoogleSignInCommand" />, for the same reasons: the scope comes from the route, |
| | | 10 | | /// the actor from the token, and <see cref="Enabled" /> is nullable so a body omitting it is a 400 |
| | | 11 | | /// rather than a silent close. |
| | | 12 | | /// </summary> |
| | | 13 | | public class SetSelfRegistrationCommand : BaseCommand, IActorScoped |
| | | 14 | | { |
| | | 15 | | [JsonIgnore] |
| | 17 | 16 | | public Guid Id { get; set; } |
| | | 17 | | |
| | 18 | 18 | | public bool? Enabled { get; set; } |
| | | 19 | | |
| | | 20 | | [JsonIgnore] |
| | 12 | 21 | | public Guid ActingPersonId { get; set; } |
| | | 22 | | |
| | | 23 | | [JsonIgnore] |
| | 13 | 24 | | public int ActingRole { get; set; } |
| | | 25 | | } |