Skip to content

feat: subscription billing (v1.1.0) - #1

Merged
just-abdou merged 1 commit into
mainfrom
melting-yarnwhy-559
May 8, 2026
Merged

feat: subscription billing (v1.1.0)#1
just-abdou merged 1 commit into
mainfrom
melting-yarnwhy-559

Conversation

@just-abdou

Copy link
Copy Markdown
Contributor

Summary

  • Adds subscription billing surface to the SDK: products, customers, subscriptions, invoices
  • New models with fromMap() factories: ProductModel, ProductWithPricesModel, PriceModel, CustomerModel, SubscriptionModel, InvoiceModel, PaginationModel + PaginatedResponse<T>
  • New services and matching Moosyl client methods (list/get/create/update/archive/cancel)
  • Fetcher.patch() plus a query-string helper for filtered list endpoints
  • Webhook union extended with subscription-created and subscription-updated (SubscriptionWebhookData)
  • Bumps moosyl-sdk to 1.1.0 (minor — additive, no breaking changes)

Test plan

  • tsc --noEmit passes
  • npm run build produces dist/
  • CI workflow green on this PR
  • After merge: tag v1.1.0, create GitHub Release → Publish to npm workflow ships to npm with provenance
  • npm view moosyl-sdk version returns 1.1.0

🤖 Generated with Claude Code

…nvoices)

- New models: ProductModel, ProductWithPricesModel, PriceModel,
  CustomerModel, SubscriptionModel, InvoiceModel, PaginationModel
- New services + Moosyl client methods for the full lifecycle
- Adds Fetcher.patch() and query-string helper
- Adds subscription-created / subscription-updated webhook events
- Bumps version to 1.1.0

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@just-abdou
just-abdou merged commit a4923b8 into main May 8, 2026
1 check 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

Development

Successfully merging this pull request may close these issues.

1 participant