Webiant Logo Webiant Logo
  1. No results found.

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

Discount.cs

using Newtonsoft.Json;

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

/// 
/// Represents the discount details
/// 
public class Discount : ApiResponse
{
    #region Properties

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

    /// 
    /// Gets or sets the ETag
    /// 
    [JsonProperty(PropertyName = "etag")]
    public string ETag { get; set; }

    /// 
    /// Gets or sets the name
    /// 
    [JsonProperty(PropertyName = "name")]
    public string Name { get; set; }

    /// 
    /// Gets or sets the description
    /// 
    [JsonProperty(PropertyName = "description")]
    public string Description { get; set; }

    /// 
    /// Gets or sets the external reference
    /// 
    [JsonProperty(PropertyName = "externalReference")]
    public string ExternalReference { get; set; }

    /// 
    /// Gets or sets the amount
    /// 
    [JsonProperty(PropertyName = "amount")]
    public DiscountAmount Amount { get; set; }

    /// 
    /// Gets or sets the percentage
    /// 
    [JsonProperty(PropertyName = "percentage")]
    public decimal? Percentage { get; set; }

    /// 
    /// Gets or sets the image lookup keys
    /// 
    [JsonProperty(PropertyName = "imageLookupKeys")]
    public List ImageLookupKeys { get; set; }

    /// 
    /// Gets or sets the unique identifier as UUID version 1 of a user who updated the discount
    /// 
    [JsonProperty(PropertyName = "updatedBy")]
    public string UpdatedBy { get; set; }

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

    /// 
    /// Gets or sets the created date
    /// 
    [JsonProperty(PropertyName = "created")]
    public DateTime? Created { get; set; }

    #endregion

    #region Nested classes

    /// 
    /// Represents the discount amount details
    /// 
    public class DiscountAmount
    {
        /// 
        /// Gets or sets the amount
        /// 
        [JsonProperty(PropertyName = "amount")]
        public int? Amount { get; set; }

        /// 
        /// Gets or sets the currency id
        /// 
        [JsonProperty(PropertyName = "currencyId")]
        public string CurrencyId { get; set; }
    }

    #endregion
}