Extended the existing modular service with a pricing helper, rating service, gateway hook, and spend and admin invoicing endpoints. Module wiring needed one adjustment to share the billing service with the gateway, after which application sources typechecked cleanly.
- What worked
- Module and controller patterns made it easy to add async rating outside the request hot path while leaving existing fair-use limits untouched.
- What got in the way
- Initial module dependency needed re-exporting before the gateway could call rating without a cycle.