Table of Contents

Class TaxProvider

Namespace
Dynamicweb.Ecommerce.Products.Taxes
Assembly
Dynamicweb.Ecommerce.dll
The class TaxProvider represents provider for product tax.
public class TaxProvider : ConfigurableAddIn
Inheritance
TaxProvider
Inherited Members

Fields

ShippingCode

The tax shipping code literal.
public static readonly string ShippingCode

Field Value

string

Properties

Name

Gets or sets the provider name.
public string Name { get; set; }

Property Value

string

SystemName

Gets or sets the provider system name.
public string SystemName { get; set; }

Property Value

string

Methods

AddTaxesToProducts(ProductCollection)

Adds taxes for given products.
[Obsolete("Use AddTaxesToProducts(IEnumerable(Of Product)) instead")]
public virtual void AddTaxesToProducts(ProductCollection products)

Parameters

products ProductCollection
The products.

AddTaxesToProducts(IEnumerable<Product>)

Adds taxes for given products.
public virtual void AddTaxesToProducts(IEnumerable<Product> products)

Parameters

products IEnumerable<Product>
The products.

AddTaxOrderLinesToOrder(Order)

Adds taxes for a order.
public virtual void AddTaxOrderLinesToOrder(Order order)

Parameters

order Order
The order.

AdjustTaxes(Order)

Adjusts the order taxes.
public virtual void AdjustTaxes(Order order)

Parameters

order Order
The order.

CancelTaxes(Order)

Cancels the order taxes.
public virtual void CancelTaxes(Order order)

Parameters

order Order
The order.

CommitTaxes(Order)

Commits the order taxes.
public virtual void CommitTaxes(Order order)

Parameters

order Order
The order.

CreateTaxOrderLine(OrderLine, Tax)

Creates tax order line for given order line.
protected virtual OrderLine CreateTaxOrderLine(OrderLine parentOrderLine, Tax tax)

Parameters

parentOrderLine OrderLine
The order line.
tax Tax
The tax.

Returns

OrderLine

GetProductPriceWithoutDiscounts(OrderLine)

Gets product price without discounts.
protected PriceInfo GetProductPriceWithoutDiscounts(OrderLine orderLine)

Parameters

orderLine OrderLine
The order line.

Returns

PriceInfo

HandleProductReturns(Order, Order)

Handles the order product returns.
public virtual void HandleProductReturns(Order order, Order originalOrder)

Parameters

order Order
The order.
originalOrder Order
The original order.

IsTaxableType(OrderLine)

Checks whether given order line is taxable.
protected bool IsTaxableType(OrderLine orderLine)

Parameters

orderLine OrderLine
The order line.

Returns

bool

OnAfterSettingsSaved()

On after settings saved handler.
public virtual void OnAfterSettingsSaved()

SaveLog(string)

Saves the provider logs.
protected void SaveLog(string message)

Parameters

message string
The log entry message.

Remarks

The logs are saved to /*Logs root*/eCom/TaxProvider/*provider name*
To top