Log in
Interface

TotalsAdditionalDataInterface

Magento\Quote\Api\Data\TotalsAdditionalDataInterface

What it does

This interface defines a contract for passing additional data when collecting quote totals in Magento 2.

Developers use this when they need to provide extra information during the totals calculation process, such as custom discounts, shipping details, or tax-related data.

It supports extension attributes, allowing third-party modules to add their own custom data without modifying core code.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()