Skip to content

Commit

Permalink
[MMCA-4193] Adding new email templates for not found templates (#1099)
Browse files Browse the repository at this point in the history
* [MMCA-4193] Adding new email templates for not found templates

* [MMCA-4193] Adding EOL

* [MMCA-4193] Fixing format

* [MMCA-4193] Tiny fix on format

* [MMCA-4193] Fixing formatting issues on CustomsFinancialsSpec
  • Loading branch information
wg-hmrc authored Oct 11, 2023
1 parent 45d4168 commit c4e2498
Show file tree
Hide file tree
Showing 12 changed files with 341 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/preview/TemplateParams.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3640,6 +3640,18 @@ object TemplateParams3 {
),
"ecl_registration_received_cy" -> Map(
"name" -> "John Doe"
),
"customs_financials_requested_duty_deferment_not_found" -> Map(
"recipientName_FullName" -> "ABC ltd"
),
"customs_financials_requested_c79_certificate_not_found" -> Map(
"recipientName_FullName" -> "ABC ltd"
),
"customs_financials_requested_postponed_import_vat_statements_not_found" -> Map(
"recipientName_FullName" -> "ABC ltd"
),
"customs_financials_requested_notification_adjustment_statements_not_found" -> Map(
"recipientName_FullName" -> "ABC ltd"
)
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,42 @@ object CustomsFinancialsTemplates {
plainTemplate = txt.standingAuthoritiesStatement.f,
htmlTemplate = html.standingAuthoritiesStatement.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "customs_financials_requested_duty_deferment_not_found",
fromAddress = govUkTeamAddress,
service = CustomsFinancials,
subject = "Requested duty deferment statements",
plainTemplate = txt.requestedDutyDefermentStatementsNotFound.f,
htmlTemplate = html.requestedDutyDefermentStatementsNotFound.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "customs_financials_requested_c79_certificate_not_found",
fromAddress = govUkTeamAddress,
service = CustomsFinancials,
subject = "Requested import VAT certificates (C79)",
plainTemplate = txt.requestedC79CertificateNotFound.f,
htmlTemplate = html.requestedC79CertificateNotFound.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "customs_financials_requested_postponed_import_vat_statements_not_found",
fromAddress = govUkTeamAddress,
service = CustomsFinancials,
subject = "Requested postponed import VAT statements",
plainTemplate = txt.requestedPostponedImportVATStatementsNotFound.f,
htmlTemplate = html.requestedPostponedImportVATStatementsNotFound.f,
priority = Some(MessagePriority.Standard)
),
MessageTemplate.create(
templateId = "customs_financials_requested_notification_adjustment_statements_not_found",
fromAddress = govUkTeamAddress,
service = CustomsFinancials,
subject = "Requested notification of adjustment statements",
plainTemplate = txt.requestedNotificationAdjustmentStatementsNotFound.f,
htmlTemplate = html.requestedNotificationAdjustmentStatementsNotFound.f,
priority = Some(MessagePriority.Standard)
)
)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@*
* 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])
@title = @{"Requested import VAT certificates (C79)"}

@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, title) {

<p style="font-size: 19px;line-height: 1.315789474;margin: 0 0 30px 0;">
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.salutationFullName(params)
</p>

<div style="font-size: 19px;line-height: 1.315789474;margin: 0 0 30px 0;">

<p>We have sent you a message about the import VAT certificates (C79) you requested. To read it:</p>

<ol>
<li>Go to GOV.UK.</li>
<li>Search for ‘Check how to get your import VAT certificate (C79)’ and sign in.</li>
<li>Go to your messages.</li>
</ol>

<p>For security reasons, we have not included a link in this email.</p>

<h4>If you need help</h4>

<p>You can phone HMRC on 0300 322 9434. </br>
Lines are open 8am to 6pm, Monday to Friday (closed bank holidays).</p>

<p>From the Customs Declaration Service</p>

</div>

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@(params: Map[String, Any])Requested import VAT certificates (C79)

@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.salutationFullName(params)

We have sent you a message about the import VAT certificates (C79) you requested. To read it:

Go to GOV.UK.

Search for ‘Check how to get your import VAT certificate (C79)’ and sign in.

Go to your messages.

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

If you need help

You can phone HMRC on 0300 322 9434. Lines are open 8am to 6pm, Monday to Friday (closed bank holidays).

From the Customs Declaration Service

@{uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.template_footer()}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@*
* 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])
@title = @{"Requested duty deferment statements"}

@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, title) {

<p style="font-size: 19px;line-height: 1.315789474;margin: 0 0 30px 0;">
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.salutationFullName(params)
</p>

<div style="font-size: 19px;line-height: 1.315789474;margin: 0 0 30px 0;">

<p>We have sent you a message about the duty deferment statements you requested. To read it:</p>

<ol>
<li>Go to GOV.UK.</li>
<li>Search for ‘Get copies of your duty deferment statements’ and sign in.</li>
<li>Go to your messages.</li>
</ol>

<p>For security reasons, we have not included a link in this email.</p>

<h4>If you need help</h4>

<p>You can phone HMRC on 03000 594 243. </br>
Lines are open 8am to 6pm, Monday to Friday (closed bank holidays).</p>

<p>From the Customs Declaration Service</p>

</div>

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@(params: Map[String, Any])Requested duty deferment statements

@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.salutationFullName(params)

We have sent you a message about the duty deferment statements you requested. To read it:

Go to GOV.UK.

Search for ‘Get copies of your duty deferment statements’ and sign in.

Go to your messages.

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

If you need help

You can phone HMRC on 03000 594 243. Lines are open 8am to 6pm, Monday to Friday (closed bank holidays).

From the Customs Declaration Service

@{uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.template_footer()}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@*
* 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])
@title = @{"Requested notification of adjustment statements"}

@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, title) {

<p style="font-size: 19px;line-height: 1.315789474;margin: 0 0 30px 0;">
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.salutationFullName(params)
</p>

<div style="font-size: 19px;line-height: 1.315789474;margin: 0 0 30px 0;">

<p>We have sent you a message about the notification of adjustment statements you requested. To read it:</p>

<ol>
<li>Go to GOV.UK.</li>
<li>Search for ‘Get your import VAT and duty adjustment statements’ and sign in.</li>
<li>Go to your messages.</li>
</ol>

<p>For security reasons, we have not included a link in this email.</p>

<p>From the Customs Declaration Service</p>

</div>

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@(params: Map[String, Any])Requested notification of adjustment statements

@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.salutationFullName(params)

We have sent you a message about the notification of adjustment statements you requested. To read it:

Go to GOV.UK.

Search for ‘Get your import VAT and duty adjustment statements’ and sign in.

Go to your messages.

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

From the Customs Declaration Service

@{uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.template_footer()}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@*
* 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])
@title = @{"Requested postponed import VAT statements"}

@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, title) {

<p style="font-size: 19px;line-height: 1.315789474;margin: 0 0 30px 0;">
@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.salutationFullName(params)
</p>

<div style="font-size: 19px;line-height: 1.315789474;margin: 0 0 30px 0;">

<p>We have sent you a message about the postponed import VAT statements you requested. To read it:</p>

<ol>
<li>Go to GOV.UK.</li>
<li>Search for ‘Get your postponed import VAT statement’ and sign in.</li>
<li>Go to your messages.</li>
</ol>

<p>For security reasons, we have not included a link in this email.</p>

<h4>If you need help</h4>

<p>You can phone HMRC on 0300 322 9434. </br>
Lines are open 8am to 6pm, Monday to Friday (closed bank holidays).</p>

<p>From the Customs Declaration Service</p>

</div>

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@(params: Map[String, Any])Requested postponed import VAT statements

@uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.salutationFullName(params)

We have sent you a message about the postponed import VAT statements you requested. To read it:

Go to GOV.UK.

Search for ‘Get your postponed import VAT statement’ and sign in.

Go to your messages.

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

If you need help

You can phone HMRC on 0300 322 9434. Lines are open 8am to 6pm, Monday to Friday (closed bank holidays).

From the Customs Declaration Service

@{uk.gov.hmrc.hmrcemailrenderer.templates.helpers.txt.template_footer()}
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ class TemplateLocatorSpec extends AnyWordSpecLike with should.Matchers with Opti
"customs_financials_requested_for_standing_authorities",
"customs_financials_requested_import_adjustment",
"customs_financials_requested_postponed_vat_notification",
"customs_financials_requested_duty_deferment_not_found",
"customs_financials_requested_c79_certificate_not_found",
"customs_financials_requested_postponed_import_vat_statements_not_found",
"customs_financials_requested_notification_adjustment_statements_not_found",
"customs_migrate_not_successful",
"customs_migrate_successful",
"customs_payment_required",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,32 @@ class CustomsFinancialsSpec extends TemplateComparisonSpec with CommonParamsForS
customsFinancialsTemplate)
}

"have matching content in customs_financials_requested_duty_deferment_not_found" in {
val params = commonParameters ++ Map("recipientName_FullName" -> "ABC ltd")

compareContent("customs_financials_requested_duty_deferment_not_found", params)(customsFinancialsTemplate)
}

"have matching content in customs_financials_requested_c79_certificate_not_found" in {
val params = commonParameters ++ Map("recipientName_FullName" -> "ABC ltd")

compareContent("customs_financials_requested_c79_certificate_not_found", params)(customsFinancialsTemplate)
}

"have matching content in customs_financials_requested_postponed_import_vat_statements_not_found" in {
val params = commonParameters ++ Map("recipientName_FullName" -> "ABC ltd")

compareContent("customs_financials_requested_postponed_import_vat_statements_not_found", params)(
customsFinancialsTemplate)
}

"have matching content in customs_financials_requested_notification_adjustment_statements_not_found" in {
val params = commonParameters ++ Map("recipientName_FullName" -> "ABC ltd")

compareContent("customs_financials_requested_notification_adjustment_statements_not_found", params)(
customsFinancialsTemplate)
}

}

}

0 comments on commit c4e2498

Please sign in to comment.