Log in
Model

TotalsAdditionalData

Magento\Quote\Model\Cart\TotalsAdditionalData

What it does

This class serves as a data model for carrying additional information related to shopping cart totals calculations in Magento 2.

Developers use this when they need to pass custom data alongside cart totals, particularly when extending totals functionality through extension attributes.

It's commonly used in checkout processes where additional totals information needs to be transmitted via API or between different layers of the application.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()