Log in
Model

AbstractImport

Magento\Directory\Model\Currency\Import\AbstractImport

What it does

This abstract class provides the foundation for importing currency exchange rates from external sources into Magento 2.

Developers extend this class to create custom currency rate importers by implementing the _convert() method to fetch rates from specific providers (like APIs or web services).

It handles fetching rates for all configured currencies, formatting them, and saving them to the database.

Public Methods

  • importRates()
  • fetchRates()
  • getMessages()