Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "{{#eq event.status 'REJECTED' }}Direct debit rejected{{else}}Direct debit contains rejected {{#eq event.rejectedTransactionsCount 1 }}payment{{else}}payments{{/eq}}{{/eq}}",
"body": "Hi {{{user.preferredName}}}, your direct debit {{event.name}} of {{event.totalInstructedAmount.currencyCode}} {{formatAmount event.totalInstructedAmount.amount locale}}{{#eq event.status 'REJECTED' }} has changed to rejected{{else}} contains {{event.rejectedTransactionsCount}} rejected {{#eq event.rejectedTransactionsCount 1 }}payment{{else}}payments{{/eq}}{{/eq}}"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"appName": "model-bank",
"payload": {
"android": {
"settings": {
"sound": "default",
"color": "#FFE5CC",
"icon": "hello"
}
},
"ios": {
"settings": {
"category": "DIRECT_DEBIT_STATUS_UPDATED_CATEGORY",
"sound": "bingbong.aiff",
"interruption-level": "active"
}
},
"data": {
"level": "INFO"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,22 @@
"locale": "en_US"
}
]
},
{
"channel": "push",
"channelSettings": "/direct-debit-status-updated/push/push_channel-settings.json",
"isEnabledByDefault": true,
"routeInfo": {
"whereTo": "direct-debit-view",
"data": "{\"id\":\"{{event.id}}\",\"batchType\":\"{{event.type}}\"}"
},
"engagementTemplates": [
{
"path": "/direct-debit-status-updated/push/en_US/engagement-template.json",
"templateName": "batch-status-updated-push",
"locale": "en_US"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Direct debit to approve",
"body": "Hi {{{user.preferredName}}}, you have a new direct debit of {{event.approval.amountDetails.currencyCode}} {{formatAmount event.approval.amountDetails.amount locale}} to approve."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"appName": "model-bank",
"payload": {
"android": {
"settings": {
"sound": "default",
"color": "#FFE5CC",
"icon": "hello"
}
},
"ios": {
"settings": {
"category": "DIRECT_DEBIT_TO_APPROVE_CATEGORY",
"sound": "bingbong.aiff",
"interruption-level": "active"
}
},
"data": {
"level": "INFO"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,22 @@
"locale": "en_US"
}
]
},
{
"channel": "push",
"channelSettings": "/direct-debit-to-approve/push/push_channel-settings.json",
"isEnabledByDefault": true,
"routeInfo": {
"whereTo": "direct-debit-approve-view",
"data": "{\"id\":\"{{event.approval.itemId}}\", \"businessFunction\":\"{{event.approval.function}}\"}"
},
"engagementTemplates": [
{
"path": "/direct-debit-to-approve/push/en_US/engagement-template.json",
"templateName": "batch-to-approve-push",
"locale": "en_US"
}
]
}
]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "{{#eq event.status 'REJECTED' }}Direct debit rejected{{else}}Direct debit contains rejected {{#eq event.rejectedTransactionsCount 1 }}transfer{{else}}transfers{{/eq}}{{/eq}}",
"body": "Hi {{{user.preferredName}}}, your direct debit {{event.name}} of {{event.totalInstructedAmount.currencyCode}} {{formatAmount event.totalInstructedAmount.amount locale}}{{#eq event.status 'REJECTED' }} has changed to rejected{{else}} contains {{event.rejectedTransactionsCount}} rejected {{#eq event.rejectedTransactionsCount 1 }}transfer{{else}}transfers{{/eq}}{{/eq}}"
}
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": "DIRECT_DEBIT_STATUS_UPDATED_CATEGORY",
"sound": "bingbong.aiff",
"interruption-level": "active"
}
},
"data": {
"level": "INFO"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,22 @@
"locale": "en_US"
}
]
},
{
"channel": "push",
"channelSettings": "/direct-debit-status-updated/push/push_channel-settings.json",
"isEnabledByDefault": true,
"routeInfo": {
"whereTo": "direct-debit-view",
"data": "{\"id\":\"{{event.id}}\",\"batchType\":\"{{event.type}}\"}"
},
"engagementTemplates": [
{
"path": "/direct-debit-status-updated/push/en_US/engagement-template.json",
"templateName": "batch-status-updated-push",
"locale": "en_US"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"title": "Direct debit to approve",
"body": "Hi {{{user.preferredName}}}, you have a new direct debit of {{event.approval.amountDetails.currencyCode}} {{formatAmount event.approval.amountDetails.amount locale}} to approve."
}
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": "DIRECT_DEBIT_TO_APPROVE_CATEGORY",
"sound": "bingbong.aiff",
"interruption-level": "active"
}
},
"data": {
"level": "INFO"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,22 @@
"locale": "en_US"
}
]
},
{
"channel": "push",
"channelSettings": "/direct-debit-to-approve/push/push_channel-settings.json",
"isEnabledByDefault": true,
"routeInfo": {
"whereTo": "direct-debit-approve-view",
"data": "{\"id\":\"{{event.approval.itemId}}\", \"businessFunction\":\"{{event.approval.function}}\"}"
},
"engagementTemplates": [
{
"path": "/direct-debit-to-approve/push/en_US/engagement-template.json",
"templateName": "batch-to-approve-push",
"locale": "en_US"
}
]
}
]
},
Expand Down