# Services

This directory contains the business logic services for the Bizzmudra plugin.

## Files

| File | Description |
|------|-------------|
| `CurrencyData.php` | Central data layer for currency operations. Manages currency settings, retrieval, current currency state, and exchange rates from the database. |
| `ExchangeRate.php` | Handles exchange rate data: loading from JSON, caching via transients, AJAX handlers for admin, and cross-currency rate calculations. |
| `PriceConverter.php` | Hooks into WooCommerce price filters to convert product prices based on the currently selected currency. |

## Design Principles

- Each service is a single-responsibility class
- Services use the Singleton pattern where a single shared state is needed
- `PriceConverter` accepts `CurrencyData` via constructor injection
- All services are instantiated by the `Plugin` class
