diff --git a/src/Altinn.Notifications/Models/BaseNotificationOrderExt.cs b/src/Altinn.Notifications/Models/BaseNotificationOrderExt.cs
index e72b6c03..c1e98275 100644
--- a/src/Altinn.Notifications/Models/BaseNotificationOrderExt.cs
+++ b/src/Altinn.Notifications/Models/BaseNotificationOrderExt.cs
@@ -14,48 +14,56 @@ public class BaseNotificationOrderExt
/// Gets or sets the id of the notification order
///
[JsonPropertyName("id")]
+ [JsonPropertyOrder(1)]
public string Id { get; set; } = string.Empty;
///
/// Gets or sets the senders reference of the notification
///
[JsonPropertyName("sendersReference")]
+ [JsonPropertyOrder(2)]
public string? SendersReference { get; set; }
///
/// Gets or sets the requested send time of the notification
///
[JsonPropertyName("requestedSendTime")]
+ [JsonPropertyOrder(3)]
public DateTime RequestedSendTime { get; set; }
///
/// Gets or sets the short name of the creator of the notification order
///
[JsonPropertyName("creator")]
+ [JsonPropertyOrder(4)]
public string Creator { get; set; } = string.Empty;
///
/// Gets or sets the date and time of when the notification order was created
///
[JsonPropertyName("created")]
+ [JsonPropertyOrder(5)]
public DateTime Created { get; set; }
///
/// Gets or sets the preferred notification channel of the notification order
///
[JsonPropertyName("notificationChannel")]
- [JsonConverter(typeof(JsonStringEnumConverter))]
+ [JsonConverter(typeof(JsonStringEnumConverter))]
+ [JsonPropertyOrder(6)]
public NotificationChannelExt NotificationChannel { get; set; }
///
/// Gets or sets whether notifications generated by this order should ignore KRR reservations
///
[JsonPropertyName("ignoreReservation")]
+ [JsonPropertyOrder(7)]
public bool? IgnoreReservation { get; set; }
///
/// Gets or sets the id of the resource that the notification is related to
///
[JsonPropertyName("resourceId")]
+ [JsonPropertyOrder(8)]
public string? ResourceId { get; set; }
}
diff --git a/src/Altinn.Notifications/Models/NotificationOrderExt.cs b/src/Altinn.Notifications/Models/NotificationOrderExt.cs
index 4a49196b..336a4574 100644
--- a/src/Altinn.Notifications/Models/NotificationOrderExt.cs
+++ b/src/Altinn.Notifications/Models/NotificationOrderExt.cs
@@ -14,23 +14,27 @@ public class NotificationOrderExt : BaseNotificationOrderExt
/// Gets or sets the list of recipients
///
[JsonPropertyName("recipients")]
+ [JsonPropertyOrder(9)]
public List Recipients { get; set; } = new List();
///
/// Gets or sets the emailTemplate
///
[JsonPropertyName("emailTemplate")]
+ [JsonPropertyOrder(10)]
public EmailTemplateExt? EmailTemplate { get; set; }
///
/// Gets or sets the smsTemplate
///
[JsonPropertyName("smsTemplate")]
+ [JsonPropertyOrder(11)]
public SmsTemplateExt? SmsTemplate { get; set; }
///
/// Gets or sets the link of the order
///
[JsonPropertyName("links")]
+ [JsonPropertyOrder(12)]
public OrderResourceLinksExt Links { get; set; } = new OrderResourceLinksExt();
}
diff --git a/src/Altinn.Notifications/Models/NotificationOrderWithStatusExt.cs b/src/Altinn.Notifications/Models/NotificationOrderWithStatusExt.cs
index 46c22ced..7a8158bb 100644
--- a/src/Altinn.Notifications/Models/NotificationOrderWithStatusExt.cs
+++ b/src/Altinn.Notifications/Models/NotificationOrderWithStatusExt.cs
@@ -14,11 +14,13 @@ public class NotificationOrderWithStatusExt : BaseNotificationOrderExt
/// Gets or sets the processing status of the notication order
///
[JsonPropertyName("processingStatus")]
+ [JsonPropertyOrder(9)]
public StatusExt ProcessingStatus { get; set; } = new();
///
/// Gets or sets the summary of the notifiications statuses
///
[JsonPropertyName("notificationsStatusSummary")]
+ [JsonPropertyOrder(10)]
public NotificationsStatusSummaryExt? NotificationsStatusSummary { get; set; }
}