Skip to content

Releases: jlevers/selling-partner-api

v3.0.3

07 Jul 21:40
Compare
Choose a tag to compare

Fixed

  • Removed erroneous RDT from getOrders

v3.0.2

07 Jul 05:25
Compare
Choose a tag to compare

Changed

  • No longer setting the Content-Type header in Authentication.php, because HeaderSelector.php sets it automatically
  • Changed the default document type passed to Document.php from null to ReportType::__FEED_RESULT_REPORT. Not passing a $documentType is deprecated, and in the next major release $documentType will be a required parameter.

Fixed

  • Parsing feed result reports no longer causes an error (#21). The number of successful and failed records from the feed are stored in Document::$successfulFeedRecords and Document::$failedFeedRecords, respectively, and Document::$data contains the rest of the document's data (errors/warnings for specific lines of the input document).

v3.0.1

05 Jul 00:59
Compare
Choose a tag to compare

Changed

  • Updated min PHP version to 7.3. I intended to do this in the 3.0.0 release, but forgot. I apologize if this causes problems for anyone -- it looks like only a few people have installed v3 so far, so I'm hoping it won't cause any issues.

v3.0.0

03 Jul 01:39
276602b
Compare
Choose a tag to compare

Added

  • Support for all of the newer Amazon API segments (#48, #38, #34)
  • In-library data about all documented report and feed types (ReportType.php and FeedType.php)
  • A class of constant arrays corresponding to all available SP API endpoints (Endpoint.php)
  • Automatic generation of restricted data tokens for all calls where they're needed

Changed

  • Updated Document.php to make use of the in-library report/feed type data
  • Moved configuration-related exceptions to Configuration.php (#23)
  • Removed support for .env-based configuration/authentication
  • Removed the ConfigurationOptions class and moved all configuration options to an associative array that gets passed to Configuration

v2.3.2

30 Jun 21:42
Compare
Choose a tag to compare

Fixed

  • Remove trailing comma in Configuration.php to make library compatible with PHP 7.2 again (#47)

v2.3.1

26 Jun 21:04
Compare
Choose a tag to compare

Fixed

  • When downloading documents with content type ContentType::XLSX, use PhpOffice\PhpSpreadsheet\IOFactory to load document data instead of PhpOffice\PhpSpreadsheet\Reader\Xlsx. This allows parsing of document files that aren't correctly formatted as .xlsx. There is at least one supposedly XLSX report (FEE_DISCOUNTS_REPORT) that isn't properly formatted.

v2.3.0

24 Jun 23:31
Compare
Choose a tag to compare

Changed

  • Content types should now be passed by using one of the constants in lib/ContentType.php, such as ContentType::XML. This change is backwards compatible.

Added

  • The Document class now supports XLSX documents, like those produced by calling createReport with report type RFQD_BULK_DOWNLOAD. Document::getData() will return a phpoffice/phpspreadsheet Spreadsheet object when Document is given content type ContentType::XLSX.

v2.2.1

17 Jun 02:13
Compare
Choose a tag to compare

Added

  • Reports and feeds with content-type application/pdf are now supported (they can be downloaded via Document::download(), although parsing them with Document::getData() is still unsupported). Added in #40 (cc @Ludofloria)

Fixed

  • Grantless operations were failing when using role ARN based authentication. Fixed by #41 (cc @deyvidholz)

v2.2.0

31 May 23:09
Compare
Choose a tag to compare

Added

  • Support for role-based authentication! You can now pass a role ARN to the ConfigurationOptions constructor to work with apps that were created using an IAM role ARN, instead of needing to register a new app using an IAM user ARN. This resolves #24.

Fixed

  • Backwards compatibility for array-based configuration via the Configuration constructor was broken, because the expected configuration array keys had changed. Those changes have been reverted, so legacy configuration setups should work properly now.

v2.1.0

22 May 06:24
Compare
Choose a tag to compare

Changed

  • Deprecated static .env-based configuration in favor of passing a ConfigurationOptions instance to Configuration.php. Also deprecated passing an array of configuration info Configuration.php's constructor for the same reason. The deprecated configuration methods will continue to be supported until v3.0.0. This closes #1. Big thanks to @cpiggott for his help on this!

Fixed

  • Request failing when an expired accessToken was passed via Configuration.php

Added

  • ConfigurationOptions.php configuration class
  • SetStickering PrepInstructions enum value