Log in
Interface

CurrencyInformationInterface

Magento\Directory\Api\Data\CurrencyInformationInterface

What it does

This interface defines the contract for currency information data objects in Magento 2.

Developers use it to retrieve and set store currency details including base currency, display currency, available currencies, and exchange rates.

It's commonly used when building features that need to display prices in multiple currencies or handle currency conversions in API responses.

Public Methods

  • getBaseCurrencyCode()
  • setBaseCurrencyCode()
  • getBaseCurrencySymbol()
  • setBaseCurrencySymbol()
  • getDefaultDisplayCurrencyCode()
  • setDefaultDisplayCurrencyCode()
  • getDefaultDisplayCurrencySymbol()
  • setDefaultDisplayCurrencySymbol()
  • getAvailableCurrencyCodes()
  • setAvailableCurrencyCodes()
  • getExchangeRates()
  • setExchangeRates()
  • getExtensionAttributes()
  • setExtensionAttributes()