billing library

Classes

BillingEvent
All billing-related events emitted by the Primekit billing system.
EntitlementAllowed
Access is granted. productId is the active product providing the entitlement.
EntitlementChecker
Checks whether the current user can access a named feature based on their active subscriptions.
EntitlementDenied
Access is denied. reason is a developer-readable explanation.
EntitlementLoading
The entitlement system has not yet completed initialisation.
EntitlementResult
The result of an entitlement check for a named feature.
PaywallController
Manages paywall visibility, impression tracking, and conversion analytics.
PaywallConversion
The user completed a purchase from the paywall.
PaywallDismissed
The paywall was dismissed without a purchase.
PaywallEvent
Events emitted by PaywallController for analytics and side-effect handling.
PaywallImpression
An impression was recorded (paywall was visible to the user).
PaywallShown
The paywall became visible to the user.
PricingFormatter
Locale-aware utility for formatting PricingInfo values as human-readable price strings.
PricingInfo
Pricing information for a Product, including optional trial details.
Product
A product available for purchase in the app.
ProductCatalog
An in-memory registry of all Product definitions available in the app.
PurchaseCancelled
The user cancelled the purchase flow.
PurchaseCompleted
A purchase completed successfully.
PurchaseFailed
A purchase attempt failed.
PurchasesRestored
One or more purchases were restored via the platform restore flow.
PurchaseStarted
The user has initiated a purchase for productId.
SubscriptionCancelled
The user cancelled an active subscription.
SubscriptionDataSource
Contract that a platform billing integration must implement to supply SubscriptionManager with real subscription data.
SubscriptionInfo
A snapshot of a user's subscription state for a single product.
SubscriptionManager
Manages access to the user's subscription state across all products.
SubscriptionRenewed
A subscription renewed successfully.
TrialStarted
A free trial has started for a product.

Enums

BillingPeriod
The billing cycle for a subscription product.
ProductType
Classifies how a product is consumed after purchase.
SubscriptionStatus
The current lifecycle state of a subscription.