Skip to content

Custom offer price, Sandbox mode & PHP 8.1

Latest
Compare
Choose a tag to compare
@dackmin dackmin released this 24 Aug 14:30
· 1 commit to main since this release

2.0.1 (2023-10-17)

Bug Fixes

  • add missing sandbox options (4f30372)
  • fix failing tests (7bd0ee4)
  • fix undefined array key warning (5b2321f)

2.0.0 (2023-08-24)

⚠ BREAKING CHANGES

  • Now requires php >= 8.1
  • 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()
  • offers.list(page, count, status, include, exclude) becomes offers.list(page, count, include, exclude, **status**, requestOptions) -> status is moved to the end of the parameters list to be consistent with other SDKs.

Features

  • add price to options (3965f48)
  • allow to provide offers options on subscription switch (9985fea)
  • drop php 8.0 compatibility and require php 8.1 (c68eea4)
  • offers: add sandbox param (992a8ab)

Bug Fixes

  • deps: update dependency guzzlehttp/guzzle to v7.4.5 [security] (d5b47e9)
  • deps: update dependency guzzlehttp/guzzle to v7.7.0 (d14c670)
  • lint code (1f6f9a7)
  • move status parameter to last (01c8a6f)
  • remove offers list sandbox mode parameter (79db151)
  • rename request options parameter (93ad74e)