From a1d957d7726a1fec41a62877d0c956c7c2810fb3 Mon Sep 17 00:00:00 2001 From: hmrc-spifix <150905264+hmrc-spifix@users.noreply.github.com> Date: Wed, 3 Jul 2024 17:25:03 +0100 Subject: [PATCH] PSR-1195 Sipp email submission (#1169) --- app/preview/TemplateParams.scala | 6 +++ .../templates/pods/PodsTemplates.scala | 9 +++++ ...ensionSchemeReturnSippSubmitted.scala.html | 39 +++++++++++++++++++ ...pensionSchemeReturnSippSubmitted.scala.txt | 21 ++++++++++ .../templates/TemplateLocatorSpec.scala | 1 + 5 files changed, 76 insertions(+) create mode 100644 app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/pensionSchemeReturnSippSubmitted.scala.html create mode 100644 app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/pensionSchemeReturnSippSubmitted.scala.txt diff --git a/app/preview/TemplateParams.scala b/app/preview/TemplateParams.scala index 992cb64e9..ec087657d 100644 --- a/app/preview/TemplateParams.scala +++ b/app/preview/TemplateParams.scala @@ -2274,6 +2274,12 @@ object TemplateParams2 { "dateSubmitted" -> "2 April 2025 at 8:20pm", "psaName" -> "Jane Doe" ), + "pods_pension_scheme_return_sipp_submitted" -> Map( + "schemeName" -> "Smith Harper pension scheme", + "periodOfReturn" -> "7 April 2025 to 6 April 2026", + "dateSubmitted" -> "2 April 2025 at 8:20pm", + "psaName" -> "Jane Doe" + ), "cbc_registration_successful_organisation" -> Map( "name" -> "Joe Bloggs", "cbcID" -> "XWCBC0000000058" diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/PodsTemplates.scala b/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/PodsTemplates.scala index d1e66b775..c167ca86e 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/PodsTemplates.scala +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/PodsTemplates.scala @@ -228,6 +228,15 @@ object PodsTemplates { plainTemplate = txt.pensionSchemeReturnSubmitted.f, htmlTemplate = html.pensionSchemeReturnSubmitted.f, priority = Some(MessagePriority.Standard) + ), + MessageTemplate.createWithDynamicSubject( + templateId = "pods_pension_scheme_return_sipp_submitted", + fromAddress = govUkTeamAddress, + service = PODS, + subject = params => s"Submitted: Pension scheme return for ${params("periodOfReturn")}", + plainTemplate = txt.pensionSchemeReturnSippSubmitted.f, + htmlTemplate = html.pensionSchemeReturnSippSubmitted.f, + priority = Some(MessagePriority.Standard) ) ) } diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/pensionSchemeReturnSippSubmitted.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/pensionSchemeReturnSippSubmitted.scala.html new file mode 100644 index 000000000..784fbb440 --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/pensionSchemeReturnSippSubmitted.scala.html @@ -0,0 +1,39 @@ +@* + * 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 submitted a pension scheme return") { + +
Dear @{params("psaName").toString}
+ +
+ Scheme name: @{params("schemeName").toString}
+
Date submitted: @{params("dateSubmitted").toString}
+
What happens next
+ +HMRC may contact you to confirm the details of your return. You will receive an email notification when an update is available.
+ +You can sign into ‘Managing Pension Schemes’ to update this return within the next 6 years.
+ +Why you are receiving this email
+ +We send a confirmation email for submitted returns.
+ +From HMRC Pension Schemes Services
+} diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/pensionSchemeReturnSippSubmitted.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/pensionSchemeReturnSippSubmitted.scala.txt new file mode 100644 index 000000000..50aca832d --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/pods/pensionSchemeReturnSippSubmitted.scala.txt @@ -0,0 +1,21 @@ +@(params: Map[String, Any]) + +Dear @{params("psaName").toString} + +Scheme name: @{params("schemeName").toString} + +Date submitted: @{params("dateSubmitted").toString} + +What happens next + +HMRC may contact you to confirm the details of your return. You will receive an email notification when an update is available. + +You can sign in to ‘Managing Pension Schemes’ to update this return within the next 6 years. + +Why you are receiving this email + +We send a confirmation email for submitted returns. + +From HMRC Pension Schemes Services + +@{uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.template_footer()} diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala index 68a93e3c8..e5c72d220 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala @@ -698,6 +698,7 @@ class TemplateLocatorSpec extends AnyWordSpecLike with should.Matchers with Opti "pods_confirmation", "pods_event_report_submitted", "pods_pension_scheme_return_submitted", + "pods_pension_scheme_return_sipp_submitted", "pods_file_aft_return", "pods_psa_amend", "pods_psa_deauthorise_psp",