diff --git a/src/Altinn.Notifications.Core/Enums/SmsNotificationResultType.cs b/src/Altinn.Notifications.Core/Enums/SmsNotificationResultType.cs new file mode 100644 index 00000000..03b2239a --- /dev/null +++ b/src/Altinn.Notifications.Core/Enums/SmsNotificationResultType.cs @@ -0,0 +1,32 @@ +namespace Altinn.Notifications.Core.Enums; + +/// +/// Enum describing sms notification result types +/// +public enum SmsNotificationResultType +{ + /// + /// Default result for new notifications + /// + New, + + /// + /// Sms notification being sent + /// + Sending, + + /// + /// Sms notification sent to service provider + /// + Accepted, + + /// + /// Failed, unknown reason + /// + Failed, + + /// + /// Failed, invalid mobilenumber + /// + Failed_InvalidRecipient +} diff --git a/src/Altinn.Notifications.Persistence/Migration/v0.17/01-setup-function.sql b/src/Altinn.Notifications.Persistence/Migration/v0.18/01-setup-function.sql similarity index 100% rename from src/Altinn.Notifications.Persistence/Migration/v0.17/01-setup-function.sql rename to src/Altinn.Notifications.Persistence/Migration/v0.18/01-setup-function.sql diff --git a/test/Altinn.Notifications.IntegrationTests/Notifications.Persistence/OrderRepositoryTests.cs b/test/Altinn.Notifications.IntegrationTests/Notifications.Persistence/OrderRepositoryTests.cs index c61e0fb8..bd15bacd 100644 --- a/test/Altinn.Notifications.IntegrationTests/Notifications.Persistence/OrderRepositoryTests.cs +++ b/test/Altinn.Notifications.IntegrationTests/Notifications.Persistence/OrderRepositoryTests.cs @@ -10,7 +10,7 @@ namespace Altinn.Notifications.IntegrationTests.Notifications.Persistence { public class OrderRepositoryTests : IAsyncLifetime { - private List orderIdsToDelete; + private readonly List orderIdsToDelete; public OrderRepositoryTests() { diff --git a/test/Altinn.Notifications.IntegrationTests/Notifications.Persistence/SmsRepositoryTests.cs b/test/Altinn.Notifications.IntegrationTests/Notifications.Persistence/SmsRepositoryTests.cs index 56c13297..70cba719 100644 --- a/test/Altinn.Notifications.IntegrationTests/Notifications.Persistence/SmsRepositoryTests.cs +++ b/test/Altinn.Notifications.IntegrationTests/Notifications.Persistence/SmsRepositoryTests.cs @@ -10,7 +10,7 @@ namespace Altinn.Notifications.IntegrationTests.Notifications.Persistence; public class SmsRepositoryTests : IAsyncLifetime { - private List orderIdsToDelete; + private readonly List orderIdsToDelete; public SmsRepositoryTests() {