"""Cart app service registration."""
from __future__ import annotations


def register_domain_services() -> None:
    """Register services for the cart app.

    Cart owns: Order, OrderItem.
    Cross-app calls go over HTTP via call_action() / fetch_data().
    """
    from shared.services.registry import services
    from shared.services.cart_impl import SqlCartService

    services.cart = SqlCartService()

    from shared.services.cart_items_impl import SqlCartItemsService
    services.register("cart_data", SqlCartItemsService())

    from .cart_page import CartPageService
    services.register("cart_page", CartPageService())
