From d063486b764062805647fcf2143cfcf94c6b1edc Mon Sep 17 00:00:00 2001 From: Luzia Date: Tue, 12 Nov 2024 16:22:46 +0100 Subject: [PATCH] Revert "Fix inconsistencies" This reverts commit 90b83755b02adcee989475769313a005994a386f. --- .../email/email_channel-settings.json | 3 ++ .../email/en_US/engagement-template.json | 4 +++ .../event-general-notifications.json | 29 +++++++++++++++++++ .../email/email_channel-settings.json | 3 ++ .../email/en_US/engagement-template.json | 4 +++ .../event-general-notifications.json | 29 +++++++++++++++++++ .../device-registered/placeholders.json | 25 ++++++++++++++++ .../device-removed/placeholders.json | 25 ++++++++++++++++ 8 files changed, 122 insertions(+) create mode 100644 collections/business/general-notifications/event-general-notifications/device-registered/device-registered/email/email_channel-settings.json create mode 100644 collections/business/general-notifications/event-general-notifications/device-registered/device-registered/email/en_US/engagement-template.json create mode 100644 collections/business/general-notifications/event-general-notifications/device-registered/event-general-notifications.json create mode 100644 collections/business/general-notifications/event-general-notifications/device-removed/device-removed/email/email_channel-settings.json create mode 100644 collections/business/general-notifications/event-general-notifications/device-removed/device-removed/email/en_US/engagement-template.json create mode 100644 collections/business/general-notifications/event-general-notifications/device-removed/event-general-notifications.json create mode 100644 collections/oneruntime/general-notifications/placeholders/device-registered/placeholders.json create mode 100644 collections/oneruntime/general-notifications/placeholders/device-removed/placeholders.json diff --git a/collections/business/general-notifications/event-general-notifications/device-registered/device-registered/email/email_channel-settings.json b/collections/business/general-notifications/event-general-notifications/device-registered/device-registered/email/email_channel-settings.json new file mode 100644 index 0000000..12b303c --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/device-registered/device-registered/email/email_channel-settings.json @@ -0,0 +1,3 @@ +{ + "from": "engage-qa@backbase.com" +} \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/device-registered/device-registered/email/en_US/engagement-template.json b/collections/business/general-notifications/event-general-notifications/device-registered/device-registered/email/en_US/engagement-template.json new file mode 100644 index 0000000..6684500 --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/device-registered/device-registered/email/en_US/engagement-template.json @@ -0,0 +1,4 @@ +{ + "subject": "New device registered", + "body": "Dear {{{user.preferredName}}} {{{user.familyName}}},\n\n A device, {{#if event.friendlyName}}\"{{{event.friendlyName}}}\" {{/if}}was registered to your online banking on {{ formatDate event.created 'dd-MMMM-yyyy \\'at\\' HH:mm:ss z' 'en' 'US/Eastern' }}.\n\nIf this was you:\n\n\tYou're good to go! We'll remember this device in the future.\n\n\nIf you don't want this device remembered:\n\n\n\tYou can go to Backbase and remove it. This will help keep your account more secure.\n\n\nIf this wasn't you:\n\tChange your password right away, and check your online banking for activity\n\tRemove this device from your online banking\n\n\nRegards, \nBackbase Bank" +} \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/device-registered/event-general-notifications.json b/collections/business/general-notifications/event-general-notifications/device-registered/event-general-notifications.json new file mode 100644 index 0000000..911f265 --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/device-registered/event-general-notifications.json @@ -0,0 +1,29 @@ +{ + "eventClassName": "com.backbase.identity.device.event.spec.v1.DeviceAddedEvent", + "id": "device-registered", + "eventBusinessName": "Device Registered", + "recipientType": "internal", + "extractor": "#this['internalUserId']", + "generalNotifications": [ + { + "id": "device-registered", + "name": "Device Registered", + "userPreferenceEnabled": false, + "manageable": false, + "deliveryOptions": [ + { + "channel": "email", + "channelSettings": "/device-registered/email/email_channel-settings.json", + "isEnabledByDefault": true, + "isManageableByUser": false, + "engagementTemplates": [ + { + "path": "/device-registered/email/en_US/engagement-template.json", + "locale": "en_US" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/device-removed/device-removed/email/email_channel-settings.json b/collections/business/general-notifications/event-general-notifications/device-removed/device-removed/email/email_channel-settings.json new file mode 100644 index 0000000..12b303c --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/device-removed/device-removed/email/email_channel-settings.json @@ -0,0 +1,3 @@ +{ + "from": "engage-qa@backbase.com" +} \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/device-removed/device-removed/email/en_US/engagement-template.json b/collections/business/general-notifications/event-general-notifications/device-removed/device-removed/email/en_US/engagement-template.json new file mode 100644 index 0000000..40e18ac --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/device-removed/device-removed/email/en_US/engagement-template.json @@ -0,0 +1,4 @@ +{ + "subject": "Device removed", + "body": "Dear {{{user.preferredName}}} {{{user.familyName}}},\n\n A device, {{#if event.friendlyName}}\"{{{event.friendlyName}}}\" {{/if}}was removed from your online banking on {{ formatDate event.created 'dd-MMMM-yyyy \\'at\\' HH:mm:ss z' 'en' 'US/Eastern' }}.\n\nIf this was you:\n\n\tAll done! The device is now removed.\n\n\nIf you did not want to remove this device:\n\n\n\tYou can go to Backbase and add it again.\n\n\nIf this wasn't you:\n\tChange your password right away, and check your account for activity\n\tAdd the device again to your online banking\n\n\nRegards, \nBackbase Bank" +} \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/device-removed/event-general-notifications.json b/collections/business/general-notifications/event-general-notifications/device-removed/event-general-notifications.json new file mode 100644 index 0000000..8a4af77 --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/device-removed/event-general-notifications.json @@ -0,0 +1,29 @@ +{ + "eventClassName": "com.backbase.identity.device.event.spec.v1.DeviceRemovedEvent", + "id": "device-removed", + "eventBusinessName": "Device Removed", + "recipientType": "internal", + "extractor": "#this['internalUserId']", + "generalNotifications": [ + { + "id": "device-removed", + "name": "Device Removed", + "userPreferenceEnabled": false, + "manageable": false, + "deliveryOptions": [ + { + "channel": "email", + "channelSettings": "/device-removed/email/email_channel-settings.json", + "isEnabledByDefault": true, + "isManageableByUser": false, + "engagementTemplates": [ + { + "path": "/device-removed/email/en_US/engagement-template.json", + "locale": "en_US" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/collections/oneruntime/general-notifications/placeholders/device-registered/placeholders.json b/collections/oneruntime/general-notifications/placeholders/device-registered/placeholders.json new file mode 100644 index 0000000..52d083e --- /dev/null +++ b/collections/oneruntime/general-notifications/placeholders/device-registered/placeholders.json @@ -0,0 +1,25 @@ +[ + { + "name": "deviceRegistered", + "placeholders": [ + { + "name": "device-id", + "title": "Device ID", + "description": "The ID of the device", + "value": "{{{event.deviceId}}}" + }, + { + "name": "internal-user-id", + "title": "Internal User ID", + "description": "The internal user ID of the user who owns this device", + "value": "{{event.internalUserId}}" + }, + { + "name": "created", + "title": "Created", + "description": "The time when the device record was created", + "value": "{{event.created}}" + } + ] + } +] diff --git a/collections/oneruntime/general-notifications/placeholders/device-removed/placeholders.json b/collections/oneruntime/general-notifications/placeholders/device-removed/placeholders.json new file mode 100644 index 0000000..cea68c5 --- /dev/null +++ b/collections/oneruntime/general-notifications/placeholders/device-removed/placeholders.json @@ -0,0 +1,25 @@ +[ + { + "name": "deviceRemoved", + "placeholders": [ + { + "name": "device-id", + "title": "Device ID", + "description": "The ID of the device", + "value": "{{{event.deviceId}}}" + }, + { + "name": "internal-user-id", + "title": "Internal User ID", + "description": "The internal user ID of the user who owns this device", + "value": "{{event.internalUserId}}" + }, + { + "name": "created", + "title": "Created", + "description": "The time when the device record was created", + "value": "{{event.created}}" + } + ] + } +]