Interface
TaxDetailsInterface
Magento\Tax\Api\Data\TaxDetailsInterface
What it does
This interface defines the contract for tax calculation details in Magento 2.
Developers use it when working with tax calculations to access information like subtotals, tax amounts, discount compensations, and applied taxes for orders or quotes.
It's primarily used in tax calculation services and when displaying or processing tax-related data in checkout, invoicing, or order management.
Public Methods
- getSubtotal()
- setSubtotal()
- getTaxAmount()
- setTaxAmount()
- getDiscountTaxCompensationAmount()
- setDiscountTaxCompensationAmount()
- getAppliedTaxes()
- setAppliedTaxes()
- getItems()
- setItems()
- getExtensionAttributes()
- setExtensionAttributes()