packagist jlevers/selling-partner-api v7.0.0

latest releases: dev-main, v6.x-dev, v5.0.x-dev...
15 months ago

Changed

  • Minimum PHP version of 8.2
  • Instead of accessing seller/vendor connector classes with SellingPartnerApi::make(...$options)->seller() and SellingPartnerApi::make(...$options)->vendor(), they are now accessed via SellingPartnerApi::seller(...$options) and SellingPartnerApi::vendor(...$options)
  • The authenticationClient constructor argument is now typed GuzzleHttp\Client instead of GuzzleHttp\ClientInterface for better Saloon interoperation
  • DateTimeInterface is used for date parameters instead of DateTime
  • Deprecated APIs are removed, and their connector accessor methods throw exceptions
  • Non-version-specific API accessor methods (e.g., SellerConnector::orders()) are removed, since they're inevitably going to become out of date

Added

  • tokenCache constructor parameter allows the user to define a class that implements TokenCache for caching access tokens, which simplifies the end user's caching implementation compared to the old callback-based access token storage mechanism
  • Latest changes from all OpenAPI models
  • CONTRIBUTING.md to make it easier for others to get started making contributions
  • All autogenerated files have comments warning not to modify them directly
  • Some basic tests! What a concept 🙃

Fixed

  • Infinite recursion bug on FBA Inbound V2024-03-20 API accessor method
  • Boolean query parameters are serialized as 'true' or 'false' instead of 1 or 0
  • Null attributes are removed before serialization

Thanks @dpash, @KhorneHoly, and @bgarret for your contributions!

Full Changelog: v6.0.6...v7.0.0

Don't miss a new selling-partner-api release

NewReleases is sending notifications on new releases.