Skip to content

Commit

Permalink
Merge branch 'master' into feature/HRMS-691-email-channel-low-balance
Browse files Browse the repository at this point in the history
# Conflicts:
#	collections/business/general-notifications/event-general-notifications/account-balance-changed/event-general-notifications.json
  • Loading branch information
denyso-bb committed Dec 5, 2023
2 parents 33ebfd8 + e884500 commit 7decb99
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 1 deletion.
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 @@ -58,6 +58,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",
"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"]
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.backbase.modelbank</groupId>
<artifactId>engagements-data</artifactId>
<version>0.32.0</version>
<version>0.33.0</version>
<packaging>pom</packaging>
<name>Backbase :: Engagement Data</name>

Expand Down

0 comments on commit 7decb99

Please sign in to comment.