Model
ShippingTaxCalculator
Magento\SalesGraphQl\Model\SalesItem\ShippingTaxCalculator
What it does
This class calculates and aggregates shipping tax information for partial order documents like invoices and credit memos in GraphQL responses.
Developers use it when they need to provide detailed tax breakdowns for shipping charges, accounting for scenarios where invoices or credit memos contain different quantities than the original order.
Public Methods
- calculateShippingTaxes()