Skip to content

Custom offer price & Sandbox mode

Latest
Compare
Choose a tag to compare
@dackmin dackmin released this 24 Aug 14:10
· 24 commits to main since this release

2.0.0 (2023-08-24)

⚠ BREAKING CHANGES

  • customers.switchSubscriptionOffer(customerId, subscriptionId, offer, requestOptions) becomes customers.switchSubscriptionOffer(customerId, subscriptionId, offer, **{ priceId }**, requestOptions) -> it now takes an additional parameter before request options to speficy offer options like price id
  • sandbox: true|false is now an option on every request (instead of only offers list) and has been removed from offers.list()

Features

  • add price to switch offer (edc5360)
  • allow to select offer price (8d719c5)
  • offers: add sandbox param (ecf88d1)

Bug Fixes

  • ci: use yarn cache for node libraries (c4d64da)
  • remove unused parameter (123b79f)
  • rename opts to reqOpts (3b39173)
  • rename price to priceId for consistency (a5bb870)