Move actual code implementations into module directories: - orders: 5 services, 4 models, order/invoice schemas - inventory: 3 services, 2 models, 30+ schemas - customers: 3 services, 2 models, customer schemas - messaging: 3 services, 2 models, message/notification schemas - monitoring: background_tasks_service - marketplace: 5+ services including letzshop submodule - dev_tools: code_quality_service, test_runner_service - billing: billing_service - contracts: definition.py Legacy files in app/services/, models/database/, models/schema/ now re-export from canonical module locations for backwards compatibility. Architecture validator passes with 0 errors. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
136 lines
3.3 KiB
Python
136 lines
3.3 KiB
Python
# app/modules/orders/schemas/__init__.py
|
|
"""
|
|
Orders module Pydantic schemas.
|
|
|
|
This module contains the canonical implementations of order-related schemas.
|
|
"""
|
|
|
|
from app.modules.orders.schemas.order import (
|
|
# Address schemas
|
|
AddressSnapshot,
|
|
AddressSnapshotResponse,
|
|
# Order item schemas
|
|
OrderItemCreate,
|
|
OrderItemExceptionBrief,
|
|
OrderItemResponse,
|
|
# Customer schemas
|
|
CustomerSnapshot,
|
|
CustomerSnapshotResponse,
|
|
# Order CRUD schemas
|
|
OrderCreate,
|
|
OrderUpdate,
|
|
OrderTrackingUpdate,
|
|
OrderItemStateUpdate,
|
|
# Order response schemas
|
|
OrderResponse,
|
|
OrderDetailResponse,
|
|
OrderListResponse,
|
|
OrderListItem,
|
|
# Admin schemas
|
|
AdminOrderItem,
|
|
AdminOrderListResponse,
|
|
AdminOrderStats,
|
|
AdminOrderStatusUpdate,
|
|
AdminVendorWithOrders,
|
|
AdminVendorsWithOrdersResponse,
|
|
# Letzshop schemas
|
|
LetzshopOrderImport,
|
|
LetzshopShippingInfo,
|
|
LetzshopOrderConfirmItem,
|
|
LetzshopOrderConfirmRequest,
|
|
# Shipping schemas
|
|
MarkAsShippedRequest,
|
|
ShippingLabelInfo,
|
|
)
|
|
|
|
from app.modules.orders.schemas.invoice import (
|
|
# Invoice settings schemas
|
|
VendorInvoiceSettingsCreate,
|
|
VendorInvoiceSettingsUpdate,
|
|
VendorInvoiceSettingsResponse,
|
|
# Line item schemas
|
|
InvoiceLineItem,
|
|
InvoiceLineItemResponse,
|
|
# Address schemas
|
|
InvoiceSellerDetails,
|
|
InvoiceBuyerDetails,
|
|
# Invoice CRUD schemas
|
|
InvoiceCreate,
|
|
InvoiceManualCreate,
|
|
InvoiceResponse,
|
|
InvoiceListResponse,
|
|
InvoiceStatusUpdate,
|
|
# Pagination
|
|
InvoiceListPaginatedResponse,
|
|
# PDF
|
|
InvoicePDFGeneratedResponse,
|
|
InvoiceStatsResponse,
|
|
# Backward compatibility
|
|
InvoiceSettingsCreate,
|
|
InvoiceSettingsUpdate,
|
|
InvoiceSettingsResponse,
|
|
)
|
|
|
|
__all__ = [
|
|
# Address schemas
|
|
"AddressSnapshot",
|
|
"AddressSnapshotResponse",
|
|
# Order item schemas
|
|
"OrderItemCreate",
|
|
"OrderItemExceptionBrief",
|
|
"OrderItemResponse",
|
|
# Customer schemas
|
|
"CustomerSnapshot",
|
|
"CustomerSnapshotResponse",
|
|
# Order CRUD schemas
|
|
"OrderCreate",
|
|
"OrderUpdate",
|
|
"OrderTrackingUpdate",
|
|
"OrderItemStateUpdate",
|
|
# Order response schemas
|
|
"OrderResponse",
|
|
"OrderDetailResponse",
|
|
"OrderListResponse",
|
|
"OrderListItem",
|
|
# Admin schemas
|
|
"AdminOrderItem",
|
|
"AdminOrderListResponse",
|
|
"AdminOrderStats",
|
|
"AdminOrderStatusUpdate",
|
|
"AdminVendorWithOrders",
|
|
"AdminVendorsWithOrdersResponse",
|
|
# Letzshop schemas
|
|
"LetzshopOrderImport",
|
|
"LetzshopShippingInfo",
|
|
"LetzshopOrderConfirmItem",
|
|
"LetzshopOrderConfirmRequest",
|
|
# Shipping schemas
|
|
"MarkAsShippedRequest",
|
|
"ShippingLabelInfo",
|
|
# Invoice settings schemas
|
|
"VendorInvoiceSettingsCreate",
|
|
"VendorInvoiceSettingsUpdate",
|
|
"VendorInvoiceSettingsResponse",
|
|
# Line item schemas
|
|
"InvoiceLineItem",
|
|
"InvoiceLineItemResponse",
|
|
# Invoice address schemas
|
|
"InvoiceSellerDetails",
|
|
"InvoiceBuyerDetails",
|
|
# Invoice CRUD schemas
|
|
"InvoiceCreate",
|
|
"InvoiceManualCreate",
|
|
"InvoiceResponse",
|
|
"InvoiceListResponse",
|
|
"InvoiceStatusUpdate",
|
|
# Pagination
|
|
"InvoiceListPaginatedResponse",
|
|
# PDF
|
|
"InvoicePDFGeneratedResponse",
|
|
"InvoiceStatsResponse",
|
|
# Backward compatibility
|
|
"InvoiceSettingsCreate",
|
|
"InvoiceSettingsUpdate",
|
|
"InvoiceSettingsResponse",
|
|
]
|