Item
Magento\Sales\Model\Order\Tax\Item
What it does
This class represents tax details for individual items in a Magento 2 order, storing information about which taxes were applied to specific products, shipping, or other taxable entities.
Developers use this model when working with order tax calculations, tax reports, or when they need to retrieve or display itemized tax information for orders.
It provides methods to get and set the item type, item ID, associated item ID, and the array of applied taxes.
Public Methods
- getType()
- getItemId()
- getAssociatedItemId()
- getAppliedTaxes()
- setType()
- setItemId()
- setAssociatedItemId()
- setAppliedTaxes()
- getExtensionAttributes()
- setExtensionAttributes()