Class PriceContext
- Namespace
- Dynamicweb.Ecommerce.Prices
- Assembly
- Dynamicweb.Ecommerce.dll
Represents the context for price calculations.
[Serializable]
public class PriceContext : ISerializable
- Inheritance
-
PriceContext
- Implements
- Inherited Members
Constructors
PriceContext(Currency, Country)
Creates an instance of PriceContext.
public PriceContext(Currency currency, Country country)
Parameters
PriceContext(Currency, Country, Shop?, User?, bool, DateTime?)
Creates an instance of PriceContext.
public PriceContext(Currency currency, Country country, Shop? shop, User? customer, bool reverseChargeForVat, DateTime? time)
Parameters
currencyCurrencyCurrency
countryCountryCountry
shopShopShop
customerUserCustomer
reverseChargeForVatbooltimeDateTime?Time
PriceContext(SerializationInfo, StreamingContext)
protected PriceContext(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext
Properties
Country
Gets the country
public Country Country { get; }
Property Value
Currency
Gets the currency
public Currency Currency { get; }
Property Value
Customer
Gets the customer (user)
public User? Customer { get; }
Property Value
ReverseChargeForVat
Gets a value which indicates if reverse charge for VAT should be used
public bool ReverseChargeForVat { get; }
Property Value
Shop
Gets the shop
public Shop? Shop { get; }
Property Value
Time
Gets the time
public DateTime? Time { get; }