Releases: jlevers/selling-partner-api
Releases · jlevers/selling-partner-api
v3.0.2
Changed
- No longer setting the
Content-Type
header inAuthentication.php
, becauseHeaderSelector.php
sets it automatically - Changed the default document type passed to
Document.php
fromnull
toReportType::__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
andDocument::$failedFeedRecords
, respectively, andDocument::$data
contains the rest of the document's data (errors/warnings for specific lines of the input document).
v3.0.1
v3.0.0
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
andFeedType.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 toConfiguration
v2.3.2
v2.3.1
Fixed
- When downloading documents with content type
ContentType::XLSX
, usePhpOffice\PhpSpreadsheet\IOFactory
to load document data instead ofPhpOffice\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
Changed
- Content types should now be passed by using one of the constants in
lib/ContentType.php
, such asContentType::XML
. This change is backwards compatible.
Added
- The
Document
class now supports XLSX documents, like those produced by callingcreateReport
with report typeRFQD_BULK_DOWNLOAD
.Document::getData()
will return aphpoffice/phpspreadsheet
Spreadsheet
object whenDocument
is given content typeContentType::XLSX
.
v2.2.1
Added
- Reports and feeds with content-type
application/pdf
are now supported (they can be downloaded viaDocument::download()
, although parsing them withDocument::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
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
Changed
- Deprecated static
.env
-based configuration in favor of passing aConfigurationOptions
instance toConfiguration.php
. Also deprecated passing an array of configuration infoConfiguration.php
's constructor for the same reason. The deprecated configuration methods will continue to be supported untilv3.0.0
. This closes #1. Big thanks to @cpiggott for his help on this!
Fixed
- Request failing when an expired
accessToken
was passed viaConfiguration.php
Added
ConfigurationOptions.php
configuration classSetStickering
PrepInstructions
enum value