Log in
Model

TaxDetails

Magento\Tax\Model\TaxDetails\TaxDetails

What it does

This class represents the complete tax calculation details for a shopping cart or quote, including subtotal, total tax amount, discount compensation, and applied tax rates.

Developers use it to access comprehensive tax information after calculations are performed, typically during checkout or when displaying order totals with detailed tax breakdowns.

Public Methods

  • getSubtotal()
  • getTaxAmount()
  • getDiscountTaxCompensationAmount()
  • getAppliedTaxes()
  • getItems()
  • setSubtotal()
  • setTaxAmount()
  • setDiscountTaxCompensationAmount()
  • setAppliedTaxes()
  • setItems()
  • getExtensionAttributes()
  • setExtensionAttributes()