Skip to content

Releases: jlevers/selling-partner-api

v7.2.2

11 Oct 20:14
Compare
Choose a tag to compare

Fixed

  • Correct Singapore Seller Central URL in OAuth.php (https://sellercentral.amazon.sg instead of https://sellercentral.amazon.com.sg)

v7.2.1

11 Oct 02:34
Compare
Choose a tag to compare

Fixed

  • Set OAuth token endpoint correctly

v7.2.0

30 Sep 17:49
Compare
Choose a tag to compare

Added

  • Invoices v2024-06-19 API
  • Finances v2024-06-19 API
  • App Integrations v2024-04-01 API

Changed

  • Upgraded all models from latest upstream changes

Full Changelog: 7.1.1...v7.2.0

v7.1.1

06 Aug 23:26
Compare
Choose a tag to compare

Fixed

  • GetMyFeesEstimatesResponse now deserializes correctly, and more generally, array responses will be generated and deserialized correctly (#754, #759)
  • ErrorList schemas that are supposed to be objects but are marked as array schemas in the upstream models are refactored to objects before schema generation

Added

  • Support for Y-m-d\TH:i\Z timestamps

Full Changelog: v7.1.0...7.1.1

v7.1.0

05 Aug 21:05
a4f7d6d
Compare
Choose a tag to compare

Fixed

  • Made $requiresAdditionalSellerInputs param to ShippingService DTO optional (#753, thanks @simonsolutions)

Added

  • OAuth support! It's now possible to manage OAuth authorization URI creation and refresh token generation using the OAuth connector. Details in README.
  • Enums and helper methods for managing regions, marketplaces, and endpoints.
    • The Region enum contains the three Amazon regions
    • The Marketplace enum has helper methods for safely converting 2-letter country codes to Amazon marketplaces (fromCountryCode) and for getting a marketplace's region (toRegion)
    • The Endpoint enum's methods now make use of the Region and Marketplace enums to ensure full coverage when fetching an endpoint based on a country code, Marketplace, or Region

Full Changelog: v7.0.4...v7.1.0

v7.0.4

09 Jul 20:14
Compare
Choose a tag to compare

Fixed

  • refinements and pagination are no longer required in ItemSearchResults (#741, thanks @KhorneHoly!)
  • Support new DateTime formats, including ones that include milliseconds and timezones (#742, #746, thanks @simonsolutions)

Added

  • Transfers API
  • Support for header arguments, including Shipping V2's x-amzn-Business-Id and FBA Inventory's x-amzn-idempotency-token
  • Misc updates from other APIs

Changed

  • Complex array attribute definitions are no longer nested arrays
  • DTO/Response methods are always in a particular order

Full Changelog: v7.0.3...v7.0.4

v7.0.3

24 Jun 18:36
Compare
Choose a tag to compare

Added

  • Make it possible to disable caching altogether by passing null for the cache parameter to SellingPartnerApi::seller()/SellingPartnerApi::vendor().

Full Changelog: v7.0.2...v7.0.3

v7.0.2

23 Jun 15:46
Compare
Choose a tag to compare

Changed

  • Cache keys for RDTs include the specific refresh token and delegatee (if applicable)
  • GetAccessTokenRequest doesn't send unnecessary default headers from SellingPartnerApi::defaultHeaders()

Added

  • Endpoint enum now has ::byCountryCode() and ::byRegion() methods

Full Changelog: v7.0.1...v7.0.2

v7.0.1

21 Jun 05:39
Compare
Choose a tag to compare

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

19 Jun 22:44
Compare
Choose a tag to compare

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