diff --git a/collections/retail/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/en_US/engagement-template.json b/collections/retail/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/retail/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/retail/general-notifications/event-general-notifications/account-balance-changed/account-balance-low/sms/sms_channel-settings.json b/collections/retail/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/retail/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/retail/general-notifications/event-general-notifications/account-balance-changed/event-general-notifications.json b/collections/retail/general-notifications/event-general-notifications/account-balance-changed/event-general-notifications.json index 99fcb49..daf9473 100644 --- a/collections/retail/general-notifications/event-general-notifications/account-balance-changed/event-general-notifications.json +++ b/collections/retail/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/retail/general-notifications/templates/account-balance-low-sms/content-schema.json b/collections/retail/general-notifications/templates/account-balance-low-sms/content-schema.json new file mode 100644 index 0000000..03ed6fd --- /dev/null +++ b/collections/retail/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 Retail", + "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/retail/general-notifications/templates/account-balance-low-sms/template.json b/collections/retail/general-notifications/templates/account-balance-low-sms/template.json new file mode 100644 index 0000000..4cbf3c9 --- /dev/null +++ b/collections/retail/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