From 3d16861afeedfa2f59e3e73e749730586f079702 Mon Sep 17 00:00:00 2001 From: Stefan Neuhaus Date: Fri, 16 Oct 2020 14:33:38 +0200 Subject: [PATCH] Updated code & docs according to OpenAPI changes --- docs/Api/OrdersV0Api.md | 12 ++++++------ docs/Api/SolicitationsApi.md | 4 ++-- docs/Model/Event.md | 2 +- lib/Models/Event.php | 3 +++ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/Api/OrdersV0Api.md b/docs/Api/OrdersV0Api.md index ac2507ea..a05a5570 100644 --- a/docs/Api/OrdersV0Api.md +++ b/docs/Api/OrdersV0Api.md @@ -16,7 +16,7 @@ Method | HTTP request | Description -Returns the order indicated by the specified order ID. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0055 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the order indicated by the specified order ID. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. ### Example ```php @@ -65,7 +65,7 @@ No authorization required -Returns the shipping address for the order indicated by the specified order ID. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0055 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns the shipping address for the order indicated by the specified order ID. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. ### Example ```php @@ -114,7 +114,7 @@ No authorization required -Returns buyer information for the order indicated by the specified order ID. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0055 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns buyer information for the order indicated by the specified order ID. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. ### Example ```php @@ -163,7 +163,7 @@ No authorization required -Returns detailed order item information for the order indicated by the specified order ID. If NextToken is provided, it's used to retrieve the next page of order items. Note: When an order is in the Pending state (the order has been placed but payment has not been authorized), the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or promotions for the order items in the order. After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped, Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes, shipping charges, gift status and promotions for the order items in the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0055 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns detailed order item information for the order indicated by the specified order ID. If NextToken is provided, it's used to retrieve the next page of order items. Note: When an order is in the Pending state (the order has been placed but payment has not been authorized), the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or promotions for the order items in the order. After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped, Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes, shipping charges, gift status and promotions for the order items in the order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. ### Example ```php @@ -214,7 +214,7 @@ No authorization required -Returns buyer information in the order items of the order indicated by the specified order ID. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0055 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns buyer information in the order items of the order indicated by the specified order ID. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. ### Example ```php @@ -265,7 +265,7 @@ No authorization required -Returns orders created or updated during the time frame indicated by the specified parameters. You can also apply a range of filtering criteria to narrow the list of orders returned. If NextToken is present, that will be used to retrieve the orders instead of other criteria. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.0055 | 20 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns orders created or updated during the time frame indicated by the specified parameters. You can also apply a range of filtering criteria to narrow the list of orders returned. If NextToken is present, that will be used to retrieve the orders instead of other criteria. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. ### Example ```php diff --git a/docs/Api/SolicitationsApi.md b/docs/Api/SolicitationsApi.md index bbfa85db..3a97a317 100644 --- a/docs/Api/SolicitationsApi.md +++ b/docs/Api/SolicitationsApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description -Sends a solicitation to a buyer asking for seller feedback and a product review for the specified order. Send only one productReviewAndSellerFeedback or free form proactive message per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Sends a solicitation to a buyer asking for seller feedback and a product review for the specified order. Send only one productReviewAndSellerFeedback or free form proactive message per order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. ### Example ```php @@ -63,7 +63,7 @@ No authorization required -Returns a list of solicitation types that are available for an order that you specify. A solicitation type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a solicitation. Currently only the productReviewAndSellerFeedbackSolicitation solicitation type is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. +Returns a list of solicitation types that are available for an order that you specify. A solicitation type is represented by an actions object, which contains a path and query parameter(s). You can use the path and parameter(s) to call an operation that sends a solicitation. Currently only the productReviewAndSellerFeedbackSolicitation solicitation type is available. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 15 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. ### Example ```php diff --git a/docs/Model/Event.md b/docs/Model/Event.md index ecfdafa5..07836779 100644 --- a/docs/Model/Event.md +++ b/docs/Model/Event.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **event_code** | [**\Swagger\Client\Models\EventCode**](EventCode.md) | | -**event_time** | [**\DateTime**](\DateTime.md) | The date and time of an event for a shipment. | [optional] +**event_time** | [**\DateTime**](\DateTime.md) | The date and time of an event for a shipment. | **location** | [**\Swagger\Client\Models\Location**](Location.md) | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/lib/Models/Event.php b/lib/Models/Event.php index 9058f7b7..9e9e2202 100644 --- a/lib/Models/Event.php +++ b/lib/Models/Event.php @@ -197,6 +197,9 @@ public function listInvalidProperties() if ($this->container['event_code'] === null) { $invalidProperties[] = "'event_code' can't be null"; } + if ($this->container['event_time'] === null) { + $invalidProperties[] = "'event_time' can't be null"; + } return $invalidProperties; }