Log in
Repository

TaxRuleRepositoryInterface

Magento\Tax\Api\TaxRuleRepositoryInterface

What it does

This interface defines the contract for managing tax rules in Magento 2, providing CRUD operations to create, read, update, and delete tax rule entities.

Developers use this repository when they need to programmatically manage tax rules that determine which tax rates apply to products, customers, and shipping in different scenarios.

It follows Magento's repository pattern and supports searching for tax rules using search criteria.

Public Methods

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