Major changes: - Add AuditProvider protocol for cross-module audit logging - Move customer order operations to orders module (dependency inversion) - Add customer order metrics via MetricsProvider pattern - Fix missing db parameter in get_admin_context() calls - Move ProductMedia relationship to catalog module (proper ownership) - Add marketplace breakdown stats to marketplace_widgets New files: - contracts/audit.py - AuditProviderProtocol - core/services/audit_aggregator.py - Aggregates audit providers - monitoring/services/audit_provider.py - Monitoring audit implementation - orders/services/customer_order_service.py - Customer order operations - orders/routes/api/vendor_customer_orders.py - Customer order endpoints - catalog/services/product_media_service.py - Product media service - Architecture documentation for patterns Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
1.2 KiB
Python
47 lines
1.2 KiB
Python
# app/modules/orders/services/__init__.py
|
|
"""
|
|
Orders module services.
|
|
|
|
This module contains the canonical implementations of order-related services.
|
|
"""
|
|
|
|
from app.modules.orders.services.order_service import (
|
|
order_service,
|
|
OrderService,
|
|
)
|
|
from app.modules.orders.services.order_inventory_service import (
|
|
order_inventory_service,
|
|
OrderInventoryService,
|
|
)
|
|
from app.modules.orders.services.order_item_exception_service import (
|
|
order_item_exception_service,
|
|
OrderItemExceptionService,
|
|
)
|
|
from app.modules.orders.services.invoice_service import (
|
|
invoice_service,
|
|
InvoiceService,
|
|
)
|
|
from app.modules.orders.services.invoice_pdf_service import (
|
|
invoice_pdf_service,
|
|
InvoicePDFService,
|
|
)
|
|
from app.modules.orders.services.customer_order_service import (
|
|
customer_order_service,
|
|
CustomerOrderService,
|
|
)
|
|
|
|
__all__ = [
|
|
"order_service",
|
|
"OrderService",
|
|
"order_inventory_service",
|
|
"OrderInventoryService",
|
|
"order_item_exception_service",
|
|
"OrderItemExceptionService",
|
|
"invoice_service",
|
|
"InvoiceService",
|
|
"invoice_pdf_service",
|
|
"InvoicePDFService",
|
|
"customer_order_service",
|
|
"CustomerOrderService",
|
|
]
|