class

App::Services::EntitlementService

Inherits Reference < Object

Constants

SUSPENDED_FEATURES = ["billing_portal", "read_only_export", "admin_billing"]

Class methods

enabled?(org_id : UUID, feature_key : String) : Bool
Source
has_feature?(org : Models::Organization, feature_key : String) : Bool

Check boolean feature entitlement

Source
list_enabled(org_id : UUID) : Array(String)
Source
recompute_snapshot(org : Models::Organization)

Recompute snapshot when Plan changes

Source