MCPcopy Index your code
hub / github.com/simstudioai/sim / hasPaidSubscriptionStatus

Function hasPaidSubscriptionStatus

apps/sim/lib/billing/subscriptions/utils.ts:26–30  ·  view source on GitHub ↗
(status: string | null | undefined)

Source from the content-addressed store, hash-verified

24 * Returns true when a subscription should still count as a paid plan entitlement.
25 */
26export function hasPaidSubscriptionStatus(status: string | null | undefined): boolean {
27 return ENTITLED_SUBSCRIPTION_STATUSES.includes(
28 status as (typeof ENTITLED_SUBSCRIPTION_STATUSES)[number]
29 )
30}
31
32/**
33 * Returns true when a subscription status is usable for product access.

Callers 15

useSubscriptionUpgradeFunction · 0.90
getUserUsageLimitFunction · 0.90
utils.test.tsFile · 0.90
BillingFunction · 0.90
useUpgradeStateFunction · 0.90
route.tsFile · 0.90
checkEnterprisePlanFunction · 0.85
getEffectiveSeatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected