From 0ac67a072a9a9f7c7423506dbfe2ef3773f5bb13 Mon Sep 17 00:00:00 2001 From: Luzia Date: Thu, 9 Nov 2023 17:39:16 +0100 Subject: [PATCH 1/2] Added SMS channel to BB Account Balance Low GN --- .../sms/en_US/engagement-template.json | 3 ++ .../sms/sms_channel-settings.json | 3 ++ .../event-general-notifications.json | 12 +++++++ .../content-schema.json | 33 +++++++++++++++++++ .../account-balance-low-sms/template.json | 8 +++++ 5 files changed, 59 insertions(+) create mode 100644 collections/business/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/en_US/engagement-template.json create mode 100644 collections/business/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/sms_channel-settings.json create mode 100644 collections/business/general-notifications/templates/account-balance-low-sms/content-schema.json create mode 100644 collections/business/general-notifications/templates/account-balance-low-sms/template.json diff --git a/collections/business/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/en_US/engagement-template.json b/collections/business/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/en_US/engagement-template.json new file mode 100644 index 0000000..9c4d900 --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/en_US/engagement-template.json @@ -0,0 +1,3 @@ +{ + "message": "Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}" +} \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/sms_channel-settings.json b/collections/business/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/sms_channel-settings.json new file mode 100644 index 0000000..c33502e --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/sms_channel-settings.json @@ -0,0 +1,3 @@ +{ + "from": "BACKBASE" +} \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/account-balance-changed/event-general-notifications.json b/collections/business/general-notifications/event-general-notifications/account-balance-changed/event-general-notifications.json index 99fcb49..daf9473 100644 --- a/collections/business/general-notifications/event-general-notifications/account-balance-changed/event-general-notifications.json +++ b/collections/business/general-notifications/event-general-notifications/account-balance-changed/event-general-notifications.json @@ -46,6 +46,18 @@ "locale": "en_US" } ] + }, + { + "channel": "sms", + "channelSettings": "/account-balance-low/sms/sms_channel-settings.json", + "isEnabledByDefault": false, + "engagementTemplates": [ + { + "path": "/account-balance-low/sms/en_US/engagement-template.json", + "templateName": "account-balance-low-sms", + "locale": "en_US" + } + ] } ] } diff --git a/collections/business/general-notifications/templates/account-balance-low-sms/content-schema.json b/collections/business/general-notifications/templates/account-balance-low-sms/content-schema.json new file mode 100644 index 0000000..28d51c8 --- /dev/null +++ b/collections/business/general-notifications/templates/account-balance-low-sms/content-schema.json @@ -0,0 +1,33 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Account Balance Low", + "description": "Action event for sms notifications when account balance is under a specific number(low)", + "type": "object", + "properties": { + "title": { + "title": "Title", + "type": "string", + "metadata": { + "placeholderText": "Enter a title (max. 50 chars)", + "renderingHint": "textarea", + "customErrorMessages" : { + "required": "Please provide a title" + } + }, + "default": "Account balance low" + }, + "body": { + "title": "Body", + "type": "string", + "metadata": { + "placeholderText": "Enter a body message (max. 2000 chars)", + "renderingHint": "textarea", + "customErrorMessages" : { + "required": "Please provide a body text" + } + }, + "default": "Check your account now!" + } + }, + "required": ["title", "body"] +} \ No newline at end of file diff --git a/collections/business/general-notifications/templates/account-balance-low-sms/template.json b/collections/business/general-notifications/templates/account-balance-low-sms/template.json new file mode 100644 index 0000000..4cbf3c9 --- /dev/null +++ b/collections/business/general-notifications/templates/account-balance-low-sms/template.json @@ -0,0 +1,8 @@ +{ + "name":"account-balance-low-sms", + "description":"Sms template for Account Balance Low general notification", + "title":"Account Balance Low", + "engagement": "general-notification", + "channel": "sms", + "placeholderGroups":["accountBalanceChanged", "userProfile"] +} \ No newline at end of file From e88450002197223bd0647ebc1e4c2044dc5c56fd Mon Sep 17 00:00:00 2001 From: bb-engagements-data-bot Date: Fri, 10 Nov 2023 12:21:26 +0000 Subject: [PATCH 2/2] [skip bump] version bump --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 79a62be..0f89eeb 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ 4.0.0 com.backbase.modelbank engagements-data - 0.32.0 + 0.33.0 pom Backbase :: Engagement Data