Webiant Logo Webiant Logo
  1. No results found.

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

JsonLdOfferModel.cs

using Newtonsoft.Json;

namespace Nop.Web.Models.JsonLD;

public record JsonLdOfferModel : JsonLdModel
{
    #region Properties

    [JsonProperty("@type")]
    public static string Type => "Offer";

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("availability")]
    public string Availability { get; set; }

    [JsonProperty("price")]
    public string Price { get; set; }

    [JsonProperty("priceCurrency")]
    public string PriceCurrency { get; set; }

    [JsonProperty("priceValidUntil")]
    public DateTime? PriceValidUntil { get; set; }

    #endregion
}