Package de.hybris.platform.order
Interface TaxService
- All Known Implementing Classes:
DefaultTaxService
public interface TaxService
Service around the
TaxModel.- Spring Bean ID:
- taxService
-
Method Summary
Modifier and TypeMethodDescriptiongetTaxesForCode(String matchedCode) Gets allTaxModels which match the specified code.getTaxForCode(String code) Gets theTaxModelwith the specified uniqueTaxModel.CODE.default List<TaxInformation>getTaxInformation(BaseCriteria baseCriteria) Get taxes informationTaxInformationfor given criteria.
-
Method Details
-
getTaxForCode
Gets theTaxModelwith the specified uniqueTaxModel.CODE.- Parameters:
code- the tax code- Returns:
- the found
TaxModelwith the specified code - Throws:
UnknownIdentifierException- when no tax found.
-
getTaxesForCode
Gets allTaxModels which match the specified code.- Parameters:
matchedCode- an SQL-Like statement as String, such as %taxCode%- Returns:
- the
Collectionof allTaxModels which match the specified code
-
getTaxInformation
default List<TaxInformation> getTaxInformation(BaseCriteria baseCriteria) throws CalculationException Get taxes informationTaxInformationfor given criteria.- Parameters:
baseCriteria-BaseCriteria- Returns:
- the
Listof allTaxInformations which matching baseCriteria. If no matching discounts were found, an empty collection is returned. - Throws:
CalculationException- if error occurred
-