Interface ProductTaxCodeService

All Known Implementing Classes:
DefaultProductTaxCodeService

public interface ProductTaxCodeService
Service for looking up ProductTaxCodeModel items.
  • Method Details

    • lookupTaxCode

      String lookupTaxCode(String productCode, String taxAreaCode)
      Performs a direct tax code lookup for a given product code and tax area code.
      Parameters:
      productCode - product code to lookup the tax code for
      taxAreaCode - tax area code
      Returns:
      tax code if found, null otherwise
    • lookupTaxCodes

      Map<String,String> lookupTaxCodes(Collection<String> productCodes, String taxAreaCode)
      Performs a direct bulk tax code lookup for a given collection of product codes and tax area code.
      Parameters:
      productCodes - collection of product codes to lookup the tax codes for
      taxAreaCode - tax area code
      Returns:
      map of product codes to tax codes
    • getTaxCodeForProductAndArea

      ProductTaxCodeModel getTaxCodeForProductAndArea(String productCode, String taxAreaCode)
      Finds a tax code item for a given product code and tax area code. Returns null if no such code exists yet.
      Parameters:
      productCode - product code
      taxAreaCode - tax area code
      Returns:
      instance of ProductTaxCodeModel
    • getTaxCodesForProduct

      Collection<ProductTaxCodeModel> getTaxCodesForProduct(String productCode)
      Finds all existing tax code items for a given product code.
      Parameters:
      productCode - product code
      Returns:
      collection of ProductTaxCodeModel for a given product code