diff --git a/composer.json b/composer.json index c7efeac..dd9d33a 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "magik092/amazon-selling-partner-api-php", "description": "Amazon Selling Partner API PHP Client", - "version": "1.38", + "version": "1.39", "autoload": { "psr-4": { "Webcom\\Amazon\\Rest\\": "src" diff --git a/src/EasyShip20220323/Api/EasyShipApi.php b/src/EasyShip20220323/Api/EasyShipApi.php index 63466aa..36d7f17 100644 --- a/src/EasyShip20220323/Api/EasyShipApi.php +++ b/src/EasyShip20220323/Api/EasyShipApi.php @@ -126,7 +126,7 @@ public function getConfig() */ public function createScheduledPackage($createScheduledPackageRequest) { - list($response) = $this->createScheduledPackageWithHttpInfo($createScheduledPackageRequest); + [$response] = $this->createScheduledPackageWithHttpInfo($createScheduledPackageRequest); return $response; } @@ -381,10 +381,10 @@ public function createScheduledPackageWithHttpInfo($createScheduledPackageReques * * * - * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\CreateScheduledPackageRequest20220323 $createScheduledPackageRequest (required) + * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\CreateScheduledPackageRequest20220323 $createScheduledPackageRequest (required) * - * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function createScheduledPackageAsync($createScheduledPackageRequest) { @@ -401,10 +401,10 @@ function ($response) { * * * - * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\CreateScheduledPackageRequest20220323 $createScheduledPackageRequest (required) + * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\CreateScheduledPackageRequest20220323 $createScheduledPackageRequest (required) * - * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function createScheduledPackageAsyncWithHttpInfo($createScheduledPackageRequest) { @@ -547,7 +547,7 @@ public function createScheduledPackageRequest($createScheduledPackageRequest) */ public function createScheduledPackageBulk($createScheduledPackagesRequest) { - list($response) = $this->createScheduledPackageBulkWithHttpInfo($createScheduledPackagesRequest); + [$response] = $this->createScheduledPackageBulkWithHttpInfo($createScheduledPackagesRequest); return $response; } @@ -802,10 +802,10 @@ public function createScheduledPackageBulkWithHttpInfo($createScheduledPackagesR * * * - * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\CreateScheduledPackagesRequest20220323 $createScheduledPackagesRequest (required) + * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\CreateScheduledPackagesRequest20220323 $createScheduledPackagesRequest (required) * - * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function createScheduledPackageBulkAsync($createScheduledPackagesRequest) { @@ -822,7 +822,7 @@ function ($response) { * * * - * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\CreateScheduledPackagesRequest20220323 $createScheduledPackagesRequest (required) + * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\CreateScheduledPackagesRequest20220323 $createScheduledPackagesRequest (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -969,7 +969,7 @@ public function createScheduledPackageBulkRequest($createScheduledPackagesReques */ public function getScheduledPackage($amazonOrderId, $marketplaceId) { - list($response) = $this->getScheduledPackageWithHttpInfo($amazonOrderId, $marketplaceId); + [$response] = $this->getScheduledPackageWithHttpInfo($amazonOrderId, $marketplaceId); return $response; } @@ -1225,8 +1225,8 @@ public function getScheduledPackageWithHttpInfo($amazonOrderId, $marketplaceId) * * * - * @param string $amazonOrderId An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. (required) - * @param string $marketplaceId An identifier for the marketplace in which the seller is selling. (required) + * @param string $amazonOrderId An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. (required) + * @param string $marketplaceId An identifier for the marketplace in which the seller is selling. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1246,8 +1246,8 @@ function ($response) { * * * - * @param string $amazonOrderId An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. (required) - * @param string $marketplaceId An identifier for the marketplace in which the seller is selling. (required) + * @param string $amazonOrderId An Amazon-defined order identifier. Identifies the order that the seller wants to deliver using Amazon Easy Ship. (required) + * @param string $marketplaceId An identifier for the marketplace in which the seller is selling. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1422,7 +1422,7 @@ public function getScheduledPackageRequest($amazonOrderId, $marketplaceId) */ public function listHandoverSlots($listHandoverSlotsRequest = null) { - list($response) = $this->listHandoverSlotsWithHttpInfo($listHandoverSlotsRequest); + [$response] = $this->listHandoverSlotsWithHttpInfo($listHandoverSlotsRequest); return $response; } @@ -1677,7 +1677,7 @@ public function listHandoverSlotsWithHttpInfo($listHandoverSlotsRequest = null) * * * - * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\ListHandoverSlotsRequest20220323 $listHandoverSlotsRequest (optional) + * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\ListHandoverSlotsRequest20220323 $listHandoverSlotsRequest (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1697,7 +1697,7 @@ function ($response) { * * * - * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\ListHandoverSlotsRequest20220323 $listHandoverSlotsRequest (optional) + * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\ListHandoverSlotsRequest20220323 $listHandoverSlotsRequest (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1837,7 +1837,7 @@ public function listHandoverSlotsRequest($listHandoverSlotsRequest = null) */ public function updateScheduledPackages($updateScheduledPackagesRequest = null) { - list($response) = $this->updateScheduledPackagesWithHttpInfo($updateScheduledPackagesRequest); + [$response] = $this->updateScheduledPackagesWithHttpInfo($updateScheduledPackagesRequest); return $response; } @@ -2092,7 +2092,7 @@ public function updateScheduledPackagesWithHttpInfo($updateScheduledPackagesRequ * * * - * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\UpdateScheduledPackagesRequest20220323 $updateScheduledPackagesRequest (optional) + * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\UpdateScheduledPackagesRequest20220323 $updateScheduledPackagesRequest (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -2112,7 +2112,7 @@ function ($response) { * * * - * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\UpdateScheduledPackagesRequest20220323 $updateScheduledPackagesRequest (optional) + * @param \Webcom\Amazon\Rest\EasyShip20220323\Model\UpdateScheduledPackagesRequest20220323 $updateScheduledPackagesRequest (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface diff --git a/src/OrdersApiV0/Api/OrdersV0Api.php b/src/OrdersApiV0/Api/OrdersV0Api.php index 37d0d16..035b605 100644 --- a/src/OrdersApiV0/Api/OrdersV0Api.php +++ b/src/OrdersApiV0/Api/OrdersV0Api.php @@ -12,10 +12,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -116,17 +116,298 @@ public function getConfig() } /** - * Operation getOrder + * Operation confirmShipment * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentRequestV0 $payload Request body of confirmShipment. (required) * + * @return void + * @throws \InvalidArgumentException * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response + */ + public function confirmShipment($orderId, $payload) + { + $this->confirmShipmentWithHttpInfo($orderId, $payload); + } + + /** + * Operation confirmShipmentWithHttpInfo + * + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentRequestV0 $payload Request body of confirmShipment. (required) + * + * @return array of null, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException + * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response + */ + public function confirmShipmentWithHttpInfo($orderId, $payload) + { + $request = $this->confirmShipmentRequest($orderId, $payload); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + return [null, $statusCode, $response->getHeaders()]; + } catch (ApiException $e) { + switch ($e->getCode()) { + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentErrorResponseV0', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 401: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentErrorResponseV0', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 403: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentErrorResponseV0', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentErrorResponseV0', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 429: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentErrorResponseV0', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentErrorResponseV0', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 503: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentErrorResponseV0', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation confirmShipmentAsync + * + * + * + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentRequestV0 $payload Request body of confirmShipment. (required) + * + * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException + */ + public function confirmShipmentAsync($orderId, $payload) + { + return $this->confirmShipmentAsyncWithHttpInfo($orderId, $payload) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation confirmShipmentAsyncWithHttpInfo + * + * + * + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentRequestV0 $payload Request body of confirmShipment. (required) + * + * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException + */ + public function confirmShipmentAsyncWithHttpInfo($orderId, $payload) + { + $returnType = ''; + $request = $this->confirmShipmentRequest($orderId, $payload); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + return [null, $response->getStatusCode(), $response->getHeaders()]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'confirmShipment' + * + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentRequestV0 $payload Request body of confirmShipment. (required) + * + * @return \GuzzleHttp\Psr7\Request + * @throws \InvalidArgumentException + */ + public function confirmShipmentRequest($orderId, $payload) + { + // verify the required parameter 'orderId' is set + if ($orderId === null || (is_array($orderId) && count($orderId) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $orderId when calling confirmShipment' + ); + } + // verify the required parameter 'payload' is set + if ($payload === null || (is_array($payload) && count($payload) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $payload when calling confirmShipment' + ); + } + + $resourcePath = '/orders/v0/orders/{orderId}/shipmentConfirmation'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // path params + if ($orderId !== null) { + $resourcePath = str_replace( + '{' . 'orderId' . '}', + ObjectSerializer::toPathValue($orderId), + $resourcePath + ); + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($payload)) { + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($payload)); + } else { + $httpBody = $payload; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $formParamValueItems = is_array($formParamValue) ? $formParamValue : [$formParamValue]; + foreach ($formParamValueItems as $formParamValueItem) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValueItem, + ]; + } + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getOrder + * + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrderResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrderResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrderResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrderResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrderResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrderResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrderResponseV0 + * @throws \InvalidArgumentException + * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response */ public function getOrder($orderId) { - list($response) = $this->getOrderWithHttpInfo($orderId); + [$response] = $this->getOrderWithHttpInfo($orderId); return $response; } @@ -339,12 +620,12 @@ public function getOrderWithHttpInfo($orderId) /** * Operation getOrderAsync * - * * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) * - * @throws \InvalidArgumentException + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderAsync($orderId) { @@ -359,12 +640,12 @@ function ($response) { /** * Operation getOrderAsyncWithHttpInfo * - * * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) * - * @throws \InvalidArgumentException + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderAsyncWithHttpInfo($orderId) { @@ -509,7 +790,7 @@ public function getOrderRequest($orderId) */ public function getOrderAddress($orderId) { - list($response) = $this->getOrderAddressWithHttpInfo($orderId); + [$response] = $this->getOrderAddressWithHttpInfo($orderId); return $response; } @@ -722,12 +1003,12 @@ public function getOrderAddressWithHttpInfo($orderId) /** * Operation getOrderAddressAsync * - * * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @throws \InvalidArgumentException + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderAddressAsync($orderId) { @@ -742,12 +1023,12 @@ function ($response) { /** * Operation getOrderAddressAsyncWithHttpInfo * - * * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @throws \InvalidArgumentException + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderAddressAsyncWithHttpInfo($orderId) { @@ -892,7 +1173,7 @@ public function getOrderAddressRequest($orderId) */ public function getOrderBuyerInfo($orderId) { - list($response) = $this->getOrderBuyerInfoWithHttpInfo($orderId); + [$response] = $this->getOrderBuyerInfoWithHttpInfo($orderId); return $response; } @@ -1105,12 +1386,12 @@ public function getOrderBuyerInfoWithHttpInfo($orderId) /** * Operation getOrderBuyerInfoAsync * - * * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @throws \InvalidArgumentException + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderBuyerInfoAsync($orderId) { @@ -1125,12 +1406,12 @@ function ($response) { /** * Operation getOrderBuyerInfoAsyncWithHttpInfo * - * * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @throws \InvalidArgumentException + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderBuyerInfoAsyncWithHttpInfo($orderId) { @@ -1276,7 +1557,7 @@ public function getOrderBuyerInfoRequest($orderId) */ public function getOrderItems($orderId, $nextToken = null) { - list($response) = $this->getOrderItemsWithHttpInfo($orderId, $nextToken); + [$response] = $this->getOrderItemsWithHttpInfo($orderId, $nextToken); return $response; } @@ -1490,13 +1771,13 @@ public function getOrderItemsWithHttpInfo($orderId, $nextToken = null) /** * Operation getOrderItemsAsync * - * * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param string $nextToken A string token returned in the response of your previous request. (optional) * - * @throws \InvalidArgumentException + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $nextToken A string token returned in the response of your previous request. (optional) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderItemsAsync($orderId, $nextToken = null) { @@ -1511,13 +1792,13 @@ function ($response) { /** * Operation getOrderItemsAsyncWithHttpInfo * - * * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param string $nextToken A string token returned in the response of your previous request. (optional) * - * @throws \InvalidArgumentException + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $nextToken A string token returned in the response of your previous request. (optional) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderItemsAsyncWithHttpInfo($orderId, $nextToken = null) { @@ -1671,7 +1952,7 @@ public function getOrderItemsRequest($orderId, $nextToken = null) */ public function getOrderItemsBuyerInfo($orderId, $nextToken = null) { - list($response) = $this->getOrderItemsBuyerInfoWithHttpInfo($orderId, $nextToken); + [$response] = $this->getOrderItemsBuyerInfoWithHttpInfo($orderId, $nextToken); return $response; } @@ -1885,13 +2166,13 @@ public function getOrderItemsBuyerInfoWithHttpInfo($orderId, $nextToken = null) /** * Operation getOrderItemsBuyerInfoAsync * - * * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param string $nextToken A string token returned in the response of your previous request. (optional) * - * @throws \InvalidArgumentException + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $nextToken A string token returned in the response of your previous request. (optional) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderItemsBuyerInfoAsync($orderId, $nextToken = null) { @@ -1906,13 +2187,13 @@ function ($response) { /** * Operation getOrderItemsBuyerInfoAsyncWithHttpInfo * - * * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param string $nextToken A string token returned in the response of your previous request. (optional) * - * @throws \InvalidArgumentException + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $nextToken A string token returned in the response of your previous request. (optional) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderItemsBuyerInfoAsyncWithHttpInfo($orderId, $nextToken = null) { @@ -2065,7 +2346,7 @@ public function getOrderItemsBuyerInfoRequest($orderId, $nextToken = null) */ public function getOrderRegulatedInfo($orderId) { - list($response) = $this->getOrderRegulatedInfoWithHttpInfo($orderId); + [$response] = $this->getOrderRegulatedInfoWithHttpInfo($orderId); return $response; } @@ -2278,12 +2559,12 @@ public function getOrderRegulatedInfoWithHttpInfo($orderId) /** * Operation getOrderRegulatedInfoAsync * - * * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @throws \InvalidArgumentException + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderRegulatedInfoAsync($orderId) { @@ -2298,12 +2579,12 @@ function ($response) { /** * Operation getOrderRegulatedInfoAsyncWithHttpInfo * - * * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @throws \InvalidArgumentException + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function getOrderRegulatedInfoAsyncWithHttpInfo($orderId) { @@ -2440,62 +2721,138 @@ public function getOrderRegulatedInfoRequest($orderId) /** * Operation getOrders * - * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) - * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) - * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string[] $orderStatuses A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.). (optional) - * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) - * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) - * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) - * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) - * @param string[] $easyShipShipmentStatuses A list of EasyShipShipmentStatus values. Used to select Easy Ship orders with statuses that match the specified values. If EasyShipShipmentStatus is specified, only Amazon Easy Ship orders are returned.Possible values: PendingPickUp (Amazon has not yet picked up the package from the seller). LabelCanceled (The seller canceled the pickup). PickedUp (Amazon has picked up the package from the seller). AtOriginFC (The packaged is at the origin fulfillment center). AtDestinationFC (The package is at the destination fulfillment center). OutForDelivery (The package is out for delivery). Damaged (The package was damaged by the carrier). Delivered (The package has been delivered to the buyer). RejectedByBuyer (The package has been rejected by the buyer). Undeliverable (The package cannot be delivered). ReturnedToSeller (The package was not delivered to the buyer and was returned to the seller). ReturningToSeller (The package was not delivered to the buyer and is being returned to the seller). (optional) - * @param string $nextToken A string token returned in the response of your previous request. (optional) - * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) - * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) + * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) + * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) + * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string[] $orderStatuses A list of `OrderStatus` values used to filter the results. **Possible values:** - `PendingAvailability` (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.) - `Pending` (The order has been placed but payment has not been authorized.) - `Unshipped` (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped.) - `PartiallyShipped` (One or more, but not all, items in the order have been shipped.) - `Shipped` (All items in the order have been shipped.) - `InvoiceUnconfirmed` (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.) - `Canceled` (The order has been canceled.) - `Unfulfillable` (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.) (optional) + * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) + * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) + * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) + * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) + * @param string[] $easyShipShipmentStatuses A list of `EasyShipShipmentStatus` values. Used to select Easy Ship orders with statuses that match the specified values. If `EasyShipShipmentStatus` is specified, only Amazon Easy Ship orders are returned. **Possible values:** - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - `PendingDropOff` (The seller will deliver the package to the carrier.) - `LabelCanceled` (The seller canceled the pickup.) - `PickedUp` (Amazon has picked up the package from the seller.) - `DroppedOff` (The package is delivered to the carrier by the seller.) - `AtOriginFC` (The packaged is at the origin fulfillment center.) - `AtDestinationFC` (The package is at the destination fulfillment center.) - `Delivered` (The package has been delivered.) - `RejectedByBuyer` (The package has been rejected by the buyer.) - `Undeliverable` (The package cannot be delivered.) - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - `Lost` (The package is lost.) - `OutForDelivery` (The package is out for delivery.) - `Damaged` (The package was damaged by the carrier.) (optional) + * @param string[] $electronicInvoiceStatuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. **Possible values:** - `NotRequired` (Electronic invoice submission is not required for this order.) - `NotFound` (The electronic invoice was not submitted for this order.) - `Processing` (The electronic invoice is being processed for this order.) - `Errored` (The last submitted electronic invoice was rejected for this order.) - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) + * @param string $nextToken A string token returned in the response of your previous request. (optional) + * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) + * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) + * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0 * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0 */ - public function getOrders($marketplaceIds, $createdAfter = null, $createdBefore = null, $lastUpdatedAfter = null, $lastUpdatedBefore = null, $orderStatuses = null, $fulfillmentChannels = null, $paymentMethods = null, $buyerEmail = null, $sellerOrderId = null, $maxResultsPerPage = null, $easyShipShipmentStatuses = null, $nextToken = null, $amazonOrderIds = null, $actualFulfillmentSupplySourceId = null, $isISPU = null, $storeChainStoreId = null) - { - list($response) = $this->getOrdersWithHttpInfo($marketplaceIds, $createdAfter, $createdBefore, $lastUpdatedAfter, $lastUpdatedBefore, $orderStatuses, $fulfillmentChannels, $paymentMethods, $buyerEmail, $sellerOrderId, $maxResultsPerPage, $easyShipShipmentStatuses, $nextToken, $amazonOrderIds, $actualFulfillmentSupplySourceId, $isISPU, $storeChainStoreId); + public function getOrders( + $marketplaceIds, + $createdAfter = null, + $createdBefore = null, + $lastUpdatedAfter = null, + $lastUpdatedBefore = null, + $orderStatuses = null, + $fulfillmentChannels = null, + $paymentMethods = null, + $buyerEmail = null, + $sellerOrderId = null, + $maxResultsPerPage = null, + $easyShipShipmentStatuses = null, + $electronicInvoiceStatuses = null, + $nextToken = null, + $amazonOrderIds = null, + $actualFulfillmentSupplySourceId = null, + $isISPU = null, + $storeChainStoreId = null + ) { + [$response] = $this->getOrdersWithHttpInfo( + $marketplaceIds, + $createdAfter, + $createdBefore, + $lastUpdatedAfter, + $lastUpdatedBefore, + $orderStatuses, + $fulfillmentChannels, + $paymentMethods, + $buyerEmail, + $sellerOrderId, + $maxResultsPerPage, + $easyShipShipmentStatuses, + $electronicInvoiceStatuses, + $nextToken, + $amazonOrderIds, + $actualFulfillmentSupplySourceId, + $isISPU, + $storeChainStoreId + ); return $response; } /** * Operation getOrdersWithHttpInfo * - * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) - * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) - * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string[] $orderStatuses A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.). (optional) - * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) - * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) - * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) - * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) - * @param string[] $easyShipShipmentStatuses A list of EasyShipShipmentStatus values. Used to select Easy Ship orders with statuses that match the specified values. If EasyShipShipmentStatus is specified, only Amazon Easy Ship orders are returned.Possible values: PendingPickUp (Amazon has not yet picked up the package from the seller). LabelCanceled (The seller canceled the pickup). PickedUp (Amazon has picked up the package from the seller). AtOriginFC (The packaged is at the origin fulfillment center). AtDestinationFC (The package is at the destination fulfillment center). OutForDelivery (The package is out for delivery). Damaged (The package was damaged by the carrier). Delivered (The package has been delivered to the buyer). RejectedByBuyer (The package has been rejected by the buyer). Undeliverable (The package cannot be delivered). ReturnedToSeller (The package was not delivered to the buyer and was returned to the seller). ReturningToSeller (The package was not delivered to the buyer and is being returned to the seller). (optional) - * @param string $nextToken A string token returned in the response of your previous request. (optional) - * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) - * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) + * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) + * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) + * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string[] $orderStatuses A list of `OrderStatus` values used to filter the results. **Possible values:** - `PendingAvailability` (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.) - `Pending` (The order has been placed but payment has not been authorized.) - `Unshipped` (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped.) - `PartiallyShipped` (One or more, but not all, items in the order have been shipped.) - `Shipped` (All items in the order have been shipped.) - `InvoiceUnconfirmed` (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.) - `Canceled` (The order has been canceled.) - `Unfulfillable` (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.) (optional) + * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) + * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) + * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) + * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) + * @param string[] $easyShipShipmentStatuses A list of `EasyShipShipmentStatus` values. Used to select Easy Ship orders with statuses that match the specified values. If `EasyShipShipmentStatus` is specified, only Amazon Easy Ship orders are returned. **Possible values:** - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - `PendingDropOff` (The seller will deliver the package to the carrier.) - `LabelCanceled` (The seller canceled the pickup.) - `PickedUp` (Amazon has picked up the package from the seller.) - `DroppedOff` (The package is delivered to the carrier by the seller.) - `AtOriginFC` (The packaged is at the origin fulfillment center.) - `AtDestinationFC` (The package is at the destination fulfillment center.) - `Delivered` (The package has been delivered.) - `RejectedByBuyer` (The package has been rejected by the buyer.) - `Undeliverable` (The package cannot be delivered.) - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - `Lost` (The package is lost.) - `OutForDelivery` (The package is out for delivery.) - `Damaged` (The package was damaged by the carrier.) (optional) + * @param string[] $electronicInvoiceStatuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. **Possible values:** - `NotRequired` (Electronic invoice submission is not required for this order.) - `NotFound` (The electronic invoice was not submitted for this order.) - `Processing` (The electronic invoice is being processed for this order.) - `Errored` (The last submitted electronic invoice was rejected for this order.) - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) + * @param string $nextToken A string token returned in the response of your previous request. (optional) + * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) + * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) + * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) * + * @return array of \Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0, HTTP status code, HTTP response headers (array of strings) * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0|\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0, HTTP status code, HTTP response headers (array of strings) */ - public function getOrdersWithHttpInfo($marketplaceIds, $createdAfter = null, $createdBefore = null, $lastUpdatedAfter = null, $lastUpdatedBefore = null, $orderStatuses = null, $fulfillmentChannels = null, $paymentMethods = null, $buyerEmail = null, $sellerOrderId = null, $maxResultsPerPage = null, $easyShipShipmentStatuses = null, $nextToken = null, $amazonOrderIds = null, $actualFulfillmentSupplySourceId = null, $isISPU = null, $storeChainStoreId = null) - { - $request = $this->getOrdersRequest($marketplaceIds, $createdAfter, $createdBefore, $lastUpdatedAfter, $lastUpdatedBefore, $orderStatuses, $fulfillmentChannels, $paymentMethods, $buyerEmail, $sellerOrderId, $maxResultsPerPage, $easyShipShipmentStatuses, $nextToken, $amazonOrderIds, $actualFulfillmentSupplySourceId, $isISPU, $storeChainStoreId); + public function getOrdersWithHttpInfo( + $marketplaceIds, + $createdAfter = null, + $createdBefore = null, + $lastUpdatedAfter = null, + $lastUpdatedBefore = null, + $orderStatuses = null, + $fulfillmentChannels = null, + $paymentMethods = null, + $buyerEmail = null, + $sellerOrderId = null, + $maxResultsPerPage = null, + $easyShipShipmentStatuses = null, + $electronicInvoiceStatuses = null, + $nextToken = null, + $amazonOrderIds = null, + $actualFulfillmentSupplySourceId = null, + $isISPU = null, + $storeChainStoreId = null + ) { + $request = $this->getOrdersRequest( + $marketplaceIds, + $createdAfter, + $createdBefore, + $lastUpdatedAfter, + $lastUpdatedBefore, + $orderStatuses, + $fulfillmentChannels, + $paymentMethods, + $buyerEmail, + $sellerOrderId, + $maxResultsPerPage, + $easyShipShipmentStatuses, + $electronicInvoiceStatuses, + $nextToken, + $amazonOrderIds, + $actualFulfillmentSupplySourceId, + $isISPU, + $storeChainStoreId + ); try { $options = $this->createHttpClientOption(); @@ -2693,32 +3050,70 @@ public function getOrdersWithHttpInfo($marketplaceIds, $createdAfter = null, $cr /** * Operation getOrdersAsync * - * - * - * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) - * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) - * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string[] $orderStatuses A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.). (optional) - * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) - * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) - * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) - * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) - * @param string[] $easyShipShipmentStatuses A list of EasyShipShipmentStatus values. Used to select Easy Ship orders with statuses that match the specified values. If EasyShipShipmentStatus is specified, only Amazon Easy Ship orders are returned.Possible values: PendingPickUp (Amazon has not yet picked up the package from the seller). LabelCanceled (The seller canceled the pickup). PickedUp (Amazon has picked up the package from the seller). AtOriginFC (The packaged is at the origin fulfillment center). AtDestinationFC (The package is at the destination fulfillment center). OutForDelivery (The package is out for delivery). Damaged (The package was damaged by the carrier). Delivered (The package has been delivered to the buyer). RejectedByBuyer (The package has been rejected by the buyer). Undeliverable (The package cannot be delivered). ReturnedToSeller (The package was not delivered to the buyer and was returned to the seller). ReturningToSeller (The package was not delivered to the buyer and is being returned to the seller). (optional) - * @param string $nextToken A string token returned in the response of your previous request. (optional) - * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) - * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) + * + * + * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) + * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) + * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string[] $orderStatuses A list of `OrderStatus` values used to filter the results. **Possible values:** - `PendingAvailability` (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.) - `Pending` (The order has been placed but payment has not been authorized.) - `Unshipped` (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped.) - `PartiallyShipped` (One or more, but not all, items in the order have been shipped.) - `Shipped` (All items in the order have been shipped.) - `InvoiceUnconfirmed` (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.) - `Canceled` (The order has been canceled.) - `Unfulfillable` (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.) (optional) + * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) + * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) + * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) + * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) + * @param string[] $easyShipShipmentStatuses A list of `EasyShipShipmentStatus` values. Used to select Easy Ship orders with statuses that match the specified values. If `EasyShipShipmentStatus` is specified, only Amazon Easy Ship orders are returned. **Possible values:** - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - `PendingDropOff` (The seller will deliver the package to the carrier.) - `LabelCanceled` (The seller canceled the pickup.) - `PickedUp` (Amazon has picked up the package from the seller.) - `DroppedOff` (The package is delivered to the carrier by the seller.) - `AtOriginFC` (The packaged is at the origin fulfillment center.) - `AtDestinationFC` (The package is at the destination fulfillment center.) - `Delivered` (The package has been delivered.) - `RejectedByBuyer` (The package has been rejected by the buyer.) - `Undeliverable` (The package cannot be delivered.) - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - `Lost` (The package is lost.) - `OutForDelivery` (The package is out for delivery.) - `Damaged` (The package was damaged by the carrier.) (optional) + * @param string[] $electronicInvoiceStatuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. **Possible values:** - `NotRequired` (Electronic invoice submission is not required for this order.) - `NotFound` (The electronic invoice was not submitted for this order.) - `Processing` (The electronic invoice is being processed for this order.) - `Errored` (The last submitted electronic invoice was rejected for this order.) - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) + * @param string $nextToken A string token returned in the response of your previous request. (optional) + * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) + * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) + * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrdersAsync($marketplaceIds, $createdAfter = null, $createdBefore = null, $lastUpdatedAfter = null, $lastUpdatedBefore = null, $orderStatuses = null, $fulfillmentChannels = null, $paymentMethods = null, $buyerEmail = null, $sellerOrderId = null, $maxResultsPerPage = null, $easyShipShipmentStatuses = null, $nextToken = null, $amazonOrderIds = null, $actualFulfillmentSupplySourceId = null, $isISPU = null, $storeChainStoreId = null) - { - return $this->getOrdersAsyncWithHttpInfo($marketplaceIds, $createdAfter, $createdBefore, $lastUpdatedAfter, $lastUpdatedBefore, $orderStatuses, $fulfillmentChannels, $paymentMethods, $buyerEmail, $sellerOrderId, $maxResultsPerPage, $easyShipShipmentStatuses, $nextToken, $amazonOrderIds, $actualFulfillmentSupplySourceId, $isISPU, $storeChainStoreId) + public function getOrdersAsync( + $marketplaceIds, + $createdAfter = null, + $createdBefore = null, + $lastUpdatedAfter = null, + $lastUpdatedBefore = null, + $orderStatuses = null, + $fulfillmentChannels = null, + $paymentMethods = null, + $buyerEmail = null, + $sellerOrderId = null, + $maxResultsPerPage = null, + $easyShipShipmentStatuses = null, + $electronicInvoiceStatuses = null, + $nextToken = null, + $amazonOrderIds = null, + $actualFulfillmentSupplySourceId = null, + $isISPU = null, + $storeChainStoreId = null + ) { + return $this->getOrdersAsyncWithHttpInfo( + $marketplaceIds, + $createdAfter, + $createdBefore, + $lastUpdatedAfter, + $lastUpdatedBefore, + $orderStatuses, + $fulfillmentChannels, + $paymentMethods, + $buyerEmail, + $sellerOrderId, + $maxResultsPerPage, + $easyShipShipmentStatuses, + $electronicInvoiceStatuses, + $nextToken, + $amazonOrderIds, + $actualFulfillmentSupplySourceId, + $isISPU, + $storeChainStoreId + ) ->then( function ($response) { return $response[0]; @@ -2729,33 +3124,71 @@ function ($response) { /** * Operation getOrdersAsyncWithHttpInfo * - * - * - * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) - * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) - * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string[] $orderStatuses A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.). (optional) - * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) - * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) - * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) - * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) - * @param string[] $easyShipShipmentStatuses A list of EasyShipShipmentStatus values. Used to select Easy Ship orders with statuses that match the specified values. If EasyShipShipmentStatus is specified, only Amazon Easy Ship orders are returned.Possible values: PendingPickUp (Amazon has not yet picked up the package from the seller). LabelCanceled (The seller canceled the pickup). PickedUp (Amazon has picked up the package from the seller). AtOriginFC (The packaged is at the origin fulfillment center). AtDestinationFC (The package is at the destination fulfillment center). OutForDelivery (The package is out for delivery). Damaged (The package was damaged by the carrier). Delivered (The package has been delivered to the buyer). RejectedByBuyer (The package has been rejected by the buyer). Undeliverable (The package cannot be delivered). ReturnedToSeller (The package was not delivered to the buyer and was returned to the seller). ReturningToSeller (The package was not delivered to the buyer and is being returned to the seller). (optional) - * @param string $nextToken A string token returned in the response of your previous request. (optional) - * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) - * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) * - * @throws \InvalidArgumentException + * + * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) + * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) + * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string[] $orderStatuses A list of `OrderStatus` values used to filter the results. **Possible values:** - `PendingAvailability` (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.) - `Pending` (The order has been placed but payment has not been authorized.) - `Unshipped` (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped.) - `PartiallyShipped` (One or more, but not all, items in the order have been shipped.) - `Shipped` (All items in the order have been shipped.) - `InvoiceUnconfirmed` (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.) - `Canceled` (The order has been canceled.) - `Unfulfillable` (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.) (optional) + * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) + * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) + * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) + * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) + * @param string[] $easyShipShipmentStatuses A list of `EasyShipShipmentStatus` values. Used to select Easy Ship orders with statuses that match the specified values. If `EasyShipShipmentStatus` is specified, only Amazon Easy Ship orders are returned. **Possible values:** - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - `PendingDropOff` (The seller will deliver the package to the carrier.) - `LabelCanceled` (The seller canceled the pickup.) - `PickedUp` (Amazon has picked up the package from the seller.) - `DroppedOff` (The package is delivered to the carrier by the seller.) - `AtOriginFC` (The packaged is at the origin fulfillment center.) - `AtDestinationFC` (The package is at the destination fulfillment center.) - `Delivered` (The package has been delivered.) - `RejectedByBuyer` (The package has been rejected by the buyer.) - `Undeliverable` (The package cannot be delivered.) - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - `Lost` (The package is lost.) - `OutForDelivery` (The package is out for delivery.) - `Damaged` (The package was damaged by the carrier.) (optional) + * @param string[] $electronicInvoiceStatuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. **Possible values:** - `NotRequired` (Electronic invoice submission is not required for this order.) - `NotFound` (The electronic invoice was not submitted for this order.) - `Processing` (The electronic invoice is being processed for this order.) - `Errored` (The last submitted electronic invoice was rejected for this order.) - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) + * @param string $nextToken A string token returned in the response of your previous request. (optional) + * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) + * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) + * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ - public function getOrdersAsyncWithHttpInfo($marketplaceIds, $createdAfter = null, $createdBefore = null, $lastUpdatedAfter = null, $lastUpdatedBefore = null, $orderStatuses = null, $fulfillmentChannels = null, $paymentMethods = null, $buyerEmail = null, $sellerOrderId = null, $maxResultsPerPage = null, $easyShipShipmentStatuses = null, $nextToken = null, $amazonOrderIds = null, $actualFulfillmentSupplySourceId = null, $isISPU = null, $storeChainStoreId = null) - { + public function getOrdersAsyncWithHttpInfo( + $marketplaceIds, + $createdAfter = null, + $createdBefore = null, + $lastUpdatedAfter = null, + $lastUpdatedBefore = null, + $orderStatuses = null, + $fulfillmentChannels = null, + $paymentMethods = null, + $buyerEmail = null, + $sellerOrderId = null, + $maxResultsPerPage = null, + $easyShipShipmentStatuses = null, + $electronicInvoiceStatuses = null, + $nextToken = null, + $amazonOrderIds = null, + $actualFulfillmentSupplySourceId = null, + $isISPU = null, + $storeChainStoreId = null + ) { $returnType = '\Webcom\Amazon\Rest\OrdersApiV0\Model\GetOrdersResponseV0'; - $request = $this->getOrdersRequest($marketplaceIds, $createdAfter, $createdBefore, $lastUpdatedAfter, $lastUpdatedBefore, $orderStatuses, $fulfillmentChannels, $paymentMethods, $buyerEmail, $sellerOrderId, $maxResultsPerPage, $easyShipShipmentStatuses, $nextToken, $amazonOrderIds, $actualFulfillmentSupplySourceId, $isISPU, $storeChainStoreId); + $request = $this->getOrdersRequest( + $marketplaceIds, + $createdAfter, + $createdBefore, + $lastUpdatedAfter, + $lastUpdatedBefore, + $orderStatuses, + $fulfillmentChannels, + $paymentMethods, + $buyerEmail, + $sellerOrderId, + $maxResultsPerPage, + $easyShipShipmentStatuses, + $electronicInvoiceStatuses, + $nextToken, + $amazonOrderIds, + $actualFulfillmentSupplySourceId, + $isISPU, + $storeChainStoreId + ); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2794,29 +3227,48 @@ function ($exception) { /** * Create request for operation 'getOrders' * - * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) - * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) - * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) - * @param string[] $orderStatuses A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.). (optional) - * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) - * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) - * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) - * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) - * @param string[] $easyShipShipmentStatuses A list of EasyShipShipmentStatus values. Used to select Easy Ship orders with statuses that match the specified values. If EasyShipShipmentStatus is specified, only Amazon Easy Ship orders are returned.Possible values: PendingPickUp (Amazon has not yet picked up the package from the seller). LabelCanceled (The seller canceled the pickup). PickedUp (Amazon has picked up the package from the seller). AtOriginFC (The packaged is at the origin fulfillment center). AtDestinationFC (The package is at the destination fulfillment center). OutForDelivery (The package is out for delivery). Damaged (The package was damaged by the carrier). Delivered (The package has been delivered to the buyer). RejectedByBuyer (The package has been rejected by the buyer). Undeliverable (The package cannot be delivered). ReturnedToSeller (The package was not delivered to the buyer and was returned to the seller). ReturningToSeller (The package was not delivered to the buyer and is being returned to the seller). (optional) - * @param string $nextToken A string token returned in the response of your previous request. (optional) - * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) - * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) - * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) - * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) + * @param string[] $marketplaceIds A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. See the [Selling Partner API Developer Guide](doc:marketplace-ids) for a complete list of marketplaceId values. (required) + * @param string $createdAfter A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional) + * @param string $createdBefore A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedAfter A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string $lastUpdatedBefore A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional) + * @param string[] $orderStatuses A list of `OrderStatus` values used to filter the results. **Possible values:** - `PendingAvailability` (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.) - `Pending` (The order has been placed but payment has not been authorized.) - `Unshipped` (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped.) - `PartiallyShipped` (One or more, but not all, items in the order have been shipped.) - `Shipped` (All items in the order have been shipped.) - `InvoiceUnconfirmed` (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.) - `Canceled` (The order has been canceled.) - `Unfulfillable` (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.) (optional) + * @param string[] $fulfillmentChannels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: AFN (Fulfillment by Amazon); MFN (Fulfilled by the seller). (optional) + * @param string[] $paymentMethods A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional) + * @param string $buyerEmail The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $sellerOrderId An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional) + * @param int $maxResultsPerPage A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional) + * @param string[] $easyShipShipmentStatuses A list of `EasyShipShipmentStatus` values. Used to select Easy Ship orders with statuses that match the specified values. If `EasyShipShipmentStatus` is specified, only Amazon Easy Ship orders are returned. **Possible values:** - `PendingSchedule` (The package is awaiting the schedule for pick-up.) - `PendingPickUp` (Amazon has not yet picked up the package from the seller.) - `PendingDropOff` (The seller will deliver the package to the carrier.) - `LabelCanceled` (The seller canceled the pickup.) - `PickedUp` (Amazon has picked up the package from the seller.) - `DroppedOff` (The package is delivered to the carrier by the seller.) - `AtOriginFC` (The packaged is at the origin fulfillment center.) - `AtDestinationFC` (The package is at the destination fulfillment center.) - `Delivered` (The package has been delivered.) - `RejectedByBuyer` (The package has been rejected by the buyer.) - `Undeliverable` (The package cannot be delivered.) - `ReturningToSeller` (The package was not delivered and is being returned to the seller.) - `ReturnedToSeller` (The package was not delivered and was returned to the seller.) - `Lost` (The package is lost.) - `OutForDelivery` (The package is out for delivery.) - `Damaged` (The package was damaged by the carrier.) (optional) + * @param string[] $electronicInvoiceStatuses A list of `ElectronicInvoiceStatus` values. Used to select orders with electronic invoice statuses that match the specified values. **Possible values:** - `NotRequired` (Electronic invoice submission is not required for this order.) - `NotFound` (The electronic invoice was not submitted for this order.) - `Processing` (The electronic invoice is being processed for this order.) - `Errored` (The last submitted electronic invoice was rejected for this order.) - `Accepted` (The last submitted electronic invoice was submitted and accepted.) (optional) + * @param string $nextToken A string token returned in the response of your previous request. (optional) + * @param string[] $amazonOrderIds A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $actualFulfillmentSupplySourceId Denotes the recommended sourceId where the order should be fulfilled from. (optional) + * @param bool $isISPU When true, this order is marked to be picked up from a store rather than delivered. (optional) + * @param string $storeChainStoreId The store chain store identifier. Linked to a specific store in a store chain. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function getOrdersRequest($marketplaceIds, $createdAfter = null, $createdBefore = null, $lastUpdatedAfter = null, $lastUpdatedBefore = null, $orderStatuses = null, $fulfillmentChannels = null, $paymentMethods = null, $buyerEmail = null, $sellerOrderId = null, $maxResultsPerPage = null, $easyShipShipmentStatuses = null, $nextToken = null, $amazonOrderIds = null, $actualFulfillmentSupplySourceId = null, $isISPU = null, $storeChainStoreId = null) - { + public function getOrdersRequest( + $marketplaceIds, + $createdAfter = null, + $createdBefore = null, + $lastUpdatedAfter = null, + $lastUpdatedBefore = null, + $orderStatuses = null, + $fulfillmentChannels = null, + $paymentMethods = null, + $buyerEmail = null, + $sellerOrderId = null, + $maxResultsPerPage = null, + $easyShipShipmentStatuses = null, + $electronicInvoiceStatuses = null, + $nextToken = null, + $amazonOrderIds = null, + $actualFulfillmentSupplySourceId = null, + $isISPU = null, + $storeChainStoreId = null + ) { // verify the required parameter 'marketplaceIds' is set if ($marketplaceIds === null || (is_array($marketplaceIds) && count($marketplaceIds) === 0)) { throw new \InvalidArgumentException( @@ -2924,6 +3376,13 @@ public function getOrdersRequest($marketplaceIds, $createdAfter = null, $created $queryParams['EasyShipShipmentStatuses'] = $easyShipShipmentStatuses; } // query params + if (is_array($electronicInvoiceStatuses)) { + $electronicInvoiceStatuses = ObjectSerializer::serializeCollection($electronicInvoiceStatuses, 'form', true); + } + if ($electronicInvoiceStatuses !== null) { + $queryParams['ElectronicInvoiceStatuses'] = $electronicInvoiceStatuses; + } + // query params if (is_array($nextToken)) { $nextToken = ObjectSerializer::serializeCollection($nextToken, '', true); } @@ -3022,8 +3481,8 @@ public function getOrdersRequest($marketplaceIds, $createdAfter = null, $created /** * Operation updateVerificationStatus * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload Request to update the verification status of an order containing regulated products. (required) + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload The request body for the updateVerificationStatus operation. (required) * * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -3037,8 +3496,8 @@ public function updateVerificationStatus($orderId, $payload) /** * Operation updateVerificationStatusWithHttpInfo * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload Request to update the verification status of an order containing regulated products. (required) + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload The request body for the updateVerificationStatus operation. (required) * * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -3152,10 +3611,10 @@ public function updateVerificationStatusWithHttpInfo($orderId, $payload) /** * Operation updateVerificationStatusAsync * - * * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload Request to update the verification status of an order containing regulated products. (required) + * + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload The request body for the updateVerificationStatus operation. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -3173,10 +3632,10 @@ function ($response) { /** * Operation updateVerificationStatusAsyncWithHttpInfo * - * * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload Request to update the verification status of an order containing regulated products. (required) + * + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload The request body for the updateVerificationStatus operation. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -3212,8 +3671,8 @@ function ($exception) { /** * Create request for operation 'updateVerificationStatus' * - * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload Request to update the verification status of an order containing regulated products. (required) + * @param string $orderId An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateVerificationStatusRequestV0 $payload The request body for the updateVerificationStatus operation. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request diff --git a/src/OrdersApiV0/Api/ShipmentApi.php b/src/OrdersApiV0/Api/ShipmentApi.php index 9197414..ebfe7d0 100644 --- a/src/OrdersApiV0/Api/ShipmentApi.php +++ b/src/OrdersApiV0/Api/ShipmentApi.php @@ -12,10 +12,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -118,12 +118,12 @@ public function getConfig() /** * Operation updateShipmentStatus * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload Request to update the shipment status. (required) + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload The request body for the updateShipmentStatus operation. (required) * - * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response - * @throws \InvalidArgumentException * @return void + * @throws \InvalidArgumentException + * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response */ public function updateShipmentStatus($orderId, $payload) { @@ -133,12 +133,12 @@ public function updateShipmentStatus($orderId, $payload) /** * Operation updateShipmentStatusWithHttpInfo * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload Request to update the shipment status. (required) + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload The request body for the updateShipmentStatus operation. (required) * - * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response - * @throws \InvalidArgumentException * @return array of null, HTTP status code, HTTP response headers (array of strings) + * @throws \InvalidArgumentException + * @throws \Webcom\Amazon\Rest\OrdersApiV0\ApiException on non-2xx response */ public function updateShipmentStatusWithHttpInfo($orderId, $payload) { @@ -248,13 +248,13 @@ public function updateShipmentStatusWithHttpInfo($orderId, $payload) /** * Operation updateShipmentStatusAsync * - * * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload Request to update the shipment status. (required) * - * @throws \InvalidArgumentException + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload The request body for the updateShipmentStatus operation. (required) + * * @return \GuzzleHttp\Promise\PromiseInterface + * @throws \InvalidArgumentException */ public function updateShipmentStatusAsync($orderId, $payload) { @@ -269,10 +269,10 @@ function ($response) { /** * Operation updateShipmentStatusAsyncWithHttpInfo * - * * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload Request to update the shipment status. (required) + * + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload The request body for the updateShipmentStatus operation. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -308,8 +308,8 @@ function ($exception) { /** * Create request for operation 'updateShipmentStatus' * - * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) - * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload Request to update the shipment status. (required) + * @param string $orderId An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\UpdateShipmentStatusRequestV0 $payload The request body for the updateShipmentStatus operation. (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request diff --git a/src/OrdersApiV0/ApiException.php b/src/OrdersApiV0/ApiException.php index f83d15c..baf4f70 100644 --- a/src/OrdersApiV0/ApiException.php +++ b/src/OrdersApiV0/ApiException.php @@ -12,10 +12,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -30,4 +30,4 @@ use Webcom\Amazon\Rest\ApiException as ApiExceptionBase; -class ApiException extends ApiExceptionBase {} \ No newline at end of file +class ApiException extends ApiExceptionBase {} diff --git a/src/OrdersApiV0/Model/AddressV0.php b/src/OrdersApiV0/Model/AddressV0.php index c68c897..bbc78bf 100644 --- a/src/OrdersApiV0/Model/AddressV0.php +++ b/src/OrdersApiV0/Model/AddressV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class AddressV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -227,9 +227,7 @@ public function getModelName() const ADDRESS_TYPE_RESIDENTIAL = 'Residential'; const ADDRESS_TYPE_COMMERCIAL = 'Commercial'; - - /** * Gets allowable values of the enum * @@ -242,7 +240,6 @@ public function getAddressTypeAllowableValues() self::ADDRESS_TYPE_COMMERCIAL, ]; } - /** * Associative array for storing property values diff --git a/src/OrdersApiV0/Model/AutomatedShippingSettingsV0.php b/src/OrdersApiV0/Model/AutomatedShippingSettingsV0.php index 9785ca7..126b937 100644 --- a/src/OrdersApiV0/Model/AutomatedShippingSettingsV0.php +++ b/src/OrdersApiV0/Model/AutomatedShippingSettingsV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class AutomatedShippingSettingsV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -175,10 +175,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * @@ -236,7 +232,7 @@ public function getHasAutomatedShippingSettings() /** * Sets hasAutomatedShippingSettings * - * @param bool|null $hasAutomatedShippingSettings If true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order. + * @param bool|null $hasAutomatedShippingSettings When true, this order has automated shipping settings generated by Amazon. This order could be identified as an SSA order. * * @return self */ diff --git a/src/OrdersApiV0/Model/BusinessHoursV0.php b/src/OrdersApiV0/Model/BusinessHoursV0.php new file mode 100644 index 0000000..f1dc7f0 --- /dev/null +++ b/src/OrdersApiV0/Model/BusinessHoursV0.php @@ -0,0 +1,389 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class BusinessHoursV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + const DAY_OF_WEEK_SUN = 'SUN'; + const DAY_OF_WEEK_MON = 'MON'; + const DAY_OF_WEEK_TUE = 'TUE'; + const DAY_OF_WEEK_WED = 'WED'; + const DAY_OF_WEEK_THU = 'THU'; + const DAY_OF_WEEK_FRI = 'FRI'; + const DAY_OF_WEEK_SAT = 'SAT'; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'BusinessHours'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'dayOfWeek' => 'string', + 'openIntervals' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\OpenIntervalV0[]', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'dayOfWeek' => null, + 'openIntervals' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'dayOfWeek' => 'DayOfWeek', + 'openIntervals' => 'OpenIntervals', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'dayOfWeek' => 'setDayOfWeek', + 'openIntervals' => 'setOpenIntervals', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'dayOfWeek' => 'getDayOfWeek', + 'openIntervals' => 'getOpenIntervals', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['dayOfWeek'] = $data['dayOfWeek'] ?? null; + $this->container['openIntervals'] = $data['openIntervals'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getDayOfWeekAllowableValues(); + if (!is_null($this->container['dayOfWeek']) && !in_array($this->container['dayOfWeek'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'dayOfWeek', must be one of '%s'", + $this->container['dayOfWeek'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getDayOfWeekAllowableValues() + { + return [ + self::DAY_OF_WEEK_SUN, + self::DAY_OF_WEEK_MON, + self::DAY_OF_WEEK_TUE, + self::DAY_OF_WEEK_WED, + self::DAY_OF_WEEK_THU, + self::DAY_OF_WEEK_FRI, + self::DAY_OF_WEEK_SAT, + ]; + } + + /** + * Gets dayOfWeek + * + * @return string|null + */ + public function getDayOfWeek() + { + return $this->container['dayOfWeek']; + } + + /** + * Sets dayOfWeek + * + * @param string|null $dayOfWeek Day of the week. + * + * @return self + */ + public function setDayOfWeek($dayOfWeek) + { + $allowedValues = $this->getDayOfWeekAllowableValues(); + if (!is_null($dayOfWeek) && !in_array($dayOfWeek, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'dayOfWeek', must be one of '%s'", + $dayOfWeek, + implode("', '", $allowedValues) + ) + ); + } + $this->container['dayOfWeek'] = $dayOfWeek; + + return $this; + } + + /** + * Gets openIntervals + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\OpenIntervalV0[]|null + */ + public function getOpenIntervals() + { + return $this->container['openIntervals']; + } + + /** + * Sets openIntervals + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\OpenIntervalV0[]|null $openIntervals Time window during the day when the business is open. + * + * @return self + */ + public function setOpenIntervals($openIntervals) + { + $this->container['openIntervals'] = $openIntervals; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/BuyerCustomizedInfoDetailV0.php b/src/OrdersApiV0/Model/BuyerCustomizedInfoDetailV0.php index 675b13c..4c76d3e 100644 --- a/src/OrdersApiV0/Model/BuyerCustomizedInfoDetailV0.php +++ b/src/OrdersApiV0/Model/BuyerCustomizedInfoDetailV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class BuyerCustomizedInfoDetailV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -165,10 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/BuyerInfoV0.php b/src/OrdersApiV0/Model/BuyerInfoV0.php index b819ea0..9691c47 100644 --- a/src/OrdersApiV0/Model/BuyerInfoV0.php +++ b/src/OrdersApiV0/Model/BuyerInfoV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -37,13 +37,13 @@ * BuyerInfoV0 Class Doc Comment * * @category Class - * @description Buyer information + * @description Buyer information. * @package Webcom\Amazon\Rest\OrdersApiV0 * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class BuyerInfoV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -185,10 +185,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * @@ -272,7 +268,7 @@ public function getBuyerName() /** * Sets buyerName * - * @param string|null $buyerName The name of the buyer. + * @param string|null $buyerName The buyer name or the recipient name. * * @return self */ diff --git a/src/OrdersApiV0/Model/BuyerRequestedCancelV0.php b/src/OrdersApiV0/Model/BuyerRequestedCancelV0.php index 5c3b625..43e1b6c 100644 --- a/src/OrdersApiV0/Model/BuyerRequestedCancelV0.php +++ b/src/OrdersApiV0/Model/BuyerRequestedCancelV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class BuyerRequestedCancelV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * @@ -254,7 +250,7 @@ public function getBuyerCancelReason() /** * Sets buyerCancelReason * - * @param string|null $buyerCancelReason Reason for buyer requesting cancel + * @param string|null $buyerCancelReason The reason that the buyer requested cancellation. * * @return self */ diff --git a/src/OrdersApiV0/Model/BuyerTaxInfoV0.php b/src/OrdersApiV0/Model/BuyerTaxInfoV0.php index 829b551..697d2ed 100644 --- a/src/OrdersApiV0/Model/BuyerTaxInfoV0.php +++ b/src/OrdersApiV0/Model/BuyerTaxInfoV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class BuyerTaxInfoV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -175,10 +175,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/BuyerTaxInformationV0.php b/src/OrdersApiV0/Model/BuyerTaxInformationV0.php index 913527e..eb742a7 100644 --- a/src/OrdersApiV0/Model/BuyerTaxInformationV0.php +++ b/src/OrdersApiV0/Model/BuyerTaxInformationV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class BuyerTaxInformationV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -180,10 +180,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/ConfirmShipmentErrorResponseV0.php b/src/OrdersApiV0/Model/ConfirmShipmentErrorResponseV0.php new file mode 100644 index 0000000..4f2fcbb --- /dev/null +++ b/src/OrdersApiV0/Model/ConfirmShipmentErrorResponseV0.php @@ -0,0 +1,315 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class ConfirmShipmentErrorResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ConfirmShipmentErrorResponse'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'errors' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\ErrorV0[]', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'errors' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'errors' => 'errors', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'errors' => 'setErrors', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'errors' => 'getErrors', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['errors'] = $data['errors'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Gets errors + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\ErrorV0[]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\ErrorV0[]|null $errors A list of error responses returned when a request is unsuccessful. + * + * @return self + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/ConfirmShipmentOrderItemV0.php b/src/OrdersApiV0/Model/ConfirmShipmentOrderItemV0.php new file mode 100644 index 0000000..2a171cf --- /dev/null +++ b/src/OrdersApiV0/Model/ConfirmShipmentOrderItemV0.php @@ -0,0 +1,381 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class ConfirmShipmentOrderItemV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ConfirmShipmentOrderItem'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'orderItemId' => 'string', + 'quantity' => 'int', + 'transparencyCodes' => 'string[]', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'orderItemId' => null, + 'quantity' => null, + 'transparencyCodes' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'orderItemId' => 'orderItemId', + 'quantity' => 'quantity', + 'transparencyCodes' => 'transparencyCodes', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'orderItemId' => 'setOrderItemId', + 'quantity' => 'setQuantity', + 'transparencyCodes' => 'setTransparencyCodes', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'orderItemId' => 'getOrderItemId', + 'quantity' => 'getQuantity', + 'transparencyCodes' => 'getTransparencyCodes', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['orderItemId'] = $data['orderItemId'] ?? null; + $this->container['quantity'] = $data['quantity'] ?? null; + $this->container['transparencyCodes'] = $data['transparencyCodes'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['orderItemId'] === null) { + $invalidProperties[] = "'orderItemId' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + return $invalidProperties; + } + + /** + * Gets orderItemId + * + * @return string + */ + public function getOrderItemId() + { + return $this->container['orderItemId']; + } + + /** + * Sets orderItemId + * + * @param string $orderItemId The unique identifier of the order item. + * + * @return self + */ + public function setOrderItemId($orderItemId) + { + $this->container['orderItemId'] = $orderItemId; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity The quantity of the item. + * + * @return self + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets transparencyCodes + * + * @return string[]|null + */ + public function getTransparencyCodes() + { + return $this->container['transparencyCodes']; + } + + /** + * Sets transparencyCodes + * + * @param string[]|null $transparencyCodes A list of order items. + * + * @return self + */ + public function setTransparencyCodes($transparencyCodes) + { + $this->container['transparencyCodes'] = $transparencyCodes; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/ConfirmShipmentRequestV0.php b/src/OrdersApiV0/Model/ConfirmShipmentRequestV0.php new file mode 100644 index 0000000..8425589 --- /dev/null +++ b/src/OrdersApiV0/Model/ConfirmShipmentRequestV0.php @@ -0,0 +1,413 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class ConfirmShipmentRequestV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + const COD_COLLECTION_METHOD_DIRECT_PAYMENT = 'DirectPayment'; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ConfirmShipmentRequest'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'packageDetail' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\PackageDetailV0', + 'codCollectionMethod' => 'string', + 'marketplaceId' => 'string', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'packageDetail' => null, + 'codCollectionMethod' => null, + 'marketplaceId' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'packageDetail' => 'packageDetail', + 'codCollectionMethod' => 'codCollectionMethod', + 'marketplaceId' => 'marketplaceId', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'packageDetail' => 'setPackageDetail', + 'codCollectionMethod' => 'setCodCollectionMethod', + 'marketplaceId' => 'setMarketplaceId', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'packageDetail' => 'getPackageDetail', + 'codCollectionMethod' => 'getCodCollectionMethod', + 'marketplaceId' => 'getMarketplaceId', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['packageDetail'] = $data['packageDetail'] ?? null; + $this->container['codCollectionMethod'] = $data['codCollectionMethod'] ?? null; + $this->container['marketplaceId'] = $data['marketplaceId'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['packageDetail'] === null) { + $invalidProperties[] = "'packageDetail' can't be null"; + } + $allowedValues = $this->getCodCollectionMethodAllowableValues(); + if (!is_null($this->container['codCollectionMethod']) && !in_array($this->container['codCollectionMethod'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'codCollectionMethod', must be one of '%s'", + $this->container['codCollectionMethod'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['marketplaceId'] === null) { + $invalidProperties[] = "'marketplaceId' can't be null"; + } + return $invalidProperties; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getCodCollectionMethodAllowableValues() + { + return [ + self::COD_COLLECTION_METHOD_DIRECT_PAYMENT, + ]; + } + + /** + * Gets packageDetail + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\PackageDetailV0 + */ + public function getPackageDetail() + { + return $this->container['packageDetail']; + } + + /** + * Sets packageDetail + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\PackageDetailV0 $packageDetail packageDetail + * + * @return self + */ + public function setPackageDetail($packageDetail) + { + $this->container['packageDetail'] = $packageDetail; + + return $this; + } + + /** + * Gets codCollectionMethod + * + * @return string|null + */ + public function getCodCollectionMethod() + { + return $this->container['codCollectionMethod']; + } + + /** + * Sets codCollectionMethod + * + * @param string|null $codCollectionMethod The cod collection method, support in JP only. + * + * @return self + */ + public function setCodCollectionMethod($codCollectionMethod) + { + $allowedValues = $this->getCodCollectionMethodAllowableValues(); + if (!is_null($codCollectionMethod) && !in_array($codCollectionMethod, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'codCollectionMethod', must be one of '%s'", + $codCollectionMethod, + implode("', '", $allowedValues) + ) + ); + } + $this->container['codCollectionMethod'] = $codCollectionMethod; + + return $this; + } + + /** + * Gets marketplaceId + * + * @return string + */ + public function getMarketplaceId() + { + return $this->container['marketplaceId']; + } + + /** + * Sets marketplaceId + * + * @param string $marketplaceId The unobfuscated marketplace identifier. + * + * @return self + */ + public function setMarketplaceId($marketplaceId) + { + $this->container['marketplaceId'] = $marketplaceId; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/DeliveryPreferencesV0.php b/src/OrdersApiV0/Model/DeliveryPreferencesV0.php new file mode 100644 index 0000000..7706582 --- /dev/null +++ b/src/OrdersApiV0/Model/DeliveryPreferencesV0.php @@ -0,0 +1,405 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class DeliveryPreferencesV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'DeliveryPreferences'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'dropOffLocation' => 'string', + 'preferredDeliveryTime' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\PreferredDeliveryTimeV0', + 'otherAttributes' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\OtherDeliveryAttributesV0[]', + 'addressInstructions' => 'string', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'dropOffLocation' => null, + 'preferredDeliveryTime' => null, + 'otherAttributes' => null, + 'addressInstructions' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'dropOffLocation' => 'DropOffLocation', + 'preferredDeliveryTime' => 'PreferredDeliveryTime', + 'otherAttributes' => 'OtherAttributes', + 'addressInstructions' => 'AddressInstructions', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'dropOffLocation' => 'setDropOffLocation', + 'preferredDeliveryTime' => 'setPreferredDeliveryTime', + 'otherAttributes' => 'setOtherAttributes', + 'addressInstructions' => 'setAddressInstructions', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'dropOffLocation' => 'getDropOffLocation', + 'preferredDeliveryTime' => 'getPreferredDeliveryTime', + 'otherAttributes' => 'getOtherAttributes', + 'addressInstructions' => 'getAddressInstructions', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['dropOffLocation'] = $data['dropOffLocation'] ?? null; + $this->container['preferredDeliveryTime'] = $data['preferredDeliveryTime'] ?? null; + $this->container['otherAttributes'] = $data['otherAttributes'] ?? null; + $this->container['addressInstructions'] = $data['addressInstructions'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Gets dropOffLocation + * + * @return string|null + */ + public function getDropOffLocation() + { + return $this->container['dropOffLocation']; + } + + /** + * Sets dropOffLocation + * + * @param string|null $dropOffLocation Drop-off location selected by the customer. + * + * @return self + */ + public function setDropOffLocation($dropOffLocation) + { + $this->container['dropOffLocation'] = $dropOffLocation; + + return $this; + } + + /** + * Gets preferredDeliveryTime + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\PreferredDeliveryTimeV0|null + */ + public function getPreferredDeliveryTime() + { + return $this->container['preferredDeliveryTime']; + } + + /** + * Sets preferredDeliveryTime + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\PreferredDeliveryTimeV0|null $preferredDeliveryTime preferredDeliveryTime + * + * @return self + */ + public function setPreferredDeliveryTime($preferredDeliveryTime) + { + $this->container['preferredDeliveryTime'] = $preferredDeliveryTime; + + return $this; + } + + /** + * Gets otherAttributes + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\OtherDeliveryAttributesV0[]|null + */ + public function getOtherAttributes() + { + return $this->container['otherAttributes']; + } + + /** + * Sets otherAttributes + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\OtherDeliveryAttributesV0[]|null $otherAttributes Enumerated list of miscellaneous delivery attributes associated with the shipping address. + * + * @return self + */ + public function setOtherAttributes($otherAttributes) + { + $this->container['otherAttributes'] = $otherAttributes; + + return $this; + } + + /** + * Gets addressInstructions + * + * @return string|null + */ + public function getAddressInstructions() + { + return $this->container['addressInstructions']; + } + + /** + * Sets addressInstructions + * + * @param string|null $addressInstructions Building instructions, nearby landmark or navigation instructions. + * + * @return self + */ + public function setAddressInstructions($addressInstructions) + { + $this->container['addressInstructions'] = $addressInstructions; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/EasyShipShipmentStatusV0.php b/src/OrdersApiV0/Model/EasyShipShipmentStatusV0.php new file mode 100644 index 0000000..0458ebe --- /dev/null +++ b/src/OrdersApiV0/Model/EasyShipShipmentStatusV0.php @@ -0,0 +1,92 @@ + * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ErrorV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -175,10 +175,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * @@ -266,7 +262,7 @@ public function getMessage() /** * Sets message * - * @param string $message A message that describes the error condition in a human-readable form. + * @param string $message A message that describes the error condition. * * @return self */ diff --git a/src/OrdersApiV0/Model/ExceptionDatesV0.php b/src/OrdersApiV0/Model/ExceptionDatesV0.php new file mode 100644 index 0000000..85ca667 --- /dev/null +++ b/src/OrdersApiV0/Model/ExceptionDatesV0.php @@ -0,0 +1,375 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class ExceptionDatesV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ExceptionDates'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'exceptionDate' => 'string', + 'isOpen' => 'bool', + 'openIntervals' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\OpenIntervalV0[]', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'exceptionDate' => null, + 'isOpen' => null, + 'openIntervals' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'exceptionDate' => 'ExceptionDate', + 'isOpen' => 'IsOpen', + 'openIntervals' => 'OpenIntervals', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'exceptionDate' => 'setExceptionDate', + 'isOpen' => 'setIsOpen', + 'openIntervals' => 'setOpenIntervals', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'exceptionDate' => 'getExceptionDate', + 'isOpen' => 'getIsOpen', + 'openIntervals' => 'getOpenIntervals', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['exceptionDate'] = $data['exceptionDate'] ?? null; + $this->container['isOpen'] = $data['isOpen'] ?? null; + $this->container['openIntervals'] = $data['openIntervals'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Gets exceptionDate + * + * @return string|null + */ + public function getExceptionDate() + { + return $this->container['exceptionDate']; + } + + /** + * Sets exceptionDate + * + * @param string|null $exceptionDate Date when the business is closed, in ISO-8601 date format. + * + * @return self + */ + public function setExceptionDate($exceptionDate) + { + $this->container['exceptionDate'] = $exceptionDate; + + return $this; + } + + /** + * Gets isOpen + * + * @return bool|null + */ + public function getIsOpen() + { + return $this->container['isOpen']; + } + + /** + * Sets isOpen + * + * @param bool|null $isOpen Boolean indicating if the business is closed or open on that date. + * + * @return self + */ + public function setIsOpen($isOpen) + { + $this->container['isOpen'] = $isOpen; + + return $this; + } + + /** + * Gets openIntervals + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\OpenIntervalV0[]|null + */ + public function getOpenIntervals() + { + return $this->container['openIntervals']; + } + + /** + * Sets openIntervals + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\OpenIntervalV0[]|null $openIntervals Time window during the day when the business is open. + * + * @return self + */ + public function setOpenIntervals($openIntervals) + { + $this->container['openIntervals'] = $openIntervals; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/FulfillmentInstructionV0.php b/src/OrdersApiV0/Model/FulfillmentInstructionV0.php index 0e107fd..7b5833a 100644 --- a/src/OrdersApiV0/Model/FulfillmentInstructionV0.php +++ b/src/OrdersApiV0/Model/FulfillmentInstructionV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class FulfillmentInstructionV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -165,10 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/GetOrderAddressResponseV0.php b/src/OrdersApiV0/Model/GetOrderAddressResponseV0.php index bfb6409..16aa439 100644 --- a/src/OrdersApiV0/Model/GetOrderAddressResponseV0.php +++ b/src/OrdersApiV0/Model/GetOrderAddressResponseV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class GetOrderAddressResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/GetOrderBuyerInfoResponseV0.php b/src/OrdersApiV0/Model/GetOrderBuyerInfoResponseV0.php index 551c390..37925b1 100644 --- a/src/OrdersApiV0/Model/GetOrderBuyerInfoResponseV0.php +++ b/src/OrdersApiV0/Model/GetOrderBuyerInfoResponseV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class GetOrderBuyerInfoResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/GetOrderItemsBuyerInfoResponseV0.php b/src/OrdersApiV0/Model/GetOrderItemsBuyerInfoResponseV0.php index 6ab6188..024bfc6 100644 --- a/src/OrdersApiV0/Model/GetOrderItemsBuyerInfoResponseV0.php +++ b/src/OrdersApiV0/Model/GetOrderItemsBuyerInfoResponseV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class GetOrderItemsBuyerInfoResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/GetOrderItemsResponseV0.php b/src/OrdersApiV0/Model/GetOrderItemsResponseV0.php index f5dc288..a88055d 100644 --- a/src/OrdersApiV0/Model/GetOrderItemsResponseV0.php +++ b/src/OrdersApiV0/Model/GetOrderItemsResponseV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class GetOrderItemsResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/GetOrderRegulatedInfoResponseV0.php b/src/OrdersApiV0/Model/GetOrderRegulatedInfoResponseV0.php index 79775df..a483e63 100644 --- a/src/OrdersApiV0/Model/GetOrderRegulatedInfoResponseV0.php +++ b/src/OrdersApiV0/Model/GetOrderRegulatedInfoResponseV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class GetOrderRegulatedInfoResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/GetOrderResponseV0.php b/src/OrdersApiV0/Model/GetOrderResponseV0.php index d4ccf6f..f007e4b 100644 --- a/src/OrdersApiV0/Model/GetOrderResponseV0.php +++ b/src/OrdersApiV0/Model/GetOrderResponseV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class GetOrderResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/GetOrdersResponseV0.php b/src/OrdersApiV0/Model/GetOrdersResponseV0.php index 96ea612..ce6e80d 100644 --- a/src/OrdersApiV0/Model/GetOrdersResponseV0.php +++ b/src/OrdersApiV0/Model/GetOrdersResponseV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class GetOrdersResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/ItemBuyerInfoV0.php b/src/OrdersApiV0/Model/ItemBuyerInfoV0.php index 1df9cb6..1c6c96f 100644 --- a/src/OrdersApiV0/Model/ItemBuyerInfoV0.php +++ b/src/OrdersApiV0/Model/ItemBuyerInfoV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ItemBuyerInfoV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -185,10 +185,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/MarketplaceTaxInfoV0.php b/src/OrdersApiV0/Model/MarketplaceTaxInfoV0.php index 98e65e0..9a41db9 100644 --- a/src/OrdersApiV0/Model/MarketplaceTaxInfoV0.php +++ b/src/OrdersApiV0/Model/MarketplaceTaxInfoV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class MarketplaceTaxInfoV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -165,10 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/MoneyV0.php b/src/OrdersApiV0/Model/MoneyV0.php index ac57b06..eb18ab6 100644 --- a/src/OrdersApiV0/Model/MoneyV0.php +++ b/src/OrdersApiV0/Model/MoneyV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class MoneyV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/OpenIntervalV0.php b/src/OrdersApiV0/Model/OpenIntervalV0.php new file mode 100644 index 0000000..5b59232 --- /dev/null +++ b/src/OrdersApiV0/Model/OpenIntervalV0.php @@ -0,0 +1,345 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class OpenIntervalV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'OpenInterval'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'startTime' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\OpenTimeIntervalV0', + 'endTime' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\OpenTimeIntervalV0', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'startTime' => null, + 'endTime' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'startTime' => 'StartTime', + 'endTime' => 'EndTime', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'startTime' => 'setStartTime', + 'endTime' => 'setEndTime', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'startTime' => 'getStartTime', + 'endTime' => 'getEndTime', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['startTime'] = $data['startTime'] ?? null; + $this->container['endTime'] = $data['endTime'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Gets startTime + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\OpenTimeIntervalV0|null + */ + public function getStartTime() + { + return $this->container['startTime']; + } + + /** + * Sets startTime + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\OpenTimeIntervalV0|null $startTime startTime + * + * @return self + */ + public function setStartTime($startTime) + { + $this->container['startTime'] = $startTime; + + return $this; + } + + /** + * Gets endTime + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\OpenTimeIntervalV0|null + */ + public function getEndTime() + { + return $this->container['endTime']; + } + + /** + * Sets endTime + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\OpenTimeIntervalV0|null $endTime endTime + * + * @return self + */ + public function setEndTime($endTime) + { + $this->container['endTime'] = $endTime; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/OpenTimeIntervalV0.php b/src/OrdersApiV0/Model/OpenTimeIntervalV0.php new file mode 100644 index 0000000..1d7bdcc --- /dev/null +++ b/src/OrdersApiV0/Model/OpenTimeIntervalV0.php @@ -0,0 +1,345 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class OpenTimeIntervalV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'OpenTimeInterval'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'hour' => 'int', + 'minute' => 'int', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'hour' => null, + 'minute' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'hour' => 'Hour', + 'minute' => 'Minute', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'hour' => 'setHour', + 'minute' => 'setMinute', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'hour' => 'getHour', + 'minute' => 'getMinute', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['hour'] = $data['hour'] ?? null; + $this->container['minute'] = $data['minute'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Gets hour + * + * @return int|null + */ + public function getHour() + { + return $this->container['hour']; + } + + /** + * Sets hour + * + * @param int|null $hour The hour when the business opens or closes. + * + * @return self + */ + public function setHour($hour) + { + $this->container['hour'] = $hour; + + return $this; + } + + /** + * Gets minute + * + * @return int|null + */ + public function getMinute() + { + return $this->container['minute']; + } + + /** + * Sets minute + * + * @param int|null $minute The minute when the business opens or closes. + * + * @return self + */ + public function setMinute($minute) + { + $this->container['minute'] = $minute; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/OrderAddressV0.php b/src/OrdersApiV0/Model/OrderAddressV0.php index 87f3d80..96c8df7 100644 --- a/src/OrdersApiV0/Model/OrderAddressV0.php +++ b/src/OrdersApiV0/Model/OrderAddressV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OrderAddressV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -62,8 +62,10 @@ class OrderAddressV0 implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'amazonOrderId' => 'string', - 'shippingAddress' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\AddressV0' + 'amazonOrderId' => 'string', + 'buyerCompanyName' => 'string', + 'shippingAddress' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\AddressV0', + 'deliveryPreferences' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\DeliveryPreferencesV0', ]; /** @@ -74,8 +76,10 @@ class OrderAddressV0 implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'amazonOrderId' => null, - 'shippingAddress' => null + 'amazonOrderId' => null, + 'buyerCompanyName' => null, + 'shippingAddress' => null, + 'deliveryPreferences' => null, ]; /** @@ -105,8 +109,10 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'amazonOrderId' => 'AmazonOrderId', - 'shippingAddress' => 'ShippingAddress' + 'amazonOrderId' => 'AmazonOrderId', + 'buyerCompanyName' => 'BuyerCompanyName', + 'shippingAddress' => 'ShippingAddress', + 'deliveryPreferences' => 'DeliveryPreferences', ]; /** @@ -115,8 +121,10 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'amazonOrderId' => 'setAmazonOrderId', - 'shippingAddress' => 'setShippingAddress' + 'amazonOrderId' => 'setAmazonOrderId', + 'buyerCompanyName' => 'setBuyerCompanyName', + 'shippingAddress' => 'setShippingAddress', + 'deliveryPreferences' => 'setDeliveryPreferences', ]; /** @@ -125,8 +133,10 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'amazonOrderId' => 'getAmazonOrderId', - 'shippingAddress' => 'getShippingAddress' + 'amazonOrderId' => 'getAmazonOrderId', + 'buyerCompanyName' => 'getBuyerCompanyName', + 'shippingAddress' => 'getShippingAddress', + 'deliveryPreferences' => 'getDeliveryPreferences', ]; /** @@ -170,9 +180,9 @@ public function getModelName() return self::$openAPIModelName; } - - + + /** * Associative array for storing property values @@ -190,7 +200,9 @@ public function getModelName() public function __construct(array $data = null) { $this->container['amazonOrderId'] = $data['amazonOrderId'] ?? null; + $this->container['buyerCompanyName'] = $data['buyerCompanyName'] ?? null; $this->container['shippingAddress'] = $data['shippingAddress'] ?? null; + $this->container['deliveryPreferences'] = $data['deliveryPreferences'] ?? null; } /** @@ -244,6 +256,30 @@ public function setAmazonOrderId($amazonOrderId) return $this; } + /** + * Gets buyerCompanyName + * + * @return string|null + */ + public function getBuyerCompanyName() + { + return $this->container['buyerCompanyName']; + } + + /** + * Sets buyerCompanyName + * + * @param string|null $buyerCompanyName Company name of the destination address. + * + * @return self + */ + public function setBuyerCompanyName($buyerCompanyName) + { + $this->container['buyerCompanyName'] = $buyerCompanyName; + + return $this; + } + /** * Gets shippingAddress * @@ -267,6 +303,31 @@ public function setShippingAddress($shippingAddress) return $this; } + + /** + * Gets deliveryPreferences + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\DeliveryPreferencesV0|null + */ + public function getDeliveryPreferences() + { + return $this->container['deliveryPreferences']; + } + + /** + * Sets deliveryPreferences + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\DeliveryPreferencesV0|null $deliveryPreferences deliveryPreferences + * + * @return self + */ + public function setDeliveryPreferences($deliveryPreferences) + { + $this->container['deliveryPreferences'] = $deliveryPreferences; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/src/OrdersApiV0/Model/OrderBuyerInfoV0.php b/src/OrdersApiV0/Model/OrderBuyerInfoV0.php index 8f76302..f8a77e8 100644 --- a/src/OrdersApiV0/Model/OrderBuyerInfoV0.php +++ b/src/OrdersApiV0/Model/OrderBuyerInfoV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OrderBuyerInfoV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -190,10 +190,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * @@ -305,7 +301,7 @@ public function getBuyerName() /** * Sets buyerName * - * @param string|null $buyerName The name of the buyer. + * @param string|null $buyerName The buyer name or the recipient name. * * @return self */ diff --git a/src/OrdersApiV0/Model/OrderItemBuyerInfoV0.php b/src/OrdersApiV0/Model/OrderItemBuyerInfoV0.php index 3a0971b..8ee8600 100644 --- a/src/OrdersApiV0/Model/OrderItemBuyerInfoV0.php +++ b/src/OrdersApiV0/Model/OrderItemBuyerInfoV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OrderItemBuyerInfoV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -190,10 +190,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/OrderItemV0.php b/src/OrdersApiV0/Model/OrderItemV0.php index 5ffa9a4..c896015 100644 --- a/src/OrdersApiV0/Model/OrderItemV0.php +++ b/src/OrdersApiV0/Model/OrderItemV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OrderItemV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -62,40 +62,41 @@ class OrderItemV0 implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'aSIN' => 'string', - 'sellerSKU' => 'string', - 'orderItemId' => 'string', - 'title' => 'string', - 'quantityOrdered' => 'int', - 'quantityShipped' => 'int', - 'productInfo' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\ProductInfoDetailV0', - 'pointsGranted' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\PointsGrantedDetailV0', - 'itemPrice' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'shippingPrice' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'itemTax' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'shippingTax' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'shippingDiscount' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'shippingDiscountTax' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'promotionDiscount' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'promotionDiscountTax' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'promotionIds' => 'string[]', - 'cODFee' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'cODFeeDiscount' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'isGift' => 'bool', - 'conditionNote' => 'string', - 'conditionId' => 'string', - 'conditionSubtypeId' => 'string', + 'aSIN' => 'string', + 'sellerSKU' => 'string', + 'orderItemId' => 'string', + 'title' => 'string', + 'quantityOrdered' => 'int', + 'quantityShipped' => 'int', + 'productInfo' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\ProductInfoDetailV0', + 'pointsGranted' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\PointsGrantedDetailV0', + 'itemPrice' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'shippingPrice' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'itemTax' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'shippingTax' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'shippingDiscount' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'shippingDiscountTax' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'promotionDiscount' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'promotionDiscountTax' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'promotionIds' => 'string[]', + 'cODFee' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'cODFeeDiscount' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'isGift' => 'bool', + 'conditionNote' => 'string', + 'conditionId' => 'string', + 'conditionSubtypeId' => 'string', 'scheduledDeliveryStartDate' => 'string', - 'scheduledDeliveryEndDate' => 'string', - 'priceDesignation' => 'string', - 'taxCollection' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\TaxCollectionV0', - 'serialNumberRequired' => 'bool', - 'isTransparency' => 'bool', - 'iossNumber' => 'string', - 'storeChainStoreId' => 'string', - 'deemedResellerCategory' => 'string', - 'buyerInfo' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\ItemBuyerInfoV0', - 'buyerRequestedCancel' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\BuyerRequestedCancelV0' + 'scheduledDeliveryEndDate' => 'string', + 'priceDesignation' => 'string', + 'taxCollection' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\TaxCollectionV0', + 'serialNumberRequired' => 'bool', + 'isTransparency' => 'bool', + 'iossNumber' => 'string', + 'storeChainStoreId' => 'string', + 'deemedResellerCategory' => 'string', + 'buyerInfo' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\ItemBuyerInfoV0', + 'buyerRequestedCancel' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\BuyerRequestedCancelV0', + 'serialNumbers' => 'string[]', ]; /** @@ -106,40 +107,41 @@ class OrderItemV0 implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'aSIN' => null, - 'sellerSKU' => null, - 'orderItemId' => null, - 'title' => null, - 'quantityOrdered' => null, - 'quantityShipped' => null, - 'productInfo' => null, - 'pointsGranted' => null, - 'itemPrice' => null, - 'shippingPrice' => null, - 'itemTax' => null, - 'shippingTax' => null, - 'shippingDiscount' => null, - 'shippingDiscountTax' => null, - 'promotionDiscount' => null, - 'promotionDiscountTax' => null, - 'promotionIds' => null, - 'cODFee' => null, - 'cODFeeDiscount' => null, - 'isGift' => null, - 'conditionNote' => null, - 'conditionId' => null, - 'conditionSubtypeId' => null, + 'aSIN' => null, + 'sellerSKU' => null, + 'orderItemId' => null, + 'title' => null, + 'quantityOrdered' => null, + 'quantityShipped' => null, + 'productInfo' => null, + 'pointsGranted' => null, + 'itemPrice' => null, + 'shippingPrice' => null, + 'itemTax' => null, + 'shippingTax' => null, + 'shippingDiscount' => null, + 'shippingDiscountTax' => null, + 'promotionDiscount' => null, + 'promotionDiscountTax' => null, + 'promotionIds' => null, + 'cODFee' => null, + 'cODFeeDiscount' => null, + 'isGift' => null, + 'conditionNote' => null, + 'conditionId' => null, + 'conditionSubtypeId' => null, 'scheduledDeliveryStartDate' => null, - 'scheduledDeliveryEndDate' => null, - 'priceDesignation' => null, - 'taxCollection' => null, - 'serialNumberRequired' => null, - 'isTransparency' => null, - 'iossNumber' => null, - 'storeChainStoreId' => null, - 'deemedResellerCategory' => null, - 'buyerInfo' => null, - 'buyerRequestedCancel' => null + 'scheduledDeliveryEndDate' => null, + 'priceDesignation' => null, + 'taxCollection' => null, + 'serialNumberRequired' => null, + 'isTransparency' => null, + 'iossNumber' => null, + 'storeChainStoreId' => null, + 'deemedResellerCategory' => null, + 'buyerInfo' => null, + 'buyerRequestedCancel' => null, + 'serialNumbers' => null, ]; /** @@ -169,40 +171,41 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'aSIN' => 'ASIN', - 'sellerSKU' => 'SellerSKU', - 'orderItemId' => 'OrderItemId', - 'title' => 'Title', - 'quantityOrdered' => 'QuantityOrdered', - 'quantityShipped' => 'QuantityShipped', - 'productInfo' => 'ProductInfo', - 'pointsGranted' => 'PointsGranted', - 'itemPrice' => 'ItemPrice', - 'shippingPrice' => 'ShippingPrice', - 'itemTax' => 'ItemTax', - 'shippingTax' => 'ShippingTax', - 'shippingDiscount' => 'ShippingDiscount', - 'shippingDiscountTax' => 'ShippingDiscountTax', - 'promotionDiscount' => 'PromotionDiscount', - 'promotionDiscountTax' => 'PromotionDiscountTax', - 'promotionIds' => 'PromotionIds', - 'cODFee' => 'CODFee', - 'cODFeeDiscount' => 'CODFeeDiscount', - 'isGift' => 'IsGift', - 'conditionNote' => 'ConditionNote', - 'conditionId' => 'ConditionId', - 'conditionSubtypeId' => 'ConditionSubtypeId', + 'aSIN' => 'ASIN', + 'sellerSKU' => 'SellerSKU', + 'orderItemId' => 'OrderItemId', + 'title' => 'Title', + 'quantityOrdered' => 'QuantityOrdered', + 'quantityShipped' => 'QuantityShipped', + 'productInfo' => 'ProductInfo', + 'pointsGranted' => 'PointsGranted', + 'itemPrice' => 'ItemPrice', + 'shippingPrice' => 'ShippingPrice', + 'itemTax' => 'ItemTax', + 'shippingTax' => 'ShippingTax', + 'shippingDiscount' => 'ShippingDiscount', + 'shippingDiscountTax' => 'ShippingDiscountTax', + 'promotionDiscount' => 'PromotionDiscount', + 'promotionDiscountTax' => 'PromotionDiscountTax', + 'promotionIds' => 'PromotionIds', + 'cODFee' => 'CODFee', + 'cODFeeDiscount' => 'CODFeeDiscount', + 'isGift' => 'IsGift', + 'conditionNote' => 'ConditionNote', + 'conditionId' => 'ConditionId', + 'conditionSubtypeId' => 'ConditionSubtypeId', 'scheduledDeliveryStartDate' => 'ScheduledDeliveryStartDate', - 'scheduledDeliveryEndDate' => 'ScheduledDeliveryEndDate', - 'priceDesignation' => 'PriceDesignation', - 'taxCollection' => 'TaxCollection', - 'serialNumberRequired' => 'SerialNumberRequired', - 'isTransparency' => 'IsTransparency', - 'iossNumber' => 'IossNumber', - 'storeChainStoreId' => 'StoreChainStoreId', - 'deemedResellerCategory' => 'DeemedResellerCategory', - 'buyerInfo' => 'BuyerInfo', - 'buyerRequestedCancel' => 'BuyerRequestedCancel' + 'scheduledDeliveryEndDate' => 'ScheduledDeliveryEndDate', + 'priceDesignation' => 'PriceDesignation', + 'taxCollection' => 'TaxCollection', + 'serialNumberRequired' => 'SerialNumberRequired', + 'isTransparency' => 'IsTransparency', + 'iossNumber' => 'IossNumber', + 'storeChainStoreId' => 'StoreChainStoreId', + 'deemedResellerCategory' => 'DeemedResellerCategory', + 'buyerInfo' => 'BuyerInfo', + 'buyerRequestedCancel' => 'BuyerRequestedCancel', + 'serialNumbers' => 'SerialNumbers', ]; /** @@ -211,40 +214,41 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'aSIN' => 'setASIN', - 'sellerSKU' => 'setSellerSKU', - 'orderItemId' => 'setOrderItemId', - 'title' => 'setTitle', - 'quantityOrdered' => 'setQuantityOrdered', - 'quantityShipped' => 'setQuantityShipped', - 'productInfo' => 'setProductInfo', - 'pointsGranted' => 'setPointsGranted', - 'itemPrice' => 'setItemPrice', - 'shippingPrice' => 'setShippingPrice', - 'itemTax' => 'setItemTax', - 'shippingTax' => 'setShippingTax', - 'shippingDiscount' => 'setShippingDiscount', - 'shippingDiscountTax' => 'setShippingDiscountTax', - 'promotionDiscount' => 'setPromotionDiscount', - 'promotionDiscountTax' => 'setPromotionDiscountTax', - 'promotionIds' => 'setPromotionIds', - 'cODFee' => 'setCODFee', - 'cODFeeDiscount' => 'setCODFeeDiscount', - 'isGift' => 'setIsGift', - 'conditionNote' => 'setConditionNote', - 'conditionId' => 'setConditionId', - 'conditionSubtypeId' => 'setConditionSubtypeId', + 'aSIN' => 'setASIN', + 'sellerSKU' => 'setSellerSKU', + 'orderItemId' => 'setOrderItemId', + 'title' => 'setTitle', + 'quantityOrdered' => 'setQuantityOrdered', + 'quantityShipped' => 'setQuantityShipped', + 'productInfo' => 'setProductInfo', + 'pointsGranted' => 'setPointsGranted', + 'itemPrice' => 'setItemPrice', + 'shippingPrice' => 'setShippingPrice', + 'itemTax' => 'setItemTax', + 'shippingTax' => 'setShippingTax', + 'shippingDiscount' => 'setShippingDiscount', + 'shippingDiscountTax' => 'setShippingDiscountTax', + 'promotionDiscount' => 'setPromotionDiscount', + 'promotionDiscountTax' => 'setPromotionDiscountTax', + 'promotionIds' => 'setPromotionIds', + 'cODFee' => 'setCODFee', + 'cODFeeDiscount' => 'setCODFeeDiscount', + 'isGift' => 'setIsGift', + 'conditionNote' => 'setConditionNote', + 'conditionId' => 'setConditionId', + 'conditionSubtypeId' => 'setConditionSubtypeId', 'scheduledDeliveryStartDate' => 'setScheduledDeliveryStartDate', - 'scheduledDeliveryEndDate' => 'setScheduledDeliveryEndDate', - 'priceDesignation' => 'setPriceDesignation', - 'taxCollection' => 'setTaxCollection', - 'serialNumberRequired' => 'setSerialNumberRequired', - 'isTransparency' => 'setIsTransparency', - 'iossNumber' => 'setIossNumber', - 'storeChainStoreId' => 'setStoreChainStoreId', - 'deemedResellerCategory' => 'setDeemedResellerCategory', - 'buyerInfo' => 'setBuyerInfo', - 'buyerRequestedCancel' => 'setBuyerRequestedCancel' + 'scheduledDeliveryEndDate' => 'setScheduledDeliveryEndDate', + 'priceDesignation' => 'setPriceDesignation', + 'taxCollection' => 'setTaxCollection', + 'serialNumberRequired' => 'setSerialNumberRequired', + 'isTransparency' => 'setIsTransparency', + 'iossNumber' => 'setIossNumber', + 'storeChainStoreId' => 'setStoreChainStoreId', + 'deemedResellerCategory' => 'setDeemedResellerCategory', + 'buyerInfo' => 'setBuyerInfo', + 'buyerRequestedCancel' => 'setBuyerRequestedCancel', + 'serialNumbers' => 'setSerialNumbers', ]; /** @@ -253,40 +257,41 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'aSIN' => 'getASIN', - 'sellerSKU' => 'getSellerSKU', - 'orderItemId' => 'getOrderItemId', - 'title' => 'getTitle', - 'quantityOrdered' => 'getQuantityOrdered', - 'quantityShipped' => 'getQuantityShipped', - 'productInfo' => 'getProductInfo', - 'pointsGranted' => 'getPointsGranted', - 'itemPrice' => 'getItemPrice', - 'shippingPrice' => 'getShippingPrice', - 'itemTax' => 'getItemTax', - 'shippingTax' => 'getShippingTax', - 'shippingDiscount' => 'getShippingDiscount', - 'shippingDiscountTax' => 'getShippingDiscountTax', - 'promotionDiscount' => 'getPromotionDiscount', - 'promotionDiscountTax' => 'getPromotionDiscountTax', - 'promotionIds' => 'getPromotionIds', - 'cODFee' => 'getCODFee', - 'cODFeeDiscount' => 'getCODFeeDiscount', - 'isGift' => 'getIsGift', - 'conditionNote' => 'getConditionNote', - 'conditionId' => 'getConditionId', - 'conditionSubtypeId' => 'getConditionSubtypeId', + 'aSIN' => 'getASIN', + 'sellerSKU' => 'getSellerSKU', + 'orderItemId' => 'getOrderItemId', + 'title' => 'getTitle', + 'quantityOrdered' => 'getQuantityOrdered', + 'quantityShipped' => 'getQuantityShipped', + 'productInfo' => 'getProductInfo', + 'pointsGranted' => 'getPointsGranted', + 'itemPrice' => 'getItemPrice', + 'shippingPrice' => 'getShippingPrice', + 'itemTax' => 'getItemTax', + 'shippingTax' => 'getShippingTax', + 'shippingDiscount' => 'getShippingDiscount', + 'shippingDiscountTax' => 'getShippingDiscountTax', + 'promotionDiscount' => 'getPromotionDiscount', + 'promotionDiscountTax' => 'getPromotionDiscountTax', + 'promotionIds' => 'getPromotionIds', + 'cODFee' => 'getCODFee', + 'cODFeeDiscount' => 'getCODFeeDiscount', + 'isGift' => 'getIsGift', + 'conditionNote' => 'getConditionNote', + 'conditionId' => 'getConditionId', + 'conditionSubtypeId' => 'getConditionSubtypeId', 'scheduledDeliveryStartDate' => 'getScheduledDeliveryStartDate', - 'scheduledDeliveryEndDate' => 'getScheduledDeliveryEndDate', - 'priceDesignation' => 'getPriceDesignation', - 'taxCollection' => 'getTaxCollection', - 'serialNumberRequired' => 'getSerialNumberRequired', - 'isTransparency' => 'getIsTransparency', - 'iossNumber' => 'getIossNumber', - 'storeChainStoreId' => 'getStoreChainStoreId', - 'deemedResellerCategory' => 'getDeemedResellerCategory', - 'buyerInfo' => 'getBuyerInfo', - 'buyerRequestedCancel' => 'getBuyerRequestedCancel' + 'scheduledDeliveryEndDate' => 'getScheduledDeliveryEndDate', + 'priceDesignation' => 'getPriceDesignation', + 'taxCollection' => 'getTaxCollection', + 'serialNumberRequired' => 'getSerialNumberRequired', + 'isTransparency' => 'getIsTransparency', + 'iossNumber' => 'getIossNumber', + 'storeChainStoreId' => 'getStoreChainStoreId', + 'deemedResellerCategory' => 'getDeemedResellerCategory', + 'buyerInfo' => 'getBuyerInfo', + 'buyerRequestedCancel' => 'getBuyerRequestedCancel', + 'serialNumbers' => 'getSerialNumbers', ]; /** @@ -333,9 +338,9 @@ public function getModelName() const DEEMED_RESELLER_CATEGORY_IOSS = 'IOSS'; const DEEMED_RESELLER_CATEGORY_UOSS = 'UOSS'; const DEEMED_RESELLER_CATEGORY_GB_VOEC = 'GB_VOEC'; - - + + /** * Gets allowable values of the enum * @@ -349,7 +354,6 @@ public function getDeemedResellerCategoryAllowableValues() self::DEEMED_RESELLER_CATEGORY_GB_VOEC, ]; } - /** * Associative array for storing property values @@ -400,6 +404,7 @@ public function __construct(array $data = null) $this->container['deemedResellerCategory'] = $data['deemedResellerCategory'] ?? null; $this->container['buyerInfo'] = $data['buyerInfo'] ?? null; $this->container['buyerRequestedCancel'] = $data['buyerRequestedCancel'] ?? null; + $this->container['serialNumbers'] = $data['serialNumbers'] ?? null; } /** @@ -1269,6 +1274,31 @@ public function setBuyerRequestedCancel($buyerRequestedCancel) return $this; } + + /** + * Gets serialNumbers + * + * @return string[]|null + */ + public function getSerialNumbers() + { + return $this->container['serialNumbers']; + } + + /** + * Sets serialNumbers + * + * @param string[]|null $serialNumbers A list of serial numbers for electronic products that are shipped to customers. Returned for FBA orders only. + * + * @return self + */ + public function setSerialNumbers($serialNumbers) + { + $this->container['serialNumbers'] = $serialNumbers; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/src/OrdersApiV0/Model/OrderItemsBuyerInfoListV0.php b/src/OrdersApiV0/Model/OrderItemsBuyerInfoListV0.php index 6d669ff..4ec104a 100644 --- a/src/OrdersApiV0/Model/OrderItemsBuyerInfoListV0.php +++ b/src/OrdersApiV0/Model/OrderItemsBuyerInfoListV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OrderItemsBuyerInfoListV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -175,10 +175,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/OrderItemsListV0.php b/src/OrdersApiV0/Model/OrderItemsListV0.php index 082070f..5f329a7 100644 --- a/src/OrdersApiV0/Model/OrderItemsListV0.php +++ b/src/OrdersApiV0/Model/OrderItemsListV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OrderItemsListV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -175,10 +175,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/OrderRegulatedInfoV0.php b/src/OrdersApiV0/Model/OrderRegulatedInfoV0.php index 0d7b71e..6df57a8 100644 --- a/src/OrdersApiV0/Model/OrderRegulatedInfoV0.php +++ b/src/OrdersApiV0/Model/OrderRegulatedInfoV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OrderRegulatedInfoV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -180,10 +180,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * @@ -302,7 +298,7 @@ public function getRequiresDosageLabel() /** * Sets requiresDosageLabel * - * @param bool $requiresDosageLabel Whether the order requires attaching a dosage information label when shipped. + * @param bool $requiresDosageLabel When true, the order requires attaching a dosage information label when shipped. * * @return self */ diff --git a/src/OrdersApiV0/Model/OrderV0.php b/src/OrdersApiV0/Model/OrderV0.php index 0ccd13f..51e0db9 100644 --- a/src/OrdersApiV0/Model/OrderV0.php +++ b/src/OrdersApiV0/Model/OrderV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OrderV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -62,51 +62,53 @@ class OrderV0 implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'amazonOrderId' => 'string', - 'sellerOrderId' => 'string', - 'purchaseDate' => 'string', - 'lastUpdateDate' => 'string', - 'orderStatus' => 'string', - 'fulfillmentChannel' => 'string', - 'salesChannel' => 'string', - 'orderChannel' => 'string', - 'shipServiceLevel' => 'string', - 'orderTotal' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', - 'numberOfItemsShipped' => 'int', - 'numberOfItemsUnshipped' => 'int', - 'paymentExecutionDetail' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\PaymentExecutionDetailItemV0[]', - 'paymentMethod' => 'string', - 'paymentMethodDetails' => 'string[]', - 'marketplaceId' => 'string', - 'shipmentServiceLevelCategory' => 'string', - 'easyShipShipmentStatus' => 'string', - 'cbaDisplayableShippingLabel' => 'string', - 'orderType' => 'string', - 'earliestShipDate' => 'string', - 'latestShipDate' => 'string', - 'earliestDeliveryDate' => 'string', - 'latestDeliveryDate' => 'string', - 'isBusinessOrder' => 'bool', - 'isPrime' => 'bool', - 'isPremiumOrder' => 'bool', - 'isGlobalExpressEnabled' => 'bool', - 'replacedOrderId' => 'string', - 'isReplacementOrder' => 'bool', - 'promiseResponseDueDate' => 'string', - 'isEstimatedShipDateSet' => 'bool', - 'isSoldByAB' => 'bool', - 'isIBA' => 'bool', + 'amazonOrderId' => 'string', + 'sellerOrderId' => 'string', + 'purchaseDate' => 'string', + 'lastUpdateDate' => 'string', + 'orderStatus' => 'string', + 'fulfillmentChannel' => 'string', + 'salesChannel' => 'string', + 'orderChannel' => 'string', + 'shipServiceLevel' => 'string', + 'orderTotal' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MoneyV0', + 'numberOfItemsShipped' => 'int', + 'numberOfItemsUnshipped' => 'int', + 'paymentExecutionDetail' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\PaymentExecutionDetailItemV0[]', + 'paymentMethod' => 'string', + 'paymentMethodDetails' => 'string[]', + 'marketplaceId' => 'string', + 'shipmentServiceLevelCategory' => 'string', + 'easyShipShipmentStatus' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\EasyShipShipmentStatusV0', + 'cbaDisplayableShippingLabel' => 'string', + 'orderType' => 'string', + 'earliestShipDate' => 'string', + 'latestShipDate' => 'string', + 'earliestDeliveryDate' => 'string', + 'latestDeliveryDate' => 'string', + 'isBusinessOrder' => 'bool', + 'isPrime' => 'bool', + 'isPremiumOrder' => 'bool', + 'isGlobalExpressEnabled' => 'bool', + 'replacedOrderId' => 'string', + 'isReplacementOrder' => 'bool', + 'promiseResponseDueDate' => 'string', + 'isEstimatedShipDateSet' => 'bool', + 'isSoldByAB' => 'bool', + 'isIBA' => 'bool', 'defaultShipFromLocationAddress' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\AddressV0', - 'buyerInvoicePreference' => 'string', - 'buyerTaxInformation' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\BuyerTaxInformationV0', - 'fulfillmentInstruction' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\FulfillmentInstructionV0', - 'isISPU' => 'bool', - 'marketplaceTaxInfo' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MarketplaceTaxInfoV0', - 'sellerDisplayName' => 'string', - 'shippingAddress' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\AddressV0', - 'buyerInfo' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\BuyerInfoV0', - 'automatedShippingSettings' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\AutomatedShippingSettingsV0', - 'hasRegulatedItems' => 'bool' + 'buyerInvoicePreference' => 'string', + 'buyerTaxInformation' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\BuyerTaxInformationV0', + 'fulfillmentInstruction' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\FulfillmentInstructionV0', + 'isISPU' => 'bool', + 'isAccessPointOrder' => 'bool', + 'marketplaceTaxInfo' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\MarketplaceTaxInfoV0', + 'sellerDisplayName' => 'string', + 'shippingAddress' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\AddressV0', + 'buyerInfo' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\BuyerInfoV0', + 'automatedShippingSettings' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\AutomatedShippingSettingsV0', + 'hasRegulatedItems' => 'bool', + 'electronicInvoiceStatus' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\ElectronicInvoiceStatusV0', ]; /** @@ -117,51 +119,53 @@ class OrderV0 implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'amazonOrderId' => null, - 'sellerOrderId' => null, - 'purchaseDate' => null, - 'lastUpdateDate' => null, - 'orderStatus' => null, - 'fulfillmentChannel' => null, - 'salesChannel' => null, - 'orderChannel' => null, - 'shipServiceLevel' => null, - 'orderTotal' => null, - 'numberOfItemsShipped' => null, - 'numberOfItemsUnshipped' => null, - 'paymentExecutionDetail' => null, - 'paymentMethod' => null, - 'paymentMethodDetails' => null, - 'marketplaceId' => null, - 'shipmentServiceLevelCategory' => null, - 'easyShipShipmentStatus' => null, - 'cbaDisplayableShippingLabel' => null, - 'orderType' => null, - 'earliestShipDate' => null, - 'latestShipDate' => null, - 'earliestDeliveryDate' => null, - 'latestDeliveryDate' => null, - 'isBusinessOrder' => null, - 'isPrime' => null, - 'isPremiumOrder' => null, - 'isGlobalExpressEnabled' => null, - 'replacedOrderId' => null, - 'isReplacementOrder' => null, - 'promiseResponseDueDate' => null, - 'isEstimatedShipDateSet' => null, - 'isSoldByAB' => null, - 'isIBA' => null, + 'amazonOrderId' => null, + 'sellerOrderId' => null, + 'purchaseDate' => null, + 'lastUpdateDate' => null, + 'orderStatus' => null, + 'fulfillmentChannel' => null, + 'salesChannel' => null, + 'orderChannel' => null, + 'shipServiceLevel' => null, + 'orderTotal' => null, + 'numberOfItemsShipped' => null, + 'numberOfItemsUnshipped' => null, + 'paymentExecutionDetail' => null, + 'paymentMethod' => null, + 'paymentMethodDetails' => null, + 'marketplaceId' => null, + 'shipmentServiceLevelCategory' => null, + 'easyShipShipmentStatus' => null, + 'cbaDisplayableShippingLabel' => null, + 'orderType' => null, + 'earliestShipDate' => null, + 'latestShipDate' => null, + 'earliestDeliveryDate' => null, + 'latestDeliveryDate' => null, + 'isBusinessOrder' => null, + 'isPrime' => null, + 'isPremiumOrder' => null, + 'isGlobalExpressEnabled' => null, + 'replacedOrderId' => null, + 'isReplacementOrder' => null, + 'promiseResponseDueDate' => null, + 'isEstimatedShipDateSet' => null, + 'isSoldByAB' => null, + 'isIBA' => null, 'defaultShipFromLocationAddress' => null, - 'buyerInvoicePreference' => null, - 'buyerTaxInformation' => null, - 'fulfillmentInstruction' => null, - 'isISPU' => null, - 'marketplaceTaxInfo' => null, - 'sellerDisplayName' => null, - 'shippingAddress' => null, - 'buyerInfo' => null, - 'automatedShippingSettings' => null, - 'hasRegulatedItems' => null + 'buyerInvoicePreference' => null, + 'buyerTaxInformation' => null, + 'fulfillmentInstruction' => null, + 'isISPU' => null, + 'isAccessPointOrder' => null, + 'marketplaceTaxInfo' => null, + 'sellerDisplayName' => null, + 'shippingAddress' => null, + 'buyerInfo' => null, + 'automatedShippingSettings' => null, + 'hasRegulatedItems' => null, + 'electronicInvoiceStatus' => null, ]; /** @@ -191,51 +195,53 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'amazonOrderId' => 'AmazonOrderId', - 'sellerOrderId' => 'SellerOrderId', - 'purchaseDate' => 'PurchaseDate', - 'lastUpdateDate' => 'LastUpdateDate', - 'orderStatus' => 'OrderStatus', - 'fulfillmentChannel' => 'FulfillmentChannel', - 'salesChannel' => 'SalesChannel', - 'orderChannel' => 'OrderChannel', - 'shipServiceLevel' => 'ShipServiceLevel', - 'orderTotal' => 'OrderTotal', - 'numberOfItemsShipped' => 'NumberOfItemsShipped', - 'numberOfItemsUnshipped' => 'NumberOfItemsUnshipped', - 'paymentExecutionDetail' => 'PaymentExecutionDetail', - 'paymentMethod' => 'PaymentMethod', - 'paymentMethodDetails' => 'PaymentMethodDetails', - 'marketplaceId' => 'MarketplaceId', - 'shipmentServiceLevelCategory' => 'ShipmentServiceLevelCategory', - 'easyShipShipmentStatus' => 'EasyShipShipmentStatus', - 'cbaDisplayableShippingLabel' => 'CbaDisplayableShippingLabel', - 'orderType' => 'OrderType', - 'earliestShipDate' => 'EarliestShipDate', - 'latestShipDate' => 'LatestShipDate', - 'earliestDeliveryDate' => 'EarliestDeliveryDate', - 'latestDeliveryDate' => 'LatestDeliveryDate', - 'isBusinessOrder' => 'IsBusinessOrder', - 'isPrime' => 'IsPrime', - 'isPremiumOrder' => 'IsPremiumOrder', - 'isGlobalExpressEnabled' => 'IsGlobalExpressEnabled', - 'replacedOrderId' => 'ReplacedOrderId', - 'isReplacementOrder' => 'IsReplacementOrder', - 'promiseResponseDueDate' => 'PromiseResponseDueDate', - 'isEstimatedShipDateSet' => 'IsEstimatedShipDateSet', - 'isSoldByAB' => 'IsSoldByAB', - 'isIBA' => 'IsIBA', + 'amazonOrderId' => 'AmazonOrderId', + 'sellerOrderId' => 'SellerOrderId', + 'purchaseDate' => 'PurchaseDate', + 'lastUpdateDate' => 'LastUpdateDate', + 'orderStatus' => 'OrderStatus', + 'fulfillmentChannel' => 'FulfillmentChannel', + 'salesChannel' => 'SalesChannel', + 'orderChannel' => 'OrderChannel', + 'shipServiceLevel' => 'ShipServiceLevel', + 'orderTotal' => 'OrderTotal', + 'numberOfItemsShipped' => 'NumberOfItemsShipped', + 'numberOfItemsUnshipped' => 'NumberOfItemsUnshipped', + 'paymentExecutionDetail' => 'PaymentExecutionDetail', + 'paymentMethod' => 'PaymentMethod', + 'paymentMethodDetails' => 'PaymentMethodDetails', + 'marketplaceId' => 'MarketplaceId', + 'shipmentServiceLevelCategory' => 'ShipmentServiceLevelCategory', + 'easyShipShipmentStatus' => 'EasyShipShipmentStatus', + 'cbaDisplayableShippingLabel' => 'CbaDisplayableShippingLabel', + 'orderType' => 'OrderType', + 'earliestShipDate' => 'EarliestShipDate', + 'latestShipDate' => 'LatestShipDate', + 'earliestDeliveryDate' => 'EarliestDeliveryDate', + 'latestDeliveryDate' => 'LatestDeliveryDate', + 'isBusinessOrder' => 'IsBusinessOrder', + 'isPrime' => 'IsPrime', + 'isPremiumOrder' => 'IsPremiumOrder', + 'isGlobalExpressEnabled' => 'IsGlobalExpressEnabled', + 'replacedOrderId' => 'ReplacedOrderId', + 'isReplacementOrder' => 'IsReplacementOrder', + 'promiseResponseDueDate' => 'PromiseResponseDueDate', + 'isEstimatedShipDateSet' => 'IsEstimatedShipDateSet', + 'isSoldByAB' => 'IsSoldByAB', + 'isIBA' => 'IsIBA', 'defaultShipFromLocationAddress' => 'DefaultShipFromLocationAddress', - 'buyerInvoicePreference' => 'BuyerInvoicePreference', - 'buyerTaxInformation' => 'BuyerTaxInformation', - 'fulfillmentInstruction' => 'FulfillmentInstruction', - 'isISPU' => 'IsISPU', - 'marketplaceTaxInfo' => 'MarketplaceTaxInfo', - 'sellerDisplayName' => 'SellerDisplayName', - 'shippingAddress' => 'ShippingAddress', - 'buyerInfo' => 'BuyerInfo', - 'automatedShippingSettings' => 'AutomatedShippingSettings', - 'hasRegulatedItems' => 'HasRegulatedItems' + 'buyerInvoicePreference' => 'BuyerInvoicePreference', + 'buyerTaxInformation' => 'BuyerTaxInformation', + 'fulfillmentInstruction' => 'FulfillmentInstruction', + 'isISPU' => 'IsISPU', + 'isAccessPointOrder' => 'IsAccessPointOrder', + 'marketplaceTaxInfo' => 'MarketplaceTaxInfo', + 'sellerDisplayName' => 'SellerDisplayName', + 'shippingAddress' => 'ShippingAddress', + 'buyerInfo' => 'BuyerInfo', + 'automatedShippingSettings' => 'AutomatedShippingSettings', + 'hasRegulatedItems' => 'HasRegulatedItems', + 'electronicInvoiceStatus' => 'ElectronicInvoiceStatus', ]; /** @@ -244,51 +250,53 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'amazonOrderId' => 'setAmazonOrderId', - 'sellerOrderId' => 'setSellerOrderId', - 'purchaseDate' => 'setPurchaseDate', - 'lastUpdateDate' => 'setLastUpdateDate', - 'orderStatus' => 'setOrderStatus', - 'fulfillmentChannel' => 'setFulfillmentChannel', - 'salesChannel' => 'setSalesChannel', - 'orderChannel' => 'setOrderChannel', - 'shipServiceLevel' => 'setShipServiceLevel', - 'orderTotal' => 'setOrderTotal', - 'numberOfItemsShipped' => 'setNumberOfItemsShipped', - 'numberOfItemsUnshipped' => 'setNumberOfItemsUnshipped', - 'paymentExecutionDetail' => 'setPaymentExecutionDetail', - 'paymentMethod' => 'setPaymentMethod', - 'paymentMethodDetails' => 'setPaymentMethodDetails', - 'marketplaceId' => 'setMarketplaceId', - 'shipmentServiceLevelCategory' => 'setShipmentServiceLevelCategory', - 'easyShipShipmentStatus' => 'setEasyShipShipmentStatus', - 'cbaDisplayableShippingLabel' => 'setCbaDisplayableShippingLabel', - 'orderType' => 'setOrderType', - 'earliestShipDate' => 'setEarliestShipDate', - 'latestShipDate' => 'setLatestShipDate', - 'earliestDeliveryDate' => 'setEarliestDeliveryDate', - 'latestDeliveryDate' => 'setLatestDeliveryDate', - 'isBusinessOrder' => 'setIsBusinessOrder', - 'isPrime' => 'setIsPrime', - 'isPremiumOrder' => 'setIsPremiumOrder', - 'isGlobalExpressEnabled' => 'setIsGlobalExpressEnabled', - 'replacedOrderId' => 'setReplacedOrderId', - 'isReplacementOrder' => 'setIsReplacementOrder', - 'promiseResponseDueDate' => 'setPromiseResponseDueDate', - 'isEstimatedShipDateSet' => 'setIsEstimatedShipDateSet', - 'isSoldByAB' => 'setIsSoldByAB', - 'isIBA' => 'setIsIBA', + 'amazonOrderId' => 'setAmazonOrderId', + 'sellerOrderId' => 'setSellerOrderId', + 'purchaseDate' => 'setPurchaseDate', + 'lastUpdateDate' => 'setLastUpdateDate', + 'orderStatus' => 'setOrderStatus', + 'fulfillmentChannel' => 'setFulfillmentChannel', + 'salesChannel' => 'setSalesChannel', + 'orderChannel' => 'setOrderChannel', + 'shipServiceLevel' => 'setShipServiceLevel', + 'orderTotal' => 'setOrderTotal', + 'numberOfItemsShipped' => 'setNumberOfItemsShipped', + 'numberOfItemsUnshipped' => 'setNumberOfItemsUnshipped', + 'paymentExecutionDetail' => 'setPaymentExecutionDetail', + 'paymentMethod' => 'setPaymentMethod', + 'paymentMethodDetails' => 'setPaymentMethodDetails', + 'marketplaceId' => 'setMarketplaceId', + 'shipmentServiceLevelCategory' => 'setShipmentServiceLevelCategory', + 'easyShipShipmentStatus' => 'setEasyShipShipmentStatus', + 'cbaDisplayableShippingLabel' => 'setCbaDisplayableShippingLabel', + 'orderType' => 'setOrderType', + 'earliestShipDate' => 'setEarliestShipDate', + 'latestShipDate' => 'setLatestShipDate', + 'earliestDeliveryDate' => 'setEarliestDeliveryDate', + 'latestDeliveryDate' => 'setLatestDeliveryDate', + 'isBusinessOrder' => 'setIsBusinessOrder', + 'isPrime' => 'setIsPrime', + 'isPremiumOrder' => 'setIsPremiumOrder', + 'isGlobalExpressEnabled' => 'setIsGlobalExpressEnabled', + 'replacedOrderId' => 'setReplacedOrderId', + 'isReplacementOrder' => 'setIsReplacementOrder', + 'promiseResponseDueDate' => 'setPromiseResponseDueDate', + 'isEstimatedShipDateSet' => 'setIsEstimatedShipDateSet', + 'isSoldByAB' => 'setIsSoldByAB', + 'isIBA' => 'setIsIBA', 'defaultShipFromLocationAddress' => 'setDefaultShipFromLocationAddress', - 'buyerInvoicePreference' => 'setBuyerInvoicePreference', - 'buyerTaxInformation' => 'setBuyerTaxInformation', - 'fulfillmentInstruction' => 'setFulfillmentInstruction', - 'isISPU' => 'setIsISPU', - 'marketplaceTaxInfo' => 'setMarketplaceTaxInfo', - 'sellerDisplayName' => 'setSellerDisplayName', - 'shippingAddress' => 'setShippingAddress', - 'buyerInfo' => 'setBuyerInfo', - 'automatedShippingSettings' => 'setAutomatedShippingSettings', - 'hasRegulatedItems' => 'setHasRegulatedItems' + 'buyerInvoicePreference' => 'setBuyerInvoicePreference', + 'buyerTaxInformation' => 'setBuyerTaxInformation', + 'fulfillmentInstruction' => 'setFulfillmentInstruction', + 'isISPU' => 'setIsISPU', + 'isAccessPointOrder' => 'setIsAccessPointOrder', + 'marketplaceTaxInfo' => 'setMarketplaceTaxInfo', + 'sellerDisplayName' => 'setSellerDisplayName', + 'shippingAddress' => 'setShippingAddress', + 'buyerInfo' => 'setBuyerInfo', + 'automatedShippingSettings' => 'setAutomatedShippingSettings', + 'hasRegulatedItems' => 'setHasRegulatedItems', + 'electronicInvoiceStatus' => 'setElectronicInvoiceStatus', ]; /** @@ -297,51 +305,53 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'amazonOrderId' => 'getAmazonOrderId', - 'sellerOrderId' => 'getSellerOrderId', - 'purchaseDate' => 'getPurchaseDate', - 'lastUpdateDate' => 'getLastUpdateDate', - 'orderStatus' => 'getOrderStatus', - 'fulfillmentChannel' => 'getFulfillmentChannel', - 'salesChannel' => 'getSalesChannel', - 'orderChannel' => 'getOrderChannel', - 'shipServiceLevel' => 'getShipServiceLevel', - 'orderTotal' => 'getOrderTotal', - 'numberOfItemsShipped' => 'getNumberOfItemsShipped', - 'numberOfItemsUnshipped' => 'getNumberOfItemsUnshipped', - 'paymentExecutionDetail' => 'getPaymentExecutionDetail', - 'paymentMethod' => 'getPaymentMethod', - 'paymentMethodDetails' => 'getPaymentMethodDetails', - 'marketplaceId' => 'getMarketplaceId', - 'shipmentServiceLevelCategory' => 'getShipmentServiceLevelCategory', - 'easyShipShipmentStatus' => 'getEasyShipShipmentStatus', - 'cbaDisplayableShippingLabel' => 'getCbaDisplayableShippingLabel', - 'orderType' => 'getOrderType', - 'earliestShipDate' => 'getEarliestShipDate', - 'latestShipDate' => 'getLatestShipDate', - 'earliestDeliveryDate' => 'getEarliestDeliveryDate', - 'latestDeliveryDate' => 'getLatestDeliveryDate', - 'isBusinessOrder' => 'getIsBusinessOrder', - 'isPrime' => 'getIsPrime', - 'isPremiumOrder' => 'getIsPremiumOrder', - 'isGlobalExpressEnabled' => 'getIsGlobalExpressEnabled', - 'replacedOrderId' => 'getReplacedOrderId', - 'isReplacementOrder' => 'getIsReplacementOrder', - 'promiseResponseDueDate' => 'getPromiseResponseDueDate', - 'isEstimatedShipDateSet' => 'getIsEstimatedShipDateSet', - 'isSoldByAB' => 'getIsSoldByAB', - 'isIBA' => 'getIsIBA', + 'amazonOrderId' => 'getAmazonOrderId', + 'sellerOrderId' => 'getSellerOrderId', + 'purchaseDate' => 'getPurchaseDate', + 'lastUpdateDate' => 'getLastUpdateDate', + 'orderStatus' => 'getOrderStatus', + 'fulfillmentChannel' => 'getFulfillmentChannel', + 'salesChannel' => 'getSalesChannel', + 'orderChannel' => 'getOrderChannel', + 'shipServiceLevel' => 'getShipServiceLevel', + 'orderTotal' => 'getOrderTotal', + 'numberOfItemsShipped' => 'getNumberOfItemsShipped', + 'numberOfItemsUnshipped' => 'getNumberOfItemsUnshipped', + 'paymentExecutionDetail' => 'getPaymentExecutionDetail', + 'paymentMethod' => 'getPaymentMethod', + 'paymentMethodDetails' => 'getPaymentMethodDetails', + 'marketplaceId' => 'getMarketplaceId', + 'shipmentServiceLevelCategory' => 'getShipmentServiceLevelCategory', + 'easyShipShipmentStatus' => 'getEasyShipShipmentStatus', + 'cbaDisplayableShippingLabel' => 'getCbaDisplayableShippingLabel', + 'orderType' => 'getOrderType', + 'earliestShipDate' => 'getEarliestShipDate', + 'latestShipDate' => 'getLatestShipDate', + 'earliestDeliveryDate' => 'getEarliestDeliveryDate', + 'latestDeliveryDate' => 'getLatestDeliveryDate', + 'isBusinessOrder' => 'getIsBusinessOrder', + 'isPrime' => 'getIsPrime', + 'isPremiumOrder' => 'getIsPremiumOrder', + 'isGlobalExpressEnabled' => 'getIsGlobalExpressEnabled', + 'replacedOrderId' => 'getReplacedOrderId', + 'isReplacementOrder' => 'getIsReplacementOrder', + 'promiseResponseDueDate' => 'getPromiseResponseDueDate', + 'isEstimatedShipDateSet' => 'getIsEstimatedShipDateSet', + 'isSoldByAB' => 'getIsSoldByAB', + 'isIBA' => 'getIsIBA', 'defaultShipFromLocationAddress' => 'getDefaultShipFromLocationAddress', - 'buyerInvoicePreference' => 'getBuyerInvoicePreference', - 'buyerTaxInformation' => 'getBuyerTaxInformation', - 'fulfillmentInstruction' => 'getFulfillmentInstruction', - 'isISPU' => 'getIsISPU', - 'marketplaceTaxInfo' => 'getMarketplaceTaxInfo', - 'sellerDisplayName' => 'getSellerDisplayName', - 'shippingAddress' => 'getShippingAddress', - 'buyerInfo' => 'getBuyerInfo', - 'automatedShippingSettings' => 'getAutomatedShippingSettings', - 'hasRegulatedItems' => 'getHasRegulatedItems' + 'buyerInvoicePreference' => 'getBuyerInvoicePreference', + 'buyerTaxInformation' => 'getBuyerTaxInformation', + 'fulfillmentInstruction' => 'getFulfillmentInstruction', + 'isISPU' => 'getIsISPU', + 'isAccessPointOrder' => 'getIsAccessPointOrder', + 'marketplaceTaxInfo' => 'getMarketplaceTaxInfo', + 'sellerDisplayName' => 'getSellerDisplayName', + 'shippingAddress' => 'getShippingAddress', + 'buyerInfo' => 'getBuyerInfo', + 'automatedShippingSettings' => 'getAutomatedShippingSettings', + 'hasRegulatedItems' => 'getHasRegulatedItems', + 'electronicInvoiceStatus' => 'getElectronicInvoiceStatus', ]; /** @@ -405,9 +415,9 @@ public function getModelName() const ORDER_TYPE_SOURCING_ON_DEMAND_ORDER = 'SourcingOnDemandOrder'; const BUYER_INVOICE_PREFERENCE_INDIVIDUAL = 'INDIVIDUAL'; const BUYER_INVOICE_PREFERENCE_BUSINESS = 'BUSINESS'; - - + + /** * Gets allowable values of the enum * @@ -426,7 +436,7 @@ public function getOrderStatusAllowableValues() self::ORDER_STATUS_PENDING_AVAILABILITY, ]; } - + /** * Gets allowable values of the enum * @@ -439,7 +449,7 @@ public function getFulfillmentChannelAllowableValues() self::FULFILLMENT_CHANNEL_AFN, ]; } - + /** * Gets allowable values of the enum * @@ -453,7 +463,7 @@ public function getPaymentMethodAllowableValues() self::PAYMENT_METHOD_OTHER, ]; } - + /** * Gets allowable values of the enum * @@ -469,7 +479,7 @@ public function getOrderTypeAllowableValues() self::ORDER_TYPE_SOURCING_ON_DEMAND_ORDER, ]; } - + /** * Gets allowable values of the enum * @@ -482,7 +492,7 @@ public function getBuyerInvoicePreferenceAllowableValues() self::BUYER_INVOICE_PREFERENCE_BUSINESS, ]; } - + /** * Associative array for storing property values @@ -538,12 +548,14 @@ public function __construct(array $data = null) $this->container['buyerTaxInformation'] = $data['buyerTaxInformation'] ?? null; $this->container['fulfillmentInstruction'] = $data['fulfillmentInstruction'] ?? null; $this->container['isISPU'] = $data['isISPU'] ?? null; + $this->container['isAccessPointOrder'] = $data['isAccessPointOrder'] ?? null; $this->container['marketplaceTaxInfo'] = $data['marketplaceTaxInfo'] ?? null; $this->container['sellerDisplayName'] = $data['sellerDisplayName'] ?? null; $this->container['shippingAddress'] = $data['shippingAddress'] ?? null; $this->container['buyerInfo'] = $data['buyerInfo'] ?? null; $this->container['automatedShippingSettings'] = $data['automatedShippingSettings'] ?? null; $this->container['hasRegulatedItems'] = $data['hasRegulatedItems'] ?? null; + $this->container['electronicInvoiceStatus'] = $data['electronicInvoiceStatus'] ?? null; } /** @@ -712,7 +724,7 @@ public function getLastUpdateDate() /** * Sets lastUpdateDate * - * @param string $lastUpdateDate The date when the order was last updated. Note: LastUpdateDate is returned with an incorrect date for orders that were last updated before 2009-04-01. + * @param string $lastUpdateDate The date when the order was last updated. __Note__: LastUpdateDate is returned with an incorrect date for orders that were last updated before 2009-04-01. * * @return self */ @@ -1068,7 +1080,7 @@ public function setShipmentServiceLevelCategory($shipmentServiceLevelCategory) /** * Gets easyShipShipmentStatus * - * @return string|null + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\EasyShipShipmentStatusV0|null */ public function getEasyShipShipmentStatus() { @@ -1078,7 +1090,7 @@ public function getEasyShipShipmentStatus() /** * Sets easyShipShipmentStatus * - * @param string|null $easyShipShipmentStatus The status of the Amazon Easy Ship order. This property is included only for Amazon Easy Ship orders. Possible values: PendingPickUp, LabelCanceled, PickedUp, OutForDelivery, Damaged, Delivered, RejectedByBuyer, Undeliverable, ReturnedToSeller, ReturningToSeller. + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\EasyShipShipmentStatusV0|null $easyShipShipmentStatus easyShipShipmentStatus * * @return self */ @@ -1160,7 +1172,7 @@ public function getEarliestShipDate() /** * Sets earliestShipDate * - * @param string|null $earliestShipDate The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. Note: EarliestShipDate might not be returned for orders placed before February 1, 2013. + * @param string|null $earliestShipDate The start of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. __Note__: EarliestShipDate might not be returned for orders placed before February 1, 2013. * * @return self */ @@ -1184,7 +1196,7 @@ public function getLatestShipDate() /** * Sets latestShipDate * - * @param string|null $latestShipDate The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. Note: LatestShipDate might not be returned for orders placed before February 1, 2013. + * @param string|null $latestShipDate The end of the time period within which you have committed to ship the order. In ISO 8601 date time format. Returned only for seller-fulfilled orders. __Note__: LatestShipDate might not be returned for orders placed before February 1, 2013. * * @return self */ @@ -1613,6 +1625,30 @@ public function setIsISPU($isISPU) return $this; } + /** + * Gets isAccessPointOrder + * + * @return bool|null + */ + public function getIsAccessPointOrder() + { + return $this->container['isAccessPointOrder']; + } + + /** + * Sets isAccessPointOrder + * + * @param bool|null $isAccessPointOrder When true, this order is marked to be delivered to an Access Point. The access location is chosen by the customer. Access Points include Amazon Hub Lockers, Amazon Hub Counters, and pickup points operated by carriers. + * + * @return self + */ + public function setIsAccessPointOrder($isAccessPointOrder) + { + $this->container['isAccessPointOrder'] = $isAccessPointOrder; + + return $this; + } + /** * Gets marketplaceTaxInfo * @@ -1756,6 +1792,31 @@ public function setHasRegulatedItems($hasRegulatedItems) return $this; } + + /** + * Gets electronicInvoiceStatus + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\ElectronicInvoiceStatusV0|null + */ + public function getElectronicInvoiceStatus() + { + return $this->container['electronicInvoiceStatus']; + } + + /** + * Sets electronicInvoiceStatus + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\ElectronicInvoiceStatusV0|null $electronicInvoiceStatus electronicInvoiceStatus + * + * @return self + */ + public function setElectronicInvoiceStatus($electronicInvoiceStatus) + { + $this->container['electronicInvoiceStatus'] = $electronicInvoiceStatus; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/src/OrdersApiV0/Model/OrdersListV0.php b/src/OrdersApiV0/Model/OrdersListV0.php index 089a30e..cf56b0d 100644 --- a/src/OrdersApiV0/Model/OrdersListV0.php +++ b/src/OrdersApiV0/Model/OrdersListV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OrdersListV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -180,10 +180,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/OtherDeliveryAttributesV0.php b/src/OrdersApiV0/Model/OtherDeliveryAttributesV0.php new file mode 100644 index 0000000..218f803 --- /dev/null +++ b/src/OrdersApiV0/Model/OtherDeliveryAttributesV0.php @@ -0,0 +1,66 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class PackageDetailV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PackageDetail'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'packageReferenceId' => 'string', + 'carrierCode' => 'string', + 'carrierName' => 'string', + 'shippingMethod' => 'string', + 'trackingNumber' => 'string', + 'shipDate' => '\DateTime', + 'shipFromSupplySourceId' => 'string', + 'orderItems' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentOrderItemV0[]', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'packageReferenceId' => null, + 'carrierCode' => null, + 'carrierName' => null, + 'shippingMethod' => null, + 'trackingNumber' => null, + 'shipDate' => 'date-time', + 'shipFromSupplySourceId' => null, + 'orderItems' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'packageReferenceId' => 'packageReferenceId', + 'carrierCode' => 'carrierCode', + 'carrierName' => 'carrierName', + 'shippingMethod' => 'shippingMethod', + 'trackingNumber' => 'trackingNumber', + 'shipDate' => 'shipDate', + 'shipFromSupplySourceId' => 'shipFromSupplySourceId', + 'orderItems' => 'orderItems', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'packageReferenceId' => 'setPackageReferenceId', + 'carrierCode' => 'setCarrierCode', + 'carrierName' => 'setCarrierName', + 'shippingMethod' => 'setShippingMethod', + 'trackingNumber' => 'setTrackingNumber', + 'shipDate' => 'setShipDate', + 'shipFromSupplySourceId' => 'setShipFromSupplySourceId', + 'orderItems' => 'setOrderItems', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'packageReferenceId' => 'getPackageReferenceId', + 'carrierCode' => 'getCarrierCode', + 'carrierName' => 'getCarrierName', + 'shippingMethod' => 'getShippingMethod', + 'trackingNumber' => 'getTrackingNumber', + 'shipDate' => 'getShipDate', + 'shipFromSupplySourceId' => 'getShipFromSupplySourceId', + 'orderItems' => 'getOrderItems', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['packageReferenceId'] = $data['packageReferenceId'] ?? null; + $this->container['carrierCode'] = $data['carrierCode'] ?? null; + $this->container['carrierName'] = $data['carrierName'] ?? null; + $this->container['shippingMethod'] = $data['shippingMethod'] ?? null; + $this->container['trackingNumber'] = $data['trackingNumber'] ?? null; + $this->container['shipDate'] = $data['shipDate'] ?? null; + $this->container['shipFromSupplySourceId'] = $data['shipFromSupplySourceId'] ?? null; + $this->container['orderItems'] = $data['orderItems'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['packageReferenceId'] === null) { + $invalidProperties[] = "'packageReferenceId' can't be null"; + } + if ($this->container['carrierCode'] === null) { + $invalidProperties[] = "'carrierCode' can't be null"; + } + if ($this->container['trackingNumber'] === null) { + $invalidProperties[] = "'trackingNumber' can't be null"; + } + if ($this->container['shipDate'] === null) { + $invalidProperties[] = "'shipDate' can't be null"; + } + if ($this->container['orderItems'] === null) { + $invalidProperties[] = "'orderItems' can't be null"; + } + return $invalidProperties; + } + + /** + * Gets packageReferenceId + * + * @return string + */ + public function getPackageReferenceId() + { + return $this->container['packageReferenceId']; + } + + /** + * Sets packageReferenceId + * + * @param string $packageReferenceId A seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported. + * + * @return self + */ + public function setPackageReferenceId($packageReferenceId) + { + $this->container['packageReferenceId'] = $packageReferenceId; + + return $this; + } + + /** + * Gets carrierCode + * + * @return string + */ + public function getCarrierCode() + { + return $this->container['carrierCode']; + } + + /** + * Sets carrierCode + * + * @param string $carrierCode Identifies the carrier that will deliver the package. This field is required for all marketplaces, see [reference](https://developer-docs.amazon.com/sp-api/changelog/carriercode-value-required-in-shipment-confirmations-for-br-mx-ca-sg-au-in-jp-marketplaces). + * + * @return self + */ + public function setCarrierCode($carrierCode) + { + $this->container['carrierCode'] = $carrierCode; + + return $this; + } + + /** + * Gets carrierName + * + * @return string|null + */ + public function getCarrierName() + { + return $this->container['carrierName']; + } + + /** + * Sets carrierName + * + * @param string|null $carrierName Carrier Name that will deliver the package. Required when carrierCode is \"Others\" + * + * @return self + */ + public function setCarrierName($carrierName) + { + $this->container['carrierName'] = $carrierName; + + return $this; + } + + /** + * Gets shippingMethod + * + * @return string|null + */ + public function getShippingMethod() + { + return $this->container['shippingMethod']; + } + + /** + * Sets shippingMethod + * + * @param string|null $shippingMethod Ship method to be used for shipping the order. + * + * @return self + */ + public function setShippingMethod($shippingMethod) + { + $this->container['shippingMethod'] = $shippingMethod; + + return $this; + } + + /** + * Gets trackingNumber + * + * @return string + */ + public function getTrackingNumber() + { + return $this->container['trackingNumber']; + } + + /** + * Sets trackingNumber + * + * @param string $trackingNumber The tracking number used to obtain tracking and delivery information. + * + * @return self + */ + public function setTrackingNumber($trackingNumber) + { + $this->container['trackingNumber'] = $trackingNumber; + + return $this; + } + + /** + * Gets shipDate + * + * @return \DateTime + */ + public function getShipDate() + { + return $this->container['shipDate']; + } + + /** + * Sets shipDate + * + * @param \DateTime $shipDate The shipping date for the package. Must be in ISO-8601 date/time format. + * + * @return self + */ + public function setShipDate($shipDate) + { + $this->container['shipDate'] = $shipDate; + + return $this; + } + + /** + * Gets shipFromSupplySourceId + * + * @return string|null + */ + public function getShipFromSupplySourceId() + { + return $this->container['shipFromSupplySourceId']; + } + + /** + * Sets shipFromSupplySourceId + * + * @param string|null $shipFromSupplySourceId The unique identifier of the supply source. + * + * @return self + */ + public function setShipFromSupplySourceId($shipFromSupplySourceId) + { + $this->container['shipFromSupplySourceId'] = $shipFromSupplySourceId; + + return $this; + } + + /** + * Gets orderItems + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentOrderItemV0[] + */ + public function getOrderItems() + { + return $this->container['orderItems']; + } + + /** + * Sets orderItems + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\ConfirmShipmentOrderItemV0[] $orderItems A list of order items. + * + * @return self + */ + public function setOrderItems($orderItems) + { + $this->container['orderItems'] = $orderItems; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/PaymentExecutionDetailItemV0.php b/src/OrdersApiV0/Model/PaymentExecutionDetailItemV0.php index c3e8353..d5e6044 100644 --- a/src/OrdersApiV0/Model/PaymentExecutionDetailItemV0.php +++ b/src/OrdersApiV0/Model/PaymentExecutionDetailItemV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class PaymentExecutionDetailItemV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/PointsGrantedDetailV0.php b/src/OrdersApiV0/Model/PointsGrantedDetailV0.php index 8980b5c..369ccf6 100644 --- a/src/OrdersApiV0/Model/PointsGrantedDetailV0.php +++ b/src/OrdersApiV0/Model/PointsGrantedDetailV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class PointsGrantedDetailV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/PreferredDeliveryTimeV0.php b/src/OrdersApiV0/Model/PreferredDeliveryTimeV0.php new file mode 100644 index 0000000..0ae88c4 --- /dev/null +++ b/src/OrdersApiV0/Model/PreferredDeliveryTimeV0.php @@ -0,0 +1,345 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class PreferredDeliveryTimeV0 implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PreferredDeliveryTime'; + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'businessHours' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\BusinessHoursV0[]', + 'exceptionDates' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\ExceptionDatesV0[]', + ]; + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'businessHours' => null, + 'exceptionDates' => null, + ]; + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'businessHours' => 'BusinessHours', + 'exceptionDates' => 'ExceptionDates', + ]; + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'businessHours' => 'setBusinessHours', + 'exceptionDates' => 'setExceptionDates', + ]; + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'businessHours' => 'getBusinessHours', + 'exceptionDates' => 'getExceptionDates', + ]; + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['businessHours'] = $data['businessHours'] ?? null; + $this->container['exceptionDates'] = $data['exceptionDates'] ?? null; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Gets businessHours + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\BusinessHoursV0[]|null + */ + public function getBusinessHours() + { + return $this->container['businessHours']; + } + + /** + * Sets businessHours + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\BusinessHoursV0[]|null $businessHours Business hours when the business is open for deliveries. + * + * @return self + */ + public function setBusinessHours($businessHours) + { + $this->container['businessHours'] = $businessHours; + + return $this; + } + + /** + * Gets exceptionDates + * + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\ExceptionDatesV0[]|null + */ + public function getExceptionDates() + { + return $this->container['exceptionDates']; + } + + /** + * Sets exceptionDates + * + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\ExceptionDatesV0[]|null $exceptionDates Dates when the business is closed in the next 30 days. + * + * @return self + */ + public function setExceptionDates($exceptionDates) + { + $this->container['exceptionDates'] = $exceptionDates; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/src/OrdersApiV0/Model/ProductInfoDetailV0.php b/src/OrdersApiV0/Model/ProductInfoDetailV0.php index a817afe..c4e5aa7 100644 --- a/src/OrdersApiV0/Model/ProductInfoDetailV0.php +++ b/src/OrdersApiV0/Model/ProductInfoDetailV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ProductInfoDetailV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -165,10 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/RegulatedInformationFieldV0.php b/src/OrdersApiV0/Model/RegulatedInformationFieldV0.php index 4b1380f..e6265ac 100644 --- a/src/OrdersApiV0/Model/RegulatedInformationFieldV0.php +++ b/src/OrdersApiV0/Model/RegulatedInformationFieldV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class RegulatedInformationFieldV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -182,9 +182,9 @@ public function getModelName() const FIELD_TYPE_TEXT = 'Text'; const FIELD_TYPE_FILE_ATTACHMENT = 'FileAttachment'; - - + + /** * Gets allowable values of the enum * @@ -197,7 +197,7 @@ public function getFieldTypeAllowableValues() self::FIELD_TYPE_FILE_ATTACHMENT, ]; } - + /** * Associative array for storing property values @@ -302,7 +302,7 @@ public function getFieldLabel() /** * Sets fieldLabel * - * @param string $fieldLabel The human-readable name for the field. + * @param string $fieldLabel The name for the field. * * @return self */ @@ -326,7 +326,7 @@ public function getFieldType() /** * Sets fieldType * - * @param string $fieldType The type of field the field. + * @param string $fieldType The type of field. * * @return self */ @@ -360,7 +360,7 @@ public function getFieldValue() /** * Sets fieldValue * - * @param string $fieldValue The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain an URL to download the attachment here. + * @param string $fieldValue The content of the field as collected in regulatory form. Note that FileAttachment type fields will contain a URL to download the attachment here. * * @return self */ diff --git a/src/OrdersApiV0/Model/RegulatedInformationV0.php b/src/OrdersApiV0/Model/RegulatedInformationV0.php index 1b4a011..fd347d6 100644 --- a/src/OrdersApiV0/Model/RegulatedInformationV0.php +++ b/src/OrdersApiV0/Model/RegulatedInformationV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class RegulatedInformationV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -165,10 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/RegulatedOrderVerificationStatusV0.php b/src/OrdersApiV0/Model/RegulatedOrderVerificationStatusV0.php index 11ba976..83a8dd9 100644 --- a/src/OrdersApiV0/Model/RegulatedOrderVerificationStatusV0.php +++ b/src/OrdersApiV0/Model/RegulatedOrderVerificationStatusV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class RegulatedOrderVerificationStatusV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -62,12 +62,12 @@ class RegulatedOrderVerificationStatusV0 implements ModelInterface, ArrayAccess, * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', + 'status' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\VerificationStatusV0', 'requiresMerchantAction' => 'bool', - 'validRejectionReasons' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\RejectionReasonV0[]', - 'rejectionReason' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\RejectionReasonV0', - 'reviewDate' => 'string', - 'externalReviewerId' => 'string' + 'validRejectionReasons' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\RejectionReasonV0[]', + 'rejectionReason' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\RejectionReasonV0', + 'reviewDate' => 'string', + 'externalReviewerId' => 'string', ]; /** @@ -190,30 +190,9 @@ public function getModelName() return self::$openAPIModelName; } - const STATUS_PENDING = 'Pending'; - const STATUS_APPROVED = 'Approved'; - const STATUS_REJECTED = 'Rejected'; - const STATUS_EXPIRED = 'Expired'; - const STATUS_CANCELLED = 'Cancelled'; - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStatusAllowableValues() - { - return [ - self::STATUS_PENDING, - self::STATUS_APPROVED, - self::STATUS_REJECTED, - self::STATUS_EXPIRED, - self::STATUS_CANCELLED, - ]; - } - + + /** * Associative array for storing property values @@ -250,15 +229,6 @@ public function listInvalidProperties() if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } - $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'status', must be one of '%s'", - $this->container['status'], - implode("', '", $allowedValues) - ); - } - if ($this->container['requiresMerchantAction'] === null) { $invalidProperties[] = "'requiresMerchantAction' can't be null"; } @@ -279,11 +249,10 @@ public function valid() return count($this->listInvalidProperties()) === 0; } - /** * Gets status * - * @return string + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\VerificationStatusV0 */ public function getStatus() { @@ -293,22 +262,12 @@ public function getStatus() /** * Sets status * - * @param string $status The verification status of the order. + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\VerificationStatusV0 $status status * * @return self */ public function setStatus($status) { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } $this->container['status'] = $status; return $this; @@ -327,7 +286,7 @@ public function getRequiresMerchantAction() /** * Sets requiresMerchantAction * - * @param bool $requiresMerchantAction Whether the regulated information provided in the order requires a review by the merchant. + * @param bool $requiresMerchantAction When true, the regulated information provided in the order requires a review by the merchant. * * @return self */ diff --git a/src/OrdersApiV0/Model/RejectionReasonV0.php b/src/OrdersApiV0/Model/RejectionReasonV0.php index f203bc2..d74d752 100644 --- a/src/OrdersApiV0/Model/RejectionReasonV0.php +++ b/src/OrdersApiV0/Model/RejectionReasonV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class RejectionReasonV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * @@ -260,7 +256,7 @@ public function getRejectionReasonDescription() /** * Sets rejectionReasonDescription * - * @param string $rejectionReasonDescription The human-readable description of this rejection reason. + * @param string $rejectionReasonDescription The description of this rejection reason. * * @return self */ diff --git a/src/OrdersApiV0/Model/ShipmentStatusV0.php b/src/OrdersApiV0/Model/ShipmentStatusV0.php index 1b8c5fd..c2a6a07 100644 --- a/src/OrdersApiV0/Model/ShipmentStatusV0.php +++ b/src/OrdersApiV0/Model/ShipmentStatusV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -34,7 +34,7 @@ * ShipmentStatusV0 Class Doc Comment * * @category Class - * @description the status of the shipment of the order to be updated + * @description The shipment status to apply. * @package Webcom\Amazon\Rest\OrdersApiV0 * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -47,7 +47,7 @@ class ShipmentStatusV0 const READY_FOR_PICKUP = 'ReadyForPickup'; const PICKED_UP = 'PickedUp'; const REFUSED_PICKUP = 'RefusedPickup'; - + /** * Gets allowable values of the enum * @return string[] diff --git a/src/OrdersApiV0/Model/TaxClassificationV0.php b/src/OrdersApiV0/Model/TaxClassificationV0.php index 55be88b..84191db 100644 --- a/src/OrdersApiV0/Model/TaxClassificationV0.php +++ b/src/OrdersApiV0/Model/TaxClassificationV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class TaxClassificationV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -170,10 +170,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/TaxCollectionV0.php b/src/OrdersApiV0/Model/TaxCollectionV0.php index 0d986bb..625660b 100644 --- a/src/OrdersApiV0/Model/TaxCollectionV0.php +++ b/src/OrdersApiV0/Model/TaxCollectionV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class TaxCollectionV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -172,9 +172,7 @@ public function getModelName() const MODEL_MARKETPLACE_FACILITATOR = 'MarketplaceFacilitator'; const RESPONSIBLE_PARTY_AMAZON_SERVICES_INC = 'Amazon Services, Inc.'; - - /** * Gets allowable values of the enum * @@ -186,7 +184,7 @@ public function getModelAllowableValues() self::MODEL_MARKETPLACE_FACILITATOR, ]; } - + /** * Gets allowable values of the enum * @@ -198,7 +196,6 @@ public function getResponsiblePartyAllowableValues() self::RESPONSIBLE_PARTY_AMAZON_SERVICES_INC, ]; } - /** * Associative array for storing property values diff --git a/src/OrdersApiV0/Model/UpdateShipmentStatusErrorResponseV0.php b/src/OrdersApiV0/Model/UpdateShipmentStatusErrorResponseV0.php index a4e038b..aea07df 100644 --- a/src/OrdersApiV0/Model/UpdateShipmentStatusErrorResponseV0.php +++ b/src/OrdersApiV0/Model/UpdateShipmentStatusErrorResponseV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class UpdateShipmentStatusErrorResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -165,10 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/UpdateShipmentStatusRequestV0.php b/src/OrdersApiV0/Model/UpdateShipmentStatusRequestV0.php index 1b2f789..cf80764 100644 --- a/src/OrdersApiV0/Model/UpdateShipmentStatusRequestV0.php +++ b/src/OrdersApiV0/Model/UpdateShipmentStatusRequestV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -37,13 +37,13 @@ * UpdateShipmentStatusRequestV0 Class Doc Comment * * @category Class - * @description Request to update the status of shipment of an order. + * @description The request body for the updateShipmentStatus operation. * @package Webcom\Amazon\Rest\OrdersApiV0 * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class UpdateShipmentStatusRequestV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -175,9 +175,9 @@ public function getModelName() return self::$openAPIModelName; } - - + + /** * Associative array for storing property values @@ -242,7 +242,7 @@ public function getMarketplaceId() /** * Sets marketplaceId * - * @param string $marketplaceId the unobfuscated marketplace ID + * @param string $marketplaceId The unobfuscated marketplace identifier. * * @return self */ @@ -290,7 +290,7 @@ public function getOrderItems() /** * Sets orderItems * - * @param object[]|null $orderItems the list of order items and quantities when the seller wants to partially update the shipment status of the order + * @param object[]|null $orderItems For partial shipment status updates, the list of order items and quantities to be updated. * * @return self */ diff --git a/src/OrdersApiV0/Model/UpdateVerificationStatusErrorResponseV0.php b/src/OrdersApiV0/Model/UpdateVerificationStatusErrorResponseV0.php index 96b8f22..84daf73 100644 --- a/src/OrdersApiV0/Model/UpdateVerificationStatusErrorResponseV0.php +++ b/src/OrdersApiV0/Model/UpdateVerificationStatusErrorResponseV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class UpdateVerificationStatusErrorResponseV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -165,10 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/UpdateVerificationStatusRequestBodyV0.php b/src/OrdersApiV0/Model/UpdateVerificationStatusRequestBodyV0.php index fc10c15..4ff31fa 100644 --- a/src/OrdersApiV0/Model/UpdateVerificationStatusRequestBodyV0.php +++ b/src/OrdersApiV0/Model/UpdateVerificationStatusRequestBodyV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -43,7 +43,7 @@ * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class UpdateVerificationStatusRequestBodyV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -62,9 +62,9 @@ class UpdateVerificationStatusRequestBodyV0 implements ModelInterface, ArrayAcce * @var string[] */ protected static $openAPITypes = [ - 'status' => 'string', + 'status' => '\Webcom\Amazon\Rest\OrdersApiV0\Model\VerificationStatusV0', 'externalReviewerId' => 'string', - 'rejectionReasonId' => 'string' + 'rejectionReasonId' => 'string', ]; /** @@ -175,24 +175,9 @@ public function getModelName() return self::$openAPIModelName; } - const STATUS_APPROVED = 'Approved'; - const STATUS_REJECTED = 'Rejected'; - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getStatusAllowableValues() - { - return [ - self::STATUS_APPROVED, - self::STATUS_REJECTED, - ]; - } - + + /** * Associative array for storing property values @@ -226,15 +211,6 @@ public function listInvalidProperties() if ($this->container['status'] === null) { $invalidProperties[] = "'status' can't be null"; } - $allowedValues = $this->getStatusAllowableValues(); - if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'status', must be one of '%s'", - $this->container['status'], - implode("', '", $allowedValues) - ); - } - if ($this->container['externalReviewerId'] === null) { $invalidProperties[] = "'externalReviewerId' can't be null"; } @@ -252,11 +228,10 @@ public function valid() return count($this->listInvalidProperties()) === 0; } - /** * Gets status * - * @return string + * @return \Webcom\Amazon\Rest\OrdersApiV0\Model\VerificationStatusV0 */ public function getStatus() { @@ -266,22 +241,12 @@ public function getStatus() /** * Sets status * - * @param string $status The new verification status of the order. + * @param \Webcom\Amazon\Rest\OrdersApiV0\Model\VerificationStatusV0 $status status * * @return self */ public function setStatus($status) { - $allowedValues = $this->getStatusAllowableValues(); - if (!in_array($status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'status', must be one of '%s'", - $status, - implode("', '", $allowedValues) - ) - ); - } $this->container['status'] = $status; return $this; diff --git a/src/OrdersApiV0/Model/UpdateVerificationStatusRequestV0.php b/src/OrdersApiV0/Model/UpdateVerificationStatusRequestV0.php index 1046453..cfe1fc7 100644 --- a/src/OrdersApiV0/Model/UpdateVerificationStatusRequestV0.php +++ b/src/OrdersApiV0/Model/UpdateVerificationStatusRequestV0.php @@ -13,10 +13,10 @@ /** * Selling Partner API for Orders * - * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. + * The Selling Partner API for Orders helps you programmatically retrieve order information. These APIs let you develop fast, flexible, custom applications in areas like order synchronization, order research, and demand-based decision support tools. The Orders API only supports orders that are less than two years old. Orders more than two years old will not show in the API response. * * The version of the OpenAPI document: v0 - * + * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.0.0 */ @@ -37,13 +37,13 @@ * UpdateVerificationStatusRequestV0 Class Doc Comment * * @category Class - * @description Request to update the verification status of an order containing regulated products. + * @description The request body for the updateVerificationStatus operation. * @package Webcom\Amazon\Rest\OrdersApiV0 * @author OpenAPI Generator team * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class UpdateVerificationStatusRequestV0 implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -165,10 +165,6 @@ public function getModelName() return self::$openAPIModelName; } - - - - /** * Associative array for storing property values * diff --git a/src/OrdersApiV0/Model/VerificationStatusV0.php b/src/OrdersApiV0/Model/VerificationStatusV0.php new file mode 100644 index 0000000..c4aa677 --- /dev/null +++ b/src/OrdersApiV0/Model/VerificationStatusV0.php @@ -0,0 +1,70 @@ +