Skip to content
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

add missing properties to EventTo #81

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions src/Novu/Models/Events/EventTo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using Novu.Models.Subscribers;

namespace Novu.Models.Events;

Expand All @@ -16,9 +17,39 @@ public record EventTo
[JsonProperty("email", Required = Required.AllowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public string Email { get; set; }

/// <summary>
/// Subscriber first name to be populated in workflows.
/// </summary>
[JsonProperty("firstName", Required = Required.AllowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public string FirstName { get; set; }

/// <summary>
/// Subscriber last name to be populated in workflows.
/// </summary>
[JsonProperty("lastName", Required = Required.AllowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public string LastName { get; set; }

/// <summary>
/// Subscriber phone to be populated in workflows.
/// </summary>
[JsonProperty("phone", Required = Required.AllowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public string Phone { get; set; }

/// <summary>
/// Subscriber avatar to be populated in workflows.
/// </summary>
[JsonProperty("avatar", Required = Required.AllowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public string Avatar { get; set; }

/// <summary>
/// Subscriber locale to be populated in workflows.
/// </summary>
[JsonProperty("locale", Required = Required.AllowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public string Locale { get; set; }

/// <summary>
/// Subscriber data to be populated in workflows.
/// </summary>
[JsonProperty("data", Required = Required.AllowNull, DefaultValueHandling = DefaultValueHandling.Ignore)]
public List<AdditionalData> Data { get; set; }
}