Releases: jlevers/selling-partner-api
Releases · jlevers/selling-partner-api
v7.0.3
v7.0.2
Changed
- Cache keys for RDTs include the specific refresh token and delegatee (if applicable)
GetAccessTokenRequest
doesn't send unnecessary default headers fromSellingPartnerApi::defaultHeaders()
Added
Endpoint
enum now has::byCountryCode()
and::byRegion()
methods
Full Changelog: v7.0.1...v7.0.2
v7.0.1
Added
- Make user agent configurable (#739)
Fixed
- Try multiple datetime formats during deserialization before throwing an exception (#737, thanks @KhorneHoly!)
- Serialize
getMyFeesEstimates
request properly (#736)
Full Changelog: v7.0.0...v7.0.1
v7.0.0
Changed
- Minimum PHP version of 8.2
- Instead of accessing seller/vendor connector classes with
SellingPartnerApi::make(...$options)->seller()
andSellingPartnerApi::make(...$options)->vendor()
, they are now accessed viaSellingPartnerApi::seller(...$options)
andSellingPartnerApi::vendor(...$options)
- The
authenticationClient
constructor argument is now typedGuzzleHttp\Client
instead ofGuzzleHttp\ClientInterface
for better Saloon interoperation DateTimeInterface
is used for date parameters instead ofDateTime
- 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 implementsTokenCache
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 of1
or0
- Null attributes are removed before serialization
Thanks @dpash, @KhorneHoly, and @bgarret for your contributions!
Full Changelog: v6.0.6...v7.0.0
v6.0.6
Fixed
- DateTime deserialization (#699, thanks @mickas! fixes #698)
- Add attributes to
AutomatedShippingSettings
that are missing from upstream models - Deserialization of integer 0 was buggy, since I used
0x0
as a default case in a deserializationmatch
. Switched to usingchr(0)
so that 0 can be deserialized properly.
Changed
- Move
composer/semver
andhighsidelabs/saloon-sdk-generator
from regular dependencies to dev dependencies. This involved moving a lot of base classes, traits, and exception classes fromhighsidelabs/saloon-sdk-generator
into the library itself, which is reflected in the code generation process. - SDK is now compatible with Laravel 11
Added
- FBA Inbound API 2024-03-20
- Misc Orders VO API updates
getUserAgent()
method inSellingPartnerApi
class (partial fix for #679)
New Contributors
Full Changelog: v6.0.5...v6.0.6
v6.0.5
Fixed
- Fix
createFeed
example in README (#677, @spire-mike) - Ensure restricted data tokens aren't generated for reports that don't require them (#682, fixed by #671)
--
Full Changelog: v6.0.4...v6.0.5
v6.0.4
Fixed
- Generate query strings like
a=val1,val2
insteada=val1&a=val2
. Amazon often requires, and always accepts (as far as I can tell) comma-separated query string arrays, but often rejects the more standard format we were using before. - Look up cached access tokens and RDTs using refresh tokens as the key, not LWA client ID, because it's possible to have multiple refresh tokens for the same client ID.
Changed
- Add
JSON_UNESCAPED_SLASHES
flag when outputting customized schema files inSchemaVersion
v6.0.3
v6.0.2
Fixed
- Moved
composer/semver
fromrequire
torequire-dev
incomposer.json
- Add
illuminate/support
torequire
incomposer.json
. It was installed with dev dependencies, which means that normal Composer installations weren't working properly. - Got optional commit flow in
library:update-version
working properly. Previously the changes that were supposed to be committed were lost in a stash.