Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DC-5699 Create new templates for IOSS #1128

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ object ServiceIdentifier {
case object GuaranteedMinimumPension extends ServiceIdentifier { override val name = "gmp" }
case object Generic extends ServiceIdentifier { override val name = "generic" }
case object Itsa extends ServiceIdentifier { override val name = "itsa" }
case object Ioss extends ServiceIdentifier { override val name = "ioss" }
case object InheritanceTax extends ServiceIdentifier { override val name = "iht" }
case object PayAsYouEarn extends ServiceIdentifier { override val name = "paye" }
case object PensionSchemesforPractitioners extends ServiceIdentifier { override val name = "pp" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ import uk.gov.hmrc.hmrcemailrenderer.templates.itsa.ItsaTemplates
import uk.gov.hmrc.hmrcemailrenderer.templates.mtdfb.vatreg.VatRegTemplates
import uk.gov.hmrc.hmrcemailrenderer.templates.hipp.HippTemplates
import uk.gov.hmrc.hmrcemailrenderer.templates.feedback.FeedbackTemplates
import uk.gov.hmrc.hmrcemailrenderer.templates.ioss.IossTemplates
import uk.gov.hmrc.hmrcemailrenderer.templates.penaltyreform.PenReformTemplates
import uk.gov.hmrc.hmrcemailrenderer.templates.tctr.TctrTemplates
import uk.gov.hmrc.hmrcemailrenderer.templates.tctr.TctrTemplates.tctrGroup
Expand Down Expand Up @@ -165,6 +166,7 @@ trait TemplateLocator {
"HEC" -> HecTemplates.templates,
"EU Subsidy" -> EUSubsidyTemplates.templates,
"ITSA" -> ItsaTemplates.templates,
"IOSS" -> IossTemplates.templates,
"ECL" -> EclTemplates.templates,
"HIPP" -> HippTemplates.templates,
"Penalty Reform" -> PenReformTemplates.templates,
Expand Down
278 changes: 278 additions & 0 deletions app/uk/gov/hmrc/hmrcemailrenderer/templates/ioss/IossTemplates.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,278 @@
/*
* Copyright 2023 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package uk.gov.hmrc.hmrcemailrenderer.templates.ioss

import uk.gov.hmrc.hmrcemailrenderer.domain.{ MessagePriority, MessageTemplate }
import uk.gov.hmrc.hmrcemailrenderer.templates.FromAddress.govUkTeamAddress
import uk.gov.hmrc.hmrcemailrenderer.templates.ServiceIdentifier.Ioss

object IossTemplates {
val templates = Seq(
MessageTemplate.create(
templateId = "new_message_alert_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_ioss.f,
htmlTemplate = html.new_message_alert_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_ioss_cy.f,
htmlTemplate = html.new_message_alert_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m01_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m01_ioss.f,
htmlTemplate = html.new_message_alert_m01_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m01_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m01_ioss_cy.f,
htmlTemplate = html.new_message_alert_m01_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m01a_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m01a_ioss.f,
htmlTemplate = html.new_message_alert_m01a_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m01a_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m01a_ioss_cy.f,
htmlTemplate = html.new_message_alert_m01a_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m02_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m02_ioss.f,
htmlTemplate = html.new_message_alert_m02_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m02_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m02_ioss_cy.f,
htmlTemplate = html.new_message_alert_m02_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m02a_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m02a_ioss.f,
htmlTemplate = html.new_message_alert_m02a_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m02a_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m02a_ioss_cy.f,
htmlTemplate = html.new_message_alert_m02a_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m04_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m04_ioss.f,
htmlTemplate = html.new_message_alert_m04_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m04_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m04_ioss_cy.f,
htmlTemplate = html.new_message_alert_m04_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m05_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m05_ioss.f,
htmlTemplate = html.new_message_alert_m05_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m05_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m05_ioss_cy.f,
htmlTemplate = html.new_message_alert_m05_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m05a_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m05a_ioss.f,
htmlTemplate = html.new_message_alert_m05a_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m05a_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m05a_ioss_cy.f,
htmlTemplate = html.new_message_alert_m05a_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m06_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m06_ioss.f,
htmlTemplate = html.new_message_alert_m06_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m06_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m06_ioss_cy.f,
htmlTemplate = html.new_message_alert_m06_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m06a_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m06a_ioss.f,
htmlTemplate = html.new_message_alert_m06a_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m06a_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m06a_ioss_cy.f,
htmlTemplate = html.new_message_alert_m06a_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m07_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m07_ioss.f,
htmlTemplate = html.new_message_alert_m07_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m07_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m07_ioss_cy.f,
htmlTemplate = html.new_message_alert_m07_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m07a_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m07a_ioss.f,
htmlTemplate = html.new_message_alert_m07a_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m07a_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m07a_ioss_cy.f,
htmlTemplate = html.new_message_alert_m07a_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m08_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m08_ioss.f,
htmlTemplate = html.new_message_alert_m08_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m08_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m08_ioss_cy.f,
htmlTemplate = html.new_message_alert_m08_ioss_cy.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m08a_ioss",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "You’ve got a new message from HMRC",
plainTemplate = txt.new_message_alert_m08a_ioss.f,
htmlTemplate = html.new_message_alert_m08a_ioss.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "new_message_alert_m08a_ioss_cy",
fromAddress = govUkTeamAddress,
service = Ioss,
subject = "Mae gennych neges newydd oddi wrth CThEF",
plainTemplate = txt.new_message_alert_m08a_ioss_cy.f,
htmlTemplate = html.new_message_alert_m08a_ioss_cy.f,
priority = Some(MessagePriority.Standard)
)
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@*
* Copyright 2023 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*@

@(params: Map[String, Any])
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "You’ve got a new message from HMRC") {
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.salutation(params)

<p style="margin: 0 0 30px; font-size: 19px;">You have a new message from HMRC.</p>

<p style="margin: 0 0 30px; font-size: 19px;">To view it, sign in to your HMRC online account.</p>

<p style="margin: 0 0 30px; font-size: 19px;">For security reasons, we have not included a link with this email.</p>

<h2 id="why-you-got-this-email" style="margin: 0 0 30px; font-size: 24px;">Why you got this email</h2>

<p style="margin: 0 0 30px; font-size: 19px;">You chose to get paperless notifications.</p>

<p style="margin: 0 0 30px; font-size: 19px;">This means we send you an email when you have a new message in your account.</p>

<p style="margin: 0 0 30px; font-size: 19px;">From HMRC digital</p>

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@(params: Map[String, Any])You’ve got a new message from HMRC
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.salutation(params)

You have a new message from HMRC.

To view it, sign in to your HMRC online account.

For security reasons, we have not included a link with this email.

Why you got this email

You chose to get paperless notifications.

This means we send you an email when you have a new message in your account.

From HMRC digital

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@*
* Copyright 2023 HM Revenue & Customs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*@

@(params: Map[String, Any])
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "Mae gennych neges newydd oddi wrth CThEF", isWelsh = true) {
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.salutation(params, isWelsh=true)
<p style="margin: 0 0 30px; font-size: 19px;">Mae gennych neges newydd oddi wrth CThEF.</p>
<p style="margin: 0 0 30px; font-size: 19px;">I’w gweld, mewngofnodwch i’ch cyfrif CThEF ar-lein.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Am resymau diogelwch, nid ydym wedi cynnwys cysylltiad gyda’r e-bost hwn.</p>
<h2 id="why-you-got-this-email" style="margin: 0 0 30px; font-size: 24px;">Pam y cawsoch yr e-bost hwn</h2>
<p style="margin: 0 0 30px; font-size: 19px;">Gwnaethoch ddewis cael hysbysiadau di-bapur.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Mae hyn yn golygu ein bod yn anfon e-bost atoch pan fydd gennych neges newydd yn eich cyfrif.</p>
<p style="margin: 0 0 30px; font-size: 19px;">Oddi wrth adran Ddigidol CThEF</p>
}
Loading