Log in
Model

ItemDetails

Magento\Tax\Model\Sales\Quote\ItemDetails

What it does

This model represents a single item (product, shipping, or other taxable entity) within a quote for tax calculation purposes.

Developers use this class to store and retrieve tax-related details like unit price, quantity, tax class, discount amount, and whether tax is included in the price.

It's primarily used when calculating taxes during the checkout process or when preparing quote data for tax computation.

Public Methods

  • getCode()
  • getType()
  • getTaxClassKey()
  • getUnitPrice()
  • getQuantity()
  • getIsTaxIncluded()
  • getShortDescription()
  • getDiscountAmount()
  • getParentCode()
  • getAssociatedItemCode()
  • getTaxClassId()
  • setCode()
  • setType()
  • setTaxClassKey()
  • setUnitPrice()
  • setQuantity()
  • setIsTaxIncluded()
  • setShortDescription()
  • setDiscountAmount()
  • setParentCode()
  • setAssociatedItemCode()
  • setTaxClassId()
  • getExtensionAttributes()
  • setExtensionAttributes()