View on GitHub

documentation

Documentation for DdD products

    /// <summary>
    /// The variant upsert model
    /// </summary>
    public class VariantUpsertModel
    {
        /// <summary>
        /// Can not be updated at the moment and will be ignored in a update function.
        /// </summary>
        [MaxLength(13)]
        [RegularExpression("^[0-9]*$")]
        public string EAN { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter1 { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter2 { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter3 { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter4 { get; set; }

        /// <summary>
        /// Contains variant information(size, color etc.). See api/article/parameterconfig to find out what goes where
        /// </summary>
        [MaxLength(30)]
        public string VariantParameter5 { get; set; }
        /// <summary>
        /// The sales price
        /// </summary>
        public decimal SalesPrice { get; set; }
        /// <summary>
        /// The cost price
        /// </summary>
        public decimal CostPrice { get; set; }
    }