Interfaces

Danger

We’re sorry but this documentation section is outdated. Please have that in mind when trying to use it. You can help us making documentation up to date via Sylius Github. Thank you!

Model Interfaces

Taxable Interface

To create taxable object which has specific type of tax category, the object class needs to implement TaxableInterface.

Note

For more detailed information go to Sylius API Taxable Interface.

Tax Category Interface

To create object which provides information about tax category, the object class needs to implement TaxCategoryInterface.

Note

This interface extends CodeAwareInterface and TimestampableInterface.

For more detailed information go to Sylius API Tax Category Interface.

Tax Rate Interface

To create object which provides information about tax rate, the object class needs to implement TaxCategoryInterface.

Note

This interface extends CodeAwareInterface and TimestampableInterface.

For more detailed information go to Sylius API Tax Rate Interface.

Calculator Interfaces

CalculatorInterface

To make the calculator able to calculate the tax amount for given base amount and tax rate, the calculator class needs implement the CalculatorInterface.

Note

For more detailed information about the interfaces go to Sylius API Calculator Interface.

Resolver Interfaces

TaxRateResolverInterface

To create class which provides information about tax rate for given taxable object and specific criteria, the class needs to implement TaxRateResolverInterface. The criteria describes tax rate object.

Note

For more detailed information about the interfaces go to Sylius API Tax Rate Resolver Interface.