Skip to content

Commit f6d9cac

Browse files
committed
fix model
1 parent 84dbc98 commit f6d9cac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SocketLabs.EventWebhooks.Extensions/Models/FailedEvent.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Text.Json.Serialization;
45
using System.Threading.Tasks;
56

67
namespace SocketLabs.EventWebhooks.Extensions.Models
@@ -11,6 +12,8 @@ public class FailedEvent : WebhookEventBase
1112
public string? BounceStatus { get; set; }
1213
public string? FromAddress { get; set; }
1314
public int FailureCode { get; set; }
15+
16+
[JsonConverter(typeof(JsonStringEnumConverter))]
1417
public FailureType FailureType { get; set; }
1518
public string? Reason { get; set; }
1619
public string? RemoteMta { get; set; }

0 commit comments

Comments
 (0)