SalesModelInterface
Magento\Payment\Model\Cart\SalesModel\SalesModelInterface
What it does
This interface defines a contract for accessing sales model data (like quotes or orders) in a standardized way for payment processing.
Developers use this when building payment integrations that need to retrieve cart totals, items, tax, shipping, and discount information without knowing whether they're working with a quote or order object.
It provides a unified API to access financial data from different sales entities.
Public Methods
- getAllItems()
- getBaseSubtotal()
- getBaseTaxAmount()
- getBaseShippingAmount()
- getBaseDiscountAmount()
- getDataUsingMethod()
- getTaxContainer()