gristlabs_grist-core/app
Paul Fitzpatrick 14f7e30e6f (core) add users.options.isConsultant flag, and omit such users from billing
Summary:
This adds an optional `isConsultant` flag to `users.options`, and an endpoint that allows the support user to turn it on or off. Users marked as consultants are not counted as billable members. Follows the example of existing `allowGoogleLogin` option.

Billable members are counted when members are added or removed from a site. Changing the `isConsultant` flag has no immediate or retroactive effect on billing. The number of users in stripe is now set unconditionally, rather than only when it has changed.

Notifications to billing managers are not aware of this billing nuance, but continue to report user counts that include consultants. The notifications link users to the billing page.

Test Plan: extended test

Reviewers: georgegevoian

Reviewed By: georgegevoian

Subscribers: anaisconce, jarek

Differential Revision: https://phab.getgrist.com/D3362
2022-04-11 10:26:31 -04:00
..
client (core) add users.options.isConsultant flag, and omit such users from billing 2022-04-11 10:26:31 -04:00
common (core) add users.options.isConsultant flag, and omit such users from billing 2022-04-11 10:26:31 -04:00
gen-server (core) add users.options.isConsultant flag, and omit such users from billing 2022-04-11 10:26:31 -04:00
plugin (core) configure typedoc for generating plugin api documentation 2022-04-04 18:11:33 -04:00
server (core) Include altSessionId in logs 2022-04-08 16:40:34 -07:00
tsconfig.json (core) move home server into core 2020-07-21 20:39:10 -04:00