/// <summary> /// Adds price information to the article. /// </summary> /// <param name="category">The category of the price (e.g. "RRP" or "Offer").</param> /// <param name="price">The actual price of the article specified in the smalles unit of the currency (e.g. Cent).</param> /// <param name="quantity">The quantity from which the price is valid.</param> /// <param name="basePrice">The base price of the article.</param> /// <param name="basePriceUnit">The base price is specified in (e.g. "100ml).</param> /// <param name="vat">The VAT of the article.</param> /// <param name="description">The description of the price information (e.g. name of a special offer).</param> void IDigitalShelfArticle.AddPriceInformation(PriceCategory category, decimal price, uint quantity, decimal basePrice, string basePriceUnit, string vat, string description) { if (this.PriceInformation == null) { this.PriceInformation = new List <PriceInformation>(); } var priceInformation = new PriceInformation() { Category = TextConverter.EscapeInvalidXmlChars(category.ToString()), Price = price.ToString(CultureInfo.InvariantCulture), Quantity = quantity.ToString(), BasePrice = basePrice.ToString(CultureInfo.InvariantCulture), BasePriceUnit = TextConverter.EscapeInvalidXmlChars(basePriceUnit), VAT = TextConverter.EscapeInvalidXmlChars(vat), Description = TextConverter.EscapeInvalidXmlChars(description) }; this.PriceInformation.Add(priceInformation); }
public String?ConvertNullableFrom(PriceCategory?value) { return(value?.ToString()); }
public String ConvertFrom(PriceCategory value) { return(value.ToString()); }