Log in
Interface

ImportInterface

Magento\Directory\Model\Currency\Import\ImportInterface

What it does

This interface defines the contract for currency exchange rate import services in Magento 2.

Developers implement this interface to create custom currency rate importers that fetch rates from external sources (like APIs or web services), import them into the system, and provide feedback messages about the import process.

Public Methods

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