Log in
Interface

TaxClassManagementInterface

Magento\Tax\Api\TaxClassManagementInterface

What it does

This interface defines the contract for managing tax class identification in Magento 2.

Developers use it to retrieve tax class IDs based on tax class keys, which is essential when calculating taxes for products or customers.

It provides constants for the two main tax class types: CUSTOMER and PRODUCT.

Public Methods

  • getTaxClassId()