Log in
Interface

TotalsInformationInterface

Magento\Checkout\Api\Data\TotalsInformationInterface

What it does

This interface defines the contract for a data object that contains information needed to calculate cart totals during checkout.

Developers use this when working with the checkout API to pass shipping address and shipping method details to the totals calculation service.

It's typically used when making API calls to update or retrieve updated cart totals based on shipping selections.

Public Methods

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