Table of Contents

Class TaxService

Namespace
Dynamicweb.Ecommerce.Products.Taxes
Assembly
Dynamicweb.Ecommerce.dll
public class TaxService : ICacheStorage<int, TaxSetting>, ICacheStorage<int>, ICacheStorage
Inheritance
TaxService
Implements
Inherited Members

Methods

AddTaxesToOrder(Order)

Adds taxes to order.
public void AddTaxesToOrder(Order order)

Parameters

order Order
The order.

AddTaxesToOrder(Order, string)

Adds taxes to order.
[Obsolete]
public void AddTaxesToOrder(Order order, string defaultCountryCode)

Parameters

order Order
The order.
defaultCountryCode string
The default country code.

AddTaxesToProducts(IEnumerable<Product>, Order, string)

Adds taxes to products.
public void AddTaxesToProducts(IEnumerable<Product> products, Order order, string defaultCountryCode)

Parameters

products IEnumerable<Product>
The products.
order Order
The order.
defaultCountryCode string
The default country code.

AddTaxesToProducts(IEnumerable<Product>, string, string)

Adds taxes to products.
public void AddTaxesToProducts(IEnumerable<Product> products, string countryCode, string regionCode)

Parameters

products IEnumerable<Product>
The products.
countryCode string
The country code.
regionCode string
The region code.

CancelTaxes(Order)

Cancel the taxes.
public void CancelTaxes(Order order)

Parameters

order Order
The order.

ClearCache()

Clears the cache.
public void ClearCache()

ClearCache(IEnumerable<int>)

Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<int> keys)

Parameters

keys IEnumerable<int>
Keys to reset

ClearCache(int)

Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(int key)

Parameters

key int
Key to reset

CommitTaxesToOrder(Order)

Commit the taxes.
public void CommitTaxesToOrder(Order order)

Parameters

order Order
The order.

Delete(int)

Deletes this instance.
public void Delete(int taxSettingId)

Parameters

taxSettingId int
The tax setting id.

GetActiveTaxSettings(Order)

Gets active TaxSettings for an order.
public IEnumerable<TaxSetting> GetActiveTaxSettings(Order order)

Parameters

order Order
The order.

Returns

IEnumerable<TaxSetting>

GetActiveTaxSettings(Order, string)

Gets active TaxSettings for an order.
public IEnumerable<TaxSetting> GetActiveTaxSettings(Order order, string defaultCountryCode)

Parameters

order Order
The order.
defaultCountryCode string
The default country code.

Returns

IEnumerable<TaxSetting>

GetAllTaxSettings()

Gets all TaxSettings.
public IEnumerable<TaxSetting> GetAllTaxSettings()

Returns

IEnumerable<TaxSetting>

GetTaxSettingById(int)

Gets the tax setting by id.
public TaxSetting GetTaxSettingById(int taxSettingId)

Parameters

taxSettingId int
The tax setting id.

Returns

TaxSetting

HandleProductReturns(Order, Order)

Handle product returns.
public bool HandleProductReturns(Order order, Order originalOrder)

Parameters

order Order
The order.
originalOrder Order

Returns

bool

Save(TaxSetting)

Saves this settings instance.
public void Save(TaxSetting taxSetting)

Parameters

taxSetting TaxSetting
The tax setting.
To top