Skip to content

feat(api): mount subscriptions, payment-retry, and payment-methods (#808–#811) - #910

Merged
github-actions[bot] merged 1 commit into
Smartdevs17:mainfrom
stephanieefeakpokrire-droid:feat/wire-billing-808-811
Sep 26, 2026
Merged

github-actions[bot] merged 1 commit into
Smartdevs17:mainfrom
stephanieefeakpokrire-droid:feat/wire-billing-808-811

Conversation

@stephanieefeakpokrire-droid

Copy link
Copy Markdown
Contributor

Summary

These four Stellar Wave billing features were largely implemented but three of the routers were never mounted on the API (same class of gap as #816–#819 in PR #903). This PR wires them in.

Issue Change
#808 Stripe subscription billing Mount subscriptionsRouter at /api/v1/subscriptions
#809 Invoice generation + PDF export Already mounted at /api/v1/invoice (GET /:id/pdf); called out next to the related mounts so the batch closes together
#810 Payment retry + exponential backoff Mount retryRouter at /api/v1/payment-retry
#811 Multiple payment methods per account Mount paymentMethodsRouter at /api/v1/payment-methods

Test plan

  • Confirm routes appear under /api/v1 after boot
  • GET/POST /api/v1/subscriptions (with x-tenant-id)
  • GET /api/v1/invoice/:id/pdf returns application/pdf
  • GET /api/v1/payment-retry/analytics
  • POST/GET /api/v1/payment-methods

Resolves #808
Resolves #809
Resolves #810
Resolves #811

…uters

Resolves Smartdevs17#808 — wire Stripe subscription billing routes at /api/v1/subscriptions
(already implemented in routes/subscriptions.ts + services/stripe.ts).

Resolves Smartdevs17#809 — invoice generation with PDF export was already mounted at
/api/v1/invoice (GET /:id/pdf via buildInvoicePdf); documented alongside the
related mounts so the four billing issues land together.

Resolves Smartdevs17#810 — wire payment retry (exponential backoff) at /api/v1/payment-retry
(routes/retry.ts + services/retry/*).

Resolves Smartdevs17#811 — wire multiple payment methods per account at
/api/v1/payment-methods (routes/payment-methods.ts).
@vercel

vercel Bot commented Sep 26, 2026

Copy link
Copy Markdown

@stephanieefeakpokrire-droid is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 26, 2026

Copy link
Copy Markdown

@stephanieefeakpokrire-droid Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@github-actions
github-actions Bot merged commit 4390885 into Smartdevs17:main Sep 26, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant