Skip to content

Commit

Permalink
Revert "Fix inconsistencies"
Browse files Browse the repository at this point in the history
This reverts commit 90b8375.
  • Loading branch information
amorimluzia committed Nov 12, 2024
1 parent 90b8375 commit d063486
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"from": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"from": "[email protected]"
}
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -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}}"
}
]
}
]
Original file line number Diff line number Diff line change
@@ -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}}"
}
]
}
]

0 comments on commit d063486

Please sign in to comment.