Skip to content

Commit 56ee0e0

Browse files
authored
6.x initial release (#637)
* Initial Release of 6.x Add Warehouse and Distribution API. Remove FBA Small and Light API. Remove Authorization API. Update Fulfillment Inbound API to v2024-03-20. Update php-cs-fixer deprecated config properties. * Update ObjectSerializer, SellingPartnerSDK, and Tests
1 parent 287e081 commit 56ee0e0

File tree

1,081 files changed

+47735
-16015
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,081 files changed

+47735
-16015
lines changed

.github/workflows/test-suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- "5.x"
7+
- "6.x"
88
schedule:
99
- cron: '0 8 * * *'
1010

.php-cs-fixer.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
'no_alternative_syntax' => true,
9999
'no_blank_lines_after_class_opening' => true,
100100
'no_blank_lines_after_phpdoc' => true,
101-
'no_blank_lines_before_namespace' => false,
101+
'blank_lines_before_namespace' => true,
102102
'no_closing_tag' => true,
103103
'no_empty_comment' => true,
104104
'no_empty_phpdoc' => true,
@@ -117,9 +117,8 @@
117117
'no_spaces_around_offset' => true,
118118
'no_spaces_inside_parenthesis' => true,
119119
'no_superfluous_elseif' => true,
120-
'no_superfluous_phpdoc_tags' => false,
121-
'no_trailing_comma_in_list_call' => true,
122-
'no_trailing_comma_in_singleline_array' => true,
120+
'no_superfluous_phpdoc_tags' => true,
121+
'no_trailing_comma_in_singleline' => true,
123122
'no_trailing_whitespace' => true,
124123
'no_trailing_whitespace_in_comment' => true,
125124
'no_unneeded_control_parentheses' => true,

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,13 @@ This library is not in a stable stage yet, please use with caution.
5656
### Releases
5757

5858
| branch | maintained |
59-
| -------------------------------------------------------- | ---------- |
59+
|----------------------------------------------------------| ---------- |
6060
| [1.x](https://github.com/amazon-php/sp-api-sdk/tree/1.x) | 🚫 |
6161
| [2.x](https://github.com/amazon-php/sp-api-sdk/tree/2.x) | 🚫 |
62-
| [3.x](https://github.com/amazon-php/sp-api-sdk/tree/3.x) | |
63-
| [4.x](https://github.com/amazon-php/sp-api-sdk/tree/4.x) | |
62+
| [3.x](https://github.com/amazon-php/sp-api-sdk/tree/3.x) | 🚫 |
63+
| [4.x](https://github.com/amazon-php/sp-api-sdk/tree/4.x) | 🚫 |
6464
| [5.x](https://github.com/amazon-php/sp-api-sdk/tree/5.x) ||
65+
| [6.x](https://github.com/amazon-php/sp-api-sdk/tree/5.x) ||
6566

6667
Version <s> [1.x](https://github.com/amazon-php/sp-api-sdk/tree/1.x) </s> is deprecated becuase of the attempt to
6768
make a little more sense of what Amazon is doing with using "tags" in their Open API specification.
@@ -87,17 +88,25 @@ Additionally, uuid used to generate correlation identifiers was replaced with Id
8788
default is using php internal uniqid(). This change allowed us to drop one additional dependency.
8889
Some minor adjustments were made in the template files for models/api.
8990

91+
[6.x](https://github.com/amazon-php/sp-api-sdk/tree/6.x) comes with changes to the Fulfillment Inbound API as well as other additions and removals.
92+
- Additions
93+
- Fulfillment Inbound API v2024-03-20
94+
- Amazon Warehousing and Distribution API v2024-05-09
95+
- Removals
96+
- Fulfillment Inbound API v0
97+
- Authorization API
98+
- FBA Small and Light API
99+
- You can retrieve the new fees for affected products by using the Product Fees API and/or the relevant FBA and Referral Fee reports.
100+
90101
### Available SDKs
91102

92103
[SellingPartnerSDK](/src/AmazonPHP/SellingPartner/SellingPartnerSDK.php) - Facade for all SDK's
93104

94105
- [APlusSDK](/src/AmazonPHP/SellingPartner/Api/AplusContentApi/APlusSDK.php)
95-
- [AuthorizationSDK](/src/AmazonPHP/SellingPartner/Api/AuthorizationApi/AuthorizationSDK.php)
96106
- [CatalogItemSDK](/src/AmazonPHP/SellingPartner/Api/CatalogApi/CatalogItemSDK.php)
97107
- [FBAInboundSDK](/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FBAInboundSDK.php)
98108
- [FBAInventorySDK](/src/AmazonPHP/SellingPartner/Api/FbaInventoryApi/FBAInventorySDK.php)
99109
- [FulfillmentInboundSDK](/src/AmazonPHP/SellingPartner/Api/FbaInboundApi/FulfillmentInboundSDK.php)
100-
- [FBASmallAndLightSDK](/src/AmazonPHP/SellingPartner/Api/SmallAndLightApi/FBASmallAndLightSDK.php)
101110
- [FeedsSDK](/src/AmazonPHP/SellingPartner/Api/FeedsApi/FeedsSDK.php)
102111
- [FinancesSDK](/src/AmazonPHP/SellingPartner/Api/DefaultApi/FinancesSDK.php)
103112
- [FulfillmentOutboundSDK](/src/AmazonPHP/SellingPartner/Api/FbaOutboundApi/FulfillmentOutboundSDK.php)
@@ -118,6 +127,7 @@ Some minor adjustments were made in the template files for models/api.
118127
- [SolicitationsSDK](/src/AmazonPHP/SellingPartner/Api/SolicitationsApi/SolicitationsSDK.php)
119128
- [TokensSDK](/src/AmazonPHP/SellingPartner/Api/TokensApi/TokensSDK.php)
120129
- [UploadsSDK](/src/AmazonPHP/SellingPartner/Api/UploadsApi/UploadsSDK.php)
130+
- [WarehousingAndDistributionSDK](/src/AmazonPHP/SellingPartner/Api/AwdApi/WarehousingAndDistributionSDK.php)
121131
- VendorSDK
122132
- [VendorInvoicesSDK](/src/AmazonPHP/SellingPartner/Api/VendorPaymentsApi/VendorInvoicesSDK.php)
123133
- [VendorOrdersSDK](/src/AmazonPHP/SellingPartner/Api/VendorOrdersApi/VendorOrdersSDK.php)

bin/generate.sh

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/op
66
--language-specific-primitives \\DateTimeInterface \
77
--type-mappings date=\\DateTimeInterface,Date=\\DateTimeInterface,DateTime=\\DateTimeInterface
88

9-
docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/openapi-generator-cli generate \
10-
-i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/authorization-api-model/authorization.json \
11-
-c /sp-api/config/generator-authorization.yaml \
12-
--global-property models,apis,apiDocs=false,modelDocs=false,modelTests=false,apiTests=false,supportingFiles=false \
13-
-o /sp-api \
14-
--language-specific-primitives \\DateTimeInterface \
15-
--type-mappings date=\\DateTimeInterface,Date=\\DateTimeInterface,DateTime=\\DateTimeInterface
16-
179
docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/openapi-generator-cli generate \
1810
-i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/catalog-items-api-model/catalogItems_2022-04-01.json \
1911
--skip-validate-spec \
@@ -39,14 +31,6 @@ docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/op
3931
--language-specific-primitives \\DateTimeInterface \
4032
--type-mappings date=\\DateTimeInterface,Date=\\DateTimeInterface,DateTime=\\DateTimeInterface
4133

42-
docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/openapi-generator-cli generate \
43-
-i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/fba-small-and-light-api-model/fbaSmallandLight.json \
44-
-c /sp-api/config/generator-fba-small-and-light.yaml \
45-
--global-property models,apis,apiDocs=false,modelDocs=false,modelTests=false,apiTests=false,supportingFiles=false \
46-
-o /sp-api \
47-
--language-specific-primitives \\DateTimeInterface \
48-
--type-mappings date=\\DateTimeInterface,Date=\\DateTimeInterface,DateTime=\\DateTimeInterface
49-
5034
docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/openapi-generator-cli generate \
5135
-i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/feeds-api-model/feeds_2021-06-30.json \
5236
-c /sp-api/config/generator-feeds.yaml \
@@ -64,7 +48,7 @@ docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/op
6448
--type-mappings date=\\DateTimeInterface,Date=\\DateTimeInterface,DateTime=\\DateTimeInterface
6549

6650
docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/openapi-generator-cli generate \
67-
-i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/fulfillment-inbound-api-model/fulfillmentInboundV0.json \
51+
-i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/fulfillment-inbound-api-model/fulfillmentInbound_2024-03-20.json \
6852
-c /sp-api/config/generator-fulfillment-inbound.yaml \
6953
--global-property models,apis,apiDocs=false,modelDocs=false,modelTests=false,apiTests=false,supportingFiles=false \
7054
-o /sp-api \
@@ -294,3 +278,11 @@ docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/op
294278
--language-specific-primitives \\DateTimeInterface \
295279
--type-mappings date=\\DateTimeInterface,Date=\\DateTimeInterface,DateTime=\\DateTimeInterface
296280

281+
docker run --user "$(id -u)":"$(id -g)" --rm -v "${PWD}:/sp-api" openapitools/openapi-generator-cli generate \
282+
-i https://raw.githubusercontent.com/amzn/selling-partner-api-models/main/models/amazon-warehousing-and-distribution-model/awd_2024-05-09.json \
283+
-c /sp-api/config/generator-warehousing-and-distribution.yaml \
284+
--global-property models,apis,apiDocs=false,modelDocs=false,modelTests=false,apiTests=false,supportingFiles=false \
285+
-o /sp-api \
286+
--language-specific-primitives \\DateTimeInterface \
287+
--type-mappings date=\\DateTimeInterface,Date=\\DateTimeInterface,DateTime=\\DateTimeInterface
288+

config/generator-fba-small-and-light.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

config/generator-authorization.yaml renamed to config/generator-warehousing-and-distribution.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ templateDir: sp-api/resources/php-amazon-selling-partner-api
33
additionalProperties:
44
invokerPackage: AmazonPHP\SellingPartner
55
srcBasePath: src/AmazonPHP/SellingPartner
6-
modelPackage: Model\Authorization
7-
packageName: Authorization
6+
modelPackage: Model\WarehousingAndDistribution
7+
packageName: WarehousingAndDistribution
88
files:
99
api.mustache:
1010
templateType: API
11-
destinationFilename: /AuthorizationSDK.php
11+
destinationFilename: /WarehousingAndDistributionSDK.php
1212
api_interface.mustache:
1313
templateType: API
14-
destinationFilename: /AuthorizationSDKInterface.php
14+
destinationFilename: /WarehousingAndDistributionSDKInterface.php

0 commit comments

Comments
 (0)