Apply subscription changes for a customer Update\Provision a subscription for a customer according to the given subscription input
Clear the customer ID, usually after the customer signs out
Unset the customer's resource ID, usually after the customer exit a specific resource.
Estimate subscription
Preview of the subscription.
Estimate subscription update
Preview of the subscription.
Fetch customer usage history of a feature.
Array of usage history as data points.
optional resource id, if not provided global resources will be fetched.
List of active subscriptions
Get boolean entitlement of feature for a customer
boolean entitlement
Get customer checkout details
Get a list of coupons
Get a customer
Get a customer portal
Get a list of entitlements
Get metered entitlement of feature for a customer
metered entitlement
Get numeric entitlement of feature for a customer
numeric entitlement
Get paywall data for rendering the paywall
Get subscription
subscription id
the subscription data
Preview subscription provisioning\updates
Preview of the subscription.
Reload entitlements
Remove a listener to stop handle updates of entitlements changes
Set the customer ID, usually after the customer signs in or restores a session
Set the customer's resource ID, usually after the customer select a specific resource.
Waits for a subscription to be activated after a completed checkout. This method should be called on page load after the customer is redirected to the success URL. Returns the new subscription.
Returns a Promise that tracks the client's initialization state.
The Promise will be resolved if the client successfully initializes, or rejected if client initialization has irrevocably failed.
Stigg client instance.
Creates an instance of Stigg client.
configuration settings.
The new client instance.
Generated using TypeDoc
Add a listener to handle updates of entitlements changes