Log in
Model

Tax

Magento\Sales\Model\Data\Order\Tax

What it does

This class represents tax information associated with an order in Magento 2.

Developers use it to access and manipulate tax data for orders, including tax rate percentages, amounts, codes, and titles.

It's commonly used when displaying order details, processing tax calculations, or integrating with tax reporting systems.

Public Methods

  • getTaxId()
  • setTaxId()
  • getOrderId()
  • setOrderId()
  • getCode()
  • setCode()
  • getTitle()
  • setTitle()
  • getPercent()
  • setPercent()
  • getAmount()
  • setAmount()
  • getBaseAmount()
  • setBaseAmount()
  • getBaseRealAmount()
  • setBaseRealAmount()
  • getPriority()
  • setPriority()
  • getPosition()
  • setPosition()
  • getProcess()
  • setProcess()
  • getExtensionAttributes()
  • setExtensionAttributes()