From bf581a0b0dc151e976066d58d3f61f72084c8b2d Mon Sep 17 00:00:00 2001 From: Alex Saunders Date: Thu, 25 Jan 2024 16:21:02 +0000 Subject: [PATCH] only send uid and notificationId --- .../events/notification-sent/examples/example.json | 3 +-- domains/POAS/events/notification-sent/schema.json | 12 ++++-------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/domains/POAS/events/notification-sent/examples/example.json b/domains/POAS/events/notification-sent/examples/example.json index aa1da73..2561fd7 100644 --- a/domains/POAS/events/notification-sent/examples/example.json +++ b/domains/POAS/events/notification-sent/examples/example.json @@ -1,5 +1,4 @@ { "uid": "M-1234-5678-9012", - "deliveryMethod": "Email", - "subject": "CertificateProviderInvite" + "notificationId": "740e5834-3a29-46b4-9a6f-16142fde533a" } diff --git a/domains/POAS/events/notification-sent/schema.json b/domains/POAS/events/notification-sent/schema.json index 369f414..5b3e713 100644 --- a/domains/POAS/events/notification-sent/schema.json +++ b/domains/POAS/events/notification-sent/schema.json @@ -9,15 +9,11 @@ "description": "The UID of the LPA", "pattern": "M(-[A-Z0-9]{4}){3}" }, - "deliveryMethod": { + "notificationId": { "type": "string", - "description": "How the notification was sent", - "enum": ["Email", "SMS"] - }, - "subject": { - "type": "string", - "description": "What the notification was about" + "description": "The GOV UK Notify id of the notification sent", + "pattern": "([a-z0-9]{8}-)([a-z0-9]{4}-){3}([a-z0-9]{12})" } }, - "required": ["uid", "deliveryMethod", "subject"] + "required": ["uid", "notificationId"] }