Skip to content

Commit f000453

Browse files
authored
Update all APIs and Models (#683)
1 parent ae8eda7 commit f000453

File tree

244 files changed

+8741
-654
lines changed

Some content is hidden

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

244 files changed

+8741
-654
lines changed

src/AmazonPHP/SellingPartner/Api/AwdApi/WarehousingAndDistributionSDK.php

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
use Psr\Log\LoggerInterface;
1818

1919
/**
20-
* The Selling Partner API for AWD.
20+
* The Selling Partner API for Amazon Warehousing and Distribution.
2121
*
22-
* The Selling Partner API for Amazon Warehousing and Distribution (AWD).
22+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
2323
*
2424
* The version of the OpenAPI document: 2024-05-09
2525
*
@@ -36,13 +36,14 @@ public function __construct(private readonly ClientInterface $client, private re
3636
* Operation getInboundShipment.
3737
*
3838
* @param string $shipment_id ID for the shipment. A shipment contains the cases being inbounded. (required)
39+
* @param null|string $sku_quantities If equal to `SHOW`, the response includes the shipment SKU quantity details. Defaults to `HIDE`, in which case the response does not contain SKU quantities (optional)
3940
*
4041
* @throws ApiException on non-2xx response
4142
* @throws InvalidArgumentException
4243
*/
43-
public function getInboundShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\WarehousingAndDistribution\InboundShipment
44+
public function getInboundShipment(AccessToken $accessToken, string $region, string $shipment_id, ?string $sku_quantities = null) : \AmazonPHP\SellingPartner\Model\WarehousingAndDistribution\InboundShipment
4445
{
45-
$request = $this->getInboundShipmentRequest($accessToken, $region, $shipment_id);
46+
$request = $this->getInboundShipmentRequest($accessToken, $region, $shipment_id, $sku_quantities);
4647

4748
$this->configuration->extensions()->preRequest('WarehousingAndDistribution', 'getInboundShipment', $request);
4849

@@ -132,10 +133,11 @@ public function getInboundShipment(AccessToken $accessToken, string $region, str
132133
* Create request for operation 'getInboundShipment'.
133134
*
134135
* @param string $shipment_id ID for the shipment. A shipment contains the cases being inbounded. (required)
136+
* @param null|string $sku_quantities If equal to `SHOW`, the response includes the shipment SKU quantity details. Defaults to `HIDE`, in which case the response does not contain SKU quantities (optional)
135137
*
136138
* @throws \AmazonPHP\SellingPartner\Exception\InvalidArgumentException
137139
*/
138-
public function getInboundShipmentRequest(AccessToken $accessToken, string $region, string $shipment_id) : RequestInterface
140+
public function getInboundShipmentRequest(AccessToken $accessToken, string $region, string $shipment_id, ?string $sku_quantities = null) : RequestInterface
139141
{
140142
// verify the required parameter 'shipment_id' is set
141143
if ($shipment_id === null || (\is_array($shipment_id) && \count($shipment_id) === 0)) {
@@ -155,6 +157,15 @@ public function getInboundShipmentRequest(AccessToken $accessToken, string $regi
155157
$multipart = false;
156158
$query = '';
157159

160+
// query params
161+
if (\is_array($sku_quantities)) {
162+
$sku_quantities = ObjectSerializer::serializeCollection($sku_quantities, '', true);
163+
}
164+
165+
if ($sku_quantities !== null) {
166+
$queryParams['skuQuantities'] = ObjectSerializer::toString($sku_quantities);
167+
}
168+
158169
if (\count($queryParams)) {
159170
$query = \http_build_query($queryParams);
160171
}
@@ -226,8 +237,8 @@ public function getInboundShipmentRequest(AccessToken $accessToken, string $regi
226237
/**
227238
* Operation listInboundShipments.
228239
*
229-
* @param null|string $sort_by Field to sort results by. Required if `sortOrder` is provided. (optional)
230-
* @param null|string $sort_order Sort the response in `ASCENDING` or `DESCENDING` order. (optional)
240+
* @param null|string $sort_by Field to sort results by. By default, the response will be sorted by UPDATED_AT. (optional)
241+
* @param null|string $sort_order Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order. (optional)
231242
* @param null|string $shipment_status Filter by inbound shipment status. (optional)
232243
* @param null|\DateTimeInterface $updated_after List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format. (optional)
233244
* @param null|\DateTimeInterface $updated_before List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format. (optional)
@@ -328,8 +339,8 @@ public function listInboundShipments(AccessToken $accessToken, string $region, ?
328339
/**
329340
* Create request for operation 'listInboundShipments'.
330341
*
331-
* @param null|string $sort_by Field to sort results by. Required if `sortOrder` is provided. (optional)
332-
* @param null|string $sort_order Sort the response in `ASCENDING` or `DESCENDING` order. (optional)
342+
* @param null|string $sort_by Field to sort results by. By default, the response will be sorted by UPDATED_AT. (optional)
343+
* @param null|string $sort_order Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order. (optional)
333344
* @param null|string $shipment_status Filter by inbound shipment status. (optional)
334345
* @param null|\DateTimeInterface $updated_after List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format. (optional)
335346
* @param null|\DateTimeInterface $updated_before List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format. (optional)

src/AmazonPHP/SellingPartner/Api/AwdApi/WarehousingAndDistributionSDKInterface.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
use AmazonPHP\SellingPartner\Exception\InvalidArgumentException;
88

99
/**
10-
* The Selling Partner API for AWD.
10+
* The Selling Partner API for Amazon Warehousing and Distribution.
1111
*
12-
* The Selling Partner API for Amazon Warehousing and Distribution (AWD).
12+
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
1313
*
1414
* The version of the OpenAPI document: 2024-05-09
1515
*
@@ -36,17 +36,18 @@ interface WarehousingAndDistributionSDKInterface
3636
* Operation getInboundShipment.
3737
*
3838
* @param string $shipment_id ID for the shipment. A shipment contains the cases being inbounded. (required)
39+
* @param null|string $sku_quantities If equal to `SHOW`, the response includes the shipment SKU quantity details. Defaults to `HIDE`, in which case the response does not contain SKU quantities (optional)
3940
*
4041
* @throws ApiException on non-2xx response
4142
* @throws InvalidArgumentException
4243
*/
43-
public function getInboundShipment(AccessToken $accessToken, string $region, string $shipment_id) : \AmazonPHP\SellingPartner\Model\WarehousingAndDistribution\InboundShipment;
44+
public function getInboundShipment(AccessToken $accessToken, string $region, string $shipment_id, ?string $sku_quantities = null) : \AmazonPHP\SellingPartner\Model\WarehousingAndDistribution\InboundShipment;
4445

4546
/**
4647
* Operation listInboundShipments.
4748
*
48-
* @param null|string $sort_by Field to sort results by. Required if `sortOrder` is provided. (optional)
49-
* @param null|string $sort_order Sort the response in `ASCENDING` or `DESCENDING` order. (optional)
49+
* @param null|string $sort_by Field to sort results by. By default, the response will be sorted by UPDATED_AT. (optional)
50+
* @param null|string $sort_order Sort the response in ASCENDING or DESCENDING order. By default, the response will be sorted in DESCENDING order. (optional)
5051
* @param null|string $shipment_status Filter by inbound shipment status. (optional)
5152
* @param null|\DateTimeInterface $updated_after List the inbound shipments that were updated after a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format. (optional)
5253
* @param null|\DateTimeInterface $updated_before List the inbound shipments that were updated before a certain time (inclusive). The date must be in <a href='https://developer-docs.amazon.com/sp-api/docs/iso-8601'>ISO 8601</a> format. (optional)

0 commit comments

Comments
 (0)