Skip to content

feat: add free platform plan#17581

Merged
ThyMinimalDev merged 4 commits intomainfrom
platform-free-plan
Nov 12, 2024
Merged

feat: add free platform plan#17581
ThyMinimalDev merged 4 commits intomainfrom
platform-free-plan

Conversation

@ThyMinimalDev
Copy link
Copy Markdown
Contributor

@ThyMinimalDev ThyMinimalDev commented Nov 11, 2024

What does this PR do?

Replace Platform Starter Plan with a new Free plan

Screenshot 2024-11-11 at 17 29 21

also mark payment as overdue when payment fails and cancel subscription when deleted by stripe

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • N/A - I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

@dosubot dosubot bot added platform Anything related to our platform plan ✨ feature New feature or request labels Nov 11, 2024
@keithwillcode keithwillcode added the core area: core, team members only label Nov 11, 2024
@graphite-app graphite-app bot requested a review from a team November 11, 2024 11:48
Comment on lines +112 to +113
case "checkout.session.completed":
await this.billingService.handleStripeCheckoutEvents(event);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subscribe / upgrade

Comment on lines +115 to +116
case "customer.subscription.deleted":
await this.billingService.handleStripeSubscriptionDeleted(event);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stripe deleted subscription after multiple failed payment retries

Comment on lines +118 to +119
case "invoice.payment_failed":
await this.billingService.handleStripePaymentFailed(event);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

payment failed, mark subscription as overdue

Comment on lines +121 to +122
case "invoice.payment_succeeded":
await this.billingService.handleStripePaymentSuccess(event);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

payment success, mark subscription as not overdue

@graphite-app
Copy link
Copy Markdown

graphite-app bot commented Nov 11, 2024

Graphite Automations

"Add platform team as reviewer" took an action on this PR • (11/11/24)

1 reviewer was added to this PR based on Keith Williams's automation.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 11, 2024

E2E results are ready!

@vercel
Copy link
Copy Markdown

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Nov 12, 2024 8:05am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Nov 12, 2024 8:05am

@@ -1,8 +1,9 @@
export enum PlatformPlan {
FREE = "FREE",
STARTER = "STARTER",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if starter does not exist anymore, shouldn't we remove it from codebase?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not while we have people still using this plan

@ThyMinimalDev ThyMinimalDev merged commit 6889592 into main Nov 12, 2024
@ThyMinimalDev ThyMinimalDev deleted the platform-free-plan branch November 12, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core area: core, team members only ✨ feature New feature or request platform Anything related to our platform plan ready-for-e2e

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants