Class PriceRaw
- Namespace
- Dynamicweb.Ecommerce.Prices
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a placeholder for an amount and a currency. PriceRaw is a simple unqualified price, that's mostly used internally by the PriceManager or by PriceProviders.
[Serializable]
public class PriceRaw : IPriceSourceInfo
- Inheritance
-
PriceRaw
- Implements
- Inherited Members
Remarks
A PriceRaw have no indicators to tell if VAT is included or if rounding have been perfomed. If you need to work with qualified prices, use PriceInfo.
Constructors
PriceRaw()
Initializes a new instance of the PriceRaw class.
public PriceRaw()
PriceRaw(double, Currency?)
Initializes a new instance of the PriceRaw class with a Price and a Currency.
public PriceRaw(double price, Currency? currency)
Parameters
Properties
AllowOrderDiscounts
Gets or sets the value indicating whether order discounts are allowed when calculated on this price.
public bool AllowOrderDiscounts { get; set; }
Property Value
AllowOrderLineDiscounts
Gets or sets the value indicating whether order line discounts are allowed when calculating on this price. This also includes DiscountPercentage, if this is false, it will not be subtracted from the price.
public bool AllowOrderLineDiscounts { get; set; }
Property Value
Currency
The Currency of the PriceRaw
public Currency? Currency { get; set; }
Property Value
DiscountPercentage
Gets or sets the price discount percentage.
public double DiscountPercentage { get; set; }
Property Value
- double
lineDiscount
Price
The Amount of the PriceRaw
public double Price { get; set; }
Property Value
PriceSource
Gets or sets a value indicating what price provider generate price.
public PriceSource? PriceSource { get; set; }