bunny-subscriptions
Manage subscription lifecycle in Bunny. Covers the state machine (PENDING → ACTIVE → CANCELED / EXPIRED / TRIAL / TRIAL_EXPIRED), direct creation via subscriptionCreate vs quote-based creation, the nightly cron driving automated renewals / expirations / trial transitions, the evergreen auto-renew gate, explicit lifecycle mutations (subscriptionCancel, subscriptionReinstate, subscriptionSetAutoRenew, subscriptionTrialExtend, subscriptionTrialConvert), quantity updates (subscriptionQuantityUpdate), tenant metadata (subscriptionTenantUpdate), metered-usage reporting with featureUsageCreate / featureUsageUpdate / featureUsageDelete (requires billing:write), add-on co-renewal rules, price-adjustment timing on renewal, and when to reach for a quote (bunny-quoting) vs a direct mutation. Use when creating, modifying, renewing, or cancelling subscriptions; when reporting metered usage; or when orchestrating trial conversions.
Pinned to revision ed962fe0b797, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.