Model
TotalsInformationManagement
Magento\Checkout\Model\TotalsInformationManagement
What it does
This class manages the calculation of shopping cart totals during checkout.
Developers use it when they need to recalculate cart totals after updating shipping/billing addresses or shipping methods, typically during the checkout process before order placement.
It ensures the quote has items, applies the appropriate address information, and returns updated totals.
Public Methods
- calculate()