Package de.hybris.platform.order
Interface TaxService
-
- All Known Implementing Classes:
DefaultTaxService
public interface TaxServiceService around theTaxModel.- Spring Bean ID:
- taxService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Collection<TaxModel>getTaxesForCode(java.lang.String matchedCode)Gets allTaxModels which match the specified code.TaxModelgetTaxForCode(java.lang.String code)Gets theTaxModelwith the specified uniqueTaxModel.CODE.default java.util.List<TaxInformation>getTaxInformation(BaseCriteria baseCriteria)Get taxes informationTaxInformationfor given criteria.
-
-
-
Method Detail
-
getTaxForCode
TaxModel getTaxForCode(java.lang.String code)
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
java.util.Collection<TaxModel> getTaxesForCode(java.lang.String matchedCode)
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 java.util.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
-
-