class TaxEngine

Class TaxEngine

Methods

__construct( RequestStack $requestStack)

No description

addTaxTypeDirectory( string $namespace, string $path_to_tax_type_classes)

Add a directroy which contains tax types classes. The tax engine will scan this directory, and add all the tax type classes.

addTaxType( unknown $fullyQualifiedclassName)

Add a tax type to the current list.

getTaxTypeList()

No description

null|Country
getDeliveryCountry()

Find Tax Country Id First look for a picked delivery address country Then look at the current customer default address country Else look at the default website country

null|State
getDeliveryState()

Find Tax State Id

Details

at line 40
__construct( RequestStack $requestStack)

Parameters

RequestStack $requestStack

at line 55
addTaxTypeDirectory( string $namespace, string $path_to_tax_type_classes)

Add a directroy which contains tax types classes. The tax engine will scan this directory, and add all the tax type classes.

Parameters

string $namespace the namespace of the classes in the directory
string $path_to_tax_type_classes the path to the directory

at line 66
addTaxType( unknown $fullyQualifiedclassName)

Add a tax type to the current list.

Parameters

unknown $fullyQualifiedclassName the fully qualified classname, su chas MyTaxes\Taxes\MyTaxType

at line 71
getTaxTypeList()

at line 117
null|Country getDeliveryCountry()

Find Tax Country Id First look for a picked delivery address country Then look at the current customer default address country Else look at the default website country

Return Value

null|Country

at line 154
null|State getDeliveryState()

Find Tax State Id

First look for a picked delivery address state Then look at the current customer default address state Else null

Return Value

null|State