Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

CustomerEvents.cs

using Newtonsoft.Json;

namespace Nop.Plugin.Misc.Omnisend.DTO.Events;

public class CustomerEvents
{
    [JsonProperty("eventName")] public string EventName => Properties.EventName;
    [JsonProperty("origin")] public string Origin { get; set; } = OmnisendDefaults.IntegrationOrigin;
    [JsonProperty("eventVersion")] public string EventVersion => Properties.EventVersion;
    [JsonProperty("contact")] public IDictionary Contact { get; } = new Dictionary();
    [JsonProperty("properties")] public IEventProperty Properties { get; set; }
    [JsonIgnore] public string Email { set => Contact["email"] = value; }
}