-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: trigger notification for failed subscription(s)
- Loading branch information
1 parent
c382745
commit 720a250
Showing
11 changed files
with
109 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
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
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
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
5 changes: 5 additions & 0 deletions
5
...istribution/src/main/resources/templates/notifications/portal/API.SUBSCRIPTION_FAILED.yml
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 @@ | ||
title: | | ||
[${api.name}] Subscription Failed | ||
message: | | ||
The subscription request for the application "${application.name}" | ||
to the plan "${plan.name}" has failed. |
5 changes: 5 additions & 0 deletions
5
...ion/src/main/resources/templates/notifications/portal/APPLICATION.SUBSCRIPTION_FAILED.yml
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 @@ | ||
title: | | ||
[${application.name}] Subscription Failed | ||
message: | | ||
The subscription request to the plan "${plan.name}" | ||
of the api "${api.name}" has failed. |
16 changes: 16 additions & 0 deletions
16
...pim-rest-api-standalone-distribution/src/main/resources/templates/subscriptionFailed.html
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,16 @@ | ||
<html> | ||
<body style="text-align: center;"> | ||
<header> | ||
<#include "header.html" /> | ||
</header> | ||
<div style="margin-top: 50px; color: #424e5a;"> | ||
<h3>Hi,</h3> | ||
<p>The subscription to the API <code>${api.name}</code> with plan <code>${plan.name}</code> has failed.</p> | ||
|
||
<#if subscription.reason??> | ||
Message | ||
<p style="border: 1px solid grey; margin: 0 32px; padding: 16px; font-style: italic;">${subscription.reason}</p> | ||
</#if> | ||
</div> | ||
</body> | ||
</html> |