Summary
- Replace stale
/settings/billinglinks with the dashboard billing anchorhttps://caution.dev/#billing. - Centralize the billing URL in API, metering, and email-service code paths used by payment-required errors and dunning emails.
- Add regression coverage for the API/metering billing URL constants and update suspension email assertions.
Test plan
cargo test -p email-service suspension_ -- --nocapturecargo test -p api billing_url_points_to_dashboard_billing_hash -- --nocapturecargo test -p metering billing_url_points_to_dashboard_billing_hash -- --nocapturerg -n 'https://caution\.dev/settings/billing' .returned no matchesgit diff --check
Note: cargo fmt -- --check was run and reports pre-existing formatting drift in unrelated files; no unrelated formatting changes are included in this PR.
Closes #273
## Summary
- Replace stale `/settings/billing` links with the dashboard billing anchor `https://caution.dev/#billing`.
- Centralize the billing URL in API, metering, and email-service code paths used by payment-required errors and dunning emails.
- Add regression coverage for the API/metering billing URL constants and update suspension email assertions.
## Test plan
- `cargo test -p email-service suspension_ -- --nocapture`
- `cargo test -p api billing_url_points_to_dashboard_billing_hash -- --nocapture`
- `cargo test -p metering billing_url_points_to_dashboard_billing_hash -- --nocapture`
- `rg -n 'https://caution\.dev/settings/billing' .` returned no matches
- `git diff --check`
Note: `cargo fmt -- --check` was run and reports pre-existing formatting drift in unrelated files; no unrelated formatting changes are included in this PR.
Closes #273