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
currency
Currency- Currency
country
Country- Country
shop
Shop- Shop
customer
User- Customer
reverseChargeForVat
booltime
DateTime?- Time
PriceContext(SerializationInfo, StreamingContext)
protected PriceContext(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfocontext
StreamingContext
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; }