Log in
Model

TotalsInformation

Magento\Checkout\Model\TotalsInformation

What it does

This model is a data transfer object that encapsulates shipping information needed to calculate quote totals during checkout.

Developers use it to pass address and shipping method details (carrier and method codes) to the totals calculation API, typically when customers select shipping options or update their address.

Public Methods

  • getAddress()
  • setAddress()
  • getShippingMethodCode()
  • setShippingMethodCode()
  • getShippingCarrierCode()
  • setShippingCarrierCode()
  • getExtensionAttributes()
  • setExtensionAttributes()