From 69d4abb1605b28f600f45d3512a42698c66b1bc2 Mon Sep 17 00:00:00 2001 From: Marcus Aspin Date: Tue, 12 Nov 2024 18:56:23 +0000 Subject: [PATCH] PI-2543 Use East of England template for GOV.UK Notify (#4423) --- .../appointment-reminders-and-delius/deploy/values-prod.yml | 3 +-- .../kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt | 2 +- .../digital/hmpps/service/UnpaidWorkAppointmentsService.kt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/projects/appointment-reminders-and-delius/deploy/values-prod.yml b/projects/appointment-reminders-and-delius/deploy/values-prod.yml index 6c96f52410..60c56efbf9 100644 --- a/projects/appointment-reminders-and-delius/deploy/values-prod.yml +++ b/projects/appointment-reminders-and-delius/deploy/values-prod.yml @@ -1,5 +1,3 @@ -enabled: false # TODO set this to true when you're ready to deploy your service - generic-service: ingress: host: appointment-reminders-and-delius.hmpps.service.justice.gov.uk @@ -8,6 +6,7 @@ generic-service: SENTRY_ENVIRONMENT: prod SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK_SET_URI: https://sign-in.hmpps.service.justice.gov.uk/auth/.well-known/jwks.json SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI: https://sign-in.hmpps.service.justice.gov.uk/auth/issuer + GOVUK-NOTIFY_TEMPLATES_UPW-APPOINTMENT-REMINDER: 4895f1a9-50b7-481e-9fca-2ac0f8d200d2 jobs: unpaid-work-appointment-reminders: diff --git a/projects/appointment-reminders-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt b/projects/appointment-reminders-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt index 9886227bc5..3f8875a303 100644 --- a/projects/appointment-reminders-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt +++ b/projects/appointment-reminders-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt @@ -89,7 +89,7 @@ internal class IntegrationTest { verify(notificationClient).sendSms( "cd713c1b-1b27-45a0-b493-37a34666635a", "07000000000", - mapOf("firstName" to "Test", "date" to "01/01/2000"), + mapOf("FirstName" to "Test", "NextWorkSession" to "01/01/2000"), "123, 456" ) verify(telemetryService).trackEvent( diff --git a/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt b/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt index d22336a8e3..2b08245809 100644 --- a/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt +++ b/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt @@ -20,7 +20,7 @@ class UnpaidWorkAppointmentsService( notificationClient.sendSms( templateId, it.mobileNumber, - mapOf("firstName" to it.firstName, "date" to it.appointmentDate), + mapOf("FirstName" to it.firstName, "NextWorkSession" to it.appointmentDate), it.upwAppointmentIds ) telemetryService.trackEvent(