Andrew Farries
5350b91e58
Remove ensureStripeApiIsAllowed calls
...
Also the `guardTeamOperation` call as both are not needed given the
`guardCostCenterAccess` call below.
2022-09-14 08:58:15 +02:00
Andrew Farries
743dcf7690
Add getUsageLimitFor and setUsageLimitFor
...
Add two new methods to the server API for getting and setting usage
limits. Both new functions take an attributionId and work for both users
and teams.
For backwards compatibility, leave the `getUsageLimitForTeam` and
`setUsageLimitForTeam` methods as they are still used by the dashboard,
but change them to be implemented in terms of the more general `get/set`
methods.
2022-09-14 08:58:15 +02:00
Jan Keromnes
23f216b831
[server] Remove deprecated sendFeedback method
2022-09-13 17:16:14 +02:00
Jan Keromnes
16cab0fa6b
[server] Fix a few method check names
2022-09-13 17:16:14 +02:00
Milan Pavlik
759e588e45
[stripe] Use AttributionID metadat when querying for customers
2022-09-13 17:14:14 +02:00
Milan Pavlik
1ba4edc7fc
[prebuild] Log 'not using incremental prebuild' as debug
2022-09-13 14:50:14 +02:00
Sven Efftinge
e3ed2c638d
[usage-api] Use better typescript generator
2022-09-13 14:34:14 +02:00
Andrew Farries
b634fb3836
Add subscribeToStripe server method
...
Generalize the `subscribeTeamToStripe` method so that it works for user
attribution ids too.
Implement the `subscribeTeamToStripe` method in terms of the new general
method.
2022-09-13 08:43:14 +02:00
Andrew Farries
5f24cb2fd3
Check correct method name in subscribeTeamToStripe
2022-09-13 08:43:14 +02:00
Jan Keromnes
7a23e97cf6
[server][dashboard][protocol] Remove deprecated Project DB config feature
2022-09-13 07:50:14 +02:00
Andrew Farries
12bb47c380
Update getStripePortalUrlForTeam
...
Implement the method in terms of the more general `getStripePortalUrl`.
2022-09-12 16:59:13 +02:00
Andrew Farries
9be2634132
Add getStripePortalUrl method to server
2022-09-12 16:59:13 +02:00
Andrew Farries
015987aa42
Add findStripeSubscriptionId method to server
...
Add a general method for finding the stripe subscription id for a given
attribution id. Implement the existing `findStripeSubscriptionIdForTeam`
method in terms of the new method.
2022-09-12 14:30:14 +02:00
Sven Efftinge
74bc751ec7
[cost center] Add save API
2022-09-09 11:25:24 +02:00
Gero Posmyk-Leinemann
130b1d8946
[server] Implement adminGetBillingMode
2022-09-09 09:53:24 +02:00
Thomas Schubart
1b64527d76
[server] Ensure PVC workspace class does not change
2022-09-08 22:49:23 +02:00
Jean Pierre
eb9aaa995e
Store editSessions
2022-09-08 18:47:23 +02:00
Milan Pavlik
b9a45c03d6
Revert "[stripe] Use AttributionID metadat when querying for customers"
...
This reverts commit 05141becb5f677263f8ad4553c88076f19db2a4c.
2022-09-08 12:14:23 +02:00
Milan Pavlik
05141becb5
[stripe] Use AttributionID metadat when querying for customers
2022-09-08 11:18:23 +02:00
Gero Posmyk-Leinemann
2814f385bc
[server] Don't count "Professional Open Source" as personal subscription
2022-09-08 10:15:23 +02:00
Andrew Farries
7df06a862a
Add createOrUpdateStripeCustomerForUser method
...
Directly analogous to createOrUpdateStripeCustomerForTeam, the only
difference is the metadata on the resulting Stripe customer.
2022-09-08 09:59:23 +02:00
Andrew Farries
81e189b19e
Add findCustomerByQuery method
...
Implement `findCustomerByTeamId` and `findCustomerByUserId` in terms of
this more general method.
2022-09-08 09:59:23 +02:00
mustard
106e317c7a
[server] add getTeams scope for supervisor
2022-09-08 09:45:23 +02:00
Milan Pavlik
fb2840a413
[stripe] Create customers with attributionId
2022-09-08 09:28:23 +02:00
Sven Efftinge
5e72785abc
[usage] remove ListBilledUsage API
2022-09-08 08:54:23 +02:00
Sven Efftinge
249a563c48
[dashboard] Use new usage API for team-usage
2022-09-07 19:00:22 +02:00
Alex Tugarev
ca7602f0cb
Reword "Spending Limit" to "Usage Limit"
2022-09-06 11:43:21 +02:00
Sven Efftinge
e01c880447
Added API call to fetch usage data
2022-09-06 09:58:21 +02:00
Gero Posmyk-Leinemann
8991e4a500
[server] Guard against bogus RPC method names
2022-09-06 08:58:21 +02:00
Sven Efftinge
51c0c6b849
[server] 'abort' prebuilds
...
use the new StopWorkspacePolicy introduced with #12284 to avoid
spending resources on backing up discarded prebuilds.
2022-09-06 07:41:21 +02:00
Jean Pierre
f693d41810
Add /oauth/inspect endpoint
2022-09-05 19:27:20 +02:00
Jan Keromnes
9726e86b26
[server] Poll Stripe after creating a new customer
2022-09-01 10:46:16 +02:00
Jan Keromnes
b94612d434
[server][dashboard] Allow new Stripe customers to select their preferred billing currency
2022-09-01 10:46:16 +02:00
Jan Keromnes
b48b8ffbe1
[server] Deprecate 'userGetsMoreResources' in usage-based billing
2022-09-01 10:44:16 +02:00
Jan Keromnes
5e5ed07fbb
[server] Implement EntitlementServiceUBP.hasPaidSubscription
2022-09-01 10:44:16 +02:00
Gero Posmyk-Leinemann
7bc8bf954b
[server] Don't raise alerts on unspecific errors
2022-09-01 08:28:16 +02:00
Sven Efftinge
9dfafc0966
[admin] Allow manual user verification
...
fixes #12540
2022-08-31 19:12:17 +02:00
Alex Tugarev
a8d0889405
Add pagination to list usage
2022-08-31 15:14:16 +02:00
Alex Tugarev
a2fa9dcfa3
Clean up webhook events
...
by running a periodic garbage collector. This is a pattern we use for other resources.
fixes #12430
2022-08-31 15:08:16 +02:00
Manuel Alejandro de Brito Fontes
f0199414da
[server] Add name of blocked account when trying to run prebuilds
2022-08-31 09:19:15 +02:00
Gero Posmyk-Leinemann
14b38e581d
[server] Improve logging/tracing on failed instance start
2022-08-30 12:32:14 +02:00
mustard
95fa4439e5
[gp-cli] provide workspace class info in top command
2022-08-30 10:25:14 +02:00
Anton Kosyakov
008ea3fadc
[jb] prepare to split backend and plugin images
2022-08-30 09:36:14 +02:00
Gero Posmyk-Leinemann
fd7720d5ba
[server] Only alert on explicit system failures
2022-08-29 21:17:14 +02:00
Thomas Schubart
8fa7544bba
Ensure workspace class is selected if no user choice has been made
2022-08-29 11:41:13 +02:00
Gero Posmyk-Leinemann
a2b7412db4
[server] Fix usage of AccountStatementProvider by making it cache per userId
2022-08-29 11:00:14 +02:00
Gero Posmyk-Leinemann
7f537e2537
[server] Partial revert of b4a9939063fad70d25474e5a76f0b5923e27e43e
2022-08-29 11:00:14 +02:00
Sven Efftinge
79b75ab4d5
Add phone verification
2022-08-29 09:36:13 +02:00
Sven Efftinge
dda2ebd82d
[server] track more startWorkspace failures
...
fixes #12332
2022-08-26 15:06:11 +02:00
Alex Tugarev
030c183993
Use upcoming invoice
2022-08-25 16:07:10 +02:00