Log in
Interface

TaxClassKeyInterface

Magento\Tax\Api\Data\TaxClassKeyInterface

What it does

This interface defines the structure for tax class identifiers in Magento 2.

Developers use it when working with tax calculations to reference tax classes either by their ID or name, allowing flexible tax class lookups across the system.

It's commonly used in tax rate configuration, product tax class assignments, and customer tax class operations.

Public Methods

  • getType()
  • setType()
  • getValue()
  • setValue()
  • getExtensionAttributes()
  • setExtensionAttributes()