Log in
Interface

TaxClassInterface

Magento\Tax\Api\Data\TaxClassInterface

What it does

This interface defines the contract for tax class data objects in Magento 2.

Developers use this to work with tax classes (like customer tax classes or product tax classes) when implementing tax calculation logic, creating custom tax rules, or integrating with third-party tax systems.

It provides methods to get and set tax class properties including ID, name, and type.

Public Methods

  • getClassId()
  • setClassId()
  • getClassName()
  • setClassName()
  • getClassType()
  • setClassType()
  • getExtensionAttributes()
  • setExtensionAttributes()