-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from data-altinn-no/feat/dantest-texttemplates
feat: add service context text templates to dantest
- Loading branch information
Showing
2 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
Dan.Core/ServiceContextTexts/DanTestServiceContextTextTemplate.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,78 @@ | ||
using Dan.Common; | ||
using Dan.Common.Interfaces; | ||
using Dan.Common.Models; | ||
|
||
namespace Dan.Core.ServiceContextTexts; | ||
|
||
/// <summary> | ||
/// All texts pertaining to the DAN-test service context | ||
/// </summary> | ||
public class DanTestServiceContextTextTemplate : IServiceContextTextTemplate<LocalizedString> | ||
{ | ||
public LocalizedString ConsentDelegationContexts => new() | ||
{ | ||
En = $"In relation to a data.altinn.no test process {TextMacros.RequestorName} wants to get consent from you.", | ||
NoNn = $"I forbindelse med en testprosess i data.altinn.no, ønskjer {TextMacros.RequestorName} å få samtykkje frå deg.", | ||
NoNb = $"I forbindelse med en testprosess i data.altinn.no, ønsker {TextMacros.RequestorName} å få samtykke fra deg." | ||
}; | ||
|
||
public LocalizedString CorrespondenceBody => new() | ||
{ | ||
NoNb = $"For at {TextMacros.RequestorName} skal kunne gjennomføre testprosessen må det utstedes fullmakt for {TextMacros.SubjectName}." | ||
}; | ||
|
||
public LocalizedString CorrespondenceSender => new() | ||
{ | ||
NoNb = "DAN-test" | ||
}; | ||
|
||
public LocalizedString CorrespondenceSummary => new() | ||
{ | ||
NoNb = $"{TextMacros.RequestorName} har sendt en forespørsel om fullmakt for en testprosess." | ||
}; | ||
|
||
public LocalizedString CorrespondenceTitle => new() | ||
{ | ||
NoNb = $"{TextMacros.RequestorName} trenger fullmakt {TextMacros.ConsentReference}" | ||
}; | ||
|
||
public LocalizedString EmailNotificationContent => new() | ||
{ | ||
NoNb = $"Forespørselen gjelder testprosessen knyttet til {TextMacros.ConsentReference}." | ||
}; | ||
|
||
public LocalizedString EmailNotificationSubject => new() | ||
{ | ||
NoNb = $"{TextMacros.SubjectName} har mottatt en ny forespørsel om fullmakt fra {TextMacros.RequestorName} i Altinn" | ||
}; | ||
|
||
|
||
public LocalizedString SMSNotificationContent => new() | ||
{ | ||
NoNb = $"{TextMacros.SubjectName} har mottatt en ny forespørsel om fullmakt fra {TextMacros.RequestorName} i Altinn" | ||
}; | ||
|
||
|
||
public LocalizedString ConsentButtonText => new() | ||
{ | ||
NoNb = "Behandle forespørsel om fullmakt" | ||
}; | ||
|
||
|
||
public LocalizedString ConsentGivenReceiptText => new() | ||
{ | ||
NoNb = $"Din fullmakt til {TextMacros.Requestor} {TextMacros.RequestorName} på vegne av {TextMacros.Subject} {TextMacros.SubjectName} er registrert som gitt." | ||
}; | ||
|
||
public LocalizedString ConsentDeniedReceiptText => new() | ||
{ | ||
NoNb = $"Fullmakt til {TextMacros.Requestor} {TextMacros.RequestorName} på vegne av {TextMacros.Subject} {TextMacros.SubjectName} er registrert som avslått." | ||
}; | ||
|
||
|
||
public LocalizedString ConsentTitleText => new() | ||
{ | ||
NoNb = "Fullmakt" | ||
}; | ||
|
||
} |
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