Const
Optional
clientOptions: TierGetClientOptionsCancel an org's subscriptions
Convenience wrapper for Tier.cancel
Optional
clientOptions: TierGetClientOptionsGenerate a checkout URL to set an org's payment info, and optionally to create a subscription on completion.
successUrl
param should be a URL within your application where the
user will be redirected upon completion.
Convenience wrapper for Tier.checkout
Optional
clientOptions: TierGetClientOptionsGet a client with the settings from the environment
Internal
Test whether a value is a valid ErrorResponse
Test whether a value is a valid FeatureName
Test whether a value is a valid FeatureNameVersioned
Test whether a value is a valid OrgName
Test whether a value is a valid PlanName
Look up limits for a given FeatureName and OrgName
Convenience wrapper for Tier.lookupLimit
Optional
clientOptions: TierGetClientOptionsLook up the limits for all features for a given OrgName
Convenience wrapper for Tier.lookupLimits
Optional
clientOptions: TierGetClientOptionsLook up all OrgInfo metadata about an org
Convenience wrapper for Tier.lookupOrg
Look up all the Payment Methods available for a given OrgName
Convenience wrapper for Tier.lookupPaymentMethods
Fetch the current phase for an org
Convenience wrapper for Tier.lookupPhase
alias for lookupPhase
Optional
clientOptions: TierGetClientOptionsSimilar to pull, but filters plans to only include
the highest version of each plan. Plan versions are sorted numerically
if they are decimal integers, or lexically in the en
locale otherwise.
So, for example, the plan version 20test
will be considered "lower"
than 9test
, because the non-numeric string causes it to be lexically
sorted. But the plan version 20
sill be considered "higher" than the
plan version 9
, because both are strictly numeric.
Convenience wrapper for Tier.pullLatest
Note Plan versions are inherently arbitrary, and as such, they really should not be sorted or given any special priority by being "latest".
This method will be removed in version 6 of this SDK.
Optional
clientOptions: TierGetClientOptionsPush a new Model to Tier
Any previously pushed PlanName will be ignored, new plans will be added.
Convenience wrapper for Tier.push
Report metered feature usage
Convenience wrapper for Tier.report
Optional
options: ReportParamsOptional
clientOptions: TierGetClientOptionsAdvanced interface for creating arbitrary schedule phases in any order.
Convenience wrapper for Tier.schedule
Optional
phases: Phase[]Optional
clientOptions: TierGetClientOptionsSimple interface for creating a new phase in the org's subscription schedule.
Setting trialDays
will cause it to prepend a "trial" phase on the
effective date, and delay the creation of the actual non-trial
subscription phase by the specified number of days.
Convenience wrapper for Tier.subscribe
Optional
clientOptions: TierGetClientOptionsUpdate an org's metadata. Note that any fields not set (other than
metadata
) will be reset to empty ''
values on any update.
Convenience wrapper for Tier.updateOrg
Asserts that a value is a valid FeatureDefinition
If not, a string is thrown indicating the source of the problem.
Validate that a value is a valid FeatureTier
If not, a string is thrown indicating the source of the problem.
Asserts that a value is a valid Plan
If not, throws a string indicating the source of the problem.
Get information about the current sidecare API in use
Convenience wrapper for Tier.whoami
Get an org's billing provider identifier
Convenience wrapper for Tier.whois
Return a new Tier client that has a test clock
Generated using TypeDoc
Return an Answer indicating whether an org can access a feature, or if they are at their plan limit.
Convenience wrapper for Tier.can