-
Notifications
You must be signed in to change notification settings - Fork 31
♻️ refactor(payments): use Notification service for emails ⚠️ 🚨 #9042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
giancarloromeo
merged 56 commits into
ITISFoundation:master
from
giancarloromeo:refactor/use-notification-service-for-emails-in-payments
Apr 23, 2026
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
9dc8806
refactor
giancarloromeo 5cd52a4
add bcc
giancarloromeo 2af97de
refactor
giancarloromeo b69ae10
Merge branch 'master' into refactor/use-notification-service-for-emai…
giancarloromeo 2a8c65c
add attachment
giancarloromeo 4058f16
add context
giancarloromeo cc210b8
add user_name
giancarloromeo 60430cd
fix
giancarloromeo 7e30b20
Merge branch 'master' into refactor/use-notification-service-for-emai…
giancarloromeo fd4f6b9
revert
giancarloromeo ec6f0c7
Merge branch 'refactor/use-notification-service-for-emails-in-payment…
giancarloromeo b8a956d
update payment gateway
giancarloromeo 415f525
fix
giancarloromeo 0a356fa
fix bytes issue
giancarloromeo 1e8b641
add test
giancarloromeo a5d07a1
Merge branch 'refactor/use-notification-service-for-emails-in-payment…
giancarloromeo 6fe5f18
fix
giancarloromeo 316f38d
fix
giancarloromeo bc9e75b
single engine instance
giancarloromeo 620692d
nullable invoice url
giancarloromeo b9d83f2
add test
giancarloromeo 5eaa575
fix
giancarloromeo 4ff7d68
pylint
giancarloromeo 613f2ed
fix
giancarloromeo 804340d
fix
giancarloromeo c9166d9
revert
giancarloromeo 51e851f
add test
giancarloromeo 3613b9a
fix type
giancarloromeo daf5771
fix
giancarloromeo 7f72c74
fix
giancarloromeo f9862c6
fix
giancarloromeo c58694d
fix
giancarloromeo 9b2169d
fix
giancarloromeo 56cc902
cleanup
giancarloromeo 88a2c90
update
giancarloromeo f8be479
fix
giancarloromeo fcf9c5c
fix
giancarloromeo 8ad379c
fix
giancarloromeo bd92d9c
remove PAYMENTS_EMAIL
giancarloromeo 4af15da
Merge branch 'refactor/use-notification-service-for-emails-in-payment…
giancarloromeo f6df75d
revert
giancarloromeo 0efe10f
remove dep
giancarloromeo 84a96da
remove dep
giancarloromeo 1a6739d
fix
giancarloromeo 9eeea51
fix
giancarloromeo 369599b
fix
giancarloromeo dc79d22
fix
giancarloromeo 5c79619
update template
giancarloromeo a0e89b2
Merge branch 'refactor/use-notification-service-for-emails-in-payment…
giancarloromeo 647c06b
fix
giancarloromeo 2a14982
fix
giancarloromeo 9340f5b
fix
giancarloromeo 7c85847
fix
giancarloromeo 63eb845
Merge branch 'master' into refactor/use-notification-service-for-emai…
giancarloromeo 37be72c
fix
giancarloromeo 7565171
fix tests
giancarloromeo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
3 changes: 2 additions & 1 deletion
3
packages/models-library/src/models_library/notifications/celery/__init__.py
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
25 changes: 25 additions & 0 deletions
25
services/notifications/src/simcore_service_notifications/models/template_contexts/_paid.py
This file contains hidden or 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,25 @@ | ||
| """Context model for the 'paid' email template.""" | ||
|
|
||
| from models_library.notifications import Channel | ||
| from pydantic import BaseModel, HttpUrl | ||
|
|
||
| from ..template import BaseTemplateContext, register_template_context | ||
|
|
||
|
|
||
| class User(BaseModel): | ||
| first_name: str | None = None | ||
| last_name: str | None = None | ||
| user_name: str | None = None | ||
| email: str | None = None | ||
|
|
||
|
|
||
| class Payment(BaseModel): | ||
| price_dollars: str | ||
| osparc_credits: str | ||
| invoice_url: HttpUrl | ||
|
|
||
|
giancarloromeo marked this conversation as resolved.
|
||
|
|
||
| @register_template_context(channel=Channel.email, template_name="paid") | ||
| class PaidTemplateContext(BaseTemplateContext): | ||
| user: User | ||
| payment: Payment | ||
|
giancarloromeo marked this conversation as resolved.
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.