diff --git a/collections/business/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/en_US/engagement-template.json b/collections/business/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/en_US/engagement-template.json new file mode 100644 index 0000000..ffb4719 --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/en_US/engagement-template.json @@ -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}}" +} diff --git a/collections/business/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/push_channel-settings.json b/collections/business/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/push_channel-settings.json new file mode 100644 index 0000000..46843f8 --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/push_channel-settings.json @@ -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" + } + } +} diff --git a/collections/business/general-notifications/event-general-notifications/batch-status-updated/event-general-notifications.json b/collections/business/general-notifications/event-general-notifications/batch-status-updated/event-general-notifications.json index 3b7ad2b..bf926f7 100644 --- a/collections/business/general-notifications/event-general-notifications/batch-status-updated/event-general-notifications.json +++ b/collections/business/general-notifications/event-general-notifications/batch-status-updated/event-general-notifications.json @@ -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" + } + ] } ] } diff --git a/collections/business/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/en_US/engagement-template.json b/collections/business/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/en_US/engagement-template.json new file mode 100644 index 0000000..e3bca28 --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/en_US/engagement-template.json @@ -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." +} \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/push_channel-settings.json b/collections/business/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/push_channel-settings.json new file mode 100644 index 0000000..b39abc5 --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/push_channel-settings.json @@ -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" + } + } +} diff --git a/collections/business/general-notifications/event-general-notifications/pending-approval/event-general-notifications.json b/collections/business/general-notifications/event-general-notifications/pending-approval/event-general-notifications.json index 120c7c2..bc17dd9 100644 --- a/collections/business/general-notifications/event-general-notifications/pending-approval/event-general-notifications.json +++ b/collections/business/general-notifications/event-general-notifications/pending-approval/event-general-notifications.json @@ -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" + } + ] } ] }, diff --git a/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/en_US/engagement-template.json b/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/en_US/engagement-template.json new file mode 100644 index 0000000..8799ee1 --- /dev/null +++ b/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/en_US/engagement-template.json @@ -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}}" +} \ No newline at end of file diff --git a/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/push_channel-settings.json b/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/push_channel-settings.json new file mode 100644 index 0000000..bb8276b --- /dev/null +++ b/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/direct-debit-status-updated/push/push_channel-settings.json @@ -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" + } + } +} \ No newline at end of file diff --git a/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/event-general-notifications.json b/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/event-general-notifications.json index 3b7ad2b..bf926f7 100644 --- a/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/event-general-notifications.json +++ b/collections/oneruntime/general-notifications/event-general-notifications/batch-status-updated/event-general-notifications.json @@ -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" + } + ] } ] } diff --git a/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/en_US/engagement-template.json b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/en_US/engagement-template.json new file mode 100644 index 0000000..e3bca28 --- /dev/null +++ b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/en_US/engagement-template.json @@ -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." +} \ No newline at end of file diff --git a/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/push_channel-settings.json b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/push_channel-settings.json new file mode 100644 index 0000000..6241c08 --- /dev/null +++ b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/direct-debit-to-approve/push/push_channel-settings.json @@ -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" + } + } +} \ No newline at end of file diff --git a/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/event-general-notifications.json b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/event-general-notifications.json index 120c7c2..bc17dd9 100644 --- a/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/event-general-notifications.json +++ b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/event-general-notifications.json @@ -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" + } + ] } ] },