# app/modules/hosting/config.py
"""
Module configuration.

Environment-based configuration using Pydantic Settings.
Settings are loaded from environment variables with HOSTING_ prefix.

Example:
    HOSTING_DEFAULT_BILLING_PERIOD=annual
"""
from pydantic_settings import BaseSettings


class ModuleConfig(BaseSettings):
    """Configuration for hosting module."""

    # Default billing period for new services
    default_billing_period: str = "monthly"

    # Days before expiry to trigger renewal alerts
    renewal_alert_days: int = 30

    # Default currency for pricing
    default_currency: str = "EUR"

    model_config = {"env_prefix": "HOSTING_", "env_file": ".env", "extra": "ignore"}


# Export for auto-discovery
config_class = ModuleConfig
config = ModuleConfig()
