Log in
Interface

TotalsInformationInterface

Magento\Checkout\Api\Data\TotalsInformationInterface

What it does

This interface defines the structure for totals information data objects used during checkout.

Developers use this when they need to pass shipping address and shipping method details to calculate cart totals, typically through the totals estimation API endpoint.

It's commonly used in checkout customizations where totals need to be recalculated based on customer-selected shipping options.

Public Methods

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