-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b2d6f3
commit 2b7380f
Showing
109 changed files
with
1,465 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...ns/account-balance-changed/account-balance-low-business/email/email_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"from": "[email protected]" | ||
} |
4 changes: 4 additions & 0 deletions
4
...account-balance-changed/account-balance-low-business/email/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"subject": "Account balance changed (business)", | ||
"body": "Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}" | ||
} |
4 changes: 4 additions & 0 deletions
4
...e-changed/account-balance-low-business/in-app-notification/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"title": "Account balance changed (business)", | ||
"body": "💸 Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}" | ||
} |
5 changes: 5 additions & 0 deletions
5
...nce-changed/account-balance-low-business/in-app-notification/in-app_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"level": "INFO", | ||
"targetGroup": "USER", | ||
"origin": "Accounts" | ||
} |
4 changes: 4 additions & 0 deletions
4
.../account-balance-changed/account-balance-low-business/push/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"title": "Account balance changed (business)", | ||
"body": "\uD83D\uDCB8 Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}" | ||
} |
22 changes: 22 additions & 0 deletions
22
...ions/account-balance-changed/account-balance-low-business/push/push_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"appName": "model-bank-business", | ||
"payload": { | ||
"android": { | ||
"settings": { | ||
"sound": "default", | ||
"color": "#FFE5CC", | ||
"icon": "hello" | ||
} | ||
}, | ||
"ios": { | ||
"settings": { | ||
"category": "ACCOUNT_BALANCE_LOW_CATEGORY", | ||
"sound": "bingbong.aiff", | ||
"interruption-level": "active" | ||
} | ||
}, | ||
"data": { | ||
"level": "INFO" | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...s/account-balance-changed/account-balance-low-business/sms/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}" | ||
} |
3 changes: 3 additions & 0 deletions
3
...ations/account-balance-changed/account-balance-low-business/sms/sms_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"from": "BACKBASE" | ||
} |
3 changes: 3 additions & 0 deletions
3
...ions/account-balance-changed/account-balance-low-retail/email/email_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"from": "[email protected]" | ||
} |
4 changes: 4 additions & 0 deletions
4
...s/account-balance-changed/account-balance-low-retail/email/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"subject": "Account balance changed (retail)", | ||
"body": "Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}" | ||
} |
4 changes: 4 additions & 0 deletions
4
...nce-changed/account-balance-low-retail/in-app-notification/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"title": "Account balance changed (retail)", | ||
"body": "💸 Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}" | ||
} |
5 changes: 5 additions & 0 deletions
5
...lance-changed/account-balance-low-retail/in-app-notification/in-app_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"level": "INFO", | ||
"targetGroup": "USER", | ||
"origin": "Accounts" | ||
} |
4 changes: 4 additions & 0 deletions
4
...ns/account-balance-changed/account-balance-low-retail/push/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"title": "Account balance changed (retail)", | ||
"body": "\uD83D\uDCB8 Hi {{{user.preferredName}}}, your {{{event.alias}}} balance just went below threshold. The current balance is {{formatAmount event.currentBalance locale}}" | ||
} |
22 changes: 22 additions & 0 deletions
22
...ations/account-balance-changed/account-balance-low-retail/push/push_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"appName": "model-bank-retail", | ||
"payload": { | ||
"android": { | ||
"settings": { | ||
"sound": "default", | ||
"color": "#FFE5CC", | ||
"icon": "hello" | ||
} | ||
}, | ||
"ios": { | ||
"settings": { | ||
"category": "ACCOUNT_BALANCE_LOW_CATEGORY", | ||
"sound": "bingbong.aiff", | ||
"interruption-level": "active" | ||
} | ||
}, | ||
"data": { | ||
"level": "INFO" | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ons/account-balance-changed/account-balance-low-retail/sms/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}" | ||
} |
3 changes: 3 additions & 0 deletions
3
...ications/account-balance-changed/account-balance-low-retail/sms/sms_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"from": "BACKBASE" | ||
} |
145 changes: 145 additions & 0 deletions
145
...ions/event-general-notifications/account-balance-changed/event-general-notifications.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
{ | ||
"eventClassName": "com.backbase.dbs.actions.reactive.event.spec.v2.AccountBalanceChangedEvent", | ||
"id": "account-balance-changed", | ||
"eventBusinessName": "Account Balance Changed", | ||
"recipientType": "subscription", | ||
"extractor": "#this['arrangementId']", | ||
"subscriptionType": "arrangement", | ||
"serviceAgreementExtractor": "#this['serviceAgreementId']", | ||
"generalNotifications": [ | ||
{ | ||
"id": "account-balance-low", | ||
"name": "Account Balance Low Retail", | ||
"userPreferenceEnabled": true, | ||
"manageable": false, | ||
"additionalFilterLogic": "T(java.lang.Double).valueOf(#triggeredEvent['currentBalance']) < #userConditions['amount'] && T(java.lang.Double).valueOf(#triggeredEvent['previousBalance']) >= #userConditions['amount']", | ||
"userPreferenceDefaults": "{\"amount\":0}", | ||
"deliveryOptions": [ | ||
{ | ||
"channel": "in-app-notification", | ||
"channelSettings": "/account-balance-low-retail/in-app-notification/in-app_channel-settings.json", | ||
"isEnabledByDefault": true, | ||
"isManageableByUser": false, | ||
"routeInfo": { | ||
"whereTo": "arrangement-view", | ||
"data": "{\"id\":\"{{event.arrangementId}}\"}" | ||
}, | ||
"engagementTemplates": [ | ||
{ | ||
"path": "/account-balance-low-retail/in-app-notification/en_US/engagement-template.json", | ||
"templateName": "account-balance-low-in-app-notification", | ||
"locale": "en_US" | ||
} | ||
] | ||
}, | ||
{ | ||
"channel": "push", | ||
"channelSettings": "/account-balance-low-retail/push/push_channel-settings.json", | ||
"isEnabledByDefault": true, | ||
"routeInfo": { | ||
"whereTo": "arrangement-view", | ||
"data": "{\"id\":\"{{event.arrangementId}}\"}" | ||
}, | ||
"engagementTemplates": [ | ||
{ | ||
"path": "/account-balance-low-retail/push/en_US/engagement-template.json", | ||
"templateName": "account-balance-low-push", | ||
"locale": "en_US" | ||
} | ||
] | ||
}, | ||
{ | ||
"channel": "sms", | ||
"channelSettings": "/account-balance-low-retail/sms/sms_channel-settings.json", | ||
"isEnabledByDefault": false, | ||
"engagementTemplates": [ | ||
{ | ||
"path": "/account-balance-low-retail/sms/en_US/engagement-template.json", | ||
"templateName": "account-balance-low-sms", | ||
"locale": "en_US" | ||
} | ||
] | ||
}, | ||
{ | ||
"channel": "email", | ||
"channelSettings": "/account-balance-low-retail/email/email_channel-settings.json", | ||
"isEnabledByDefault": false, | ||
"engagementTemplates": [ | ||
{ | ||
"path": "/account-balance-low-retail/email/en_US/engagement-template.json", | ||
"templateName": "account-balance-low-email", | ||
"locale": "en_US" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "account-balance-low-business", | ||
"name": "Account Balance Low Business", | ||
"userPreferenceEnabled": true, | ||
"manageable": false, | ||
"additionalFilterLogic": "T(java.lang.Double).valueOf(#triggeredEvent['currentBalance']) < #userConditions['amount'] && T(java.lang.Double).valueOf(#triggeredEvent['previousBalance']) >= #userConditions['amount']", | ||
"userPreferenceDefaults": "{\"amount\":0}", | ||
"deliveryOptions": [ | ||
{ | ||
"channel": "in-app-notification", | ||
"channelSettings": "/account-balance-low-business/in-app-notification/in-app_channel-settings.json", | ||
"isEnabledByDefault": true, | ||
"isManageableByUser": false, | ||
"routeInfo": { | ||
"whereTo": "arrangement-view", | ||
"data": "{\"id\":\"{{event.arrangementId}}\"}" | ||
}, | ||
"engagementTemplates": [ | ||
{ | ||
"path": "/account-balance-low-business/in-app-notification/en_US/engagement-template.json", | ||
"templateName": "account-balance-low-in-app-notification", | ||
"locale": "en_US" | ||
} | ||
] | ||
}, | ||
{ | ||
"channel": "push", | ||
"channelSettings": "/account-balance-low-business/push/push_channel-settings.json", | ||
"isEnabledByDefault": true, | ||
"routeInfo": { | ||
"whereTo": "arrangement-view", | ||
"data": "{\"id\":\"{{event.arrangementId}}\"}" | ||
}, | ||
"engagementTemplates": [ | ||
{ | ||
"path": "/account-balance-low-business/push/en_US/engagement-template.json", | ||
"templateName": "account-balance-low-push", | ||
"locale": "en_US" | ||
} | ||
] | ||
}, | ||
{ | ||
"channel": "sms", | ||
"channelSettings": "/account-balance-low-business/sms/sms_channel-settings.json", | ||
"isEnabledByDefault": false, | ||
"engagementTemplates": [ | ||
{ | ||
"path": "/account-balance-low-business/sms/en_US/engagement-template.json", | ||
"templateName": "account-balance-low-sms", | ||
"locale": "en_US" | ||
} | ||
] | ||
}, | ||
{ | ||
"channel": "email", | ||
"channelSettings": "/account-balance-low-business/email/email_channel-settings.json", | ||
"isEnabledByDefault": false, | ||
"engagementTemplates": [ | ||
{ | ||
"path": "/account-balance-low-business/email/en_US/engagement-template.json", | ||
"templateName": "account-balance-low-email", | ||
"locale": "en_US" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
4 changes: 4 additions & 0 deletions
4
...t-export-completed/audit-export-failed/in-app-notification/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"title": "Export failed", | ||
"body": "The CSV you requested for export failed to complete" | ||
} |
5 changes: 5 additions & 0 deletions
5
...dit-export-completed/audit-export-failed/in-app-notification/in-app_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"level": "ALERT", | ||
"targetGroup": "USER", | ||
"origin": "Audit" | ||
} |
4 changes: 4 additions & 0 deletions
4
...it-export-completed/audit-export-ready/in-app-notification/en_US/engagement-template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"title": "Export complete", | ||
"body": "The CSV you requested for export is complete and ready to download" | ||
} |
5 changes: 5 additions & 0 deletions
5
...udit-export-completed/audit-export-ready/in-app-notification/in-app_channel-settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"level": "SUCCESS", | ||
"targetGroup": "USER", | ||
"origin": "Audit" | ||
} |
Oops, something went wrong.