Skip to content

Commit

Permalink
Merge pull request #39 from Backbase/feature/HRMS-595
Browse files Browse the repository at this point in the history
Added SMS channel to Account Balance Low GN
  • Loading branch information
amorimluzia authored Oct 25, 2023
2 parents 9e89885 + 5e3726d commit 425a3a3
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"message": "Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"from": "BACKBASE"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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"]
}
Original file line number Diff line number Diff line change
@@ -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"]
}

0 comments on commit 425a3a3

Please sign in to comment.