diff --git a/app/preview/TemplateParams.scala b/app/preview/TemplateParams.scala index c45e3025a..88d9b614c 100644 --- a/app/preview/TemplateParams.scala +++ b/app/preview/TemplateParams.scala @@ -3373,6 +3373,9 @@ object TemplateParams3 { "customerName" -> "Hugh Mann", "submissionReference" -> "NC38-N2ZC-TH68" ), + "sdes_alert" -> Map( + "submissionCount" -> "15" + ), "seis_code" -> Map( "confirmationCode" -> "HGDY" ), diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/EeittTemplates.scala b/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/EeittTemplates.scala index 8b013e3d8..c9a8232ad 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/EeittTemplates.scala +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/EeittTemplates.scala @@ -1992,6 +1992,15 @@ object EeittTemplates { htmlTemplate = html.seisConfirmation.f, priority = Some(MessagePriority.Standard) ), + MessageTemplate.create( + templateId = "sdes_alert", + fromAddress = govUkTeamAddress, + service = Eeitt, + subject = "You have unprocessed SDES items", + plainTemplate = txt.sdesAlert.f, + htmlTemplate = html.sdesAlert.f, + priority = Some(MessagePriority.Urgent) + ), MessageTemplate.create( templateId = "seis_code", fromAddress = govUkTeamAddress, diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/sdesAlert.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/sdesAlert.scala.html new file mode 100644 index 000000000..d8fa8725e --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/sdesAlert.scala.html @@ -0,0 +1,22 @@ +@* + * 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 have unprocessed SDES items"){ + +

There are @params("submissionCount") unprocessed SDES items. You can view these under 'Sdes Submissions' in your EEITT dashboard.

+ +} \ No newline at end of file diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/sdesAlert.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/sdesAlert.scala.txt new file mode 100644 index 000000000..e2c8cb89d --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/eeitt/sdesAlert.scala.txt @@ -0,0 +1,5 @@ +@(params: Map[String, Any]) + +There are @params("submissionCount") unprocessed SDES items. You can view these under 'Sdes Submissions' in your EEITT dashboard. + +@{uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.template_footer()} \ No newline at end of file diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala index 88ec3c2b4..4d613bdc4 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala @@ -493,6 +493,7 @@ class TemplateLocatorSpec extends AnyWordSpecLike with should.Matchers with Opti "eis_confirmation", "eis_code", "seis_confirmation", + "sdes_alert", "seis_code", "ca3822_confirmation", "ca3822_code",