Skip to content

Releases: p3ol/subscribe-node-sdk

Custom offer price & Sandbox mode

24 Aug 14:10
Compare
Choose a tag to compare

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)

Initial release ✨

04 Aug 09:22
Compare
Choose a tag to compare

1.0.1 (2022-08-04)

  • fix jest timers
  • fix build not sent to npm

1.0.0 (2022-08-04)

Features

  • remove console.log (f878db4)
  • subscribe: delete access and refresh tokens and all api calls where it's needed (004b8e1)
  • subscribe: remove requestWithRetry and update example (9034b7c)

1.0.0-alpha.1 (2022-04-25)

Features

  • add customer & subscription update (42f0047)
  • add customers switchOffer method (a8f870d)

1.0.0-alpha.0 (2022-04-19)

Features

  • add auth methods (a5c0629)
  • add various payments & subscriptions methods (878be0b)
  • enable auth for all requests (2566c2f)

Bug Fixes

  • fix default api url (023f212)
  • fix missing credentials for post requests (1b334d1)