From 2fe1f5850b01e648af28c7f6205c28ad5351d024 Mon Sep 17 00:00:00 2001 From: michalkozak Date: Wed, 29 Oct 2025 12:24:33 +0100 Subject: [PATCH] Import LC - pending approvals --- .../event-general-notifications.json | 25 +++++++++++++++++++ .../en_US/engagement-template.json | 4 +++ .../in-app_channel-settings.json | 5 ++++ .../event-general-notifications.json | 25 +++++++++++++++++++ .../en_US/engagement-template.json | 4 +++ .../in-app_channel-settings.json | 5 ++++ 6 files changed, 68 insertions(+) create mode 100644 collections/business/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json create mode 100644 collections/business/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json create mode 100644 collections/oneruntime/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json create mode 100644 collections/oneruntime/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json 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 30ae410..120c7c2 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 @@ -154,6 +154,31 @@ ] } ] + }, + { + "id": "import-letter-of-credit-to-approve", + "name": "Import Letter of Credit To Approve", + "userPreferenceEnabled": true, + "manageable": false, + "additionalFilterLogic": "#triggeredEvent['approval']['resource'] == 'Letter of Credit' && #triggeredEvent['approval']['function'] == 'Letter of Credit - Application'", + "deliveryOptions": [ + { + "channel": "in-app-notification", + "channelSettings": "/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json", + "isEnabledByDefault": true, + "isManageableByUser": false, + "routeInfo": { + "whereTo": "import-lc-approve-view", + "data": "{\"id\":\"{{event.approval.itemId}}\"}" + }, + "engagementTemplates": [ + { + "path": "/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json", + "locale": "en_US" + } + ] + } + ] } ] } \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json b/collections/business/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json new file mode 100644 index 0000000..ff3c84f --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json @@ -0,0 +1,4 @@ +{ + "title": "Import LC to approve", + "body": "Hi {{{user.preferredName}}}, you have a new import LC 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/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json b/collections/business/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json new file mode 100644 index 0000000..cb9b84b --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json @@ -0,0 +1,5 @@ +{ + "level": "INFO", + "targetGroup": "USER", + "origin": "TradeFinance" +} \ 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 30ae410..120c7c2 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 @@ -154,6 +154,31 @@ ] } ] + }, + { + "id": "import-letter-of-credit-to-approve", + "name": "Import Letter of Credit To Approve", + "userPreferenceEnabled": true, + "manageable": false, + "additionalFilterLogic": "#triggeredEvent['approval']['resource'] == 'Letter of Credit' && #triggeredEvent['approval']['function'] == 'Letter of Credit - Application'", + "deliveryOptions": [ + { + "channel": "in-app-notification", + "channelSettings": "/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json", + "isEnabledByDefault": true, + "isManageableByUser": false, + "routeInfo": { + "whereTo": "import-lc-approve-view", + "data": "{\"id\":\"{{event.approval.itemId}}\"}" + }, + "engagementTemplates": [ + { + "path": "/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json", + "locale": "en_US" + } + ] + } + ] } ] } \ No newline at end of file diff --git a/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json new file mode 100644 index 0000000..ff3c84f --- /dev/null +++ b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/en_US/engagement-template.json @@ -0,0 +1,4 @@ +{ + "title": "Import LC to approve", + "body": "Hi {{{user.preferredName}}}, you have a new import LC 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/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json new file mode 100644 index 0000000..cb9b84b --- /dev/null +++ b/collections/oneruntime/general-notifications/event-general-notifications/pending-approval/import-letter-of-credit-to-approve/in-app-notification/in-app_channel-settings.json @@ -0,0 +1,5 @@ +{ + "level": "INFO", + "targetGroup": "USER", + "origin": "TradeFinance" +} \ No newline at end of file