Webiant Logo Webiant Logo
  1. No results found.

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

Subscription.cs

using Newtonsoft.Json;

namespace Nop.Plugin.Misc.Zettle.Domain.Api.Pusher;

/// 
/// Represents the subscription details
/// 
public class Subscription : ApiResponse
{
    /// 
    /// Gets or sets the unique identifier as UUID version 1
    /// 
    [JsonProperty(PropertyName = "uuid")]
    public string Uuid { get; set; }

    /// 
    /// Gets or sets the message option (currently only WEBHOOK is supported)
    /// 
    [JsonProperty(PropertyName = "transportName")]
    public string TransportName { get; set; }

    /// 
    /// Gets or sets the event names to subscribe
    /// 
    [JsonProperty(PropertyName = "eventNames")]
    public List EventNames { get; set; }

    /// 
    /// Gets or sets the publicly exposed service URL
    /// 
    [JsonProperty(PropertyName = "destination")]
    public string Destination { get; set; }

    /// 
    /// Gets or sets the email address used to notify in case of any errors in subscription or the destination
    /// 
    [JsonProperty(PropertyName = "contactEmail")]
    public string ContactEmail { get; set; }

    /// 
    /// Gets or sets the status of the subscription
    /// 
    [JsonProperty(PropertyName = "status")]
    public string Status { get; set; }

    /// 
    /// Gets or sets the key used to verify that all incoming webhook messages originate from the service
    /// 
    [JsonProperty(PropertyName = "signingKey")]
    public string SigningKey { get; set; }

    /// 
    /// Gets or sets the date when the subscription was last updated
    /// 
    [JsonProperty(PropertyName = "updated")]
    public DateTime? Updated { get; set; }
}