Frontend SDKs
JavaScript SDK
- Added: ability to determine the number of attempts that were made to collect payment for a generated invoice when Stigg is integrated with Stripe using the
latestInvoice.attemptCount
property of thegetActiveSubscriptions()
andgetSubscription()
endpoints
- Added: support for offline mode
- Added:
GetUsageHistoryV2
- ⚠️ Deprecated:
GetUsageHistory
(please useGetUsageHistoryV2
instead) - Changed:
- Input Object:
customerRefId
renamed tocustomerId
resourceRefId
renamed toresourceId
featureRefId
renamed tofeatureId
resetPeriod
removedyearlyResetPeriodConfiguration
removedmonthlyResetPeriodConfiguration
removedweeklyResetPeriodConfiguration
removed
- Output Object
startDate
removedendDate
removedusageMeasurements[i].date
renamed toseries[0].point[i].timestamp
usageMeasurements[i].value
renamed toseries[0].point[i].value
usageMeasurements[i].isResetPoint
renamed toseries[0].point[i].isResetPoint
- Old Value:
true
if and only if usage was reset due to periodic reset. - New Value:
true
if and only if usage was reset due to periodic reset or due to a plan transition.
- Old Value:
groups[i].groupInfo[j].key
renamed toseries[i].tags[j].key
groups[i].groupInfo[j].value
renamed toseries[i].tags[j].value
groups[i].usageMeasurements[j].date
renamed toseries[i].point[j].timestamp
groups[i].usageMeasurements[j].value
renamed toseries[i].point[j].value
groups[i].usageMeasurements[j].isResetPoint
renamed toseries[i].point[j].isResetPoint
- Old Value:
true
if and only if usage was reset due to periodic reset. - New Value:
true
if and only if usage was reset due to periodic reset or due to a plan transition.
- Old Value:
- Input Object:
- Added: ability to override prices when there’s a scheduled update in place
- Added: support for price localization in fixed fee coupons
- Added: ability to estimate the subscription cost when the payment of the subscription is delegated to a different customer using:
PreviewSubscription.payingCustomerId
EstimateSubscription.payingCustomerId
EstimateSubscriptionUpdate.payingCustomerId
- Added: ability to more easily determine the usage period of metered entitlements using:
MeteredEntitlement.usagePeriodStart
MeteredEntitlement.usagePeriodEnd
- 🛑 Removed:
MeteredEntitlement.nextResetDate
- Added: ability to get the list of active subscriptions from Edge using
getActiveSubscriptionsList()
- Added: ability to get the details of a specific subscription using
getSubscription()