Model
ExchangeRate
Magento\Directory\Model\Data\ExchangeRate
What it does
This data model represents currency exchange rate information in Magento 2.
Developers use this class to handle currency conversion data, storing the target currency code, exchange rate value, and nested exchange rates for multi-currency scenarios.
It's commonly used when retrieving or setting currency conversion rates through the Directory module's API.
Public Methods
- getCurrencyTo()
- setCurrencyTo()
- getRate()
- setRate()
- getExchangeRates()
- setExchangeRates()
- getExtensionAttributes()
- setExtensionAttributes()