Click or drag to resize
DefaultTaxEstimationServiceGetTax Method
Estimates the tax from the given price.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public decimal GetTax(
	decimal price,
	TaxClassInfo taxClass,
	TaxEstimationParameters parameters
)

Parameters

price
Type: SystemDecimal
A price without tax.
taxClass
Type: CMS.EcommerceTaxClassInfo
A tax class for which the taxes are estimated.
parameters
Type: CMS.EcommerceTaxEstimationParameters
Parameters of the tax estimation.

Return Value

Type: Decimal

Implements

ITaxEstimationServiceGetTax(Decimal, TaxClassInfo, TaxEstimationParameters)
Exceptions
ExceptionCondition
ArgumentNullExceptiontaxClass or parameters is null.
See Also