Search
Preparing search index...
The search index is not available
@stigg/js-client-sdk - v3.30.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@stigg/js-client-sdk - v3.30.0
StiggClient
Interface StiggClient
Hierarchy
StiggClient
Implemented by
Stigg
Index
Properties
is
Customer
Loaded
is
Resource
Loaded
is
Widget
Watermark
Enabled
Methods
add
Listener
apply
Subscription
clear
Customer
clear
Resource
estimate
Subscription
estimate
Subscription
Update
fetch
Usage
History
get
Active
Subscriptions
get
Active
Subscriptions
List
get
Boolean
Entitlement
get
Checkout
State
get
Coupons
get
Customer
get
Customer
Portal
get
Entitlements
get
Metered
Entitlement
get
Numeric
Entitlement
get
Paywall
get
Subscription
preview
Subscription
refresh
remove
Listener
set
Customer
Id
set
Resource
wait
For
Checkout
Completed
wait
For
Initialization
Properties
is
Customer
Loaded
is
Customer
Loaded
:
boolean
is
Resource
Loaded
is
Resource
Loaded
:
boolean
is
Widget
Watermark
Enabled
is
Widget
Watermark
Enabled
:
boolean
Methods
add
Listener
add
Listener
<
K
>
(
eventName
:
K
, callback
:
Events
[
K
]
)
:
void
Type parameters
K
:
keyof
Events
Parameters
eventName:
K
callback:
Events
[
K
]
Returns
void
apply
Subscription
apply
Subscription
(
params
:
ApplySubscription
)
:
Promise
<
ApplySubscriptionResults
>
Parameters
params:
ApplySubscription
Returns
Promise
<
ApplySubscriptionResults
>
clear
Customer
clear
Customer
(
)
:
void
Returns
void
clear
Resource
clear
Resource
(
)
:
void
Returns
void
estimate
Subscription
estimate
Subscription
(
estimateSubscription
:
EstimateSubscription
)
:
Promise
<
SubscriptionPreview
>
Parameters
estimateSubscription:
EstimateSubscription
Returns
Promise
<
SubscriptionPreview
>
estimate
Subscription
Update
estimate
Subscription
Update
(
estimateSubscriptionUpdate
:
EstimateSubscriptionUpdate
)
:
Promise
<
SubscriptionPreview
>
Parameters
estimateSubscriptionUpdate:
EstimateSubscriptionUpdate
Returns
Promise
<
SubscriptionPreview
>
fetch
Usage
History
fetch
Usage
History
(
params
:
FetchUsageHistory
)
:
Promise
<
undefined
|
UsageHistoryPoint
[]
>
Parameters
params:
FetchUsageHistory
Returns
Promise
<
undefined
|
UsageHistoryPoint
[]
>
get
Active
Subscriptions
get
Active
Subscriptions
(
params
?:
GetActiveSubscriptions
)
:
Promise
<
Subscription
[]
>
Parameters
Optional
params:
GetActiveSubscriptions
Returns
Promise
<
Subscription
[]
>
get
Active
Subscriptions
List
get
Active
Subscriptions
List
(
params
?:
GetActiveSubscriptions
)
:
Promise
<
SlimSubscriptionFragmentV2Fragment
[]
>
Parameters
Optional
params:
GetActiveSubscriptions
Returns
Promise
<
SlimSubscriptionFragmentV2Fragment
[]
>
get
Boolean
Entitlement
get
Boolean
Entitlement
(
params
:
GetBooleanEntitlement
)
:
BooleanEntitlement
Parameters
params:
GetBooleanEntitlement
Returns
BooleanEntitlement
get
Checkout
State
get
Checkout
State
(
params
:
GetCheckoutState
)
:
Promise
<
GetCheckoutStateResults
>
Parameters
params:
GetCheckoutState
Returns
Promise
<
GetCheckoutStateResults
>
get
Coupons
get
Coupons
(
)
:
Promise
<
Coupon
[]
>
Returns
Promise
<
Coupon
[]
>
get
Customer
get
Customer
(
)
:
Promise
<
Customer
>
Returns
Promise
<
Customer
>
get
Customer
Portal
get
Customer
Portal
(
params
?:
GetCustomerPortal
)
:
Promise
<
CustomerPortal
>
Parameters
Optional
params:
GetCustomerPortal
Returns
Promise
<
CustomerPortal
>
get
Entitlements
get
Entitlements
(
resourceId
?:
string
)
:
Promise
<
Entitlement
[]
>
Parameters
Optional
resourceId:
string
Returns
Promise
<
Entitlement
[]
>
get
Metered
Entitlement
get
Metered
Entitlement
(
params
:
GetMeteredEntitlement
)
:
MeteredEntitlement
Parameters
params:
GetMeteredEntitlement
Returns
MeteredEntitlement
get
Numeric
Entitlement
get
Numeric
Entitlement
(
params
:
GetNumericEntitlement
)
:
NumericEntitlement
Parameters
params:
GetNumericEntitlement
Returns
NumericEntitlement
get
Paywall
get
Paywall
(
params
?:
GetPaywall
)
:
Promise
<
Paywall
>
Parameters
Optional
params:
GetPaywall
Returns
Promise
<
Paywall
>
get
Subscription
get
Subscription
(
params
:
GetSubscription
)
:
Promise
<
Subscription
>
Parameters
params:
GetSubscription
Returns
Promise
<
Subscription
>
preview
Subscription
preview
Subscription
(
previewSubscription
:
PreviewSubscription
)
:
Promise
<
SubscriptionPreviewV2
>
Parameters
previewSubscription:
PreviewSubscription
Returns
Promise
<
SubscriptionPreviewV2
>
refresh
refresh
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
remove
Listener
remove
Listener
<
K
>
(
eventName
:
K
, callback
:
Events
[
K
]
)
:
void
Type parameters
K
:
keyof
Events
Parameters
eventName:
K
callback:
Events
[
K
]
Returns
void
set
Customer
Id
set
Customer
Id
(
customerId
:
string
, customerToken
?:
null
|
string
, resourceId
?:
null
|
string
)
:
Promise
<
void
>
Parameters
customerId:
string
Optional
customerToken:
null
|
string
Optional
resourceId:
null
|
string
Returns
Promise
<
void
>
set
Resource
set
Resource
(
resourceId
:
string
)
:
Promise
<
void
>
Parameters
resourceId:
string
Returns
Promise
<
void
>
wait
For
Checkout
Completed
wait
For
Checkout
Completed
(
params
?:
WaitForCheckoutCompleted
)
:
Promise
<
null
|
Subscription
>
Parameters
Optional
params:
WaitForCheckoutCompleted
Returns
Promise
<
null
|
Subscription
>
wait
For
Initialization
wait
For
Initialization
(
)
:
Promise
<
StiggClient
>
Returns
Promise
<
StiggClient
>
Exports
Stigg
Client
is
Customer
Loaded
is
Resource
Loaded
is
Widget
Watermark
Enabled
add
Listener
apply
Subscription
clear
Customer
clear
Resource
estimate
Subscription
estimate
Subscription
Update
fetch
Usage
History
get
Active
Subscriptions
get
Active
Subscriptions
List
get
Boolean
Entitlement
get
Checkout
State
get
Coupons
get
Customer
get
Customer
Portal
get
Entitlements
get
Metered
Entitlement
get
Numeric
Entitlement
get
Paywall
get
Subscription
preview
Subscription
refresh
remove
Listener
set
Customer
Id
set
Resource
wait
For
Checkout
Completed
wait
For
Initialization
Generated using
TypeDoc