Skip to content

Commit f68ba3a

Browse files
committedDec 28, 2021
Updated catalog-item api models
1 parent cd3c269 commit f68ba3a

28 files changed

+3032
-5747
lines changed
 

‎README.md

+19-5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ This repository is not an official Amazon PHP library for their SP API.
77

88
### Why next library?
99

10+
The main goal of this SDK is to provide SDK's for the Amazon SP API in a way that would let
11+
the application to pass Amazon audit.
12+
13+
Amazon audit might happen to systems that must access API endpoints with PII.
14+
1015
There are already few php sp api SDKs available for [PHP](https://packagist.org/?query=sp%20api%20)
1116
however most of them comes with many issues of auto generated code.
1217

@@ -23,18 +28,27 @@ This library goal is to resolve all above mentioned issues.
2328
### Installations
2429

2530
```
26-
composer install amazon-php/sp-api-sdk^2.0
31+
composer install amazon-php/sp-api-sdk^3.0
2732
```
2833

2934
This library is not in a stable stage yet, please use with caution.
3035

31-
### Releases
36+
### Releases
37+
38+
| branch | maintained |
39+
|--------|-----------|
40+
| [1.x](https://github.com/amazon-php/sp-api-sdk/tree/1.x) | 🚫 |
41+
| [2.x](https://github.com/amazon-php/sp-api-sdk/tree/2.x) ||
42+
| [3.x](https://github.com/amazon-php/sp-api-sdk/tree/3.x) ||
3243

33-
Version <s> [1.0](https://github.com/amazon-php/sp-api-sdk/tree/1.x) </s> is deprecated becuase of the attempt to
44+
Version <s> [1.x](https://github.com/amazon-php/sp-api-sdk/tree/1.x) </s> is deprecated becuase of the attempt to
3445
make a little more sense of what Amazon is doing with using "tags" in their Open API specification.
35-
This attempt failed and in order to keep Backgward Compatibility promise, changes in the class names had to be
36-
introduced in [2.0](https://github.com/amazon-php/sp-api-sdk/tree/2.x).
46+
This attempt failed and in order to keep Backward Compatibility promise, changes in the class names had to be
47+
introduced in [2.x](https://github.com/amazon-php/sp-api-sdk/tree/2.x).
3748
Version 1.0 is not going to be updated anymore, please migrate to version 2.0 that will stay consistent with [Amazon Models](https://github.com/amzn/selling-partner-api-models)
49+
Branch [3.x](https://github.com/amazon-php/sp-api-sdk/tree/3.x) comes with BC breaks introduced by Amazon in
50+
[Catalog Item](https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/catalog-items-api-model/catalogItems_2020-12-01.json) models.
51+
Until old model won't go away, branches 2.x and 3.x should be maintained in parallel.
3852

3953
### Available SDKs
4054

‎bin/generate.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ docker run --rm -v "${PWD}:/sp-api" openapitools/openapi-generator-cli generate
1111
-o /sp-api
1212

1313
docker run --rm -v "${PWD}:/sp-api" openapitools/openapi-generator-cli generate \
14-
-i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/catalog-items-api-model/catalogItemsV0.json \
14+
-i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/catalog-items-api-model/catalogItems_2020-12-01.json \
15+
--skip-validate-spec \
1516
-c /sp-api/config/generator-catalog-item.yaml \
1617
--global-property models,apis,apiDocs=false,modelDocs=false,modelTests=false,apiTests=false,supportingFiles=false \
1718
-o /sp-api

‎rector.php

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
declare(strict_types=1);
44

55
use Rector\Core\Configuration\Option;
6-
use Rector\Core\ValueObject\PhpVersion;
76
use Rector\Set\ValueObject\SetList;
87
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
98

‎src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php

+124-292
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)