Log in
Model

Item

Magento\Sales\Model\Order\Tax\Item

What it does

This class represents tax details for individual items in a sales order, storing information about what type of item was taxed (product, shipping, gift wrapping, etc.), which item it applies to, and the specific taxes applied.

Developers use this when retrieving or managing tax breakdowns for order items, particularly when generating invoices, calculating tax reports, or displaying itemized tax information in order details.

Public Methods

  • getType()
  • getItemId()
  • getAssociatedItemId()
  • getAppliedTaxes()
  • setType()
  • setItemId()
  • setAssociatedItemId()
  • setAppliedTaxes()
  • getExtensionAttributes()
  • setExtensionAttributes()