-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
11 changed files
with
85 additions
and
39 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
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
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
25 changes: 25 additions & 0 deletions
25
...ingRecordSystem/src/TeachingRecordSystem.Api/V3/V20240606/Responses/FindPersonResponse.cs
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,25 @@ | ||
using TeachingRecordSystem.Api.V3.Core.Operations; | ||
using TeachingRecordSystem.Api.V3.V20240101.ApiModels; | ||
using TeachingRecordSystem.Api.V3.V20240606.Requests; | ||
|
||
namespace TeachingRecordSystem.Api.V3.V20240606.Responses; | ||
|
||
[AutoMap(typeof(FindPersonByLastNameAndDateOfBirthResult))] | ||
public record FindPersonResponse | ||
{ | ||
public required int Total { get; init; } | ||
public required FindPersonRequest Query { get; init; } | ||
public required IReadOnlyCollection<FindPersonResponseResult> Results { get; init; } | ||
} | ||
|
||
[AutoMap(typeof(FindPersonByLastNameAndDateOfBirthResultItem))] | ||
public record FindPersonResponseResult | ||
{ | ||
public required string Trn { get; init; } | ||
public required DateOnly DateOfBirth { get; init; } | ||
public required string FirstName { get; init; } | ||
public required string MiddleName { get; init; } | ||
public required string LastName { get; init; } | ||
public required IReadOnlyCollection<SanctionInfo> Sanctions { get; init; } | ||
public required IReadOnlyCollection<NameInfo> PreviousNames { get; init; } | ||
} |
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
12 changes: 12 additions & 0 deletions
12
TeachingRecordSystem/src/TeachingRecordSystem.Api/V3/VNext/Requests/FindPersonsRequest.cs
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,12 @@ | ||
namespace TeachingRecordSystem.Api.V3.VNext.Requests; | ||
|
||
public record FindPersonsRequest | ||
{ | ||
public required IReadOnlyCollection<FindPersonsRequestPerson> Persons { get; init; } | ||
} | ||
|
||
public record FindPersonsRequestPerson | ||
{ | ||
public required string Trn { get; init; } | ||
public required DateOnly DateOfBirth { get; init; } | ||
} |
7 changes: 1 addition & 6 deletions
7
...20240606/Responses/FindPersonsResponse.cs → ...V3/VNext/Responses/FindPersonsResponse.cs
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