Table of Contents

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

currency Currency
Currency
country Country
Country

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 bool
time DateTime?
Time

PriceContext(SerializationInfo, StreamingContext)

protected PriceContext(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo
context StreamingContext

Properties

Country

Gets the country
public Country Country { get; }

Property Value

Country

Currency

Gets the currency
public Currency Currency { get; }

Property Value

Currency

Customer

Gets the customer (user)
public User Customer { get; }

Property Value

User

ReverseChargeForVat

Gets a value which indicates if reverse charge for VAT should be used
public bool ReverseChargeForVat { get; }

Property Value

bool

Shop

Gets the shop
public Shop Shop { get; }

Property Value

Shop

Time

Gets the time
public DateTime? Time { get; }

Property Value

DateTime?
To top