diff --git a/collections/business/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/event-general-notifications.json b/collections/business/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/event-general-notifications.json new file mode 100644 index 0000000..31568cb --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/event-general-notifications.json @@ -0,0 +1,35 @@ +{ + "eventClassName": "com.backbase.lending.tradefinance.letterofcredit.event.spec.v1.ImportLetterOfCreditStatusUpdatedEvent", + "id": "import-letter-of-credit-status-updated", + "eventBusinessName": "Import Letter of Credit Status Updated", + "recipientType": "internal", + "extractor": "#this['contributorsIds']", + "serviceAgreementExtractor": "#this['serviceAgreementId']", + "generalNotifications": [ + { + "id": "import-letter-of-credit-status-updated", + "name": "Import Letter of Credit Status Updated", + "userPreferenceEnabled": true, + "manageable": false, + "additionalFilterLogic": "{'BANK_REVIEW', 'BANK_APPROVED', 'BANK_REJECTED', 'INTERNAL_REJECTED', 'ISSUED', 'DOCUMENT_REVIEW', 'DISCREPANCIES_FOUND', 'PENDING_SETTLEMENT', 'SETTLED', 'EXPIRED', 'CANCELLED'}.contains(#triggeredEvent['status'])", + "deliveryOptions": [ + { + "channel": "in-app-notification", + "channelSettings": "/import-letter-of-credit-status-updated/in-app-notification/in-app_channel-settings.json", + "isEnabledByDefault": true, + "isManageableByUser": false, + "routeInfo": { + "whereTo": "import-lc-view", + "data": "{\"id\":\"{{event.lcId}}\"}" + }, + "engagementTemplates": [ + { + "path": "/import-letter-of-credit-status-updated/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/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/in-app-notification/en_US/engagement-template.json b/collections/business/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/in-app-notification/en_US/engagement-template.json new file mode 100644 index 0000000..161413e --- /dev/null +++ b/collections/business/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/in-app-notification/en_US/engagement-template.json @@ -0,0 +1,4 @@ +{ + "title": "Import LC {{#eq event.status 'BANK_REVIEW' }}status change{{/eq}}{{#eq event.status 'DOCUMENT_REVIEW' }}status change{{/eq}}{{#eq event.status 'DISCREPANCIES_FOUND' }}status change{{/eq}}{{#eq event.status 'PENDING_SETTLEMENT' }}status change{{/eq}}{{#eq event.status 'BANK_APPROVED' }}approved{{/eq}}{{#eq event.status 'BANK_REJECTED' }}rejected{{/eq}}{{#eq event.status 'INTERNAL_REJECTED' }}rejected{{/eq}}{{#eq event.status 'ISSUED' }}issued{{/eq}}{{#eq event.status 'SETTLED' }}settled{{/eq}}{{#eq event.status 'EXPIRED' }}expired{{/eq}}{{#eq event.status 'CANCELLED' }}cancelled{{/eq}}", + "body": "Hi {{{user.preferredName}}}, {{#eq event.status 'BANK_REVIEW'}}status for your Import LC {{event.lcReference}} has changed to bank review.{{/eq}}{{#eq event.status 'BANK_APPROVED'}}your Import LC {{event.lcReference}} is approved.{{/eq}}{{#eq event.status 'BANK_REJECTED'}}your Import LC {{event.lcReference}} is rejected.{{/eq}}{{#eq event.status 'INTERNAL_REJECTED'}}your Import LC {{event.lcReference}} is rejected during internal review.{{/eq}}{{#eq event.status 'ISSUED'}}your Import LC {{event.lcReference}} is issued.{{/eq}}{{#eq event.status 'DOCUMENT_REVIEW'}}status for your Import LC {{event.lcReference}} has changed to document review.{{/eq}}{{#eq event.status 'DISCREPANCIES_FOUND'}}status for your Import LC {{event.lcReference}} has changed to discrepancies found.{{/eq}}{{#eq event.status 'PENDING_SETTLEMENT'}}status for your Import LC {{event.lcReference}} has changed to pending settlement.{{/eq}}{{#eq event.status 'SETTLED'}}your Import LC {{event.lcReference}} is settled.{{/eq}}{{#eq event.status 'EXPIRED'}}your Import LC {{event.lcReference}} has expired.{{/eq}}{{#eq event.status 'CANCELLED'}}your Import LC {{event.lcReference}} is cancelled.{{/eq}}" +} \ No newline at end of file diff --git a/collections/business/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/in-app-notification/in-app_channel-settings.json b/collections/business/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/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/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/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/import-letter-of-credit-status-updated/event-general-notifications.json b/collections/oneruntime/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/event-general-notifications.json new file mode 100644 index 0000000..31568cb --- /dev/null +++ b/collections/oneruntime/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/event-general-notifications.json @@ -0,0 +1,35 @@ +{ + "eventClassName": "com.backbase.lending.tradefinance.letterofcredit.event.spec.v1.ImportLetterOfCreditStatusUpdatedEvent", + "id": "import-letter-of-credit-status-updated", + "eventBusinessName": "Import Letter of Credit Status Updated", + "recipientType": "internal", + "extractor": "#this['contributorsIds']", + "serviceAgreementExtractor": "#this['serviceAgreementId']", + "generalNotifications": [ + { + "id": "import-letter-of-credit-status-updated", + "name": "Import Letter of Credit Status Updated", + "userPreferenceEnabled": true, + "manageable": false, + "additionalFilterLogic": "{'BANK_REVIEW', 'BANK_APPROVED', 'BANK_REJECTED', 'INTERNAL_REJECTED', 'ISSUED', 'DOCUMENT_REVIEW', 'DISCREPANCIES_FOUND', 'PENDING_SETTLEMENT', 'SETTLED', 'EXPIRED', 'CANCELLED'}.contains(#triggeredEvent['status'])", + "deliveryOptions": [ + { + "channel": "in-app-notification", + "channelSettings": "/import-letter-of-credit-status-updated/in-app-notification/in-app_channel-settings.json", + "isEnabledByDefault": true, + "isManageableByUser": false, + "routeInfo": { + "whereTo": "import-lc-view", + "data": "{\"id\":\"{{event.lcId}}\"}" + }, + "engagementTemplates": [ + { + "path": "/import-letter-of-credit-status-updated/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/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/in-app-notification/en_US/engagement-template.json b/collections/oneruntime/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/in-app-notification/en_US/engagement-template.json new file mode 100644 index 0000000..161413e --- /dev/null +++ b/collections/oneruntime/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/in-app-notification/en_US/engagement-template.json @@ -0,0 +1,4 @@ +{ + "title": "Import LC {{#eq event.status 'BANK_REVIEW' }}status change{{/eq}}{{#eq event.status 'DOCUMENT_REVIEW' }}status change{{/eq}}{{#eq event.status 'DISCREPANCIES_FOUND' }}status change{{/eq}}{{#eq event.status 'PENDING_SETTLEMENT' }}status change{{/eq}}{{#eq event.status 'BANK_APPROVED' }}approved{{/eq}}{{#eq event.status 'BANK_REJECTED' }}rejected{{/eq}}{{#eq event.status 'INTERNAL_REJECTED' }}rejected{{/eq}}{{#eq event.status 'ISSUED' }}issued{{/eq}}{{#eq event.status 'SETTLED' }}settled{{/eq}}{{#eq event.status 'EXPIRED' }}expired{{/eq}}{{#eq event.status 'CANCELLED' }}cancelled{{/eq}}", + "body": "Hi {{{user.preferredName}}}, {{#eq event.status 'BANK_REVIEW'}}status for your Import LC {{event.lcReference}} has changed to bank review.{{/eq}}{{#eq event.status 'BANK_APPROVED'}}your Import LC {{event.lcReference}} is approved.{{/eq}}{{#eq event.status 'BANK_REJECTED'}}your Import LC {{event.lcReference}} is rejected.{{/eq}}{{#eq event.status 'INTERNAL_REJECTED'}}your Import LC {{event.lcReference}} is rejected during internal review.{{/eq}}{{#eq event.status 'ISSUED'}}your Import LC {{event.lcReference}} is issued.{{/eq}}{{#eq event.status 'DOCUMENT_REVIEW'}}status for your Import LC {{event.lcReference}} has changed to document review.{{/eq}}{{#eq event.status 'DISCREPANCIES_FOUND'}}status for your Import LC {{event.lcReference}} has changed to discrepancies found.{{/eq}}{{#eq event.status 'PENDING_SETTLEMENT'}}status for your Import LC {{event.lcReference}} has changed to pending settlement.{{/eq}}{{#eq event.status 'SETTLED'}}your Import LC {{event.lcReference}} is settled.{{/eq}}{{#eq event.status 'EXPIRED'}}your Import LC {{event.lcReference}} has expired.{{/eq}}{{#eq event.status 'CANCELLED'}}your Import LC {{event.lcReference}} is cancelled.{{/eq}}" +} \ No newline at end of file diff --git a/collections/oneruntime/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/in-app-notification/in-app_channel-settings.json b/collections/oneruntime/general-notifications/event-general-notifications/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/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/import-letter-of-credit-status-updated/import-letter-of-credit-status-updated/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/pom.xml b/pom.xml index 43d6028..22d8196 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ Backbase :: Engagement Data - 2025.09-LTS + 2025.10 ecr.backbase.com/development 1.17.0 0.40.2