Webiant Logo Webiant Logo
  1. No results found.

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

SampleCheckoutAttributes.cs

using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Nop.Core.Domain.Catalog;

namespace Nop.Services.Installation.SampleData;

/// 
/// Represents a sample checkout attribute
/// 
public partial class SampleCheckoutAttribute
{
    /// 
    /// Gets or sets the name
    /// 
    public string Name { get; set; }

    /// 
    /// Gets or sets a value indicating whether the attribute is required
    /// 
    public bool IsRequired { get; set; }

    /// 
    /// Gets or sets the attribute control type identifier
    /// 
    [JsonConverter(typeof(StringEnumConverter))]
    public AttributeControlType AttributeControlType { get; set; }

    /// 
    /// Gets or sets the display order
    /// 
    public int DisplayOrder { get; set; }

    /// 
    /// Gets or sets a value indicating whether shippable products are required in order to display this attribute
    /// 
    public bool ShippableProductRequired { get; set; }

    /// 
    /// Gets or sets the list of checkout attribute values
    /// 
    public List AttributeValues { get; set; } = new();

    #region Nested class

    /// 
    /// Represents a sample checkout attribute value
    /// 
    public partial class SampleCheckoutAttributeValue
    {
        /// 
        /// Gets or sets the name
        /// 
        public string Name { get; set; }

        /// 
        /// Gets or sets a value indicating whether the value is pre-selected
        /// 
        public bool IsPreSelected { get; set; }

        /// 
        /// Gets or sets the display order
        /// 
        public int DisplayOrder { get; set; }

        /// 
        /// Gets or sets the price adjustment
        /// 
        public decimal PriceAdjustment { get; set; }
    }

    #endregion
}