mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-07 00:37:36 +00:00
24 lines
813 B
Go
24 lines
813 B
Go
package licensing
|
|
|
|
// SubscriptionState represents the subscription lifecycle state.
|
|
type SubscriptionState string
|
|
|
|
const (
|
|
SubStateTrial SubscriptionState = "trial"
|
|
SubStateActive SubscriptionState = "active"
|
|
SubStateGrace SubscriptionState = "grace"
|
|
SubStateExpired SubscriptionState = "expired"
|
|
SubStateSuspended SubscriptionState = "suspended"
|
|
// SubStateCanceled represents an explicit user-initiated cancellation.
|
|
// For Cloud, this should revoke paid capabilities immediately (no grace).
|
|
SubStateCanceled SubscriptionState = "canceled"
|
|
)
|
|
|
|
// LimitCheckResult represents the result of evaluating a limit.
|
|
type LimitCheckResult string
|
|
|
|
const (
|
|
LimitAllowed LimitCheckResult = "allowed"
|
|
LimitSoftBlock LimitCheckResult = "soft_block"
|
|
LimitHardBlock LimitCheckResult = "hard_block"
|
|
)
|