TotalsInformation
Magento\Checkout\Model\TotalsInformation
What it does
This model class serves as a data transfer object that holds information needed to calculate quote totals during checkout.
Developers use it to pass shipping address, shipping method, and carrier code data when requesting total recalculation, typically when customers change shipping options or addresses.
It implements the TotalsInformationInterface and provides getter/setter methods for address and shipping-related information.
Public Methods
- getAddress()
- setAddress()
- getShippingMethodCode()
- setShippingMethodCode()
- getShippingCarrierCode()
- setShippingCarrierCode()
- getExtensionAttributes()
- setExtensionAttributes()