Log in
Interface

CurrencyInterface

Magento\Quote\Api\Data\CurrencyInterface

What it does

This interface defines the contract for currency data objects used in shopping cart quotes.

Developers use it to access and manipulate multiple currency codes (global, base, store, quote) and their conversion rates when working with quotes in multi-currency scenarios.

It's essential for managing price conversions and displaying correct currency information throughout the checkout process.

Public Methods

  • getGlobalCurrencyCode()
  • setGlobalCurrencyCode()
  • getBaseCurrencyCode()
  • setBaseCurrencyCode()
  • getStoreCurrencyCode()
  • setStoreCurrencyCode()
  • getQuoteCurrencyCode()
  • setQuoteCurrencyCode()
  • getStoreToBaseRate()
  • setStoreToBaseRate()
  • getStoreToQuoteRate()
  • setStoreToQuoteRate()
  • getBaseToGlobalRate()
  • setBaseToGlobalRate()
  • getBaseToQuoteRate()
  • setBaseToQuoteRate()
  • getExtensionAttributes()
  • setExtensionAttributes()