| | | 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 create a brand-new <c>ScopeAdmin</c> person directly as a co-owner of a scope |
| | | 9 | | /// (UC-06 path c, FR-SC-12). <see cref="ScopeId" /> comes from the route; |
| | | 10 | | /// <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the |
| | | 11 | | /// authenticated caller (for the AF-06e ownership check) and are never bound from the body. They |
| | | 12 | | /// are <c>[JsonIgnore]</c>, so they are not deserialized from the body and do not appear in the |
| | | 13 | | /// request schema. |
| | | 14 | | /// </summary> |
| | | 15 | | public class CreateScopeOwnerCommand : BaseCommand, IActorScoped |
| | | 16 | | { |
| | | 17 | | [JsonIgnore] |
| | 21 | 18 | | public Guid ScopeId { get; set; } |
| | | 19 | | |
| | 49 | 20 | | public string Name { get; set; } = string.Empty; |
| | | 21 | | |
| | 59 | 22 | | public string Email { get; set; } = string.Empty; |
| | | 23 | | |
| | 49 | 24 | | public string Password { get; set; } = string.Empty; |
| | | 25 | | |
| | | 26 | | [JsonIgnore] |
| | 20 | 27 | | public Guid ActingPersonId { get; set; } |
| | | 28 | | |
| | | 29 | | [JsonIgnore] |
| | 20 | 30 | | public int ActingRole { get; set; } |
| | | 31 | | } |