Altinn / altinn-notifications

Altinn platform microservice for handling notifications (mail, sms, etc)
MIT License
2 stars 3 forks source link

Add notification channels SmsPreferred and EmailPreferred #541

Closed acn-sbuad closed 3 months ago

acn-sbuad commented 5 months ago

Description

Service owners may be flexible w.r.t which notification channel is used to pass on a notification. If this is the case they can prefer one channel, but be fine with the notification being sent via backup channel if required.

SmsPreferred will send an sms to the recipient if a mobile number is available, and an email if no mobile number is available, but an email address is.

Considerations

Additional Information

No response

Tasks

Notifications

Notifications.Core

Persisting the order request

Notifications.Tests

Chores

Acceptance Criterias

SandGrainOne commented 3 months ago

Doing some initial testing and have found a small issue: Looks like we have a fallback to Email notification also when given channel is Sms. This is not expected. The expected result would be to fail with missing contact information.

SandGrainOne commented 3 months ago

All tasks completed.