# This file was auto-generated by Fern from our API Definition.

# isort: skip_file

import typing
from importlib import import_module

if typing.TYPE_CHECKING:
    from .clearinghouse_payer_info import ClearinghousePayerInfo
    from .payer import Payer
    from .payer_category import PayerCategory
    from .payer_ids import PayerIds
    from .payer_page import PayerPage
    from .payer_uuid import PayerUuid
    from .primary_payer_ids import PrimaryPayerIds
    from .support_state import SupportState
_dynamic_imports: typing.Dict[str, str] = {
    "ClearinghousePayerInfo": ".clearinghouse_payer_info",
    "Payer": ".payer",
    "PayerCategory": ".payer_category",
    "PayerIds": ".payer_ids",
    "PayerPage": ".payer_page",
    "PayerUuid": ".payer_uuid",
    "PrimaryPayerIds": ".primary_payer_ids",
    "SupportState": ".support_state",
}


def __getattr__(attr_name: str) -> typing.Any:
    module_name = _dynamic_imports.get(attr_name)
    if module_name is None:
        raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
    try:
        module = import_module(module_name, __package__)
        if module_name == f".{attr_name}":
            return module
        else:
            return getattr(module, attr_name)
    except ImportError as e:
        raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
    except AttributeError as e:
        raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e


def __dir__():
    lazy_attrs = list(_dynamic_imports.keys())
    return sorted(lazy_attrs)


__all__ = [
    "ClearinghousePayerInfo",
    "Payer",
    "PayerCategory",
    "PayerIds",
    "PayerPage",
    "PayerUuid",
    "PrimaryPayerIds",
    "SupportState",
]
