# 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 .count_plans_params import CountPlansParams
    from .count_plans_request_plan_type import CountPlansRequestPlanType
    from .count_plans_response import CountPlansResponse
    from .count_plans_response_params_plan_type import CountPlansResponseParamsPlanType
    from .create_plan_request_body_plan_type import CreatePlanRequestBodyPlanType
    from .create_plan_response import CreatePlanResponse
    from .delete_plan_response import DeletePlanResponse
    from .get_plan_response import GetPlanResponse
    from .list_plan_issues_params import ListPlanIssuesParams
    from .list_plan_issues_response import ListPlanIssuesResponse
    from .list_plans_params import ListPlansParams
    from .list_plans_request_plan_type import ListPlansRequestPlanType
    from .list_plans_response import ListPlansResponse
    from .list_plans_response_params_plan_type import ListPlansResponseParamsPlanType
    from .update_company_plans_response import UpdateCompanyPlansResponse
    from .update_plan_response import UpdatePlanResponse
    from .upsert_billing_product_plan_response import UpsertBillingProductPlanResponse
    from .upsert_billing_product_request_body_charge_type import UpsertBillingProductRequestBodyChargeType
_dynamic_imports: typing.Dict[str, str] = {
    "CountPlansParams": ".count_plans_params",
    "CountPlansRequestPlanType": ".count_plans_request_plan_type",
    "CountPlansResponse": ".count_plans_response",
    "CountPlansResponseParamsPlanType": ".count_plans_response_params_plan_type",
    "CreatePlanRequestBodyPlanType": ".create_plan_request_body_plan_type",
    "CreatePlanResponse": ".create_plan_response",
    "DeletePlanResponse": ".delete_plan_response",
    "GetPlanResponse": ".get_plan_response",
    "ListPlanIssuesParams": ".list_plan_issues_params",
    "ListPlanIssuesResponse": ".list_plan_issues_response",
    "ListPlansParams": ".list_plans_params",
    "ListPlansRequestPlanType": ".list_plans_request_plan_type",
    "ListPlansResponse": ".list_plans_response",
    "ListPlansResponseParamsPlanType": ".list_plans_response_params_plan_type",
    "UpdateCompanyPlansResponse": ".update_company_plans_response",
    "UpdatePlanResponse": ".update_plan_response",
    "UpsertBillingProductPlanResponse": ".upsert_billing_product_plan_response",
    "UpsertBillingProductRequestBodyChargeType": ".upsert_billing_product_request_body_charge_type",
}


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__ = [
    "CountPlansParams",
    "CountPlansRequestPlanType",
    "CountPlansResponse",
    "CountPlansResponseParamsPlanType",
    "CreatePlanRequestBodyPlanType",
    "CreatePlanResponse",
    "DeletePlanResponse",
    "GetPlanResponse",
    "ListPlanIssuesParams",
    "ListPlanIssuesResponse",
    "ListPlansParams",
    "ListPlansRequestPlanType",
    "ListPlansResponse",
    "ListPlansResponseParamsPlanType",
    "UpdateCompanyPlansResponse",
    "UpdatePlanResponse",
    "UpsertBillingProductPlanResponse",
    "UpsertBillingProductRequestBodyChargeType",
]
