Log in
Repository

TaxClassRepositoryInterface

Magento\Tax\Api\TaxClassRepositoryInterface

What it does

This repository interface defines methods for managing tax classes in Magento 2, which are used to categorize products and customers for tax calculation purposes.

Developers use this interface to retrieve, create, update, or delete tax classes programmatically, either by ID or using search criteria.

It's commonly used when building custom tax configurations, integrations, or admin features that need to interact with Magento's tax system.

Public Methods

  • get()
  • getList()
  • save()
  • delete()
  • deleteById()