Skip to content

Commit

Permalink
ECL-478: Amending A Registration Journey - Confirmation Email (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjatomanovic authored Aug 25, 2023
1 parent 4585721 commit 9d3a381
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/preview/TemplateParams.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
)
}
Original file line number Diff line number Diff line change
@@ -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") {

<div style="margin: 0 0 30px;
font-size: 19px;">
<p>Dear @params("name")</p>

<p>
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.
</p>

<table width="100%" cellspacing="0" cellpadding="2px" style="text-align: left;
font-size: 19px;">
<tbody>

<tr>
<th>ECL registration amendment request date:</th>
<td>@params("dateSubmitted")</td>
</tr>

</tbody>
</table>

<p style="font-weight: bold;">What happens next</p>

<p>
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.
</p>

<p style="font-weight: bold;">Why you got this email</p>

<p>
This is the email address you provided when you submitted your return.
</p>

<p>
Do not respond to this email.
</p>

<p>
From HMRC Economic Crime Levy team
</p>
</div>
}
Original file line number Diff line number Diff line change
@@ -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()}
Original file line number Diff line number Diff line change
Expand Up @@ -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
From HMRC Economic Crime Levy team

@{uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.template_footer()}
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}

0 comments on commit 9d3a381

Please sign in to comment.