Directory Module
AllowedCountries
This class retrieves the list of allowed countries based on Magento's configuration settings for different scopes (website, store, or store group). De...
Api\CountryInformationAcquirerInterface
This interface defines methods for retrieving country and region information in Magento 2. Developers use this to fetch all available countries or get...
Api\CurrencyInformationAcquirerInterface
This interface defines a contract for retrieving currency information for a store in Magento 2. Developers use this to get available currencies, excha...
Api\Data\CountryInformationInterface
This interface defines the contract for country information data objects in Magento 2. Developers use it when working with country data through the AP...
Api\Data\CurrencyInformationInterface
This interface defines the contract for currency information data objects in Magento 2. Developers use it to retrieve and set store currency details i...
Api\Data\ExchangeRateInterface
This interface defines the contract for exchange rate data objects in Magento 2. Developers use it to work with currency exchange rates, storing the t...
Api\Data\RegionInformationInterface
This interface defines the contract for region (state/province) data objects in Magento 2. Developers use this when working with geographical regions,...
Config\Backend\WeightUnit
This backend model validates and saves the weight unit configuration setting in Magento's admin panel. Developers would use this class when customizin...
Config\Source\Allregion
This class provides a formatted list of all regions/states grouped by country for use in configuration dropdowns and form fields. Developers use this...
Config\Source\Country
This class provides a list of countries as option arrays for use in dropdown menus and multi-select fields in Magento's admin panel and frontend forms...
Config\Source\WeightUnit
This class provides a list of available weight unit options (pounds and kilograms) for Magento configuration settings. Developers use this as a source...
Country
This model class represents a country in Magento 2's directory system. Developers use it to load country data by code, retrieve associated regions/sta...
CountryInformationAcquirer
This class retrieves country and region information from Magento's directory data, formatting it into structured data objects. Developers use it to ge...
Country\Format
This model manages country-specific address format configurations in Magento. Developers use it to retrieve or set how addresses should be formatted f...
Country\Postcode\Config
This class provides access to country-specific postcode validation patterns and formats configured in Magento. Developers use it to retrieve postcode...
Country\Postcode\Validator
This class validates postal codes against country-specific format patterns defined in the system configuration. Developers use this validator when pro...
Currency
This class manages currency operations in Magento 2, including currency code retrieval, conversion between currencies using exchange rates, and format...
CurrencyConfig
This class retrieves currency configuration values (allowed, base, and default currencies) from Magento store settings. Developers use it to get curre...
CurrencyInformationAcquirer
This class retrieves comprehensive currency information for the current store, including base currency, default display currency, available currencies...
Currency\DefaultLocator
This class determines the default base currency code for a given scope (store, website, or store group) based on request parameters. Developers use it...
Currency\Filter
This class formats and converts monetary values into currency strings with proper locale formatting. Developers use it when they need to display price...
Currency\Import\AbstractImport
This abstract class provides the foundation for importing currency exchange rates from external sources into Magento 2. Developers extend this class t...
Currency\Import\Config
This configuration class manages currency import services in Magento 2. It validates and stores service definitions (name, class, label) during constr...
Currency\Import\CurrencyConverterApi
This class imports currency exchange rates from the free.currconv.com API service. Developers use this when they need to automatically fetch and updat...
Currency\Import\FixerIo
This class imports currency exchange rates from the Fixer.io API service. Developers use this to automatically update currency conversion rates in Mag...
Currency\Import\FixerIoApiLayer
This class imports currency exchange rates from the Fixer API (via APILayer.com) into Magento 2. Developers would use or extend this class when implem...
Data
This helper class provides utility methods for working with geographic and currency data in Magento 2. Developers use it to retrieve country and regio...
Data\CountryInformation
This data model class represents comprehensive country information in Magento 2, storing details like country ID, two-letter and three-letter abbrevia...
Data\CurrencyInformation
This data model class stores and manages comprehensive currency information for a Magento store, including base currency code/symbol, display currency...
Data\ExchangeRate
This data model represents currency exchange rate information in Magento 2. Developers use this class to handle currency conversion data, storing the...
Data\RegionInformation
This is a data transfer object (DTO) that represents region/state information within a country, such as California or Texas. Developers use this class...
Model\Country\Postcode\ConfigInterface
This interface defines a contract for retrieving postcode validation patterns configured in Magento 2. Developers would implement this interface when...
Model\Country\Postcode\ValidatorInterface
This interface defines a contract for validating postal codes against country-specific formatting rules. Developers implement this interface to create...
Model\Currency\Import\Factory
This factory class creates instances of currency import services in Magento 2. Developers use it to instantiate specific currency rate import provider...
Model\Currency\Import\ImportInterface
This interface defines the contract for currency exchange rate import services in Magento 2. Developers implement this interface to create custom curr...
Model\RegionFactory
This factory class creates new instances of the Region model, which represents geographical regions/states within countries in Magento. Developers use...
Model\ResourceModel\Country\Collection
This collection class manages and retrieves country data from the database in Magento 2. Developers use it to load countries filtered by store configu...
Model\ResourceModel\Region\Collection
This collection class manages and retrieves geographical region data (states, provinces) from Magento's database. Developers use it to load, filter, a...
Observer
This observer class handles the scheduled automatic import and update of currency exchange rates in Magento 2. It runs via cron job to fetch rates fro...
PriceCurrency
PriceCurrency handles currency conversion and formatting for prices in Magento 2. Developers use this class when they need to convert amounts between...
Region
This model class represents a geographic region (state/province) within a country in Magento 2's directory system. Developers use this class to retrie...
RegionProvider
This class provides region (state/province) data for countries in JSON format. Developers use it to populate address form dropdowns or get structured...
ResourceModel\Country
This resource model handles database operations for country data in Magento 2. Developers use it to load country information from the directory_countr...
ResourceModel\Country\Format
This resource model manages database operations for country address formats in Magento 2. It defines how address formats are stored and retrieved from...
ResourceModel\Currency
This resource model manages currency data and exchange rates in Magento 2. Developers use it to retrieve currency conversion rates between different c...
ResourceModel\Region
This resource model handles database operations for geographical regions (states/provinces) in Magento 2. Developers use it to load region data by cod...
TopDestinationCountries
This class retrieves a list of top destination countries configured in the Magento admin under Store Configuration. Developers use this to get preferr...