-
Notifications
You must be signed in to change notification settings - Fork 1
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
2a7bcf9
commit 16dc240
Showing
12 changed files
with
151 additions
and
170 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
src/Altinn.Profile.Integrations/Entities/IContactInfoLookupResult.cs
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
src/Altinn.Profile.Integrations/Entities/IPersonContactDetails.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,34 @@ | ||
#nullable enable | ||
|
||
namespace Altinn.Profile.Integrations.Entities; | ||
|
||
/// <summary> | ||
/// Represents a person's contact details. | ||
/// </summary> | ||
public interface IPersonContactDetails | ||
{ | ||
/// <summary> | ||
/// Gets the national identity number of the person. | ||
/// </summary> | ||
string NationalIdentityNumber { get; } | ||
|
||
/// <summary> | ||
/// Gets a value indicating whether the person opts out of being contacted. | ||
/// </summary> | ||
bool? IsReserved { get; } | ||
|
||
/// <summary> | ||
/// Gets the mobile phone number of the person. | ||
/// </summary> | ||
string? MobilePhoneNumber { get; } | ||
|
||
/// <summary> | ||
/// Gets the email address of the person. | ||
/// </summary> | ||
string? EmailAddress { get; } | ||
|
||
/// <summary> | ||
/// Gets the language code of the person, represented as an ISO 639-1 code. | ||
/// </summary> | ||
string? LanguageCode { get; } | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Altinn.Profile.Integrations/Entities/IPersonContactDetailsLookupResult.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,27 @@ | ||
#nullable enable | ||
|
||
using System.Collections.Immutable; | ||
|
||
namespace Altinn.Profile.Integrations.Entities; | ||
|
||
/// <summary> | ||
/// Represents the result of a lookup operation for contact details. | ||
/// </summary> | ||
public interface IPersonContactDetailsLookupResult | ||
{ | ||
/// <summary> | ||
/// Gets a list of national identity numbers that could not be matched with any person contact details. | ||
/// </summary> | ||
/// <value> | ||
/// An <see cref="ImmutableList{T}"/> of <see cref="string"/> containing the unmatched national identity numbers. | ||
/// </value> | ||
ImmutableList<string>? UnmatchedNationalIdentityNumbers { get; } | ||
|
||
/// <summary> | ||
/// Gets a list of person contact details that were successfully matched during the lookup. | ||
/// </summary> | ||
/// <value> | ||
/// An <see cref="ImmutableList{T}"/> of <see cref="IPersonContactDetails"/> containing the matched person contact details. | ||
/// </value> | ||
ImmutableList<IPersonContactDetails>? MatchedPersonContactDetails { get; } | ||
} |
49 changes: 0 additions & 49 deletions
49
src/Altinn.Profile.Integrations/Entities/IUserContactInfo.cs
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
src/Altinn.Profile.Integrations/Entities/PersonContactDetails.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,34 @@ | ||
#nullable enable | ||
|
||
namespace Altinn.Profile.Integrations.Entities; | ||
|
||
/// <summary> | ||
/// Represents a person's contact details. | ||
/// </summary> | ||
public record PersonContactDetails : IPersonContactDetails | ||
{ | ||
/// <summary> | ||
/// Gets the national identity number of the person. | ||
/// </summary> | ||
public required string NationalIdentityNumber { get; init; } | ||
|
||
/// <summary> | ||
/// Gets a value indicating whether the person opts out of being contacted. | ||
/// </summary> | ||
public bool? IsReserved { get; init; } | ||
|
||
/// <summary> | ||
/// Gets the mobile phone number of the person. | ||
/// </summary> | ||
public string? MobilePhoneNumber { get; init; } | ||
|
||
/// <summary> | ||
/// Gets the email address of the person. | ||
/// </summary> | ||
public string? EmailAddress { get; init; } | ||
|
||
/// <summary> | ||
/// Gets the language code of the person, represented as an ISO 639-1 code. | ||
/// </summary> | ||
public string? LanguageCode { get; init; } | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Altinn.Profile.Integrations/Entities/PersonContactDetailsLookupResult.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,27 @@ | ||
#nullable enable | ||
|
||
using System.Collections.Immutable; | ||
|
||
namespace Altinn.Profile.Integrations.Entities; | ||
|
||
/// <summary> | ||
/// Represents the result of a lookup operation for contact details. | ||
/// </summary> | ||
public record PersonContactDetailsLookupResult : IPersonContactDetailsLookupResult | ||
{ | ||
/// <summary> | ||
/// Gets a list of national identity numbers that could not be matched with any person contact details. | ||
/// </summary> | ||
/// <value> | ||
/// An <see cref="ImmutableList{T}"/> of <see cref="string"/> containing the unmatched national identity numbers. | ||
/// </value> | ||
public ImmutableList<string>? UnmatchedNationalIdentityNumbers { get; init; } | ||
|
||
/// <summary> | ||
/// Gets a list of person contact details that were successfully matched during the lookup. | ||
/// </summary> | ||
/// <value> | ||
/// An <see cref="ImmutableList{T}"/> of <see cref="IPersonContactDetails"/> containing the matched person contact details. | ||
/// </value> | ||
public ImmutableList<IPersonContactDetails>? MatchedPersonContactDetails { get; init; } | ||
} |
49 changes: 0 additions & 49 deletions
49
src/Altinn.Profile.Integrations/Entities/UserContactInfo.cs
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/Altinn.Profile.Integrations/Entities/UserContactInfoLookupResult.cs
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.