View on GitHub

documentation

Documentation for DdD products

    /// <summary>
    /// Article view model. Flat version.
    /// </summary>
    public class ArticleViewModel
    {
        /// <summary>
        /// The Group that owns this Style
        /// </summary>
        public int GroupId { get; set; }

        /// <summary>
        /// The perant id so to say, linking all variants of a certen style together
        /// </summary>
        public int StyleId { get; set; }

        /// <summary>
        /// the Id of the supplier providing this style
        /// </summary>
        public int SupplierId { get; set; }

        /// <summary>
        /// The ItemGroupId that this style operates in
        /// </summary>
        public int ItemGroup { get; set; }

        /// <summary>
        /// Contains Style information (Season, Brands etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string StyleParameter1 { get; set; }

        /// <summary>
        /// Contains Style information (Season, Brands etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string StyleParameter2 { get; set; }

        /// <summary>
        /// Contains Style information (Season, Brands etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string StyleParameter3 { get; set; }

        /// <summary>
        /// Contains Style information (Season, Brands etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string StyleParameter4 { get; set; }

        /// <summary>
        /// Contains Style information (Season, Brands etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string StyleParameter5 { get; set; }

        /// <summary>
        /// The Id of this specific variant, unque in the entire Group
        /// </summary>
        public int VariantId { get; set; }

        /// <summary>
        /// The EAN of the variant
        /// </summary>
        [MaxLength(13)]
        public string EAN { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter1 { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter2 { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter3 { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter4 { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See parameterconfig for more information.
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter5 { get; set; }

        /// <summary>
        /// Value defining how VariantParameter1 is ordered compared to the rest of the VariantParameters
        /// </summary>
        public int DisplayOrderVariantParameter1 { get; set; }

        /// <summary>
        /// Value defining how VariantParameter2 is ordered compared to the rest of the VariantParameters
        /// </summary>
        public int DisplayOrderVariantParameter2 { get; set; }

        /// <summary>
        /// Value defining how VariantParameter3 is ordered compared to the rest of the VariantParameters
        /// </summary>
        public int DisplayOrderVariantParameter3 { get; set; }

        /// <summary>
        /// Value defining how VariantParameter4 is ordered compared to the rest of the VariantParameters
        /// </summary>
        public int DisplayOrderVariantParameter4 { get; set; }

        /// <summary>
        /// Value defining how VariantParameter is ordered compared to the rest of the VariantParameters
        /// </summary>
        public int DisplayOrderVariantParameter5 { get; set; }

        /// <summary>
        /// The sales price.
        /// </summary>
        public decimal SalesPrice { get; set; }

        /// <summary>
        /// The cost price.
        /// </summary>
        public decimal CostPrice { get; set; }
    }