Files
calendar/packages/app-store
Joe Au-YeungGitHubDevin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
f1d1674693 feat: allow organization owners access to shared billing portal (#23451)
* feat: allow organization owners access to shared billing portal

- Modify stripepayment portal endpoint to accept teamId parameter
- Use team's subscription ID to get customer ID from Stripe subscription
- Validate user permissions before allowing team billing access
- Update platform and regular billing views to pass teamId
- Maintain backward compatibility with individual user billing

Co-Authored-By: joe@cal.com <j.auyeung419@gmail.com>

* Add `getTeamByIdIfUserIsAdmin` to `TeamRepository`

* Add `getSubscriptionFromId` function

* Generate portal URL via the team's subscription not the requesting
user's customerId

* Pass teamId to `/portal` endpoint

* Undo Devin change to platform billing

* Address coderabbit comments

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2025-09-01 08:07:36 +05:30
..
2025-02-04 20:45:44 +00:00
2024-09-21 02:10:12 +00:00
2025-03-05 14:58:02 -03:00
2024-09-21 02:10:12 +00:00
2025-02-27 03:58:17 +00:00
2025-01-10 14:47:18 +00:00
2025-04-16 14:27:53 +00:00
2024-09-21 02:10:12 +00:00
2025-02-19 18:20:47 +05:30
2025-08-30 15:52:00 +00:00
2024-09-21 02:10:12 +00:00
2023-11-22 12:19:30 -07:00