diff --git a/app/preview/TemplateParams.scala b/app/preview/TemplateParams.scala index 03cee5b25..03ff8c291 100644 --- a/app/preview/TemplateParams.scala +++ b/app/preview/TemplateParams.scala @@ -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" ) ) } diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/CustomsFinancialsTemplates.scala b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/CustomsFinancialsTemplates.scala index 5e3e34cac..7a58d4f6e 100644 --- a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/CustomsFinancialsTemplates.scala +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/CustomsFinancialsTemplates.scala @@ -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) ) ) } diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedC79CertificateNotFound.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedC79CertificateNotFound.scala.html new file mode 100644 index 000000000..13213fa54 --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedC79CertificateNotFound.scala.html @@ -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) { + +

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

+ +
+ +

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

+ +
    +
  1. Go to GOV.UK.
  2. +
  3. Search for ‘Check how to get your import VAT certificate (C79)’ and sign in.
  4. +
  5. Go to your messages.
  6. +
+ +

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

+ +
+ +} diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedC79CertificateNotFound.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedC79CertificateNotFound.scala.txt new file mode 100644 index 000000000..f53626cfd --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedC79CertificateNotFound.scala.txt @@ -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()} diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedDutyDefermentStatementsNotFound.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedDutyDefermentStatementsNotFound.scala.html new file mode 100644 index 000000000..7f4fe8c69 --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedDutyDefermentStatementsNotFound.scala.html @@ -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) { + +

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

+ +
+ +

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

+ +
    +
  1. Go to GOV.UK.
  2. +
  3. Search for ‘Get copies of your duty deferment statements’ and sign in.
  4. +
  5. Go to your messages.
  6. +
+ +

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

+ +
+ +} diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedDutyDefermentStatementsNotFound.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedDutyDefermentStatementsNotFound.scala.txt new file mode 100644 index 000000000..000019bbd --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedDutyDefermentStatementsNotFound.scala.txt @@ -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()} diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedNotificationAdjustmentStatementsNotFound.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedNotificationAdjustmentStatementsNotFound.scala.html new file mode 100644 index 000000000..380608a8b --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedNotificationAdjustmentStatementsNotFound.scala.html @@ -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) { + +

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

+ +
+ +

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

+ +
    +
  1. Go to GOV.UK.
  2. +
  3. Search for ‘Get your import VAT and duty adjustment statements’ and sign in.
  4. +
  5. Go to your messages.
  6. +
+ +

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

+ +

From the Customs Declaration Service

+ +
+ +} diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedNotificationAdjustmentStatementsNotFound.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedNotificationAdjustmentStatementsNotFound.scala.txt new file mode 100644 index 000000000..6b8218d0b --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedNotificationAdjustmentStatementsNotFound.scala.txt @@ -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()} diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedPostponedImportVATStatementsNotFound.scala.html b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedPostponedImportVATStatementsNotFound.scala.html new file mode 100644 index 000000000..30fa922c1 --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedPostponedImportVATStatementsNotFound.scala.html @@ -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) { + +

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

+ +
+ +

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

+ +
    +
  1. Go to GOV.UK.
  2. +
  3. Search for ‘Get your postponed import VAT statement’ and sign in.
  4. +
  5. Go to your messages.
  6. +
+ +

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

+ +
+ +} diff --git a/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedPostponedImportVATStatementsNotFound.scala.txt b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedPostponedImportVATStatementsNotFound.scala.txt new file mode 100644 index 000000000..f7494523d --- /dev/null +++ b/app/uk/gov/hmrc/hmrcemailrenderer/templates/customsfinancials/requestedPostponedImportVATStatementsNotFound.scala.txt @@ -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()} diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala index 6edc9755f..0beccc2d0 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/TemplateLocatorSpec.scala @@ -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", diff --git a/test/uk/gov/hmrc/hmrcemailrenderer/templates/customsFinancials/CustomsFinancialsSpec.scala b/test/uk/gov/hmrc/hmrcemailrenderer/templates/customsFinancials/CustomsFinancialsSpec.scala index af462de10..65383729e 100644 --- a/test/uk/gov/hmrc/hmrcemailrenderer/templates/customsFinancials/CustomsFinancialsSpec.scala +++ b/test/uk/gov/hmrc/hmrcemailrenderer/templates/customsFinancials/CustomsFinancialsSpec.scala @@ -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) + } + } }