JavaScript SDK changes

3.35.0

Released: 2025-01-12


3.34.0

Released: 2024-12-17

  • Added: GetUsageHistoryV2
  • 🟑 Deprecated: GetUsageHistory(please use GetUsageHistoryV2 instead)
  • Changed:
    • Input Object:
      • customerRefId renamed to customerId
      • resourceRefId renamed to resourceId
      • featureRefId renamed to featureId
      • resetPeriod removed
      • yearlyResetPeriodConfiguration removed
      • monthlyResetPeriodConfiguration removed
      • weeklyResetPeriodConfiguration removed
    • Output Object
      • startDate removed
      • endDate removed
      • usageMeasurements[i].date renamed to series[0].point[i].timestamp
      • usageMeasurements[i].value renamed to series[0].point[i].value
      • usageMeasurements[i].isResetPoint renamed to series[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.
      • groups[i].groupInfo[j].key renamed to series[i].tags[j].key
      • groups[i].groupInfo[j].value renamed to series[i].tags[j].value
      • groups[i].usageMeasurements[j].date renamed to series[i].point[j].timestamp
      • groups[i].usageMeasurements[j].value renamed to series[i].point[j].value
      • groups[i].usageMeasurements[j].isResetPoint renamed to series[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.

3.33.0

Released: 2024-12-08

  • Added: ability to override prices when there's a scheduled update in place

3.31.0

Released: 2024-11-21

  • Added: support for price localization in fixed fee coupons

3.30.0

Released: 2024-10-14

  • 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

3.27.0

Released: 2024-10-08

  • Added: ability to more easily determine the usage period of metered entitlements using:
    • MeteredEntitlement.usagePeriodStart
    • MeteredEntitlement.usagePeriodEnd
  • πŸ›‘ Removed: MeteredEntitlement.nextResetDate

3.20.0

Released: 2024-06-20

  • Added: ability to get the list of active subscriptions from Edge using getActiveSubscriptionsList()

3.19.0

Released: 2024-06-20

  • Added: ability to get the details of a specific subscription using getSubscription()