diff --git a/app/preview/TemplateParams.scala b/app/preview/TemplateParams.scala
index 46ddca0af..8637bb12f 100644
--- a/app/preview/TemplateParams.scala
+++ b/app/preview/TemplateParams.scala
@@ -3545,6 +3545,10 @@ object TemplateParams3 {
"periodStartDate" -> "1 April 2022",
"periodEndDate" -> "31 March 2023"
),
+ "ecl_amend_registration_submitted" -> Map(
+ "name" -> "John Doe",
+ "dateSubmitted" -> "31 March 2023"
+ ),
"ars_notification_template" -> Map(
"name" -> "Victoria sponge"
),
diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/EclTemplates.scala b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/EclTemplates.scala
index 8494ab965..a87435eb0 100644
--- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/EclTemplates.scala
+++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/EclTemplates.scala
@@ -85,6 +85,15 @@ object EclTemplates {
plainTemplate = txt.eclAmendReturnSubmitted.f,
htmlTemplate = html.eclAmendReturnSubmitted.f,
priority = Some(MessagePriority.Urgent)
+ ),
+ MessageTemplate.create(
+ templateId = "ecl_amend_registration_submitted",
+ fromAddress = FromAddress.noReply("Economic Crime Levy"),
+ service = EconomicCrimeLevy,
+ subject = "You amended a registration for the Economic Crime Levy",
+ plainTemplate = txt.eclAmendRegistrationSubmitted.f,
+ htmlTemplate = html.eclAmendRegistrationSubmitted.f,
+ priority = Some(MessagePriority.Urgent)
)
)
}
diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendRegistrationSubmitted.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendRegistrationSubmitted.scala.html
new file mode 100644
index 000000000..c637a0ac8
--- /dev/null
+++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendRegistrationSubmitted.scala.html
@@ -0,0 +1,61 @@
+@*
+ * 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 amended a registration for the Economic Crime Levy") {
+
+
+
Dear @params("name")
+
+
+ We have received your answers as part of your request to amend your registration for the Economic Crime Levy (ECL). Please save this email for your records.
+
+
+
+
+
+
+ ECL registration amendment request date: |
+ @params("dateSubmitted") |
+
+
+
+
+
+
What happens next
+
+
+ We will review your answers. We may contact you using the details you provided if we need any more information. This process will take up to 15 working days.
+
+
+
Why you got this email
+
+
+ This is the email address you provided when you submitted your return.
+
+
+
+ Do not respond to this email.
+
+
+
+ From HMRC Economic Crime Levy team
+
+
+}
\ No newline at end of file
diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendRegistrationSubmitted.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendRegistrationSubmitted.scala.txt
new file mode 100644
index 000000000..0490945e1
--- /dev/null
+++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendRegistrationSubmitted.scala.txt
@@ -0,0 +1,22 @@
+@(params: Map[String, Any])
+You amended a registration for the Economic Crime Levy
+
+Dear @params("name")
+
+We have received your answers as part of your request to amend your registration for the Economic Crime Levy (ECL). Please save this email for your records.
+
+ECL registration amendment request date: @params("dateSubmitted")
+
+What happens next
+
+We will review your answers. We may contact you using the details you provided if we need any more information. This process will take up to 15 working days.
+
+Why you got this email
+
+This is the email address you provided when you submitted your return.
+
+Do not respond to this email.
+
+From HMRC Economic Crime Levy team
+
+@{uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.template_footer()}
\ No newline at end of file
diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendReturnSubmitted.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendReturnSubmitted.scala.txt
index 08f29fa74..957f971b4 100644
--- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendReturnSubmitted.scala.txt
+++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/eclAmendReturnSubmitted.scala.txt
@@ -22,4 +22,6 @@ This is the email address you provided when you submitted your return.
Do not respond to this email.
-From HMRC Economic Crime Levy team
\ No newline at end of file
+From HMRC Economic Crime Levy team
+
+@{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 2d2ee8d16..3d3ef9cea 100644
--- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala
+++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala
@@ -965,6 +965,7 @@ class TemplateLocatorSpec extends AnyWordSpecLike with should.Matchers with Opti
"ecl_return_submitted",
"ecl_nil_return_submitted",
"ecl_amend_return_submitted",
+ "ecl_amend_registration_submitted",
"hipp_add_team_member_to_app_email",
"hipp_remove_team_member_from_app_email",
"newMessageAlert_LPP4",
diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/EclTemplatesSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/EclTemplatesSpec.scala
index 37ea38396..ca76cd66c 100644
--- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/EclTemplatesSpec.scala
+++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/ecl/EclTemplatesSpec.scala
@@ -100,6 +100,24 @@ class EclTemplatesSpec extends TemplateComparisonSpec with CommonParamsForSpec {
compareContent("ecl_nil_return_submitted", nilReturnSubmittedParams)(ecl)
}
- }
+ "include amend registration submitted content" in {
+ val amendRegistrationSubmittedParams = commonParameters ++ Map(
+ "name" -> "John Doe",
+ "dateSubmitted" -> "1 September 2023"
+ )
+
+ compareContent("ecl_amend_registration_submitted", amendRegistrationSubmittedParams)(ecl)
+ }
+ "include amend return submitted content" in {
+ val amendReturnSubmittedParams = commonParameters ++ Map(
+ "name" -> "John Doe",
+ "dateSubmitted" -> "1 September 2023",
+ "periodStartDate" -> "1 April 2022",
+ "periodEndDate" -> "31 March 2023"
+ )
+
+ compareContent("ecl_amend_return_submitted", amendReturnSubmittedParams)(ecl)
+ }
+ }
}