Interface
ExchangeRateInterface
Magento\Directory\Api\Data\ExchangeRateInterface
What it does
This interface defines the contract for exchange rate data objects in Magento 2.
Developers use it to work with currency exchange rates, storing the target currency code and its conversion rate relative to the store's base currency.
It's primarily used when implementing currency conversion features or when retrieving exchange rate data through the API.
Public Methods
- getCurrencyTo()
- setCurrencyTo()
- getRate()
- setRate()
- getExtensionAttributes()
- setExtensionAttributes()