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...
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\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...
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...