Skip to content

Releases: jlevers/selling-partner-api

v4.0.0

27 Sep 06:23
Compare
Choose a tag to compare

Added

  • API response headers are now accessible via response classes' getHeaders() method. (#33)
  • The dataElements parameter for restricted data tokens can be passed to the getOrders, getOrder, and getOrderItems calls.
  • Documentation for both of the above changes has been added to the README.

Changed

  • Model\FbaInbound\FBAItem is now Model\FbaInbound\Item, to match Amazon's Swagger models.
  • All upstream API schema changes have been integrated in the library as of the date of this release (9/26/2021).
  • Legacy models from previous versions of the API have been purged.

Fixed

  • $config is now a required parameter for *Api classes. (#97)
  • Model\Catalog\ItemImage's variant attribute is no longer an enum, because Amazon doesn't supply the full range of possible image variant values. (#100)

v3.1.5

16 Sep 19:01
Compare
Choose a tag to compare

Fixed

  • I broke PHP 7.4 compatibility in the last release -- this patch fixes that (#92)

v3.1.4

16 Sep 01:58
Compare
Choose a tag to compare

Added

  • Created getter/setter methods for several of the Configuration class's properties: lwaClientId, lwaClientSecret, lwaRefreshToken, awsAccessKeyId, awsSecretAccessKey, and endpoint. (#73)

🥧 release!

v3.1.3

19 Aug 15:39
Compare
Choose a tag to compare

Fixed

  • The $report_type parameter for ReportsApi::getReportDocument(), and the code that adds RDT support to that call, was accidentally removed in v3.1 when the library switched to the new version of the Reports API. All that missing code has been added back in. (#78)
  • Converted all instances of CreateFeedDocumentResult in Document.php to CreateFeedDocumentResponse, because CreateFeedDocumentResult doesn't exist in the newer version of the Reports API (version ^3.1). (#76, thanks @ivaaaan!)

v3.1.2

16 Aug 18:44
Compare
Choose a tag to compare

Fixed

  • There were errors in Amazon's Catalog models that made it impossible to deserialize sales rank information. I modified the models to fix the issue (#64), which caused changes in the generated code.

    • Model\Catalog\Item::getSalesRanks() is now Model\Catalog\Item::getRanks()
    • Model\Catalog\ItemSalesRank::getRank() is now Model\Catalog\ItemSalesRank::getValue().

    While these are not backwards compatible changes, the original methods were not returning useful information, so it seems like a low risk change.

v3.1.1

16 Aug 15:23
Compare
Choose a tag to compare

Added

  • Support for the GB_VOEC deemed reseller category when calling getOrders. (#68)

Fixed

  • lwaRefreshToken is no longer a required Configuration option if you only plan to call grantless operations using that Configuration instance. Previously, even if an API class instance was only going to be calling grantless operations, an lwaRefreshToken was still required in the Configuration options array. This was a bit of a catch-22 if you wanted to call getAuthorizationCode to convert MWS tokens into SP API refresh tokens. (#57)

v3.1.0

12 Aug 23:50
Compare
Choose a tag to compare

Added

Changed

  • Updated to 2021-06-30 versions of the Reports and Feeds APIs (#69)
  • Updated Document class to work with new Reports and Feeds APIs (#71)
  • Updated Vendor, Product Type Definition, Orders, FBA Inventory, and Listings APIs to match latest Amazon models

v3.0.7

22 Jul 04:08
Compare
Choose a tag to compare

Changed

  • Parse ContentType::TAB and ContentType::CSV documents using PhpOffice/PhpSpreadsheet. This simplifies the code, and fixes lots of little nitpicky issues with spreadsheet parsing, like empty lines, cells with newlines in them, etc.

v3.0.6

14 Jul 17:55
Compare
Choose a tag to compare

Fixed

  • aws/aws-sdk-php was accidentally removed from composer.json in the last version. It has now been re-added.

v3.0.5

09 Jul 05:04
Compare
Choose a tag to compare

Added

  • Document::download() now accepts an optional boolean $postProcess parameter. It defaults to true, but if false is passed, the document contents will not have any special parsing applied based on their content type. Document::$data will be set to the raw data. (#54)

Changed

  • Document::upload() now uses openssl_encrypt directly, removing dependencies cyberdummy/gzstream and jsq/psr7-stream-encryption.
  • The removal of those dependencies resulted in guzzle/psr7 upgrading to 2.0, which meant updating all Guzzle\Psr7\build_query() calls to Guzzle\Psr7\Query::build().