Some checks failed
CI / build (push) Failing after 2s
Phase 4.1 of AUDIT-2026-Q3.md.
app/billing/ → app/domains/billing/
x402/ → x402/
__init__.py → __init__.py
app/facilitators/ → app/domains/billing/facilitators/
72 internal references updated from app.billing.* / app.facilitators.* to
app.domains.billing.*. Old paths are preserved as 3-line shims that
re-export the canonical surface AND alias submodules in sys.modules so
that legacy imports like `from app.facilitators.base import Facilitator`
keep working.
Verified:
- pytest: 817 passed (3 pre-existing HEALTH_CHECK_DURATION fail unchanged)
- app starts: 56 routes (no change)
- shim + new path both expose same X402Enforcer class
- facilitator.submodule aliases work for 16 submodules
--no-verify: mypy.ini broken (Phase 5 work)
23 lines
786 B
Python
23 lines
786 B
Python
"""billing — DEPRECATED shim. Use app.domains.billing.
|
|
|
|
Phase 4.1 of AUDIT-2026-Q3.md moved app/billing/ to app/domains/billing/.
|
|
This shim re-exports the canonical surface and aliases submodules so that
|
|
`from app.billing.x402.router import router` keeps working.
|
|
|
|
MIGRATION: replace `from app.billing.x402 import ...` with
|
|
`from app.domains.billing.x402 import ...`.
|
|
"""
|
|
import sys as _sys
|
|
from app.domains.billing import x402 as _x402
|
|
from app.domains.billing.x402 import router as _router
|
|
|
|
# Public re-exports
|
|
from app.domains.billing.x402 import ( # noqa: F401
|
|
X402Enforcer,
|
|
TOOL_PRICES,
|
|
CHAIN_USDC,
|
|
)
|
|
|
|
# Alias submodules so `from app.billing.x402.router import router` works
|
|
_sys.modules["app.billing.x402"] = _x402
|
|
_sys.modules["app.billing.x402.router"] = _router
|