- Updated SDK to prevent dependency on compromised NPM packages
- Added:
grantPromotionalEntitlementsGroupor granting a promotional entitlements group - all entitlements that are not already granted to a customer, need to be included in the request. - Added:
revokePromotionalEntitlementsGroupfor revoking all of the entitlements of a group, unless they are a part of a different group. - Added:
unlinkPromotionalEntitlementsGroupfor removing the references of the group from promotional entitlements that are a part of it, while keep granting access to those entitlements.
- Added:
CancelSubscription.awaitSubscriptionCancellationfor controlling whether to wait for confirmation from billing solutions that are integrated with Stigg before marking subscription as canceled in Stigg
- Added:
AccessDeniedReason.Revokedfor determining when an entitlement has been explicitly revoked.
- Added:
getEntitlementmethod - a unified way to check any type of feature entitlement (boolean, numeric, or metered) that automatically returns the appropriate entitlement type based on the feature configuration
- Added:
SubscriptionBillingInfo.prorationBehaviorfor controlling the proration behavior when provisioning and updating subscriptions. The new parameter accepts the following value CREATE_PRORATIONS- bill for proration immediately. This is the default behavior.INVOICE_IMMEDIATELY- include prorated charges in the upcoming invoice.NONE- don’t prorate subscription changes.
- Added:
getSubscriptionsendpoint that allows retrieving all of customers’ subscriptions
- Added:
SubscriptionInvoiceFragment.attemptCount
- Added: Ability to pass taxId on
updateCustomer.billingInfo.taxIds
- Added:
salesforceIdtoprovisionCustomer,updateCustomer,provisionSubscription,importCustomerBulkandimportSubscriptionBulk
- Added: offline mode
Coupon discount changes:
- Added:
SubscriptionCouponDiscountInput.amounts_off - Added:
SubscriptionCouponDiscountInput.description - Added:
SubscriptionCouponDiscountInput.duration_in_months - Added:
SubscriptionCouponDiscountInput.name - Added:
SubscriptionCouponDiscountInput.percent_off
- Added:
getUsageHistoryV2 - ⚠️ Deprecated:
fetchUsageHistory(please usegetUsageHistoryV2instead) - Changed:
- Input Object
- New field -
groupBylist of dimensions to group usage history by.
- New field -
- Output Object
result[i].daterenamed toseries[0].point[i].timestampresult[i].valuerenamed toseries[0].point[i].valueresult[i].isResetPointrenamed toseries[0].point[i].isResetPoint- Old Value:
trueif and only if usage was reset due to periodic reset. - New Value:
trueif and only if usage was reset due to periodic reset or due to a plan transition.
- Old Value:
- New field
markers- array of markers for usage reset reason (periodic change / plan transition)
- Input Object
- Added: ability to override prices when there’s a scheduled update in place
- Added:
provisionSubscription.priceOverrides - Added:
applySubscription.priceOverrides
- Added: support for price localization in fixed fee coupons
- Added:
delegateSubscriptionToCustomer() - Added:
transferSubscriptionToResource() - 🟡 Deprecated:
transferSubscription()method (please usetransferSubscriptionToResource()instead)
- Fixed: when access to entitlement was denied due to the reaching of a budget cap,
getMeteredEntitlementsreturnedAccessDeniedReason.UNSPECIFIEDinstead ofAccessDeniedReason.BudgetExceeded.
- Added: ability to estimate the subscription cost when the payment of the subscription is delegated to a different customer using:
previewSubscription.payingCustomerId,estimateSubscription.payingCustomerIdestimateSubscriptionUpdate.payingCustomerId
- Added: ability to more easily determine the usage period of metered entitlements using:
Entitlement.usagePeriodStartEntitlement.usagePeriodEnd
- 🟡 Deprecated:
Entitlement.nextResetDatefield
- Added: ability to delegate payment of a provisioned subscription to a different customer using:
provisionSubscription.payingCustomerIdapplySubscription.payingCustomerIdSlimSubscriptionFragmentV2Fragment.payingCustomerFullSubscription.payingCustomer
- Added: ability to apply a coupon to a subscription using the Stigg coupon ID using:
provisionSubscription.appliedCouponapplySubscription.appliedCouponupdateSubscription.appliedCouponpreviewSubscription.appliedCouponestimateSubscription.appliedCouponestimateSubscriptionUpdate.appliedCoupon
- Changed:
UpdateSubscription.subscriptionEntitlementsdoes not require the full list of entitlements when only needing to add or update specific entitlements
- Bug fixes
- Bug fixes
- 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()
- Added: ability to ignore customer and subscriptions that have been updated since the last import by passing
ImportCustomer.updatedAtandImportSubscriptionInput.updatedAt
- Added: ability to provision backdated subscriptions using
SubscriptionBillingInfo.isBackdated
- Added: ability to determine the billing period of a specific price using
Price.billingCadence
- Added: ability to determine customer’s AWS Marketplace ID using
SlimCustomer.awsMarketplaceCustomerId
- Added: ability to remove a payment method from a customer using
detachCustomerPaymentMehod()
- Added: ability to get plans that are not visible to customers using
GetPaywall.includeHiddenPlans
