thunderbird_accounts.subscription.utils
Functions
|
Activates a plan. |
TODO: Implement me |
|
|
Sync the user's plan information according to the state of user.has_active_subscription. |
- thunderbird_accounts.subscription.utils.sync_plan_to_keycloak(user: User)[source]
Sync the user’s plan information according to the state of user.has_active_subscription. If they don’t have an active subscription then they’re not subscribed and can’t access their services. Note that deactivating the plan (is_subscribed=False) will not adjust their plan information.
If their plan is active then this will update their plan information as well as setting is_subscribed=True.