diff --git a/README.md b/README.md index ff7e11e6..5c1973b3 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is an API Binding in PHP for the new Amazon Selling Partner API. This library is based on the output of `swagger-codegen` with the [OpenAPI files provided by Amazon](https://github.com/amzn/selling-partner-api-models/tree/main/models) and has been modified by the contributors. -The purpose of this package is to have an easy way of getting started with the Amazon Selling Partner API through a simple composer package +The purpose of this package is to have an easy way of getting started with the Amazon Selling Partner API through a simple composer package. # Requirements @@ -25,7 +25,7 @@ composer require clousale/amazon-sp-api-php You can find detailed documentation for this PHP Library in the [`docs/Api` directory](https://github.com/clousale/amazon-sp-api-php/tree/master/docs/Api) (Please note: Namespaces and other classes could have been changed) -You can find general information about the Amazon Selling Partner API on [the official Amazon Developer Website](https://developer.amazonservices.com) +You can find general information about the Amazon Selling Partner API on [the official Amazon Developer Website](https://developer.amazonservices.com). # Examples @@ -33,7 +33,7 @@ These are simple examples, just to show you how to get started calling the API. ## IAM Role -For when you entered the IAM Role ARN in your developer profile +For when you entered the IAM Role ARN in your developer profile: ```php client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -95,7 +74,7 @@ public function getConfig() * @param string $mws_auth_token The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. (required) * * @throws InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return GetAuthorizationCodeResponse */ @@ -116,7 +95,7 @@ public function getAuthorizationCode($selling_partner_id, $developer_id, $mws_au * @param string $mws_auth_token The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. (required) * * @throws InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Authorization\GetAuthorizationCodeResponse, HTTP status code, HTTP response headers (array of strings) */ diff --git a/lib/Api/CatalogApi.php b/lib/Api/CatalogApi.php index 95ce4aab..9715364a 100644 --- a/lib/Api/CatalogApi.php +++ b/lib/Api/CatalogApi.php @@ -1,13 +1,8 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); diff --git a/lib/Api/FbaInboundApi.php b/lib/Api/FbaInboundApi.php index 876d89c5..40e44725 100644 --- a/lib/Api/FbaInboundApi.php +++ b/lib/Api/FbaInboundApi.php @@ -1,34 +1,20 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(Configuration $config) + { + $this->client = new Client(); + $this->config = $config; + $this->headerSelector = new HeaderSelector(); } /** * @return Configuration */ - public function getConfig() { + public function getConfig() + { return $this->config; } /** - * Operation confirmPreorder + * Operation confirmPreorder. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmPreorderResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmPreorderResponse */ - public function confirmPreorder($shipment_id, $need_by_date, $marketplace_id) { + public function confirmPreorder($shipment_id, $need_by_date, $marketplace_id) + { list($response) = $this->confirmPreorderWithHttpInfo($shipment_id, $need_by_date, $marketplace_id); + return $response; } /** - * Operation confirmPreorderWithHttpInfo + * Operation confirmPreorderWithHttpInfo. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmPreorderResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmPreorderResponse, HTTP status code, HTTP response headers (array of strings) */ - public function confirmPreorderWithHttpInfo($shipment_id, $need_by_date, $marketplace_id) { + public function confirmPreorderWithHttpInfo($shipment_id, $need_by_date, $marketplace_id) + { $request = $this->confirmPreorderRequest($shipment_id, $need_by_date, $marketplace_id); + return $this->sendRequest($request, ConfirmPreorderResponse::class); } /** - * Operation confirmPreorderAsync - * + * Operation confirmPreorderAsync. * + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function confirmPreorderAsync($shipment_id, $need_by_date, $marketplace_id) { + public function confirmPreorderAsync($shipment_id, $need_by_date, $marketplace_id) + { return $this->confirmPreorderAsyncWithHttpInfo($shipment_id, $need_by_date, $marketplace_id) ->then( function ($response) { @@ -149,51 +134,48 @@ function ($response) { } /** - * Operation confirmPreorderAsyncWithHttpInfo + * Operation confirmPreorderAsyncWithHttpInfo. * + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function confirmPreorderAsyncWithHttpInfo($shipment_id, $need_by_date, $marketplace_id) { + public function confirmPreorderAsyncWithHttpInfo($shipment_id, $need_by_date, $marketplace_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmPreorderResponse'; $request = $this->confirmPreorderRequest($shipment_id, $need_by_date, $marketplace_id); + return $this->sendRequestAsync($request, ConfirmPreorderResponse::class); } /** - * Create request for operation 'confirmPreorder' + * Create request for operation 'confirmPreorder'. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \DateTime $need_by_date Date that the shipment must arrive at the Amazon fulfillment center to avoid delivery promise breaks for pre-ordered items. Must be in YYYY-MM-DD format. The response to the getPreorderInfo operation returns this value. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function confirmPreorderRequest($shipment_id, $need_by_date, $marketplace_id) { + protected function confirmPreorderRequest($shipment_id, $need_by_date, $marketplace_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling confirmPreorder' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling confirmPreorder'); } // verify the required parameter 'need_by_date' is set - if ($need_by_date === null || (is_array($need_by_date) && count($need_by_date) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $need_by_date when calling confirmPreorder' - ); + if (null === $need_by_date || (is_array($need_by_date) && 0 === count($need_by_date))) { + throw new \InvalidArgumentException('Missing the required parameter $need_by_date when calling confirmPreorder'); } // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling confirmPreorder' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling confirmPreorder'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/preorder/confirm'; @@ -204,64 +186,71 @@ protected function confirmPreorderRequest($shipment_id, $need_by_date, $marketpl $multipart = false; // query params - if ($need_by_date !== null) { + if (null !== $need_by_date) { $queryParams['NeedByDate'] = ObjectSerializer::toQueryValue($need_by_date); } // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'PUT', $httpBody); } /** - * Operation confirmTransport + * Operation confirmTransport. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmTransportResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmTransportResponse */ - public function confirmTransport($shipment_id) { + public function confirmTransport($shipment_id) + { list($response) = $this->confirmTransportWithHttpInfo($shipment_id); + return $response; } /** - * Operation confirmTransportWithHttpInfo + * Operation confirmTransportWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmTransportResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmTransportResponse, HTTP status code, HTTP response headers (array of strings) */ - public function confirmTransportWithHttpInfo($shipment_id) { + public function confirmTransportWithHttpInfo($shipment_id) + { $request = $this->confirmTransportRequest($shipment_id); + return $this->sendRequest($request, ConfirmTransportResponse::class); } /** - * Operation confirmTransportAsync - * - * + * Operation confirmTransportAsync. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function confirmTransportAsync($shipment_id) { + public function confirmTransportAsync($shipment_id) + { return $this->confirmTransportAsyncWithHttpInfo($shipment_id) ->then( function ($response) { @@ -271,35 +260,36 @@ function ($response) { } /** - * Operation confirmTransportAsyncWithHttpInfo - * - * + * Operation confirmTransportAsyncWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function confirmTransportAsyncWithHttpInfo($shipment_id) { + public function confirmTransportAsyncWithHttpInfo($shipment_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\ConfirmTransportResponse'; $request = $this->confirmTransportRequest($shipment_id); + return $this->sendRequestAsync($request, ConfirmTransportResponse::class); } /** - * Create request for operation 'confirmTransport' + * Create request for operation 'confirmTransport'. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function confirmTransportRequest($shipment_id) { + protected function confirmTransportRequest($shipment_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling confirmTransport' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling confirmTransport'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport/confirm'; @@ -309,61 +299,67 @@ protected function confirmTransportRequest($shipment_id) { $httpBody = ''; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } /** - * Operation createInboundShipment + * Operation createInboundShipment. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse */ - public function createInboundShipment($body, $shipment_id) { + public function createInboundShipment($body, $shipment_id) + { list($response) = $this->createInboundShipmentWithHttpInfo($body, $shipment_id); + return $response; } /** - * Operation createInboundShipmentWithHttpInfo + * Operation createInboundShipmentWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse, HTTP status code, HTTP response headers (array of strings) */ - public function createInboundShipmentWithHttpInfo($body, $shipment_id) { + public function createInboundShipmentWithHttpInfo($body, $shipment_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse'; $request = $this->createInboundShipmentRequest($body, $shipment_id); + return $this->sendRequest($request, InboundShipmentResponse::class); } /** - * Operation createInboundShipmentAsync + * Operation createInboundShipmentAsync. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function createInboundShipmentAsync($body, $shipment_id) { + public function createInboundShipmentAsync($body, $shipment_id) + { return $this->createInboundShipmentAsyncWithHttpInfo($body, $shipment_id) ->then( function ($response) { @@ -373,17 +369,17 @@ function ($response) { } /** - * Operation createInboundShipmentAsyncWithHttpInfo - * + * Operation createInboundShipmentAsyncWithHttpInfo. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function createInboundShipmentAsyncWithHttpInfo($body, $shipment_id) { + public function createInboundShipmentAsyncWithHttpInfo($body, $shipment_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse'; $request = $this->createInboundShipmentRequest($body, $shipment_id); @@ -391,26 +387,24 @@ public function createInboundShipmentAsyncWithHttpInfo($body, $shipment_id) { } /** - * Create request for operation 'createInboundShipment' + * Create request for operation 'createInboundShipment'. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function createInboundShipmentRequest($body, $shipment_id) { + protected function createInboundShipmentRequest($body, $shipment_id) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling createInboundShipment' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling createInboundShipment'); } // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling createInboundShipment' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling createInboundShipment'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}'; @@ -420,57 +414,63 @@ protected function createInboundShipmentRequest($body, $shipment_id) { $httpBody = $body; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } /** - * Operation createInboundShipmentPlan + * Operation createInboundShipmentPlan. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CreateInboundShipmentPlanRequest $body body (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CreateInboundShipmentPlanResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CreateInboundShipmentPlanResponse */ - public function createInboundShipmentPlan($body) { + public function createInboundShipmentPlan($body) + { list($response) = $this->createInboundShipmentPlanWithHttpInfo($body); + return $response; } /** - * Operation createInboundShipmentPlanWithHttpInfo + * Operation createInboundShipmentPlanWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CreateInboundShipmentPlanRequest $body (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CreateInboundShipmentPlanResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CreateInboundShipmentPlanResponse, HTTP status code, HTTP response headers (array of strings) */ - public function createInboundShipmentPlanWithHttpInfo($body) { + public function createInboundShipmentPlanWithHttpInfo($body) + { $request = $this->createInboundShipmentPlanRequest($body); + return $this->sendRequest($request, CreateInboundShipmentPlanResponse::class); } /** - * Operation createInboundShipmentPlanAsync - * - * + * Operation createInboundShipmentPlanAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CreateInboundShipmentPlanRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createInboundShipmentPlanAsync($body) { + public function createInboundShipmentPlanAsync($body) + { return $this->createInboundShipmentPlanAsyncWithHttpInfo($body) ->then( function ($response) { @@ -480,34 +480,35 @@ function ($response) { } /** - * Operation createInboundShipmentPlanAsyncWithHttpInfo - * - * + * Operation createInboundShipmentPlanAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CreateInboundShipmentPlanRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createInboundShipmentPlanAsyncWithHttpInfo($body) { + public function createInboundShipmentPlanAsyncWithHttpInfo($body) + { $request = $this->createInboundShipmentPlanRequest($body); + return $this->sendRequestAsync($request, CreateInboundShipmentPlanResponse::class); } /** - * Create request for operation 'createInboundShipmentPlan' + * Create request for operation 'createInboundShipmentPlan'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\CreateInboundShipmentPlanRequest $body (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function createInboundShipmentPlanRequest($body) { + protected function createInboundShipmentPlanRequest($body) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling createInboundShipmentPlan' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling createInboundShipmentPlan'); } $resourcePath = '/fba/inbound/v0/plans'; @@ -521,45 +522,51 @@ protected function createInboundShipmentPlanRequest($body) { } /** - * Operation estimateTransport + * Operation estimateTransport. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\EstimateTransportResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\EstimateTransportResponse */ - public function estimateTransport($shipment_id) { + public function estimateTransport($shipment_id) + { list($response) = $this->estimateTransportWithHttpInfo($shipment_id); + return $response; } /** - * Operation estimateTransportWithHttpInfo + * Operation estimateTransportWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\EstimateTransportResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\EstimateTransportResponse, HTTP status code, HTTP response headers (array of strings) */ - public function estimateTransportWithHttpInfo($shipment_id) { + public function estimateTransportWithHttpInfo($shipment_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\EstimateTransportResponse'; $request = $this->estimateTransportRequest($shipment_id); + return $this->sendRequest($request, EstimateTransportResponse::class); } /** - * Operation estimateTransportAsync - * - * + * Operation estimateTransportAsync. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function estimateTransportAsync($shipment_id) { + public function estimateTransportAsync($shipment_id) + { return $this->estimateTransportAsyncWithHttpInfo($shipment_id) ->then( function ($response) { @@ -569,34 +576,35 @@ function ($response) { } /** - * Operation estimateTransportAsyncWithHttpInfo - * - * + * Operation estimateTransportAsyncWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function estimateTransportAsyncWithHttpInfo($shipment_id) { + public function estimateTransportAsyncWithHttpInfo($shipment_id) + { $request = $this->estimateTransportRequest($shipment_id); + return $this->sendRequestAsync($request, EstimateTransportResponse::class); } /** - * Create request for operation 'estimateTransport' + * Create request for operation 'estimateTransport'. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function estimateTransportRequest($shipment_id) { + protected function estimateTransportRequest($shipment_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling estimateTransport' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling estimateTransport'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport/estimate'; @@ -606,57 +614,63 @@ protected function estimateTransportRequest($shipment_id) { $httpBody = ''; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } /** - * Operation getBillOfLading + * Operation getBillOfLading. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetBillOfLadingResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetBillOfLadingResponse */ - public function getBillOfLading($shipment_id) { + public function getBillOfLading($shipment_id) + { list($response) = $this->getBillOfLadingWithHttpInfo($shipment_id); + return $response; } /** - * Operation getBillOfLadingWithHttpInfo + * Operation getBillOfLadingWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetBillOfLadingResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetBillOfLadingResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getBillOfLadingWithHttpInfo($shipment_id) { + public function getBillOfLadingWithHttpInfo($shipment_id) + { $request = $this->getBillOfLadingRequest($shipment_id); + return $this->sendRequest($request, GetBillOfLadingResponse::class); } /** - * Operation getBillOfLadingAsync - * - * + * Operation getBillOfLadingAsync. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBillOfLadingAsync($shipment_id) { + public function getBillOfLadingAsync($shipment_id) + { return $this->getBillOfLadingAsyncWithHttpInfo($shipment_id) ->then( function ($response) { @@ -666,35 +680,36 @@ function ($response) { } /** - * Operation getBillOfLadingAsyncWithHttpInfo - * - * + * Operation getBillOfLadingAsyncWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getBillOfLadingAsyncWithHttpInfo($shipment_id) { + public function getBillOfLadingAsyncWithHttpInfo($shipment_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetBillOfLadingResponse'; $request = $this->getBillOfLadingRequest($shipment_id); + return $this->sendRequestAsync($request, GetBillOfLadingResponse::class); } /** - * Create request for operation 'getBillOfLading' + * Create request for operation 'getBillOfLading'. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getBillOfLadingRequest($shipment_id) { + protected function getBillOfLadingRequest($shipment_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling getBillOfLading' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling getBillOfLading'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/billOfLading'; @@ -704,63 +719,69 @@ protected function getBillOfLadingRequest($shipment_id) { $httpBody = ''; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getInboundGuidance + * Operation getInboundGuidance. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: SellerSKU is qualified by the SellerId, which is included with every Selling Partner API operation that you submit. If you specify a SellerSKU that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetInboundGuidanceResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetInboundGuidanceResponse */ - public function getInboundGuidance($marketplace_id, $seller_sku_list = null, $asin_list = null) { + public function getInboundGuidance($marketplace_id, $seller_sku_list = null, $asin_list = null) + { list($response) = $this->getInboundGuidanceWithHttpInfo($marketplace_id, $seller_sku_list, $asin_list); + return $response; } /** - * Operation getInboundGuidanceWithHttpInfo + * Operation getInboundGuidanceWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: SellerSKU is qualified by the SellerId, which is included with every Selling Partner API operation that you submit. If you specify a SellerSKU that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetInboundGuidanceResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetInboundGuidanceResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getInboundGuidanceWithHttpInfo($marketplace_id, $seller_sku_list = null, $asin_list = null) { + public function getInboundGuidanceWithHttpInfo($marketplace_id, $seller_sku_list = null, $asin_list = null) + { $request = $this->getInboundGuidanceRequest($marketplace_id, $seller_sku_list, $asin_list); + return $this->sendRequest($request, GetInboundGuidanceResponse::class); } /** - * Operation getInboundGuidanceAsync + * Operation getInboundGuidanceAsync. * - * - * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: SellerSKU is qualified by the SellerId, which is included with every Selling Partner API operation that you submit. If you specify a SellerSKU that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getInboundGuidanceAsync($marketplace_id, $seller_sku_list = null, $asin_list = null) { + public function getInboundGuidanceAsync($marketplace_id, $seller_sku_list = null, $asin_list = null) + { return $this->getInboundGuidanceAsyncWithHttpInfo($marketplace_id, $seller_sku_list, $asin_list) ->then( function ($response) { @@ -770,38 +791,39 @@ function ($response) { } /** - * Operation getInboundGuidanceAsyncWithHttpInfo - * - * + * Operation getInboundGuidanceAsyncWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: SellerSKU is qualified by the SellerId, which is included with every Selling Partner API operation that you submit. If you specify a SellerSKU that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getInboundGuidanceAsyncWithHttpInfo($marketplace_id, $seller_sku_list = null, $asin_list = null) { + public function getInboundGuidanceAsyncWithHttpInfo($marketplace_id, $seller_sku_list = null, $asin_list = null) + { $request = $this->getInboundGuidanceRequest($marketplace_id, $seller_sku_list, $asin_list); + return $this->sendRequestAsync($request, GetInboundGuidanceResponse::class); } /** - * Create request for operation 'getInboundGuidance' + * Create request for operation 'getInboundGuidance'. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: SellerSKU is qualified by the SellerId, which is included with every Selling Partner API operation that you submit. If you specify a SellerSKU that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want inbound guidance for shipment to Amazon's fulfillment network. Note: If you specify a ASIN that identifies a variation parent ASIN, this operation returns an error. A variation parent ASIN represents a generic product that cannot be sold. Variation child ASINs represent products that have specific characteristics (such as size and color) and can be sold. (optional) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getInboundGuidanceRequest($marketplace_id, $seller_sku_list = null, $asin_list = null) { + protected function getInboundGuidanceRequest($marketplace_id, $seller_sku_list = null, $asin_list = null) + { // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling getInboundGuidance' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getInboundGuidance'); } $resourcePath = '/fba/inbound/v0/itemsGuidance'; @@ -812,80 +834,87 @@ protected function getInboundGuidanceRequest($marketplace_id, $seller_sku_list = $multipart = false; // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } // query params if (is_array($seller_sku_list)) { $seller_sku_list = ObjectSerializer::serializeCollection($seller_sku_list, 'csv', true); } - if ($seller_sku_list !== null) { + if (null !== $seller_sku_list) { $queryParams['SellerSKUList'] = ObjectSerializer::toQueryValue($seller_sku_list); } // query params if (is_array($asin_list)) { $asin_list = ObjectSerializer::serializeCollection($asin_list, 'csv', true); } - if ($asin_list !== null) { + if (null !== $asin_list) { $queryParams['ASINList'] = ObjectSerializer::toQueryValue($asin_list); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getLabels + * Operation getLabels. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) - * @param string $label_type The type of labels requested. (required) - * @param int $number_of_packages The number of packages in the shipment. (optional) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) + * @param string $label_type The type of labels requested. (required) + * @param int $number_of_packages The number of packages in the shipment. (optional) * @param string[] $package_labels_to_print A list of identifiers that specify packages for which you want package labels printed. Must match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code. (optional) - * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) + * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetLabelsResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetLabelsResponse */ - public function getLabels($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) { + public function getLabels($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) + { list($response) = $this->getLabelsWithHttpInfo($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets); + return $response; } /** - * Operation getLabelsWithHttpInfo + * Operation getLabelsWithHttpInfo. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) - * @param string $label_type The type of labels requested. (required) - * @param int $number_of_packages The number of packages in the shipment. (optional) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) + * @param string $label_type The type of labels requested. (required) + * @param int $number_of_packages The number of packages in the shipment. (optional) * @param string[] $package_labels_to_print A list of identifiers that specify packages for which you want package labels printed. Must match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code. (optional) - * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) + * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetLabelsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetLabelsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getLabelsWithHttpInfo($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) { + public function getLabelsWithHttpInfo($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) + { $request = $this->getLabelsRequest($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets); + return $this->sendRequest($request, GetLabelsResponse::class); } /** - * Operation getLabelsAsync + * Operation getLabelsAsync. * - * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) - * @param string $label_type The type of labels requested. (required) - * @param int $number_of_packages The number of packages in the shipment. (optional) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) + * @param string $label_type The type of labels requested. (required) + * @param int $number_of_packages The number of packages in the shipment. (optional) * @param string[] $package_labels_to_print A list of identifiers that specify packages for which you want package labels printed. Must match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code. (optional) - * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) + * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLabelsAsync($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) { + public function getLabelsAsync($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) + { return $this->getLabelsAsyncWithHttpInfo($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets) ->then( function ($response) { @@ -895,56 +924,53 @@ function ($response) { } /** - * Operation getLabelsAsyncWithHttpInfo - * + * Operation getLabelsAsyncWithHttpInfo. * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) - * @param string $label_type The type of labels requested. (required) - * @param int $number_of_packages The number of packages in the shipment. (optional) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) + * @param string $label_type The type of labels requested. (required) + * @param int $number_of_packages The number of packages in the shipment. (optional) * @param string[] $package_labels_to_print A list of identifiers that specify packages for which you want package labels printed. Must match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code. (optional) - * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) + * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getLabelsAsyncWithHttpInfo($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) { + public function getLabelsAsyncWithHttpInfo($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) + { $request = $this->getLabelsRequest($shipment_id, $page_type, $label_type, $number_of_packages, $package_labels_to_print, $number_of_pallets); + return $this->sendRequestAsync($request, GetLabelsResponse::class); } /** - * Create request for operation 'getLabels' + * Create request for operation 'getLabels'. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) - * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) - * @param string $label_type The type of labels requested. (required) - * @param int $number_of_packages The number of packages in the shipment. (optional) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $page_type The page type to use to print the labels. Submitting a PageType value that is not supported in your marketplace returns an error. (required) + * @param string $label_type The type of labels requested. (required) + * @param int $number_of_packages The number of packages in the shipment. (optional) * @param string[] $package_labels_to_print A list of identifiers that specify packages for which you want package labels printed. Must match CartonId values previously passed using the FBA Inbound Shipment Carton Information Feed. If not, the operation returns the IncorrectPackageIdentifier error code. (optional) - * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) + * @param int $number_of_pallets The number of pallets in the shipment. This returns four identical labels for each pallet. (optional) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getLabelsRequest($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) { + protected function getLabelsRequest($shipment_id, $page_type, $label_type, $number_of_packages = null, $package_labels_to_print = null, $number_of_pallets = null) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling getLabels' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling getLabels'); } // verify the required parameter 'page_type' is set - if ($page_type === null || (is_array($page_type) && count($page_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $page_type when calling getLabels' - ); + if (null === $page_type || (is_array($page_type) && 0 === count($page_type))) { + throw new \InvalidArgumentException('Missing the required parameter $page_type when calling getLabels'); } // verify the required parameter 'label_type' is set - if ($label_type === null || (is_array($label_type) && count($label_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $label_type when calling getLabels' - ); + if (null === $label_type || (is_array($label_type) && 0 === count($label_type))) { + throw new \InvalidArgumentException('Missing the required parameter $label_type when calling getLabels'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/labels'; @@ -955,82 +981,89 @@ protected function getLabelsRequest($shipment_id, $page_type, $label_type, $numb $multipart = false; // query params - if ($page_type !== null) { + if (null !== $page_type) { $queryParams['PageType'] = ObjectSerializer::toQueryValue($page_type); } // query params - if ($label_type !== null) { + if (null !== $label_type) { $queryParams['LabelType'] = ObjectSerializer::toQueryValue($label_type); } // query params - if ($number_of_packages !== null) { + if (null !== $number_of_packages) { $queryParams['NumberOfPackages'] = ObjectSerializer::toQueryValue($number_of_packages); } // query params if (is_array($package_labels_to_print)) { $package_labels_to_print = ObjectSerializer::serializeCollection($package_labels_to_print, 'csv', true); } - if ($package_labels_to_print !== null) { + if (null !== $package_labels_to_print) { $queryParams['PackageLabelsToPrint'] = ObjectSerializer::toQueryValue($package_labels_to_print); } // query params - if ($number_of_pallets !== null) { + if (null !== $number_of_pallets) { $queryParams['NumberOfPallets'] = ObjectSerializer::toQueryValue($number_of_pallets); } // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getPreorderInfo + * Operation getPreorderInfo. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPreorderInfoResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPreorderInfoResponse */ - public function getPreorderInfo($shipment_id, $marketplace_id) { + public function getPreorderInfo($shipment_id, $marketplace_id) + { list($response) = $this->getPreorderInfoWithHttpInfo($shipment_id, $marketplace_id); + return $response; } /** - * Operation getPreorderInfoWithHttpInfo + * Operation getPreorderInfoWithHttpInfo. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPreorderInfoResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPreorderInfoResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getPreorderInfoWithHttpInfo($shipment_id, $marketplace_id) { + public function getPreorderInfoWithHttpInfo($shipment_id, $marketplace_id) + { $request = $this->getPreorderInfoRequest($shipment_id, $marketplace_id); + return $this->sendRequest($request, GetPreorderInfoResponse::class); } /** - * Operation getPreorderInfoAsync - * + * Operation getPreorderInfoAsync. * - * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPreorderInfoAsync($shipment_id, $marketplace_id) { + public function getPreorderInfoAsync($shipment_id, $marketplace_id) + { return $this->getPreorderInfoAsyncWithHttpInfo($shipment_id, $marketplace_id) ->then( function ($response) { @@ -1040,43 +1073,42 @@ function ($response) { } /** - * Operation getPreorderInfoAsyncWithHttpInfo - * - * + * Operation getPreorderInfoAsyncWithHttpInfo. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getPreorderInfoAsyncWithHttpInfo($shipment_id, $marketplace_id) { + public function getPreorderInfoAsyncWithHttpInfo($shipment_id, $marketplace_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPreorderInfoResponse'; $request = $this->getPreorderInfoRequest($shipment_id, $marketplace_id); + return $this->sendRequestAsync($request, GetPreorderInfoResponse::class); } /** - * Create request for operation 'getPreorderInfo' + * Create request for operation 'getPreorderInfo'. * - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace the shipment is tied to. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getPreorderInfoRequest($shipment_id, $marketplace_id) { + protected function getPreorderInfoRequest($shipment_id, $marketplace_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling getPreorderInfo' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling getPreorderInfo'); } // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling getPreorderInfo' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getPreorderInfo'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/preorder'; @@ -1087,66 +1119,73 @@ protected function getPreorderInfoRequest($shipment_id, $marketplace_id) { $multipart = false; // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getPrepInstructions + * Operation getPrepInstructions. * - * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) - * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) + * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) + * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPrepInstructionsResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPrepInstructionsResponse */ - public function getPrepInstructions($ship_to_country_code, $seller_sku_list = null, $asin_list = null) { + public function getPrepInstructions($ship_to_country_code, $seller_sku_list = null, $asin_list = null) + { list($response) = $this->getPrepInstructionsWithHttpInfo($ship_to_country_code, $seller_sku_list, $asin_list); + return $response; } /** - * Operation getPrepInstructionsWithHttpInfo + * Operation getPrepInstructionsWithHttpInfo. * - * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) - * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) + * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) + * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPrepInstructionsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetPrepInstructionsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getPrepInstructionsWithHttpInfo($ship_to_country_code, $seller_sku_list = null, $asin_list = null) { + public function getPrepInstructionsWithHttpInfo($ship_to_country_code, $seller_sku_list = null, $asin_list = null) + { $request = $this->getPrepInstructionsRequest($ship_to_country_code, $seller_sku_list, $asin_list); + return $this->sendRequest($request, GetPrepInstructionsResponse::class); } /** - * Operation getPrepInstructionsAsync - * + * Operation getPrepInstructionsAsync. * + * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) + * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) * - * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) - * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getPrepInstructionsAsync($ship_to_country_code, $seller_sku_list = null, $asin_list = null) { + public function getPrepInstructionsAsync($ship_to_country_code, $seller_sku_list = null, $asin_list = null) + { return $this->getPrepInstructionsAsyncWithHttpInfo($ship_to_country_code, $seller_sku_list, $asin_list) ->then( function ($response) { @@ -1156,38 +1195,39 @@ function ($response) { } /** - * Operation getPrepInstructionsAsyncWithHttpInfo + * Operation getPrepInstructionsAsyncWithHttpInfo. * + * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) + * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) * - * - * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) - * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getPrepInstructionsAsyncWithHttpInfo($ship_to_country_code, $seller_sku_list = null, $asin_list = null) { + public function getPrepInstructionsAsyncWithHttpInfo($ship_to_country_code, $seller_sku_list = null, $asin_list = null) + { $request = $this->getPrepInstructionsRequest($ship_to_country_code, $seller_sku_list, $asin_list); + return $this->sendRequestAsync($request, GetPrepInstructionsResponse::class); } /** - * Create request for operation 'getPrepInstructions' + * Create request for operation 'getPrepInstructions'. * - * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) - * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) - * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) + * @param string $ship_to_country_code The country code of the country to which the items will be shipped. Note that labeling requirements and item preparation instructions can vary by country. (required) + * @param string[] $seller_sku_list A list of SellerSKU values. Used to identify items for which you want labeling requirements and item preparation instructions for shipment to Amazon's fulfillment network. The SellerSKU is qualified by the Seller ID, which is included with every call to the Seller Partner API. Note: Include seller SKUs that you have used to list items on Amazon's retail website. If you include a seller SKU that you have never used to list an item on Amazon's retail website, the seller SKU is returned in the InvalidSKUList property in the response. (optional) + * @param string[] $asin_list A list of ASIN values. Used to identify items for which you want item preparation instructions to help with item sourcing decisions. Note: ASINs must be included in the product catalog for at least one of the marketplaces that the seller participates in. Any ASIN that is not included in the product catalog for at least one of the marketplaces that the seller participates in is returned in the InvalidASINList property in the response. You can find out which marketplaces a seller participates in by calling the getMarketplaceParticipations operation in the Selling Partner API for Sellers. (optional) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getPrepInstructionsRequest($ship_to_country_code, $seller_sku_list = null, $asin_list = null) { + protected function getPrepInstructionsRequest($ship_to_country_code, $seller_sku_list = null, $asin_list = null) + { // verify the required parameter 'ship_to_country_code' is set - if ($ship_to_country_code === null || (is_array($ship_to_country_code) && count($ship_to_country_code) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $ship_to_country_code when calling getPrepInstructions' - ); + if (null === $ship_to_country_code || (is_array($ship_to_country_code) && 0 === count($ship_to_country_code))) { + throw new \InvalidArgumentException('Missing the required parameter $ship_to_country_code when calling getPrepInstructions'); } $resourcePath = '/fba/inbound/v0/prepInstructions'; @@ -1198,21 +1238,21 @@ protected function getPrepInstructionsRequest($ship_to_country_code, $seller_sku $multipart = false; // query params - if ($ship_to_country_code !== null) { + if (null !== $ship_to_country_code) { $queryParams['ShipToCountryCode'] = ObjectSerializer::toQueryValue($ship_to_country_code); } // query params if (is_array($seller_sku_list)) { $seller_sku_list = ObjectSerializer::serializeCollection($seller_sku_list, 'csv', true); } - if ($seller_sku_list !== null) { + if (null !== $seller_sku_list) { $queryParams['SellerSKUList'] = ObjectSerializer::toQueryValue($seller_sku_list); } // query params if (is_array($asin_list)) { $asin_list = ObjectSerializer::serializeCollection($asin_list, 'csv', true); } - if ($asin_list !== null) { + if (null !== $asin_list) { $queryParams['ASINList'] = ObjectSerializer::toQueryValue($asin_list); } @@ -1220,56 +1260,62 @@ protected function getPrepInstructionsRequest($ship_to_country_code, $seller_sku } /** - * Operation getShipmentItems + * Operation getShipmentItems. * - * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) * @param \DateTime $last_updated_before A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResponse */ - public function getShipmentItems($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + public function getShipmentItems($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { list($response) = $this->getShipmentItemsWithHttpInfo($query_type, $marketplace_id, $last_updated_after, $last_updated_before, $next_token); + return $response; } /** - * Operation getShipmentItemsWithHttpInfo + * Operation getShipmentItemsWithHttpInfo. * - * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) * @param \DateTime $last_updated_before A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getShipmentItemsWithHttpInfo($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + public function getShipmentItemsWithHttpInfo($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { $request = $this->getShipmentItemsRequest($query_type, $marketplace_id, $last_updated_after, $last_updated_before, $next_token); + return $this->sendRequest($request, GetShipmentItemsResponse::class); } /** - * Operation getShipmentItemsAsync - * + * Operation getShipmentItemsAsync. * - * - * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) * @param \DateTime $last_updated_before A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getShipmentItemsAsync($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + public function getShipmentItemsAsync($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { return $this->getShipmentItemsAsyncWithHttpInfo($query_type, $marketplace_id, $last_updated_after, $last_updated_before, $next_token) ->then( function ($response) { @@ -1279,48 +1325,47 @@ function ($response) { } /** - * Operation getShipmentItemsAsyncWithHttpInfo - * + * Operation getShipmentItemsAsyncWithHttpInfo. * - * - * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) * @param \DateTime $last_updated_before A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getShipmentItemsAsyncWithHttpInfo($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + public function getShipmentItemsAsyncWithHttpInfo($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { $request = $this->getShipmentItemsRequest($query_type, $marketplace_id, $last_updated_after, $last_updated_before, $next_token); + return $this->sendRequestAsync($request, GetShipmentItemsResponse::class); } /** - * Create request for operation 'getShipmentItems' + * Create request for operation 'getShipmentItems'. * - * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $query_type Indicates whether items are returned using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or using NextToken, which continues returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param \DateTime $last_updated_after A date used for selecting inbound shipment items that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) * @param \DateTime $last_updated_before A date used for selecting inbound shipment items that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getShipmentItemsRequest($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + protected function getShipmentItemsRequest($query_type, $marketplace_id, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { // verify the required parameter 'query_type' is set - if ($query_type === null || (is_array($query_type) && count($query_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $query_type when calling getShipmentItems' - ); + if (null === $query_type || (is_array($query_type) && 0 === count($query_type))) { + throw new \InvalidArgumentException('Missing the required parameter $query_type when calling getShipmentItems'); } // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling getShipmentItems' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getShipmentItems'); } $resourcePath = '/fba/inbound/v0/shipmentItems'; @@ -1331,70 +1376,77 @@ protected function getShipmentItemsRequest($query_type, $marketplace_id, $last_u $multipart = false; // query params - if ($last_updated_after !== null) { + if (null !== $last_updated_after) { $queryParams['LastUpdatedAfter'] = ObjectSerializer::toQueryValue($last_updated_after); } // query params - if ($last_updated_before !== null) { + if (null !== $last_updated_before) { $queryParams['LastUpdatedBefore'] = ObjectSerializer::toQueryValue($last_updated_before); } // query params - if ($query_type !== null) { + if (null !== $query_type) { $queryParams['QueryType'] = ObjectSerializer::toQueryValue($query_type); } // query params - if ($next_token !== null) { + if (null !== $next_token) { $queryParams['NextToken'] = ObjectSerializer::toQueryValue($next_token); } // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getShipmentItemsByShipmentId + * Operation getShipmentItemsByShipmentId. * - * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) + * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResponse */ - public function getShipmentItemsByShipmentId($shipment_id, $marketplace_id) { + public function getShipmentItemsByShipmentId($shipment_id, $marketplace_id) + { list($response) = $this->getShipmentItemsByShipmentIdWithHttpInfo($shipment_id, $marketplace_id); + return $response; } /** - * Operation getShipmentItemsByShipmentIdWithHttpInfo + * Operation getShipmentItemsByShipmentIdWithHttpInfo. * - * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) + * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentItemsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getShipmentItemsByShipmentIdWithHttpInfo($shipment_id, $marketplace_id) { + public function getShipmentItemsByShipmentIdWithHttpInfo($shipment_id, $marketplace_id) + { $request = $this->getShipmentItemsByShipmentIdRequest($shipment_id, $marketplace_id); + return $this->sendRequest($request, GetShipmentItemsResponse::class); } /** - * Operation getShipmentItemsByShipmentIdAsync - * - * + * Operation getShipmentItemsByShipmentIdAsync. * - * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) + * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getShipmentItemsByShipmentIdAsync($shipment_id, $marketplace_id) { + public function getShipmentItemsByShipmentIdAsync($shipment_id, $marketplace_id) + { return $this->getShipmentItemsByShipmentIdAsyncWithHttpInfo($shipment_id, $marketplace_id) ->then( function ($response) { @@ -1404,42 +1456,41 @@ function ($response) { } /** - * Operation getShipmentItemsByShipmentIdAsyncWithHttpInfo - * + * Operation getShipmentItemsByShipmentIdAsyncWithHttpInfo. * - * - * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) + * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getShipmentItemsByShipmentIdAsyncWithHttpInfo($shipment_id, $marketplace_id) { + public function getShipmentItemsByShipmentIdAsyncWithHttpInfo($shipment_id, $marketplace_id) + { $request = $this->getShipmentItemsByShipmentIdRequest($shipment_id, $marketplace_id); + return $this->sendRequestAsync($request, GetShipmentItemsResponse::class); } /** - * Create request for operation 'getShipmentItemsByShipmentId' + * Create request for operation 'getShipmentItemsByShipmentId'. * - * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) + * @param string $shipment_id A shipment identifier used for selecting items in a specific inbound shipment. (required) * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getShipmentItemsByShipmentIdRequest($shipment_id, $marketplace_id) { + protected function getShipmentItemsByShipmentIdRequest($shipment_id, $marketplace_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling getShipmentItemsByShipmentId' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling getShipmentItemsByShipmentId'); } // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling getShipmentItemsByShipmentId' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getShipmentItemsByShipmentId'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/items'; @@ -1450,78 +1501,85 @@ protected function getShipmentItemsByShipmentIdRequest($shipment_id, $marketplac $multipart = false; // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getShipments + * Operation getShipments. * - * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) - * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) - * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) + * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) + * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentsResponse * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentsResponse */ - public function getShipments($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + public function getShipments($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { list($response) = $this->getShipmentsWithHttpInfo($query_type, $marketplace_id, $shipment_status_list, $shipment_id_list, $last_updated_after, $last_updated_before, $next_token); + return $response; } /** - * Operation getShipmentsWithHttpInfo + * Operation getShipmentsWithHttpInfo. * - * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) - * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) - * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) + * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) + * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetShipmentsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getShipmentsWithHttpInfo($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + public function getShipmentsWithHttpInfo($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { $request = $this->getShipmentsRequest($query_type, $marketplace_id, $shipment_status_list, $shipment_id_list, $last_updated_after, $last_updated_before, $next_token); + return $this->sendRequest($request, GetShipmentsResponse::class); } /** - * Operation getShipmentsAsync + * Operation getShipmentsAsync. * + * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) + * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) + * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * - * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) - * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) - * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getShipmentsAsync($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + public function getShipmentsAsync($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { return $this->getShipmentsAsyncWithHttpInfo($query_type, $marketplace_id, $shipment_status_list, $shipment_id_list, $last_updated_after, $last_updated_before, $next_token) ->then( function ($response) { @@ -1531,52 +1589,51 @@ function ($response) { } /** - * Operation getShipmentsAsyncWithHttpInfo - * + * Operation getShipmentsAsyncWithHttpInfo. * + * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) + * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) + * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) - * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) - * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getShipmentsAsyncWithHttpInfo($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + public function getShipmentsAsyncWithHttpInfo($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { $request = $this->getShipmentsRequest($query_type, $marketplace_id, $shipment_status_list, $shipment_id_list, $last_updated_after, $last_updated_before, $next_token); + return $this->sendRequestAsync($request, GetShipmentsResponse::class); } /** - * Create request for operation 'getShipments' + * Create request for operation 'getShipments'. * - * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) - * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) - * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) - * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) - * @param string $next_token A string token returned in the response to your previous request. (optional) + * @param string $query_type Indicates whether shipments are returned using shipment information (by providing the ShipmentStatusList or ShipmentIdList parameters), using a date range (by providing the LastUpdatedAfter and LastUpdatedBefore parameters), or by using NextToken to continue returning items specified in a previous request. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace where the product would be stored. (required) + * @param string[] $shipment_status_list A list of ShipmentStatus values. Used to select shipments with a current status that matches the status values that you specify. (optional) + * @param string[] $shipment_id_list A list of shipment IDs used to select the shipments that you want. If both ShipmentStatusList and ShipmentIdList are specified, only shipments that match both parameters are returned. (optional) + * @param \DateTime $last_updated_after A date used for selecting inbound shipments that were last updated after (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param \DateTime $last_updated_before A date used for selecting inbound shipments that were last updated before (or at) a specified time. The selection includes updates made by Amazon and by the seller. (optional) + * @param string $next_token A string token returned in the response to your previous request. (optional) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getShipmentsRequest($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) { + protected function getShipmentsRequest($query_type, $marketplace_id, $shipment_status_list = null, $shipment_id_list = null, $last_updated_after = null, $last_updated_before = null, $next_token = null) + { // verify the required parameter 'query_type' is set - if ($query_type === null || (is_array($query_type) && count($query_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $query_type when calling getShipments' - ); + if (null === $query_type || (is_array($query_type) && 0 === count($query_type))) { + throw new \InvalidArgumentException('Missing the required parameter $query_type when calling getShipments'); } // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling getShipments' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getShipments'); } $resourcePath = '/fba/inbound/v0/shipments'; @@ -1590,34 +1647,34 @@ protected function getShipmentsRequest($query_type, $marketplace_id, $shipment_s if (is_array($shipment_status_list)) { $shipment_status_list = ObjectSerializer::serializeCollection($shipment_status_list, 'csv', true); } - if ($shipment_status_list !== null) { + if (null !== $shipment_status_list) { $queryParams['ShipmentStatusList'] = ObjectSerializer::toQueryValue($shipment_status_list); } // query params if (is_array($shipment_id_list)) { $shipment_id_list = ObjectSerializer::serializeCollection($shipment_id_list, 'csv', true); } - if ($shipment_id_list !== null) { + if (null !== $shipment_id_list) { $queryParams['ShipmentIdList'] = ObjectSerializer::toQueryValue($shipment_id_list); } // query params - if ($last_updated_after !== null) { + if (null !== $last_updated_after) { $queryParams['LastUpdatedAfter'] = ObjectSerializer::toQueryValue($last_updated_after); } // query params - if ($last_updated_before !== null) { + if (null !== $last_updated_before) { $queryParams['LastUpdatedBefore'] = ObjectSerializer::toQueryValue($last_updated_before); } // query params - if ($query_type !== null) { + if (null !== $query_type) { $queryParams['QueryType'] = ObjectSerializer::toQueryValue($query_type); } // query params - if ($next_token !== null) { + if (null !== $next_token) { $queryParams['NextToken'] = ObjectSerializer::toQueryValue($next_token); } // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } @@ -1625,44 +1682,50 @@ protected function getShipmentsRequest($query_type, $marketplace_id, $shipment_s } /** - * Operation getTransportDetails + * Operation getTransportDetails. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetTransportDetailsResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetTransportDetailsResponse */ - public function getTransportDetails($shipment_id) { + public function getTransportDetails($shipment_id) + { list($response) = $this->getTransportDetailsWithHttpInfo($shipment_id); + return $response; } /** - * Operation getTransportDetailsWithHttpInfo + * Operation getTransportDetailsWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetTransportDetailsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\GetTransportDetailsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getTransportDetailsWithHttpInfo($shipment_id) { + public function getTransportDetailsWithHttpInfo($shipment_id) + { $request = $this->getTransportDetailsRequest($shipment_id); + return $this->sendRequest($request, GetTransportDetailsResponse::class); } /** - * Operation getTransportDetailsAsync - * - * + * Operation getTransportDetailsAsync. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTransportDetailsAsync($shipment_id) { + public function getTransportDetailsAsync($shipment_id) + { return $this->getTransportDetailsAsyncWithHttpInfo($shipment_id) ->then( function ($response) { @@ -1672,34 +1735,35 @@ function ($response) { } /** - * Operation getTransportDetailsAsyncWithHttpInfo - * - * + * Operation getTransportDetailsAsyncWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTransportDetailsAsyncWithHttpInfo($shipment_id) { + public function getTransportDetailsAsyncWithHttpInfo($shipment_id) + { $request = $this->getTransportDetailsRequest($shipment_id); + return $this->sendRequestAsync($request, GetTransportDetailsResponse::class); } /** - * Create request for operation 'getTransportDetails' + * Create request for operation 'getTransportDetails'. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getTransportDetailsRequest($shipment_id) { + protected function getTransportDetailsRequest($shipment_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling getTransportDetails' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling getTransportDetails'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport'; @@ -1709,60 +1773,66 @@ protected function getTransportDetailsRequest($shipment_id) { $httpBody = ''; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation putTransportDetails + * Operation putTransportDetails. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsResponse */ - public function putTransportDetails($body, $shipment_id) { + public function putTransportDetails($body, $shipment_id) + { list($response) = $this->putTransportDetailsWithHttpInfo($body, $shipment_id); + return $response; } /** - * Operation putTransportDetailsWithHttpInfo + * Operation putTransportDetailsWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function putTransportDetailsWithHttpInfo($body, $shipment_id) { + public function putTransportDetailsWithHttpInfo($body, $shipment_id) + { $request = $this->putTransportDetailsRequest($body, $shipment_id); + return $this->sendRequest($request, PutTransportDetailsResponse::class); } /** - * Operation putTransportDetailsAsync + * Operation putTransportDetailsAsync. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function putTransportDetailsAsync($body, $shipment_id) { + public function putTransportDetailsAsync($body, $shipment_id) + { return $this->putTransportDetailsAsyncWithHttpInfo($body, $shipment_id) ->then( function ($response) { @@ -1772,42 +1842,41 @@ function ($response) { } /** - * Operation putTransportDetailsAsyncWithHttpInfo - * + * Operation putTransportDetailsAsyncWithHttpInfo. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function putTransportDetailsAsyncWithHttpInfo($body, $shipment_id) { + public function putTransportDetailsAsyncWithHttpInfo($body, $shipment_id) + { $request = $this->putTransportDetailsRequest($body, $shipment_id); + return $this->sendRequestAsync($request, PutTransportDetailsResponse::class); } /** - * Create request for operation 'putTransportDetails' + * Create request for operation 'putTransportDetails'. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\PutTransportDetailsRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function putTransportDetailsRequest($body, $shipment_id) { + protected function putTransportDetailsRequest($body, $shipment_id) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling putTransportDetails' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling putTransportDetails'); } // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling putTransportDetails' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling putTransportDetails'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport'; @@ -1818,58 +1887,65 @@ protected function putTransportDetailsRequest($body, $shipment_id) { $multipart = false; // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'PUT', $httpBody); } /** - * Operation updateInboundShipment + * Operation updateInboundShipment. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse */ - public function updateInboundShipment($body, $shipment_id) { + public function updateInboundShipment($body, $shipment_id) + { list($response) = $this->updateInboundShipmentWithHttpInfo($body, $shipment_id); + return $response; } /** - * Operation updateInboundShipmentWithHttpInfo + * Operation updateInboundShipmentWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentResponse, HTTP status code, HTTP response headers (array of strings) */ - public function updateInboundShipmentWithHttpInfo($body, $shipment_id) { + public function updateInboundShipmentWithHttpInfo($body, $shipment_id) + { $request = $this->updateInboundShipmentRequest($body, $shipment_id); + return $this->sendRequest($request, InboundShipmentResponse::class); } /** - * Operation updateInboundShipmentAsync - * + * Operation updateInboundShipmentAsync. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function updateInboundShipmentAsync($body, $shipment_id) { + public function updateInboundShipmentAsync($body, $shipment_id) + { return $this->updateInboundShipmentAsyncWithHttpInfo($body, $shipment_id) ->then( function ($response) { @@ -1879,42 +1955,41 @@ function ($response) { } /** - * Operation updateInboundShipmentAsyncWithHttpInfo - * + * Operation updateInboundShipmentAsyncWithHttpInfo. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function updateInboundShipmentAsyncWithHttpInfo($body, $shipment_id) { + public function updateInboundShipmentAsyncWithHttpInfo($body, $shipment_id) + { $request = $this->updateInboundShipmentRequest($body, $shipment_id); + return $this->sendRequestAsync($request, InboundShipmentResponse::class); } /** - * Create request for operation 'updateInboundShipment' + * Create request for operation 'updateInboundShipment'. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) - * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\InboundShipmentRequest $body (required) + * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function updateInboundShipmentRequest($body, $shipment_id) { + protected function updateInboundShipmentRequest($body, $shipment_id) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling updateInboundShipment' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling updateInboundShipment'); } // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling updateInboundShipment' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling updateInboundShipment'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}'; @@ -1924,57 +1999,63 @@ protected function updateInboundShipmentRequest($body, $shipment_id) { $httpBody = $body; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'PUT', $httpBody); } /** - * Operation voidTransport + * Operation voidTransport. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\VoidTransportResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\VoidTransportResponse */ - public function voidTransport($shipment_id) { + public function voidTransport($shipment_id) + { list($response) = $this->voidTransportWithHttpInfo($shipment_id); + return $response; } /** - * Operation voidTransportWithHttpInfo + * Operation voidTransportWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\VoidTransportResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound\VoidTransportResponse, HTTP status code, HTTP response headers (array of strings) */ - public function voidTransportWithHttpInfo($shipment_id) { + public function voidTransportWithHttpInfo($shipment_id) + { $request = $this->voidTransportRequest($shipment_id); + return $this->sendRequest($request, VoidTransportResponse::class); } /** - * Operation voidTransportAsync - * - * + * Operation voidTransportAsync. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function voidTransportAsync($shipment_id) { + public function voidTransportAsync($shipment_id) + { return $this->voidTransportAsyncWithHttpInfo($shipment_id) ->then( function ($response) { @@ -1984,35 +2065,35 @@ function ($response) { } /** - * Operation voidTransportAsyncWithHttpInfo - * - * + * Operation voidTransportAsyncWithHttpInfo. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function voidTransportAsyncWithHttpInfo($shipment_id) { + public function voidTransportAsyncWithHttpInfo($shipment_id) + { $request = $this->voidTransportRequest($shipment_id); return $this->sendRequestAsync($request, VoidTransportResponse::class); } /** - * Create request for operation 'voidTransport' + * Create request for operation 'voidTransport'. * * @param string $shipment_id A shipment identifier originally returned by the createInboundShipmentPlan operation. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function voidTransportRequest($shipment_id) { + protected function voidTransportRequest($shipment_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling voidTransport' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling voidTransport'); } $resourcePath = '/fba/inbound/v0/shipments/{shipmentId}/transport/void'; @@ -2022,13 +2103,13 @@ protected function voidTransportRequest($shipment_id) { $httpBody = ''; $multipart = false; - // path params $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } } diff --git a/lib/Api/FbaInventoryApi.php b/lib/Api/FbaInventoryApi.php index a85b9e7e..2693de15 100644 --- a/lib/Api/FbaInventoryApi.php +++ b/lib/Api/FbaInventoryApi.php @@ -1,52 +1,33 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -86,61 +63,64 @@ public function getConfig() } /** - * Operation getInventorySummaries + * Operation getInventorySummaries. * - * @param string $granularity_type The granularity type for the inventory aggregation level. (required) - * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) - * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) - * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) - * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) - * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) - * @param string $next_token String token returned in the response of your previous request. (optional) + * @param string $granularity_type The granularity type for the inventory aggregation level. (required) + * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) + * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) + * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) + * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) + * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) + * @param string $next_token String token returned in the response of your previous request. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\GetInventorySummariesResponse */ public function getInventorySummaries($granularity_type, $granularity_id, $marketplace_ids, $details = 'false', $start_date_time = null, $seller_skus = null, $next_token = null) { list($response) = $this->getInventorySummariesWithHttpInfo($granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token); + return $response; } /** - * Operation getInventorySummariesWithHttpInfo + * Operation getInventorySummariesWithHttpInfo. * - * @param string $granularity_type The granularity type for the inventory aggregation level. (required) - * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) - * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) - * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) - * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) - * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) - * @param string $next_token String token returned in the response of your previous request. (optional) + * @param string $granularity_type The granularity type for the inventory aggregation level. (required) + * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) + * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) + * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) + * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) + * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) + * @param string $next_token String token returned in the response of your previous request. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory\GetInventorySummariesResponse, HTTP status code, HTTP response headers (array of strings) */ public function getInventorySummariesWithHttpInfo($granularity_type, $granularity_id, $marketplace_ids, $details = 'false', $start_date_time = null, $seller_skus = null, $next_token = null) { $request = $this->getInventorySummariesRequest($granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token); + return $this->sendRequest($request, GetInventorySummariesResponse::class); } /** - * Operation getInventorySummariesAsync - * - * + * Operation getInventorySummariesAsync. * - * @param string $granularity_type The granularity type for the inventory aggregation level. (required) - * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) - * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) - * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) - * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) - * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) - * @param string $next_token String token returned in the response of your previous request. (optional) + * @param string $granularity_type The granularity type for the inventory aggregation level. (required) + * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) + * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) + * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) + * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) + * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) + * @param string $next_token String token returned in the response of your previous request. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getInventorySummariesAsync($granularity_type, $granularity_id, $marketplace_ids, $details = 'false', $start_date_time = null, $seller_skus = null, $next_token = null) @@ -154,60 +134,55 @@ function ($response) { } /** - * Operation getInventorySummariesAsyncWithHttpInfo - * - * + * Operation getInventorySummariesAsyncWithHttpInfo. * - * @param string $granularity_type The granularity type for the inventory aggregation level. (required) - * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) - * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) - * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) - * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) - * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) - * @param string $next_token String token returned in the response of your previous request. (optional) + * @param string $granularity_type The granularity type for the inventory aggregation level. (required) + * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) + * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) + * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) + * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) + * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) + * @param string $next_token String token returned in the response of your previous request. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getInventorySummariesAsyncWithHttpInfo($granularity_type, $granularity_id, $marketplace_ids, $details = 'false', $start_date_time = null, $seller_skus = null, $next_token = null) { $request = $this->getInventorySummariesRequest($granularity_type, $granularity_id, $marketplace_ids, $details, $start_date_time, $seller_skus, $next_token); -return $this->sendRequestAsync($request, GetInventorySummariesResponse::class); + + return $this->sendRequestAsync($request, GetInventorySummariesResponse::class); } /** - * Create request for operation 'getInventorySummaries' + * Create request for operation 'getInventorySummaries'. * - * @param string $granularity_type The granularity type for the inventory aggregation level. (required) - * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) - * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) - * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) - * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) - * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) - * @param string $next_token String token returned in the response of your previous request. (optional) + * @param string $granularity_type The granularity type for the inventory aggregation level. (required) + * @param string $granularity_id The granularity ID for the inventory aggregation level. (required) + * @param string[] $marketplace_ids The marketplace ID for the marketplace for which to return inventory summaries. (required) + * @param bool $details true to return inventory summaries with additional summarized inventory details and quantities. Otherwise, returns inventory summaries only (default value). (optional, default to false) + * @param \DateTime $start_date_time A start date and time in ISO8601 format. If specified, all inventory summaries that have changed since then are returned. You must specify a date and time that is no earlier than 18 months prior to the date and time when you call the API. Note: Changes in inboundWorkingQuantity, inboundShippedQuantity and inboundReceivingQuantity are not detected. (optional) + * @param string[] $seller_skus A list of seller SKUs for which to return inventory summaries. You may specify up to 50 SKUs. (optional) + * @param string $next_token String token returned in the response of your previous request. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getInventorySummariesRequest($granularity_type, $granularity_id, $marketplace_ids, $details = 'false', $start_date_time = null, $seller_skus = null, $next_token = null) { // verify the required parameter 'granularity_type' is set - if ($granularity_type === null || (is_array($granularity_type) && count($granularity_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $granularity_type when calling getInventorySummaries' - ); + if (null === $granularity_type || (is_array($granularity_type) && 0 === count($granularity_type))) { + throw new \InvalidArgumentException('Missing the required parameter $granularity_type when calling getInventorySummaries'); } // verify the required parameter 'granularity_id' is set - if ($granularity_id === null || (is_array($granularity_id) && count($granularity_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $granularity_id when calling getInventorySummaries' - ); + if (null === $granularity_id || (is_array($granularity_id) && 0 === count($granularity_id))) { + throw new \InvalidArgumentException('Missing the required parameter $granularity_id when calling getInventorySummaries'); } // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling getInventorySummaries' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling getInventorySummaries'); } $resourcePath = '/fba/inventory/v1/summaries'; @@ -218,41 +193,40 @@ protected function getInventorySummariesRequest($granularity_type, $granularity_ $multipart = false; // query params - if ($details !== null) { + if (null !== $details) { $queryParams['details'] = ObjectSerializer::toQueryValue($details); } // query params - if ($granularity_type !== null) { + if (null !== $granularity_type) { $queryParams['granularityType'] = ObjectSerializer::toQueryValue($granularity_type); } // query params - if ($granularity_id !== null) { + if (null !== $granularity_id) { $queryParams['granularityId'] = ObjectSerializer::toQueryValue($granularity_id); } // query params - if ($start_date_time !== null) { + if (null !== $start_date_time) { $queryParams['startDateTime'] = ObjectSerializer::toQueryValue($start_date_time); } // query params if (is_array($seller_skus)) { $seller_skus = ObjectSerializer::serializeCollection($seller_skus, 'csv', true); } - if ($seller_skus !== null) { + if (null !== $seller_skus) { $queryParams['sellerSkus'] = ObjectSerializer::toQueryValue($seller_skus); } // query params - if ($next_token !== null) { + if (null !== $next_token) { $queryParams['nextToken'] = ObjectSerializer::toQueryValue($next_token); } // query params if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } - return $this->generateRequest($multipart,$formParams,$queryParams,$resourcePath,$headerParams,'GET', $httpBody); + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } - } diff --git a/lib/Api/FbaOutboundApi.php b/lib/Api/FbaOutboundApi.php index 8c9b680f..698bc896 100644 --- a/lib/Api/FbaOutboundApi.php +++ b/lib/Api/FbaOutboundApi.php @@ -1,13 +1,8 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -102,7 +81,7 @@ public function getConfig() * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CancelFulfillmentOrderResponse */ @@ -119,7 +98,7 @@ public function cancelFulfillmentOrder($seller_fulfillment_order_id) * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CancelFulfillmentOrderResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -206,7 +185,7 @@ protected function cancelFulfillmentOrderRequest($seller_fulfillment_order_id) * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentOrderRequest $body body (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentOrderResponse */ @@ -223,7 +202,7 @@ public function createFulfillmentOrder($body) * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentOrderRequest $body (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentOrderResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -299,10 +278,10 @@ protected function createFulfillmentOrderRequest($body) * Operation createFulfillmentReturn. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentReturnRequest $body body (required) - * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) + * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentReturnResponse */ @@ -317,10 +296,10 @@ public function createFulfillmentReturn($body, $seller_fulfillment_order_id) * Operation createFulfillmentReturnWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentReturnRequest $body (required) - * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) + * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentReturnResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -335,7 +314,7 @@ public function createFulfillmentReturnWithHttpInfo($body, $seller_fulfillment_o * Operation createFulfillmentReturnAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentReturnRequest $body (required) - * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) + * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) * * @throws \InvalidArgumentException * @@ -355,7 +334,7 @@ function ($response) { * Operation createFulfillmentReturnAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentReturnRequest $body (required) - * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) + * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) * * @throws \InvalidArgumentException * @@ -372,7 +351,7 @@ public function createFulfillmentReturnAsyncWithHttpInfo($body, $seller_fulfillm * Create request for operation 'createFulfillmentReturn'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\CreateFulfillmentReturnRequest $body (required) - * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) + * @param string $seller_fulfillment_order_id An identifier assigned by the seller to the fulfillment order at the time it was created. The seller uses their own records to find the correct SellerFulfillmentOrderId value based on the buyer's request to return items. (required) * * @throws \InvalidArgumentException * @@ -416,7 +395,7 @@ protected function createFulfillmentReturnRequest($body, $seller_fulfillment_ord * @param string $next_token A string token returned in the response to your previous request that is used to return the next response page. A value of null will return the first page. (optional) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeatureInventoryResponse */ @@ -435,7 +414,7 @@ public function getFeatureInventory($marketplace_id, $feature_name, $next_token * @param string $next_token A string token returned in the response to your previous request that is used to return the next response page. A value of null will return the first page. (optional) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeatureInventoryResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -543,7 +522,7 @@ protected function getFeatureInventoryRequest($marketplace_id, $feature_name, $n * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeatureSkuResponse */ @@ -562,7 +541,7 @@ public function getFeatureSKU($marketplace_id, $feature_name, $seller_sku) * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeatureSkuResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -676,7 +655,7 @@ protected function getFeatureSKURequest($marketplace_id, $feature_name, $seller_ * @param string $marketplace_id The marketplace for which to return the list of features. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeaturesResponse */ @@ -693,7 +672,7 @@ public function getFeatures($marketplace_id) * @param string $marketplace_id The marketplace for which to return the list of features. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFeaturesResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -776,7 +755,7 @@ protected function getFeaturesRequest($marketplace_id) * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentOrderResponse */ @@ -793,7 +772,7 @@ public function getFulfillmentOrder($seller_fulfillment_order_id) * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentOrderResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -880,7 +859,7 @@ protected function getFulfillmentOrderRequest($seller_fulfillment_order_id) * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentPreviewRequest $body body (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentPreviewResponse */ @@ -897,7 +876,7 @@ public function getFulfillmentPreview($body) * @param \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentPreviewRequest $body (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetFulfillmentPreviewResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -975,7 +954,7 @@ protected function getFulfillmentPreviewRequest($body) * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetPackageTrackingDetailsResponse */ @@ -992,7 +971,7 @@ public function getPackageTrackingDetails($package_number) * @param int $package_number The unencrypted package identifier returned by the getFulfillmentOrder operation. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\GetPackageTrackingDetailsResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -1076,7 +1055,7 @@ protected function getPackageTrackingDetailsRequest($package_number) * @param string $next_token A string token returned in the response to your previous request. (optional) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ListAllFulfillmentOrdersResponse */ @@ -1094,7 +1073,7 @@ public function listAllFulfillmentOrders($query_start_date = null, $next_token = * @param string $next_token A string token returned in the response to your previous request. (optional) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ListAllFulfillmentOrdersResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -1183,7 +1162,7 @@ protected function listAllFulfillmentOrdersRequest($query_start_date = null, $ne * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. The service uses this value to determine the marketplace for which the seller wants return reason codes. (optional) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ListReturnReasonCodesResponse */ @@ -1203,7 +1182,7 @@ public function listReturnReasonCodes($seller_sku, $language, $marketplace_id = * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. The service uses this value to determine the marketplace for which the seller wants return reason codes. (optional) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\ListReturnReasonCodesResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -1310,10 +1289,10 @@ protected function listReturnReasonCodesRequest($seller_sku, $language, $marketp * Operation updateFulfillmentOrder. * * @param UpdateFulfillmentOrderRequest $body body (required) - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) + * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return UpdateFulfillmentOrderResponse */ @@ -1328,10 +1307,10 @@ public function updateFulfillmentOrder($body, $seller_fulfillment_order_id) * Operation updateFulfillmentOrderWithHttpInfo. * * @param UpdateFulfillmentOrderRequest $body (required) - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) + * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \InvalidArgumentException - * @throws ApiException on non-2xx response + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound\UpdateFulfillmentOrderResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -1346,7 +1325,7 @@ public function updateFulfillmentOrderWithHttpInfo($body, $seller_fulfillment_or * Operation updateFulfillmentOrderAsync. * * @param UpdateFulfillmentOrderRequest $body (required) - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) + * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \InvalidArgumentException * @@ -1366,7 +1345,7 @@ function ($response) { * Operation updateFulfillmentOrderAsyncWithHttpInfo. * * @param UpdateFulfillmentOrderRequest $body (required) - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) + * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \InvalidArgumentException * @@ -1383,7 +1362,7 @@ public function updateFulfillmentOrderAsyncWithHttpInfo($body, $seller_fulfillme * Create request for operation 'updateFulfillmentOrder'. * * @param UpdateFulfillmentOrderRequest $body (required) - * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) + * @param string $seller_fulfillment_order_id The identifier assigned to the item by the seller when the fulfillment order was created. (required) * * @throws \InvalidArgumentException * diff --git a/lib/Api/FeedsApi.php b/lib/Api/FeedsApi.php index 7e997919..0277b38b 100644 --- a/lib/Api/FeedsApi.php +++ b/lib/Api/FeedsApi.php @@ -1,34 +1,20 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(Configuration $config) + { + $this->client = new Client(); + $this->config = $config; + $this->headerSelector = new HeaderSelector(); } /** * @return Configuration */ - public function getConfig() { + public function getConfig() + { return $this->config; } /** - * Operation cancelFeed + * Operation cancelFeed. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CancelFeedResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CancelFeedResponse */ - public function cancelFeed($feed_id) { + public function cancelFeed($feed_id) + { list($response) = $this->cancelFeedWithHttpInfo($feed_id); + return $response; } /** - * Operation cancelFeedWithHttpInfo + * Operation cancelFeedWithHttpInfo. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CancelFeedResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CancelFeedResponse, HTTP status code, HTTP response headers (array of strings) */ - public function cancelFeedWithHttpInfo($feed_id) { + public function cancelFeedWithHttpInfo($feed_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CancelFeedResponse'; $request = $this->cancelFeedRequest($feed_id); + return $this->sendRequest($request, CancelFeedResponse::class); } /** - * Operation cancelFeedAsync - * - * + * Operation cancelFeedAsync. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function cancelFeedAsync($feed_id) { + public function cancelFeedAsync($feed_id) + { return $this->cancelFeedAsyncWithHttpInfo($feed_id) ->then( function ($response) { @@ -137,34 +122,35 @@ function ($response) { } /** - * Operation cancelFeedAsyncWithHttpInfo - * - * + * Operation cancelFeedAsyncWithHttpInfo. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function cancelFeedAsyncWithHttpInfo($feed_id) { + public function cancelFeedAsyncWithHttpInfo($feed_id) + { $request = $this->cancelFeedRequest($feed_id); + return $this->sendRequestAsync($request, CancelFeedResponse::class); } /** - * Create request for operation 'cancelFeed' + * Create request for operation 'cancelFeed'. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function cancelFeedRequest($feed_id) { + protected function cancelFeedRequest($feed_id) + { // verify the required parameter 'feed_id' is set - if ($feed_id === null || (is_array($feed_id) && count($feed_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $feed_id when calling cancelFeed' - ); + if (null === $feed_id || (is_array($feed_id) && 0 === count($feed_id))) { + throw new \InvalidArgumentException('Missing the required parameter $feed_id when calling cancelFeed'); } $resourcePath = '/feeds/2020-09-04/feeds/{feedId}'; @@ -174,58 +160,64 @@ protected function cancelFeedRequest($feed_id) { $httpBody = ''; $multipart = false; - // path params - if ($feed_id !== null) { + if (null !== $feed_id) { $resourcePath = str_replace( - '{' . 'feedId' . '}', + '{'.'feedId'.'}', ObjectSerializer::toPathValue($feed_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'DELETE', $httpBody); } /** - * Operation createFeed + * Operation createFeed. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedSpecification $body body (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedResponse */ - public function createFeed($body) { + public function createFeed($body) + { list($response) = $this->createFeedWithHttpInfo($body); + return $response; } /** - * Operation createFeedWithHttpInfo + * Operation createFeedWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedSpecification $body (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedResponse, HTTP status code, HTTP response headers (array of strings) */ - public function createFeedWithHttpInfo($body) { + public function createFeedWithHttpInfo($body) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedResponse'; $request = $this->createFeedRequest($body); + return $this->sendRequest($request, CreateFeedResponse::class); } /** - * Operation createFeedAsync - * - * + * Operation createFeedAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedSpecification $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createFeedAsync($body) { + public function createFeedAsync($body) + { return $this->createFeedAsyncWithHttpInfo($body) ->then( function ($response) { @@ -235,34 +227,35 @@ function ($response) { } /** - * Operation createFeedAsyncWithHttpInfo - * - * + * Operation createFeedAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedSpecification $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createFeedAsyncWithHttpInfo($body) { + public function createFeedAsyncWithHttpInfo($body) + { $request = $this->createFeedRequest($body); + return $this->sendRequestAsync($request, CreateFeedResponse::class); } /** - * Create request for operation 'createFeed' + * Create request for operation 'createFeed'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedSpecification $body (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function createFeedRequest($body) { + protected function createFeedRequest($body) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling createFeed' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling createFeed'); } $resourcePath = '/feeds/2020-09-04/feeds'; @@ -276,44 +269,50 @@ protected function createFeedRequest($body) { } /** - * Operation createFeedDocument + * Operation createFeedDocument. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentSpecification $body body (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentResponse */ - public function createFeedDocument($body) { + public function createFeedDocument($body) + { list($response) = $this->createFeedDocumentWithHttpInfo($body); + return $response; } /** - * Operation createFeedDocumentWithHttpInfo + * Operation createFeedDocumentWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentSpecification $body (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentResponse, HTTP status code, HTTP response headers (array of strings) */ - public function createFeedDocumentWithHttpInfo($body) { + public function createFeedDocumentWithHttpInfo($body) + { $request = $this->createFeedDocumentRequest($body); + return $this->sendRequest($request, CreateFeedDocumentResponse::class); } /** - * Operation createFeedDocumentAsync - * - * + * Operation createFeedDocumentAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentSpecification $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createFeedDocumentAsync($body) { + public function createFeedDocumentAsync($body) + { return $this->createFeedDocumentAsyncWithHttpInfo($body) ->then( function ($response) { @@ -323,34 +322,35 @@ function ($response) { } /** - * Operation createFeedDocumentAsyncWithHttpInfo - * - * + * Operation createFeedDocumentAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentSpecification $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createFeedDocumentAsyncWithHttpInfo($body) { + public function createFeedDocumentAsyncWithHttpInfo($body) + { $request = $this->createFeedDocumentRequest($body); + return $this->sendRequestAsync($request, CreateFeedDocumentResponse::class); } /** - * Create request for operation 'createFeedDocument' + * Create request for operation 'createFeedDocument'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentSpecification $body (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function createFeedDocumentRequest($body) { + protected function createFeedDocumentRequest($body) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling createFeedDocument' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling createFeedDocument'); } $resourcePath = '/feeds/2020-09-04/documents'; @@ -359,49 +359,56 @@ protected function createFeedDocumentRequest($body) { $headerParams = []; $httpBody = $body; $multipart = false; + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } /** - * Operation getFeed + * Operation getFeed. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedResponse */ - public function getFeed($feed_id) { + public function getFeed($feed_id) + { list($response) = $this->getFeedWithHttpInfo($feed_id); + return $response; } /** - * Operation getFeedWithHttpInfo + * Operation getFeedWithHttpInfo. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getFeedWithHttpInfo($feed_id) { + public function getFeedWithHttpInfo($feed_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedResponse'; $request = $this->getFeedRequest($feed_id); + return $this->sendRequest($request, GetFeedResponse::class); } /** - * Operation getFeedAsync - * - * + * Operation getFeedAsync. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getFeedAsync($feed_id) { + public function getFeedAsync($feed_id) + { return $this->getFeedAsyncWithHttpInfo($feed_id) ->then( function ($response) { @@ -411,35 +418,36 @@ function ($response) { } /** - * Operation getFeedAsyncWithHttpInfo - * - * + * Operation getFeedAsyncWithHttpInfo. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getFeedAsyncWithHttpInfo($feed_id) { + public function getFeedAsyncWithHttpInfo($feed_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedResponse'; $request = $this->getFeedRequest($feed_id); + return $this->sendRequestAsync($request, GetFeedResponse::class); } /** - * Create request for operation 'getFeed' + * Create request for operation 'getFeed'. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getFeedRequest($feed_id) { + protected function getFeedRequest($feed_id) + { // verify the required parameter 'feed_id' is set - if ($feed_id === null || (is_array($feed_id) && count($feed_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $feed_id when calling getFeed' - ); + if (null === $feed_id || (is_array($feed_id) && 0 === count($feed_id))) { + throw new \InvalidArgumentException('Missing the required parameter $feed_id when calling getFeed'); } $resourcePath = '/feeds/2020-09-04/feeds/{feedId}'; @@ -449,57 +457,63 @@ protected function getFeedRequest($feed_id) { $httpBody = ''; $multipart = false; - // path params - if ($feed_id !== null) { + if (null !== $feed_id) { $resourcePath = str_replace( - '{' . 'feedId' . '}', + '{'.'feedId'.'}', ObjectSerializer::toPathValue($feed_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getFeedDocument + * Operation getFeedDocument. * * @param string $feed_document_id The identifier of the feed document. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedDocumentResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedDocumentResponse */ - public function getFeedDocument($feed_document_id) { + public function getFeedDocument($feed_document_id) + { list($response) = $this->getFeedDocumentWithHttpInfo($feed_document_id); + return $response; } /** - * Operation getFeedDocumentWithHttpInfo + * Operation getFeedDocumentWithHttpInfo. * * @param string $feed_document_id The identifier of the feed document. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedDocumentResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedDocumentResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getFeedDocumentWithHttpInfo($feed_document_id) { + public function getFeedDocumentWithHttpInfo($feed_document_id) + { $request = $this->getFeedDocumentRequest($feed_document_id); + return $this->sendRequest($request, GetFeedDocumentResponse::class); } /** - * Operation getFeedDocumentAsync - * - * + * Operation getFeedDocumentAsync. * * @param string $feed_document_id The identifier of the feed document. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getFeedDocumentAsync($feed_document_id) { + public function getFeedDocumentAsync($feed_document_id) + { return $this->getFeedDocumentAsyncWithHttpInfo($feed_document_id) ->then( function ($response) { @@ -509,34 +523,35 @@ function ($response) { } /** - * Operation getFeedDocumentAsyncWithHttpInfo - * - * + * Operation getFeedDocumentAsyncWithHttpInfo. * * @param string $feed_document_id The identifier of the feed document. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getFeedDocumentAsyncWithHttpInfo($feed_document_id) { + public function getFeedDocumentAsyncWithHttpInfo($feed_document_id) + { $request = $this->getFeedDocumentRequest($feed_document_id); + return $this->sendRequestAsync($request, GetFeedDocumentResponse::class); } /** - * Create request for operation 'getFeedDocument' + * Create request for operation 'getFeedDocument'. * * @param string $feed_document_id The identifier of the feed document. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getFeedDocumentRequest($feed_document_id) { + protected function getFeedDocumentRequest($feed_document_id) + { // verify the required parameter 'feed_document_id' is set - if ($feed_document_id === null || (is_array($feed_document_id) && count($feed_document_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $feed_document_id when calling getFeedDocument' - ); + if (null === $feed_document_id || (is_array($feed_document_id) && 0 === count($feed_document_id))) { + throw new \InvalidArgumentException('Missing the required parameter $feed_document_id when calling getFeedDocument'); } $resourcePath = '/feeds/2020-09-04/documents/{feedDocumentId}'; @@ -546,75 +561,81 @@ protected function getFeedDocumentRequest($feed_document_id) { $httpBody = ''; $multipart = false; - // path params - if ($feed_document_id !== null) { + if (null !== $feed_document_id) { $resourcePath = str_replace( - '{' . 'feedDocumentId' . '}', + '{'.'feedDocumentId'.'}', ObjectSerializer::toPathValue($feed_document_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getFeeds + * Operation getFeeds. * - * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) - * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) - * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) - * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) - * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) + * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) + * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) + * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) + * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) + * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) + * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedsResponse * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedsResponse */ - public function getFeeds($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) { + public function getFeeds($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) + { list($response) = $this->getFeedsWithHttpInfo($feed_types, $marketplace_ids, $page_size, $processing_statuses, $created_since, $created_until, $next_token); + return $response; } /** - * Operation getFeedsWithHttpInfo + * Operation getFeedsWithHttpInfo. * - * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) - * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) - * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) - * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) - * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) + * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) + * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) + * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) + * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) + * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) + * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getFeedsWithHttpInfo($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) { + public function getFeedsWithHttpInfo($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) + { $request = $this->getFeedsRequest($feed_types, $marketplace_ids, $page_size, $processing_statuses, $created_since, $created_until, $next_token); + return $this->sendRequest($request, GetFeedsResponse::class); } /** - * Operation getFeedsAsync - * + * Operation getFeedsAsync. * + * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) + * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) + * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) + * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) + * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) + * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) * - * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) - * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) - * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) - * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) - * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getFeedsAsync($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) { + public function getFeedsAsync($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) + { return $this->getFeedsAsyncWithHttpInfo($feed_types, $marketplace_ids, $page_size, $processing_statuses, $created_since, $created_until, $next_token) ->then( function ($response) { @@ -624,43 +645,45 @@ function ($response) { } /** - * Operation getFeedsAsyncWithHttpInfo + * Operation getFeedsAsyncWithHttpInfo. * + * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) + * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) + * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) + * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) + * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) + * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) * - * - * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) - * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) - * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) - * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) - * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getFeedsAsyncWithHttpInfo($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) { + public function getFeedsAsyncWithHttpInfo($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\GetFeedsResponse'; $request = $this->getFeedsRequest($feed_types, $marketplace_ids, $page_size, $processing_statuses, $created_since, $created_until, $next_token); + return $this->sendRequestAsync($request, GetFeedsResponse::class); } /** - * Create request for operation 'getFeeds' + * Create request for operation 'getFeeds'. * - * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) - * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) - * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) - * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) - * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) - * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) - * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) + * @param string[] $feed_types A list of feed types used to filter feeds. When feedTypes is provided, the other filter parameters (processingStatuses, marketplaceIds, createdSince, createdUntil) and pageSize may also be provided. Either feedTypes or nextToken is required. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers used to filter feeds. The feeds returned will match at least one of the marketplaces that you specify. (optional) + * @param int $page_size The maximum number of feeds to return in a single call. (optional, default to 10) + * @param string[] $processing_statuses A list of processing statuses used to filter feeds. (optional) + * @param \DateTime $created_since The earliest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is 90 days ago. Feeds are retained for a maximum of 90 days. (optional) + * @param \DateTime $created_until The latest feed creation date and time for feeds included in the response, in ISO 8601 format. The default is now. (optional) + * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getFeeds operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getFeedsRequest($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) { - + protected function getFeedsRequest($feed_types = null, $marketplace_ids = null, $page_size = '10', $processing_statuses = null, $created_since = null, $created_until = null, $next_token = null) + { $resourcePath = '/feeds/2020-09-04/feeds'; $formParams = []; $queryParams = []; @@ -672,41 +695,40 @@ protected function getFeedsRequest($feed_types = null, $marketplace_ids = null, if (is_array($feed_types)) { $feed_types = ObjectSerializer::serializeCollection($feed_types, 'csv', true); } - if ($feed_types !== null) { + if (null !== $feed_types) { $queryParams['feedTypes'] = ObjectSerializer::toQueryValue($feed_types); } // query params if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } // query params - if ($page_size !== null) { + if (null !== $page_size) { $queryParams['pageSize'] = ObjectSerializer::toQueryValue($page_size); } // query params if (is_array($processing_statuses)) { $processing_statuses = ObjectSerializer::serializeCollection($processing_statuses, 'csv', true); } - if ($processing_statuses !== null) { + if (null !== $processing_statuses) { $queryParams['processingStatuses'] = ObjectSerializer::toQueryValue($processing_statuses); } // query params - if ($created_since !== null) { + if (null !== $created_since) { $queryParams['createdSince'] = ObjectSerializer::toQueryValue($created_since); } // query params - if ($created_until !== null) { + if (null !== $created_until) { $queryParams['createdUntil'] = ObjectSerializer::toQueryValue($created_until); } // query params - if ($next_token !== null) { + if (null !== $next_token) { $queryParams['nextToken'] = ObjectSerializer::toQueryValue($next_token); } return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } - } diff --git a/lib/Api/FeesApi.php b/lib/Api/FeesApi.php index 26b40d2c..5c7612fc 100644 --- a/lib/Api/FeesApi.php +++ b/lib/Api/FeesApi.php @@ -1,49 +1,35 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(Configuration $config) + { + $this->client = new Client(); + $this->config = $config; + $this->headerSelector = new HeaderSelector(); } /** * @return Configuration */ - public function getConfig() { + public function getConfig() + { return $this->config; } /** - * Operation getMyFeesEstimateForASIN + * Operation getMyFeesEstimateForASIN. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body body (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResponse */ - public function getMyFeesEstimateForASIN($body, $asin) { + public function getMyFeesEstimateForASIN($body, $asin) + { list($response) = $this->getMyFeesEstimateForASINWithHttpInfo($body, $asin); + return $response; } /** - * Operation getMyFeesEstimateForASINWithHttpInfo + * Operation getMyFeesEstimateForASINWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getMyFeesEstimateForASINWithHttpInfo($body, $asin) { + public function getMyFeesEstimateForASINWithHttpInfo($body, $asin) + { $request = $this->getMyFeesEstimateForASINRequest($body, $asin); + return $this->sendRequest($request, GetMyFeesEstimateResponse::class); } /** - * Operation getMyFeesEstimateForASINAsync - * - * + * Operation getMyFeesEstimateForASINAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getMyFeesEstimateForASINAsync($body, $asin) { + public function getMyFeesEstimateForASINAsync($body, $asin) + { return $this->getMyFeesEstimateForASINAsyncWithHttpInfo($body, $asin) ->then( function ($response) { @@ -134,42 +119,41 @@ function ($response) { } /** - * Operation getMyFeesEstimateForASINAsyncWithHttpInfo - * - * + * Operation getMyFeesEstimateForASINAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getMyFeesEstimateForASINAsyncWithHttpInfo($body, $asin) { + public function getMyFeesEstimateForASINAsyncWithHttpInfo($body, $asin) + { $request = $this->getMyFeesEstimateForASINRequest($body, $asin); + return $this->sendRequestAsync($request, GetMyFeesEstimateResponse::class); } /** - * Create request for operation 'getMyFeesEstimateForASIN' + * Create request for operation 'getMyFeesEstimateForASIN'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getMyFeesEstimateForASINRequest($body, $asin) { + protected function getMyFeesEstimateForASINRequest($body, $asin) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling getMyFeesEstimateForASIN' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling getMyFeesEstimateForASIN'); } // verify the required parameter 'asin' is set - if ($asin === null || (is_array($asin) && count($asin) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $asin when calling getMyFeesEstimateForASIN' - ); + if (null === $asin || (is_array($asin) && 0 === count($asin))) { + throw new \InvalidArgumentException('Missing the required parameter $asin when calling getMyFeesEstimateForASIN'); } $resourcePath = '/products/fees/v0/items/{Asin}/feesEstimate'; @@ -179,11 +163,10 @@ protected function getMyFeesEstimateForASINRequest($body, $asin) { $httpBody = $body; $multipart = false; - // path params - if ($asin !== null) { + if (null !== $asin) { $resourcePath = str_replace( - '{' . 'Asin' . '}', + '{'.'Asin'.'}', ObjectSerializer::toPathValue($asin), $resourcePath ); @@ -193,47 +176,53 @@ protected function getMyFeesEstimateForASINRequest($body, $asin) { } /** - * Operation getMyFeesEstimateForSKU + * Operation getMyFeesEstimateForSKU. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body body (required) - * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body body (required) + * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResponse */ - public function getMyFeesEstimateForSKU($body, $seller_sku) { + public function getMyFeesEstimateForSKU($body, $seller_sku) + { list($response) = $this->getMyFeesEstimateForSKUWithHttpInfo($body, $seller_sku); + return $response; } /** - * Operation getMyFeesEstimateForSKUWithHttpInfo + * Operation getMyFeesEstimateForSKUWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) - * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) + * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getMyFeesEstimateForSKUWithHttpInfo($body, $seller_sku) { + public function getMyFeesEstimateForSKUWithHttpInfo($body, $seller_sku) + { $request = $this->getMyFeesEstimateForSKURequest($body, $seller_sku); + return $this->sendRequest($request, GetMyFeesEstimateResponse::class); } /** - * Operation getMyFeesEstimateForSKUAsync - * + * Operation getMyFeesEstimateForSKUAsync. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) + * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) - * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getMyFeesEstimateForSKUAsync($body, $seller_sku) { + public function getMyFeesEstimateForSKUAsync($body, $seller_sku) + { return $this->getMyFeesEstimateForSKUAsyncWithHttpInfo($body, $seller_sku) ->then( function ($response) { @@ -243,42 +232,41 @@ function ($response) { } /** - * Operation getMyFeesEstimateForSKUAsyncWithHttpInfo + * Operation getMyFeesEstimateForSKUAsyncWithHttpInfo. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) + * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * - * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) - * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getMyFeesEstimateForSKUAsyncWithHttpInfo($body, $seller_sku) { + public function getMyFeesEstimateForSKUAsyncWithHttpInfo($body, $seller_sku) + { $request = $this->getMyFeesEstimateForSKURequest($body, $seller_sku); + return $this->sendRequestAsync($request, GetMyFeesEstimateResponse::class); } /** - * Create request for operation 'getMyFeesEstimateForSKU' + * Create request for operation 'getMyFeesEstimateForSKU'. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) - * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\ProductFees\GetMyFeesEstimateRequest $body (required) + * @param string $seller_sku Used to identify an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getMyFeesEstimateForSKURequest($body, $seller_sku) { + protected function getMyFeesEstimateForSKURequest($body, $seller_sku) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling getMyFeesEstimateForSKU' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling getMyFeesEstimateForSKU'); } // verify the required parameter 'seller_sku' is set - if ($seller_sku === null || (is_array($seller_sku) && count($seller_sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_sku when calling getMyFeesEstimateForSKU' - ); + if (null === $seller_sku || (is_array($seller_sku) && 0 === count($seller_sku))) { + throw new \InvalidArgumentException('Missing the required parameter $seller_sku when calling getMyFeesEstimateForSKU'); } $resourcePath = '/products/fees/v0/listings/{SellerSKU}/feesEstimate'; @@ -288,15 +276,15 @@ protected function getMyFeesEstimateForSKURequest($body, $seller_sku) { $httpBody = $body; $multipart = false; - // path params - if ($seller_sku !== null) { + if (null !== $seller_sku) { $resourcePath = str_replace( - '{' . 'SellerSKU' . '}', + '{'.'SellerSKU'.'}', ObjectSerializer::toPathValue($seller_sku), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } } diff --git a/lib/Api/FinancesApi.php b/lib/Api/FinancesApi.php index 078935d2..4bd88d8a 100644 --- a/lib/Api/FinancesApi.php +++ b/lib/Api/FinancesApi.php @@ -1,13 +1,8 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); diff --git a/lib/Api/MerchantFulfillmentApi.php b/lib/Api/MerchantFulfillmentApi.php index a3f75219..db25247a 100644 --- a/lib/Api/MerchantFulfillmentApi.php +++ b/lib/Api/MerchantFulfillmentApi.php @@ -1,13 +1,8 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); diff --git a/lib/Api/NotificationsApi.php b/lib/Api/NotificationsApi.php index c447aead..47f99fd9 100644 --- a/lib/Api/NotificationsApi.php +++ b/lib/Api/NotificationsApi.php @@ -1,13 +1,8 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -172,9 +152,7 @@ public function createDestinationAsyncWithHttpInfo($body) protected function createDestinationRequest($body) { // verify the required parameter 'body' is set - if (null === $body || (is_array($body) && 0 === count($body))) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createDestination'); - } + ExceptionThrower::throwIf(\InvalidArgumentException::class, null === $body || (is_array($body) && 0 === count($body)), 'Missing the required parameter $body when calling createDestination'); $resourcePath = '/notifications/v1/destinations'; $formParams = []; @@ -190,7 +168,7 @@ protected function createDestinationRequest($body) * Operation createSubscription. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\CreateSubscriptionRequest $body body (required) - * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) + * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) * * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response @@ -208,7 +186,7 @@ public function createSubscription($body, $notification_type) * Operation createSubscriptionWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\CreateSubscriptionRequest $body (required) - * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) + * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) * * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response @@ -226,7 +204,7 @@ public function createSubscriptionWithHttpInfo($body, $notification_type) * Operation createSubscriptionAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\CreateSubscriptionRequest $body (required) - * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) + * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) * * @throws \InvalidArgumentException * @@ -246,7 +224,7 @@ function ($response) { * Operation createSubscriptionAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\CreateSubscriptionRequest $body (required) - * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) + * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) * * @throws \InvalidArgumentException * @@ -263,7 +241,7 @@ public function createSubscriptionAsyncWithHttpInfo($body, $notification_type) * Create request for operation 'createSubscription'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Notifications\CreateSubscriptionRequest $body (required) - * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) + * @param string $notification_type The type of notification to which you want to subscribe. For more information about notification types, see the Notifications API Use Case Guide. (required) * * @throws \InvalidArgumentException * @@ -271,14 +249,8 @@ public function createSubscriptionAsyncWithHttpInfo($body, $notification_type) */ protected function createSubscriptionRequest($body, $notification_type) { - // verify the required parameter 'body' is set - if (null === $body || (is_array($body) && 0 === count($body))) { - throw new \InvalidArgumentException('Missing the required parameter $body when calling createSubscription'); - } - // verify the required parameter 'notification_type' is set - if (null === $notification_type || (is_array($notification_type) && 0 === count($notification_type))) { - throw new \InvalidArgumentException('Missing the required parameter $notification_type when calling createSubscription'); - } + ExceptionThrower::throwIf(\InvalidArgumentException::class, null === $body || (is_array($body) && 0 === count($body)), 'Missing the required parameter $body when calling createSubscription'); + ExceptionThrower::throwIf(\InvalidArgumentException::class, null === $notification_type || (is_array($notification_type) && 0 === count($notification_type)), 'Missing the required parameter $notification_type when calling createSubscription'); $resourcePath = '/notifications/v1/subscriptions/{notificationType}'; $formParams = []; diff --git a/lib/Api/OrdersApi.php b/lib/Api/OrdersApi.php index 4e96d41a..5ff1dbb7 100644 --- a/lib/Api/OrdersApi.php +++ b/lib/Api/OrdersApi.php @@ -1,36 +1,20 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(Configuration $config) + { + $this->client = new Client(); + $this->config = $config; + $this->headerSelector = new HeaderSelector(); } /** * @return Configuration */ - public function getConfig() { + public function getConfig() + { return $this->config; } /** - * Operation getOrder + * Operation getOrder. * * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderResponse */ - public function getOrder($order_id) { + public function getOrder($order_id) + { list($response) = $this->getOrderWithHttpInfo($order_id); + return $response; } /** - * Operation getOrderWithHttpInfo + * Operation getOrderWithHttpInfo. * * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOrderWithHttpInfo($order_id) { + public function getOrderWithHttpInfo($order_id) + { $request = $this->getOrderRequest($order_id); + return $this->sendRequest($request, GetOrderResponse::class); } /** - * Operation getOrderAsync - * - * + * Operation getOrderAsync. * * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderAsync($order_id) { + public function getOrderAsync($order_id) + { return $this->getOrderAsyncWithHttpInfo($order_id) ->then( function ($response) { @@ -138,35 +121,36 @@ function ($response) { } /** - * Operation getOrderAsyncWithHttpInfo - * - * + * Operation getOrderAsyncWithHttpInfo. * * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderAsyncWithHttpInfo($order_id) { + public function getOrderAsyncWithHttpInfo($order_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderResponse'; $request = $this->getOrderRequest($order_id); + return $this->sendRequestAsync($request, GetOrderResponse::class); } /** - * Create request for operation 'getOrder' + * Create request for operation 'getOrder'. * * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getOrderRequest($order_id) { + protected function getOrderRequest($order_id) + { // verify the required parameter 'order_id' is set - if ($order_id === null || (is_array($order_id) && count($order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $order_id when calling getOrder' - ); + if (null === $order_id || (is_array($order_id) && 0 === count($order_id))) { + throw new \InvalidArgumentException('Missing the required parameter $order_id when calling getOrder'); } $resourcePath = '/orders/v0/orders/{orderId}'; @@ -176,58 +160,64 @@ protected function getOrderRequest($order_id) { $httpBody = ''; $multipart = false; - // path params - if ($order_id !== null) { + if (null !== $order_id) { $resourcePath = str_replace( - '{' . 'orderId' . '}', + '{'.'orderId'.'}', ObjectSerializer::toPathValue($order_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getOrderAddress + * Operation getOrderAddress. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderAddressResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderAddressResponse */ - public function getOrderAddress($order_id) { + public function getOrderAddress($order_id) + { list($response) = $this->getOrderAddressWithHttpInfo($order_id); + return $response; } /** - * Operation getOrderAddressWithHttpInfo + * Operation getOrderAddressWithHttpInfo. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderAddressResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderAddressResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOrderAddressWithHttpInfo($order_id) { + public function getOrderAddressWithHttpInfo($order_id) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderAddressResponse'; $request = $this->getOrderAddressRequest($order_id); + return $this->sendRequest($request, GetOrderAddressResponse::class); } /** - * Operation getOrderAddressAsync - * - * + * Operation getOrderAddressAsync. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderAddressAsync($order_id) { + public function getOrderAddressAsync($order_id) + { return $this->getOrderAddressAsyncWithHttpInfo($order_id) ->then( function ($response) { @@ -237,34 +227,35 @@ function ($response) { } /** - * Operation getOrderAddressAsyncWithHttpInfo - * - * + * Operation getOrderAddressAsyncWithHttpInfo. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderAddressAsyncWithHttpInfo($order_id) { + public function getOrderAddressAsyncWithHttpInfo($order_id) + { $request = $this->getOrderAddressRequest($order_id); + return $this->sendRequestAsync($request, GetOrderAddressResponse::class); } /** - * Create request for operation 'getOrderAddress' + * Create request for operation 'getOrderAddress'. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getOrderAddressRequest($order_id) { + protected function getOrderAddressRequest($order_id) + { // verify the required parameter 'order_id' is set - if ($order_id === null || (is_array($order_id) && count($order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $order_id when calling getOrderAddress' - ); + if (null === $order_id || (is_array($order_id) && 0 === count($order_id))) { + throw new \InvalidArgumentException('Missing the required parameter $order_id when calling getOrderAddress'); } $resourcePath = '/orders/v0/orders/{orderId}/address'; @@ -274,57 +265,63 @@ protected function getOrderAddressRequest($order_id) { $httpBody = ''; $multipart = false; - // path params - if ($order_id !== null) { + if (null !== $order_id) { $resourcePath = str_replace( - '{' . 'orderId' . '}', + '{'.'orderId'.'}', ObjectSerializer::toPathValue($order_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getOrderBuyerInfo + * Operation getOrderBuyerInfo. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderBuyerInfoResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderBuyerInfoResponse */ - public function getOrderBuyerInfo($order_id) { + public function getOrderBuyerInfo($order_id) + { list($response) = $this->getOrderBuyerInfoWithHttpInfo($order_id); + return $response; } /** - * Operation getOrderBuyerInfoWithHttpInfo + * Operation getOrderBuyerInfoWithHttpInfo. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderBuyerInfoResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderBuyerInfoResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOrderBuyerInfoWithHttpInfo($order_id) { + public function getOrderBuyerInfoWithHttpInfo($order_id) + { $request = $this->getOrderBuyerInfoRequest($order_id); + return $this->sendRequest($request, GetOrderBuyerInfoResponse::class); } /** - * Operation getOrderBuyerInfoAsync - * - * + * Operation getOrderBuyerInfoAsync. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderBuyerInfoAsync($order_id) { + public function getOrderBuyerInfoAsync($order_id) + { return $this->getOrderBuyerInfoAsyncWithHttpInfo($order_id) ->then( function ($response) { @@ -334,34 +331,35 @@ function ($response) { } /** - * Operation getOrderBuyerInfoAsyncWithHttpInfo - * - * + * Operation getOrderBuyerInfoAsyncWithHttpInfo. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderBuyerInfoAsyncWithHttpInfo($order_id) { + public function getOrderBuyerInfoAsyncWithHttpInfo($order_id) + { $request = $this->getOrderBuyerInfoRequest($order_id); + return $this->sendRequestAsync($request, GetOrderBuyerInfoResponse::class); } /** - * Create request for operation 'getOrderBuyerInfo' + * Create request for operation 'getOrderBuyerInfo'. * * @param string $order_id An orderId is an Amazon-defined order identifier, in 3-7-7 format. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getOrderBuyerInfoRequest($order_id) { + protected function getOrderBuyerInfoRequest($order_id) + { // verify the required parameter 'order_id' is set - if ($order_id === null || (is_array($order_id) && count($order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $order_id when calling getOrderBuyerInfo' - ); + if (null === $order_id || (is_array($order_id) && 0 === count($order_id))) { + throw new \InvalidArgumentException('Missing the required parameter $order_id when calling getOrderBuyerInfo'); } $resourcePath = '/orders/v0/orders/{orderId}/buyerInfo'; @@ -371,60 +369,66 @@ protected function getOrderBuyerInfoRequest($order_id) { $httpBody = ''; $multipart = false; - // path params - if ($order_id !== null) { + if (null !== $order_id) { $resourcePath = str_replace( - '{' . 'orderId' . '}', + '{'.'orderId'.'}', ObjectSerializer::toPathValue($order_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getOrderItems + * Operation getOrderItems. * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsResponse */ - public function getOrderItems($order_id, $next_token = null) { + public function getOrderItems($order_id, $next_token = null) + { list($response) = $this->getOrderItemsWithHttpInfo($order_id, $next_token); + return $response; } /** - * Operation getOrderItemsWithHttpInfo + * Operation getOrderItemsWithHttpInfo. * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOrderItemsWithHttpInfo($order_id, $next_token = null) { + public function getOrderItemsWithHttpInfo($order_id, $next_token = null) + { $request = $this->getOrderItemsRequest($order_id, $next_token); + return $this->sendRequest($request, GetOrderItemsResponse::class); } /** - * Operation getOrderItemsAsync - * + * Operation getOrderItemsAsync. * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderItemsAsync($order_id, $next_token = null) { + public function getOrderItemsAsync($order_id, $next_token = null) + { return $this->getOrderItemsAsyncWithHttpInfo($order_id, $next_token) ->then( function ($response) { @@ -434,37 +438,38 @@ function ($response) { } /** - * Operation getOrderItemsAsyncWithHttpInfo + * Operation getOrderItemsAsyncWithHttpInfo. * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderItemsAsyncWithHttpInfo($order_id, $next_token = null) { + public function getOrderItemsAsyncWithHttpInfo($order_id, $next_token = null) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsResponse'; $request = $this->getOrderItemsRequest($order_id, $next_token); + return $this->sendRequestAsync($request, GetOrderItemsResponse::class); } /** - * Create request for operation 'getOrderItems' + * Create request for operation 'getOrderItems'. * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getOrderItemsRequest($order_id, $next_token = null) { + protected function getOrderItemsRequest($order_id, $next_token = null) + { // verify the required parameter 'order_id' is set - if ($order_id === null || (is_array($order_id) && count($order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $order_id when calling getOrderItems' - ); + if (null === $order_id || (is_array($order_id) && 0 === count($order_id))) { + throw new \InvalidArgumentException('Missing the required parameter $order_id when calling getOrderItems'); } $resourcePath = '/orders/v0/orders/{orderId}/orderItems'; @@ -475,63 +480,70 @@ protected function getOrderItemsRequest($order_id, $next_token = null) { $multipart = false; // query params - if ($next_token !== null) { + if (null !== $next_token) { $queryParams['NextToken'] = ObjectSerializer::toQueryValue($next_token); } // path params - if ($order_id !== null) { + if (null !== $order_id) { $resourcePath = str_replace( - '{' . 'orderId' . '}', + '{'.'orderId'.'}', ObjectSerializer::toPathValue($order_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getOrderItemsBuyerInfo + * Operation getOrderItemsBuyerInfo. * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsBuyerInfoResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsBuyerInfoResponse */ - public function getOrderItemsBuyerInfo($order_id, $next_token = null) { + public function getOrderItemsBuyerInfo($order_id, $next_token = null) + { list($response) = $this->getOrderItemsBuyerInfoWithHttpInfo($order_id, $next_token); + return $response; } /** - * Operation getOrderItemsBuyerInfoWithHttpInfo + * Operation getOrderItemsBuyerInfoWithHttpInfo. * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsBuyerInfoResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsBuyerInfoResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOrderItemsBuyerInfoWithHttpInfo($order_id, $next_token = null) { + public function getOrderItemsBuyerInfoWithHttpInfo($order_id, $next_token = null) + { $request = $this->getOrderItemsBuyerInfoRequest($order_id, $next_token); + return $this->sendRequest($request, GetOrderItemsBuyerInfoResponse::class); } /** - * Operation getOrderItemsBuyerInfoAsync - * + * Operation getOrderItemsBuyerInfoAsync. * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderItemsBuyerInfoAsync($order_id, $next_token = null) { + public function getOrderItemsBuyerInfoAsync($order_id, $next_token = null) + { return $this->getOrderItemsBuyerInfoAsyncWithHttpInfo($order_id, $next_token) ->then( function ($response) { @@ -541,37 +553,38 @@ function ($response) { } /** - * Operation getOrderItemsBuyerInfoAsyncWithHttpInfo + * Operation getOrderItemsBuyerInfoAsyncWithHttpInfo. * - * - * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrderItemsBuyerInfoAsyncWithHttpInfo($order_id, $next_token = null) { + public function getOrderItemsBuyerInfoAsyncWithHttpInfo($order_id, $next_token = null) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrderItemsBuyerInfoResponse'; $request = $this->getOrderItemsBuyerInfoRequest($order_id, $next_token); + return $this->sendRequestAsync($request, GetOrderItemsBuyerInfoResponse::class); } /** - * Create request for operation 'getOrderItemsBuyerInfo' + * Create request for operation 'getOrderItemsBuyerInfo'. * - * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) + * @param string $order_id An Amazon-defined order identifier, in 3-7-7 format. (required) * @param string $next_token A string token returned in the response of your previous request. (optional) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getOrderItemsBuyerInfoRequest($order_id, $next_token = null) { + protected function getOrderItemsBuyerInfoRequest($order_id, $next_token = null) + { // verify the required parameter 'order_id' is set - if ($order_id === null || (is_array($order_id) && count($order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $order_id when calling getOrderItemsBuyerInfo' - ); + if (null === $order_id || (is_array($order_id) && 0 === count($order_id))) { + throw new \InvalidArgumentException('Missing the required parameter $order_id when calling getOrderItemsBuyerInfo'); } $resourcePath = '/orders/v0/orders/{orderId}/orderItems/buyerInfo'; @@ -582,100 +595,107 @@ protected function getOrderItemsBuyerInfoRequest($order_id, $next_token = null) $multipart = false; // query params - if ($next_token !== null) { + if (null !== $next_token) { $queryParams['NextToken'] = ObjectSerializer::toQueryValue($next_token); } // path params - if ($order_id !== null) { + if (null !== $order_id) { $resourcePath = str_replace( - '{' . 'orderId' . '}', + '{'.'orderId'.'}', ObjectSerializer::toPathValue($order_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getOrders + * Operation getOrders. * - * @param string[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) - * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) - * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $seller_order_id 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 $max_results_per_page 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[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) + * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) + * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $seller_order_id 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 $max_results_per_page 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[] $easy_ship_shipment_statuses 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 $next_token A string token returned in the response of your previous request. (optional) - * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $next_token A string token returned in the response of your previous request. (optional) + * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrdersResponse * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrdersResponse */ - public function getOrders($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) { + public function getOrders($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) + { list($response) = $this->getOrdersWithHttpInfo($marketplace_ids, $created_after, $created_before, $last_updated_after, $last_updated_before, $order_statuses, $fulfillment_channels, $payment_methods, $buyer_email, $seller_order_id, $max_results_per_page, $easy_ship_shipment_statuses, $next_token, $amazon_order_ids); + return $response; } /** - * Operation getOrdersWithHttpInfo + * Operation getOrdersWithHttpInfo. * - * @param string[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) - * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) - * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $seller_order_id 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 $max_results_per_page 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[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) + * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) + * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $seller_order_id 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 $max_results_per_page 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[] $easy_ship_shipment_statuses 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 $next_token A string token returned in the response of your previous request. (optional) - * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $next_token A string token returned in the response of your previous request. (optional) + * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrdersResponse, HTTP status code, HTTP response headers (array of strings) * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrdersResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getOrdersWithHttpInfo($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) { + public function getOrdersWithHttpInfo($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrdersResponse'; $request = $this->getOrdersRequest($marketplace_ids, $created_after, $created_before, $last_updated_after, $last_updated_before, $order_statuses, $fulfillment_channels, $payment_methods, $buyer_email, $seller_order_id, $max_results_per_page, $easy_ship_shipment_statuses, $next_token, $amazon_order_ids); + return $this->sendRequest($request, GetOrdersResponse::class); } /** - * Operation getOrdersAsync - * + * Operation getOrdersAsync. * - * - * @param string[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) - * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) - * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $seller_order_id 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 $max_results_per_page 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[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) + * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) + * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $seller_order_id 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 $max_results_per_page 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[] $easy_ship_shipment_statuses 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 $next_token A string token returned in the response of your previous request. (optional) - * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $next_token A string token returned in the response of your previous request. (optional) + * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrdersAsync($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) { + public function getOrdersAsync($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) + { return $this->getOrdersAsyncWithHttpInfo($marketplace_ids, $created_after, $created_before, $last_updated_after, $last_updated_before, $order_statuses, $fulfillment_channels, $payment_methods, $buyer_email, $seller_order_id, $max_results_per_page, $easy_ship_shipment_statuses, $next_token, $amazon_order_ids) ->then( function ($response) { @@ -685,61 +705,62 @@ function ($response) { } /** - * Operation getOrdersAsyncWithHttpInfo - * + * Operation getOrdersAsyncWithHttpInfo. * - * - * @param string[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) - * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) - * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $seller_order_id 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 $max_results_per_page 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[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) + * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) + * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $seller_order_id 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 $max_results_per_page 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[] $easy_ship_shipment_statuses 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 $next_token A string token returned in the response of your previous request. (optional) - * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $next_token A string token returned in the response of your previous request. (optional) + * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getOrdersAsyncWithHttpInfo($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) { + public function getOrdersAsyncWithHttpInfo($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Orders\GetOrdersResponse'; $request = $this->getOrdersRequest($marketplace_ids, $created_after, $created_before, $last_updated_after, $last_updated_before, $order_statuses, $fulfillment_channels, $payment_methods, $buyer_email, $seller_order_id, $max_results_per_page, $easy_ship_shipment_statuses, $next_token, $amazon_order_ids); + return $this->sendRequestAsync($request, GetOrdersResponse::class); } /** - * Create request for operation 'getOrders' + * Create request for operation 'getOrders'. * - * @param string[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) - * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) - * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) - * @param string $seller_order_id 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 $max_results_per_page 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[] $marketplace_ids A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces. (required) + * @param string $created_after 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 $created_before 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 $last_updated_after 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 $last_updated_before 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[] $order_statuses 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[] $fulfillment_channels A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional) + * @param string[] $payment_methods 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 $buyer_email The email address of a buyer. Used to select orders that contain the specified email address. (optional) + * @param string $seller_order_id 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 $max_results_per_page 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[] $easy_ship_shipment_statuses 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 $next_token A string token returned in the response of your previous request. (optional) - * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) + * @param string $next_token A string token returned in the response of your previous request. (optional) + * @param string[] $amazon_order_ids A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getOrdersRequest($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) { + protected function getOrdersRequest($marketplace_ids, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $order_statuses = null, $fulfillment_channels = null, $payment_methods = null, $buyer_email = null, $seller_order_id = null, $max_results_per_page = null, $easy_ship_shipment_statuses = null, $next_token = null, $amazon_order_ids = null) + { // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling getOrders' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling getOrders'); } $resourcePath = '/orders/v0/orders'; @@ -750,79 +771,80 @@ protected function getOrdersRequest($marketplace_ids, $created_after = null, $cr $multipart = false; // query params - if ($created_after !== null) { + if (null !== $created_after) { $queryParams['CreatedAfter'] = ObjectSerializer::toQueryValue($created_after); } // query params - if ($created_before !== null) { + if (null !== $created_before) { $queryParams['CreatedBefore'] = ObjectSerializer::toQueryValue($created_before); } // query params - if ($last_updated_after !== null) { + if (null !== $last_updated_after) { $queryParams['LastUpdatedAfter'] = ObjectSerializer::toQueryValue($last_updated_after); } // query params - if ($last_updated_before !== null) { + if (null !== $last_updated_before) { $queryParams['LastUpdatedBefore'] = ObjectSerializer::toQueryValue($last_updated_before); } // query params if (is_array($order_statuses)) { $order_statuses = ObjectSerializer::serializeCollection($order_statuses, 'csv', true); } - if ($order_statuses !== null) { + if (null !== $order_statuses) { $queryParams['OrderStatuses'] = ObjectSerializer::toQueryValue($order_statuses); } // query params if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['MarketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } // query params if (is_array($fulfillment_channels)) { $fulfillment_channels = ObjectSerializer::serializeCollection($fulfillment_channels, 'csv', true); } - if ($fulfillment_channels !== null) { + if (null !== $fulfillment_channels) { $queryParams['FulfillmentChannels'] = ObjectSerializer::toQueryValue($fulfillment_channels); } // query params if (is_array($payment_methods)) { $payment_methods = ObjectSerializer::serializeCollection($payment_methods, 'csv', true); } - if ($payment_methods !== null) { + if (null !== $payment_methods) { $queryParams['PaymentMethods'] = ObjectSerializer::toQueryValue($payment_methods); } // query params - if ($buyer_email !== null) { + if (null !== $buyer_email) { $queryParams['BuyerEmail'] = ObjectSerializer::toQueryValue($buyer_email); } // query params - if ($seller_order_id !== null) { + if (null !== $seller_order_id) { $queryParams['SellerOrderId'] = ObjectSerializer::toQueryValue($seller_order_id); } // query params - if ($max_results_per_page !== null) { + if (null !== $max_results_per_page) { $queryParams['MaxResultsPerPage'] = ObjectSerializer::toQueryValue($max_results_per_page); } // query params if (is_array($easy_ship_shipment_statuses)) { $easy_ship_shipment_statuses = ObjectSerializer::serializeCollection($easy_ship_shipment_statuses, 'csv', true); } - if ($easy_ship_shipment_statuses !== null) { + if (null !== $easy_ship_shipment_statuses) { $queryParams['EasyShipShipmentStatuses'] = ObjectSerializer::toQueryValue($easy_ship_shipment_statuses); } // query params - if ($next_token !== null) { + if (null !== $next_token) { $queryParams['NextToken'] = ObjectSerializer::toQueryValue($next_token); } // query params if (is_array($amazon_order_ids)) { $amazon_order_ids = ObjectSerializer::serializeCollection($amazon_order_ids, 'csv', true); } - if ($amazon_order_ids !== null) { + if (null !== $amazon_order_ids) { $queryParams['AmazonOrderIds'] = ObjectSerializer::toQueryValue($amazon_order_ids); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } } diff --git a/lib/Api/ProductPricingApi.php b/lib/Api/ProductPricingApi.php index c050cd03..cf5ecb3a 100644 --- a/lib/Api/ProductPricingApi.php +++ b/lib/Api/ProductPricingApi.php @@ -1,53 +1,34 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -87,53 +64,56 @@ public function getConfig() } /** - * Operation getCompetitivePricing + * Operation getCompetitivePricing. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetPricingResponse */ public function getCompetitivePricing($marketplace_id, $item_type, $asins = null, $skus = null) { list($response) = $this->getCompetitivePricingWithHttpInfo($marketplace_id, $item_type, $asins, $skus); + return $response; } /** - * Operation getCompetitivePricingWithHttpInfo + * Operation getCompetitivePricingWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetPricingResponse, HTTP status code, HTTP response headers (array of strings) */ public function getCompetitivePricingWithHttpInfo($marketplace_id, $item_type, $asins = null, $skus = null) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetPricingResponse'; $request = $this->getCompetitivePricingRequest($marketplace_id, $item_type, $asins, $skus); + return $this->sendRequest($request, GetPricingResponse::class); } /** - * Operation getCompetitivePricingAsync - * - * + * Operation getCompetitivePricingAsync. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getCompetitivePricingAsync($marketplace_id, $item_type, $asins = null, $skus = null) @@ -147,49 +127,46 @@ function ($response) { } /** - * Operation getCompetitivePricingAsyncWithHttpInfo - * - * + * Operation getCompetitivePricingAsyncWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getCompetitivePricingAsyncWithHttpInfo($marketplace_id, $item_type, $asins = null, $skus = null) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetPricingResponse'; $request = $this->getCompetitivePricingRequest($marketplace_id, $item_type, $asins, $skus); + return $this->sendRequestAsync($request, GetPricingResponse::class); } /** - * Create request for operation 'getCompetitivePricing' + * Create request for operation 'getCompetitivePricing'. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. Possible values: Asin, Sku. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getCompetitivePricingRequest($marketplace_id, $item_type, $asins = null, $skus = null) { // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling getCompetitivePricing' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getCompetitivePricing'); } // verify the required parameter 'item_type' is set - if ($item_type === null || (is_array($item_type) && count($item_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $item_type when calling getCompetitivePricing' - ); + if (null === $item_type || (is_array($item_type) && 0 === count($item_type))) { + throw new \InvalidArgumentException('Missing the required parameter $item_type when calling getCompetitivePricing'); } $resourcePath = '/products/pricing/v0/competitivePrice'; @@ -200,25 +177,25 @@ protected function getCompetitivePricingRequest($marketplace_id, $item_type, $as $multipart = false; // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } // query params if (is_array($asins)) { $asins = ObjectSerializer::serializeCollection($asins, 'csv', true); } - if ($asins !== null) { + if (null !== $asins) { $queryParams['Asins'] = ObjectSerializer::toQueryValue($asins); } // query params if (is_array($skus)) { $skus = ObjectSerializer::serializeCollection($skus, 'csv', true); } - if ($skus !== null) { + if (null !== $skus) { $queryParams['Skus'] = ObjectSerializer::toQueryValue($skus); } // query params - if ($item_type !== null) { + if (null !== $item_type) { $queryParams['ItemType'] = ObjectSerializer::toQueryValue($item_type); } @@ -226,50 +203,53 @@ protected function getCompetitivePricingRequest($marketplace_id, $item_type, $as } /** - * Operation getItemOffers + * Operation getItemOffers. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetOffersResponse */ public function getItemOffers($marketplace_id, $item_condition, $asin) { list($response) = $this->getItemOffersWithHttpInfo($marketplace_id, $item_condition, $asin); + return $response; } /** - * Operation getItemOffersWithHttpInfo + * Operation getItemOffersWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetOffersResponse, HTTP status code, HTTP response headers (array of strings) */ public function getItemOffersWithHttpInfo($marketplace_id, $item_condition, $asin) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetOffersResponse'; $request = $this->getItemOffersRequest($marketplace_id, $item_condition, $asin); + return $this->sendRequest($request, GetOffersResponse::class); } /** - * Operation getItemOffersAsync - * - * + * Operation getItemOffersAsync. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getItemOffersAsync($marketplace_id, $item_condition, $asin) @@ -283,53 +263,48 @@ function ($response) { } /** - * Operation getItemOffersAsyncWithHttpInfo - * - * + * Operation getItemOffersAsyncWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getItemOffersAsyncWithHttpInfo($marketplace_id, $item_condition, $asin) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetOffersResponse'; $request = $this->getItemOffersRequest($marketplace_id, $item_condition, $asin); + return $this->sendRequestAsync($request, GetOffersResponse::class); } /** - * Create request for operation 'getItemOffers' + * Create request for operation 'getItemOffers'. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings to be considered based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getItemOffersRequest($marketplace_id, $item_condition, $asin) { // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling getItemOffers' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getItemOffers'); } // verify the required parameter 'item_condition' is set - if ($item_condition === null || (is_array($item_condition) && count($item_condition) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $item_condition when calling getItemOffers' - ); + if (null === $item_condition || (is_array($item_condition) && 0 === count($item_condition))) { + throw new \InvalidArgumentException('Missing the required parameter $item_condition when calling getItemOffers'); } // verify the required parameter 'asin' is set - if ($asin === null || (is_array($asin) && count($asin) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $asin when calling getItemOffers' - ); + if (null === $asin || (is_array($asin) && 0 === count($asin))) { + throw new \InvalidArgumentException('Missing the required parameter $asin when calling getItemOffers'); } $resourcePath = '/products/pricing/v0/items/{Asin}/offers'; @@ -340,70 +315,74 @@ protected function getItemOffersRequest($marketplace_id, $item_condition, $asin) $multipart = false; // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } // query params - if ($item_condition !== null) { + if (null !== $item_condition) { $queryParams['ItemCondition'] = ObjectSerializer::toQueryValue($item_condition); } // path params - if ($asin !== null) { + if (null !== $asin) { $resourcePath = str_replace( - '{' . 'Asin' . '}', + '{'.'Asin'.'}', ObjectSerializer::toPathValue($asin), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getListingOffers + * Operation getListingOffers. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetOffersResponse */ public function getListingOffers($marketplace_id, $item_condition, $seller_sku) { list($response) = $this->getListingOffersWithHttpInfo($marketplace_id, $item_condition, $seller_sku); + return $response; } /** - * Operation getListingOffersWithHttpInfo + * Operation getListingOffersWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetOffersResponse, HTTP status code, HTTP response headers (array of strings) */ public function getListingOffersWithHttpInfo($marketplace_id, $item_condition, $seller_sku) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetOffersResponse'; $request = $this->getListingOffersRequest($marketplace_id, $item_condition, $seller_sku); + return $this->sendRequest($request, GetOffersResponse::class); } /** - * Operation getListingOffersAsync - * - * + * Operation getListingOffersAsync. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getListingOffersAsync($marketplace_id, $item_condition, $seller_sku) @@ -417,52 +396,47 @@ function ($response) { } /** - * Operation getListingOffersAsyncWithHttpInfo - * - * + * Operation getListingOffersAsyncWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getListingOffersAsyncWithHttpInfo($marketplace_id, $item_condition, $seller_sku) { $request = $this->getListingOffersRequest($marketplace_id, $item_condition, $seller_sku); + return $this->sendRequestAsync($request, GetOffersResponse::class); } /** - * Create request for operation 'getListingOffers' + * Create request for operation 'getListingOffers'. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) - * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (required) + * @param string $seller_sku Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getListingOffersRequest($marketplace_id, $item_condition, $seller_sku) { // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling getListingOffers' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getListingOffers'); } // verify the required parameter 'item_condition' is set - if ($item_condition === null || (is_array($item_condition) && count($item_condition) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $item_condition when calling getListingOffers' - ); + if (null === $item_condition || (is_array($item_condition) && 0 === count($item_condition))) { + throw new \InvalidArgumentException('Missing the required parameter $item_condition when calling getListingOffers'); } // verify the required parameter 'seller_sku' is set - if ($seller_sku === null || (is_array($seller_sku) && count($seller_sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_sku when calling getListingOffers' - ); + if (null === $seller_sku || (is_array($seller_sku) && 0 === count($seller_sku))) { + throw new \InvalidArgumentException('Missing the required parameter $seller_sku when calling getListingOffers'); } $resourcePath = '/products/pricing/v0/listings/{SellerSKU}/offers'; @@ -473,75 +447,79 @@ protected function getListingOffersRequest($marketplace_id, $item_condition, $se $multipart = false; // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } // query params - if ($item_condition !== null) { + if (null !== $item_condition) { $queryParams['ItemCondition'] = ObjectSerializer::toQueryValue($item_condition); } // path params - if ($seller_sku !== null) { + if (null !== $seller_sku) { $resourcePath = str_replace( - '{' . 'SellerSKU' . '}', + '{'.'SellerSKU'.'}', ObjectSerializer::toPathValue($seller_sku), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getPricing + * Operation getPricing. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetPricingResponse */ public function getPricing($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null) { list($response) = $this->getPricingWithHttpInfo($marketplace_id, $item_type, $asins, $skus, $item_condition); + return $response; } /** - * Operation getPricingWithHttpInfo + * Operation getPricingWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetPricingResponse, HTTP status code, HTTP response headers (array of strings) */ public function getPricingWithHttpInfo($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null) { $request = $this->getPricingRequest($marketplace_id, $item_type, $asins, $skus, $item_condition); + return $this->sendRequest($request, GetPricingResponse::class); } /** - * Operation getPricingAsync - * - * + * Operation getPricingAsync. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getPricingAsync($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null) @@ -555,51 +533,48 @@ function ($response) { } /** - * Operation getPricingAsyncWithHttpInfo - * - * + * Operation getPricingAsyncWithHttpInfo. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getPricingAsyncWithHttpInfo($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\ProductPricing\GetPricingResponse'; $request = $this->getPricingRequest($marketplace_id, $item_type, $asins, $skus, $item_condition); + return $this->sendRequestAsync($request, GetPricingResponse::class); } /** - * Create request for operation 'getPricing' + * Create request for operation 'getPricing'. * - * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) - * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) - * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) - * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) - * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) + * @param string $marketplace_id A marketplace identifier. Specifies the marketplace for which prices are returned. (required) + * @param string $item_type Indicates whether ASIN values or seller SKU values are used to identify items. If you specify Asin, the information in the response will be dependent on the list of Asins you provide in the Asins parameter. If you specify Sku, the information in the response will be dependent on the list of Skus you provide in the Skus parameter. (required) + * @param string[] $asins A list of up to twenty Amazon Standard Identification Number (ASIN) values used to identify items in the given marketplace. (optional) + * @param string[] $skus A list of up to twenty seller SKU values used to identify items in the given marketplace. (optional) + * @param string $item_condition Filters the offer listings based on item condition. Possible values: New, Used, Collectible, Refurbished, Club. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getPricingRequest($marketplace_id, $item_type, $asins = null, $skus = null, $item_condition = null) { // verify the required parameter 'marketplace_id' is set - if ($marketplace_id === null || (is_array($marketplace_id) && count($marketplace_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_id when calling getPricing' - ); + if (null === $marketplace_id || (is_array($marketplace_id) && 0 === count($marketplace_id))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_id when calling getPricing'); } // verify the required parameter 'item_type' is set - if ($item_type === null || (is_array($item_type) && count($item_type) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $item_type when calling getPricing' - ); + if (null === $item_type || (is_array($item_type) && 0 === count($item_type))) { + throw new \InvalidArgumentException('Missing the required parameter $item_type when calling getPricing'); } $resourcePath = '/products/pricing/v0/price'; @@ -610,31 +585,32 @@ protected function getPricingRequest($marketplace_id, $item_type, $asins = null, $multipart = false; // query params - if ($marketplace_id !== null) { + if (null !== $marketplace_id) { $queryParams['MarketplaceId'] = ObjectSerializer::toQueryValue($marketplace_id); } // query params if (is_array($asins)) { $asins = ObjectSerializer::serializeCollection($asins, 'csv', true); } - if ($asins !== null) { + if (null !== $asins) { $queryParams['Asins'] = ObjectSerializer::toQueryValue($asins); } // query params if (is_array($skus)) { $skus = ObjectSerializer::serializeCollection($skus, 'csv', true); } - if ($skus !== null) { + if (null !== $skus) { $queryParams['Skus'] = ObjectSerializer::toQueryValue($skus); } // query params - if ($item_type !== null) { + if (null !== $item_type) { $queryParams['ItemType'] = ObjectSerializer::toQueryValue($item_type); } // query params - if ($item_condition !== null) { + if (null !== $item_condition) { $queryParams['ItemCondition'] = ObjectSerializer::toQueryValue($item_condition); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } } diff --git a/lib/Api/ReportsApi.php b/lib/Api/ReportsApi.php index ad9e340e..d9ab9785 100644 --- a/lib/Api/ReportsApi.php +++ b/lib/Api/ReportsApi.php @@ -1,13 +1,8 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -98,8 +78,8 @@ public function getConfig() * * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CancelReportResponse */ @@ -115,8 +95,8 @@ public function cancelReport($report_id) * * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CancelReportResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -203,8 +183,8 @@ protected function cancelReportRequest($report_id) * * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CancelReportScheduleResponse */ @@ -220,8 +200,8 @@ public function cancelReportSchedule($report_schedule_id) * * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CancelReportScheduleResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -305,14 +285,14 @@ protected function cancelReportScheduleRequest($report_schedule_id) /** * Operation createReport. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportSpecification $body body (required) + * @param CreateReportSpecification $body body (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * @throws ApiException on non-2xx response * @throws \InvalidArgumentException * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportResponse */ - public function createReport($body) + public function createReport(CreateReportSpecification $body) { list($response) = $this->createReportWithHttpInfo($body); @@ -322,14 +302,14 @@ public function createReport($body) /** * Operation createReportWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportSpecification $body (required) + * @param CreateReportSpecification $body (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * @throws ApiException on non-2xx response * @throws \InvalidArgumentException * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportResponse, HTTP status code, HTTP response headers (array of strings) */ - public function createReportWithHttpInfo($body) + public function createReportWithHttpInfo(CreateReportSpecification $body) { $request = $this->createReportRequest($body); @@ -339,7 +319,7 @@ public function createReportWithHttpInfo($body) /** * Operation createReportAsync. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportSpecification $body (required) + * @param CreateReportSpecification $body (required) * * @throws \InvalidArgumentException * @@ -358,7 +338,7 @@ function ($response) { /** * Operation createReportAsyncWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportSpecification $body (required) + * @param CreateReportSpecification $body (required) * * @throws \InvalidArgumentException * @@ -375,13 +355,13 @@ public function createReportAsyncWithHttpInfo($body) /** * Create request for operation 'createReport'. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportSpecification $body (required) + * @param CreateReportSpecification $body (required) * * @throws \InvalidArgumentException * * @return \GuzzleHttp\Psr7\Request */ - protected function createReportRequest($body) + protected function createReportRequest(CreateReportSpecification $body) { // verify the required parameter 'body' is set if (null === $body || (is_array($body) && 0 === count($body))) { @@ -403,8 +383,8 @@ protected function createReportRequest($body) * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleSpecification $body body (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleResponse */ @@ -420,8 +400,8 @@ public function createReportSchedule($body) * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleSpecification $body (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -498,8 +478,8 @@ protected function createReportScheduleRequest($body) * * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportResponse */ @@ -515,8 +495,8 @@ public function getReport($report_id) * * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -602,8 +582,8 @@ protected function getReportRequest($report_id) * * @param string $report_document_id The identifier for the report document. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportDocumentResponse */ @@ -619,8 +599,8 @@ public function getReportDocument($report_document_id) * * @param string $report_document_id The identifier for the report document. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportDocumentResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -706,8 +686,8 @@ protected function getReportDocumentRequest($report_document_id) * * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportScheduleResponse */ @@ -723,8 +703,8 @@ public function getReportSchedule($report_schedule_id) * * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportScheduleResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -810,8 +790,8 @@ protected function getReportScheduleRequest($report_schedule_id) * * @param string[] $report_types A list of report types used to filter report schedules. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportSchedulesResponse */ @@ -827,8 +807,8 @@ public function getReportSchedules($report_types) * * @param string[] $report_types A list of report types used to filter report schedules. (required) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * @throws ApiException on non-2xx response * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportSchedulesResponse, HTTP status code, HTTP response headers (array of strings) */ @@ -1026,7 +1006,7 @@ protected function getReportSchedulesRequest($report_types) * @param \DateTime $created_until The latest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is now. (optional) * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getReports operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * @throws ApiException on non-2xx response * @throws \InvalidArgumentException * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportsResponse @@ -1049,7 +1029,7 @@ public function getReports($report_types = null, $processing_statuses = null, $m * @param \DateTime $created_until The latest report creation date and time for reports to include in the response, in ISO 8601 date time format. The default is now. (optional) * @param string $next_token A string token returned in the response to your previous request. nextToken is returned when the number of results exceeds the specified pageSize value. To get the next page of results, call the getReports operation and include this token as the only parameter. Specifying nextToken with any other parameters will cause the request to fail. (optional) * - * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * @throws ApiException on non-2xx response * @throws \InvalidArgumentException * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Reports\GetReportsResponse, HTTP status code, HTTP response headers (array of strings) diff --git a/lib/Api/SalesApi.php b/lib/Api/SalesApi.php index 76b3f58e..0df33579 100644 --- a/lib/Api/SalesApi.php +++ b/lib/Api/SalesApi.php @@ -1,52 +1,33 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -86,67 +63,70 @@ public function getConfig() } /** - * Operation getOrderMetrics + * Operation getOrderMetrics. * - * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) - * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) - * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) - * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) - * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) - * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) - * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) - * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) - * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) + * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) + * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) + * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) + * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) + * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) + * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) + * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) + * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Sales\GetOrderMetricsResponse */ public function getOrderMetrics($marketplace_ids, $interval, $granularity, $granularity_time_zone = null, $buyer_type = 'All', $fulfillment_network = null, $first_day_of_week = 'Monday', $asin = null, $sku = null) { list($response) = $this->getOrderMetricsWithHttpInfo($marketplace_ids, $interval, $granularity, $granularity_time_zone, $buyer_type, $fulfillment_network, $first_day_of_week, $asin, $sku); + return $response; } /** - * Operation getOrderMetricsWithHttpInfo + * Operation getOrderMetricsWithHttpInfo. * - * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) - * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) - * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) - * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) - * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) - * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) - * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) - * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) - * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) + * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) + * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) + * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) + * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) + * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) + * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) + * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) + * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Sales\GetOrderMetricsResponse, HTTP status code, HTTP response headers (array of strings) */ public function getOrderMetricsWithHttpInfo($marketplace_ids, $interval, $granularity, $granularity_time_zone = null, $buyer_type = 'All', $fulfillment_network = null, $first_day_of_week = 'Monday', $asin = null, $sku = null) { $request = $this->getOrderMetricsRequest($marketplace_ids, $interval, $granularity, $granularity_time_zone, $buyer_type, $fulfillment_network, $first_day_of_week, $asin, $sku); + return $this->sendRequest($request, GetOrderMetricsResponse::class); } /** - * Operation getOrderMetricsAsync - * - * + * Operation getOrderMetricsAsync. * - * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) - * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) - * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) - * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) - * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) - * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) - * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) - * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) - * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) + * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) + * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) + * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) + * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) + * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) + * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) + * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) + * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getOrderMetricsAsync($marketplace_ids, $interval, $granularity, $granularity_time_zone = null, $buyer_type = 'All', $fulfillment_network = null, $first_day_of_week = 'Monday', $asin = null, $sku = null) @@ -160,65 +140,60 @@ function ($response) { } /** - * Operation getOrderMetricsAsyncWithHttpInfo - * - * + * Operation getOrderMetricsAsyncWithHttpInfo. * - * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) - * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) - * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) - * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) - * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) - * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) - * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) - * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) - * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) + * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) + * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) + * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) + * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) + * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) + * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) + * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) + * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getOrderMetricsAsyncWithHttpInfo($marketplace_ids, $interval, $granularity, $granularity_time_zone = null, $buyer_type = 'All', $fulfillment_network = null, $first_day_of_week = 'Monday', $asin = null, $sku = null) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Sales\GetOrderMetricsResponse'; $request = $this->getOrderMetricsRequest($marketplace_ids, $interval, $granularity, $granularity_time_zone, $buyer_type, $fulfillment_network, $first_day_of_week, $asin, $sku); + return $this->sendRequestAsync($request, GetOrderMetricsResponse::class); } /** - * Create request for operation 'getOrderMetrics' + * Create request for operation 'getOrderMetrics'. * - * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) - * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) - * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) - * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) - * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) - * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) - * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) - * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) - * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) + * @param string[] $marketplace_ids A list of marketplace identifiers. Example: ATVPDKIKX0DER indicates the US marketplace. (required) + * @param string $interval A time interval used for selecting order metrics. This takes the form of two dates separated by two hyphens (first date is inclusive; second date is exclusive). Dates are in ISO8601 format and must represent absolute time (either Z notation or offset notation). Example: 2018-09-01T00:00:00-07:00--2018-09-04T00:00:00-07:00 requests order metrics for Sept 1st, 2nd and 3rd in the -07:00 zone. (required) + * @param string $granularity The granularity of the grouping of order metrics, based on a unit of time. Specifying granularity=Hour results in a successful request only if the interval specified is less than or equal to 30 days from now. For all other granularities, the interval specified must be less or equal to 2 years from now. Specifying granularity=Total results in order metrics that are aggregated over the entire interval that you specify. If the interval start and end date don’t align with the specified granularity, the head and tail end of the response interval will contain partial data. Example: Day to get a daily breakdown of the request interval, where the day boundary is defined by the granularityTimeZone. (required) + * @param string $granularity_time_zone An IANA-compatible time zone for determining the day boundary. Required when specifying a granularity value greater than Hour. The granularityTimeZone value must align with the offset of the specified interval value. For example, if the interval value uses Z notation, then granularityTimeZone must be UTC. If the interval value uses an offset, then granularityTimeZone must be an IANA-compatible time zone that matches the offset. Example: US/Pacific to compute day boundaries, accounting for daylight time savings, for US/Pacific zone. (optional) + * @param string $buyer_type Filters the results by the buyer type that you specify, B2B (business to business) or B2C (business to customer). Example: B2B, if you want the response to include order metrics for only B2B buyers. (optional, default to All) + * @param string $fulfillment_network Filters the results by the fulfillment network that you specify, MFN (merchant fulfillment network) or AFN (Amazon fulfillment network). Do not include this filter if you want the response to include order metrics for all fulfillment networks. Example: AFN, if you want the response to include order metrics for only Amazon fulfillment network. (optional) + * @param string $first_day_of_week Specifies the day that the week starts on when granularity=Week, either Monday or Sunday. Default: Monday. Example: Sunday, if you want the week to start on a Sunday. (optional, default to Monday) + * @param string $asin Filters the results by the ASIN that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all ASINs. Example: B0792R1RSN, if you want the response to include order metrics for only ASIN B0792R1RSN. (optional) + * @param string $sku Filters the results by the SKU that you specify. Specifying both ASIN and SKU returns an error. Do not include this filter if you want the response to include order metrics for all SKUs. Example: TestSKU, if you want the response to include order metrics for only SKU TestSKU. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getOrderMetricsRequest($marketplace_ids, $interval, $granularity, $granularity_time_zone = null, $buyer_type = 'All', $fulfillment_network = null, $first_day_of_week = 'Monday', $asin = null, $sku = null) { // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling getOrderMetrics' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling getOrderMetrics'); } // verify the required parameter 'interval' is set - if ($interval === null || (is_array($interval) && count($interval) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $interval when calling getOrderMetrics' - ); + if (null === $interval || (is_array($interval) && 0 === count($interval))) { + throw new \InvalidArgumentException('Missing the required parameter $interval when calling getOrderMetrics'); } // verify the required parameter 'granularity' is set - if ($granularity === null || (is_array($granularity) && count($granularity) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $granularity when calling getOrderMetrics' - ); + if (null === $granularity || (is_array($granularity) && 0 === count($granularity))) { + throw new \InvalidArgumentException('Missing the required parameter $granularity when calling getOrderMetrics'); } $resourcePath = '/sales/v1/orderMetrics'; @@ -232,41 +207,42 @@ protected function getOrderMetricsRequest($marketplace_ids, $interval, $granular if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } // query params - if ($interval !== null) { + if (null !== $interval) { $queryParams['interval'] = ObjectSerializer::toQueryValue($interval); } // query params - if ($granularity_time_zone !== null) { + if (null !== $granularity_time_zone) { $queryParams['granularityTimeZone'] = ObjectSerializer::toQueryValue($granularity_time_zone); } // query params - if ($granularity !== null) { + if (null !== $granularity) { $queryParams['granularity'] = ObjectSerializer::toQueryValue($granularity); } // query params - if ($buyer_type !== null) { + if (null !== $buyer_type) { $queryParams['buyerType'] = ObjectSerializer::toQueryValue($buyer_type); } // query params - if ($fulfillment_network !== null) { + if (null !== $fulfillment_network) { $queryParams['fulfillmentNetwork'] = ObjectSerializer::toQueryValue($fulfillment_network); } // query params - if ($first_day_of_week !== null) { + if (null !== $first_day_of_week) { $queryParams['firstDayOfWeek'] = ObjectSerializer::toQueryValue($first_day_of_week); } // query params - if ($asin !== null) { + if (null !== $asin) { $queryParams['asin'] = ObjectSerializer::toQueryValue($asin); } // query params - if ($sku !== null) { + if (null !== $sku) { $queryParams['sku'] = ObjectSerializer::toQueryValue($sku); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } } diff --git a/lib/Api/SellersApi.php b/lib/Api/SellersApi.php index 6aa91b71..b4ed1e42 100644 --- a/lib/Api/SellersApi.php +++ b/lib/Api/SellersApi.php @@ -1,53 +1,32 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -87,40 +62,40 @@ public function getConfig() } /** - * Operation getMarketplaceParticipations - * + * Operation getMarketplaceParticipations. * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\GetMarketplaceParticipationsResponse */ public function getMarketplaceParticipations() { list($response) = $this->getMarketplaceParticipationsWithHttpInfo(); + return $response; } /** - * Operation getMarketplaceParticipationsWithHttpInfo - * + * Operation getMarketplaceParticipationsWithHttpInfo. * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\GetMarketplaceParticipationsResponse, HTTP status code, HTTP response headers (array of strings) */ public function getMarketplaceParticipationsWithHttpInfo() { $request = $this->getMarketplaceParticipationsRequest(); + return $this->sendRequest($request, GetMarketplaceParticipationsResponse::class); } /** - * Operation getMarketplaceParticipationsAsync - * - * - * + * Operation getMarketplaceParticipationsAsync. * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getMarketplaceParticipationsAsync() @@ -134,30 +109,28 @@ function ($response) { } /** - * Operation getMarketplaceParticipationsAsyncWithHttpInfo - * - * - * + * Operation getMarketplaceParticipationsAsyncWithHttpInfo. * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getMarketplaceParticipationsAsyncWithHttpInfo() { $request = $this->getMarketplaceParticipationsRequest(); + return $this->sendRequest($request, GetMarketplaceParticipationsResponse::class); } /** - * Create request for operation 'getMarketplaceParticipations' - * + * Create request for operation 'getMarketplaceParticipations'. * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getMarketplaceParticipationsRequest() { - $resourcePath = '/sellers/v1/marketplaceParticipations'; $formParams = []; $queryParams = []; @@ -165,8 +138,6 @@ protected function getMarketplaceParticipationsRequest() $httpBody = ''; $multipart = false; - return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } - } diff --git a/lib/Api/ServiceApi.php b/lib/Api/ServiceApi.php index 58b31afa..5b0b3b67 100644 --- a/lib/Api/ServiceApi.php +++ b/lib/Api/ServiceApi.php @@ -1,57 +1,37 @@ client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -91,46 +67,49 @@ public function getConfig() } /** - * Operation addAppointmentForServiceJobByServiceJobId + * Operation addAppointmentForServiceJobByServiceJobId. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\SetAppointmentResponse */ public function addAppointmentForServiceJobByServiceJobId($body, $service_job_id) { list($response) = $this->addAppointmentForServiceJobByServiceJobIdWithHttpInfo($body, $service_job_id); + return $response; } /** - * Operation addAppointmentForServiceJobByServiceJobIdWithHttpInfo + * Operation addAppointmentForServiceJobByServiceJobIdWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Services\SetAppointmentResponse, HTTP status code, HTTP response headers (array of strings) */ public function addAppointmentForServiceJobByServiceJobIdWithHttpInfo($body, $service_job_id) { $request = $this->addAppointmentForServiceJobByServiceJobIdRequest($body, $service_job_id); + return $this->sendRequest($request, SetAppointmentResponse::class); } /** - * Operation addAppointmentForServiceJobByServiceJobIdAsync + * Operation addAppointmentForServiceJobByServiceJobIdAsync. * - * - * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function addAppointmentForServiceJobByServiceJobIdAsync($body, $service_job_id) @@ -144,44 +123,41 @@ function ($response) { } /** - * Operation addAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo - * - * + * Operation addAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function addAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo($body, $service_job_id) { $request = $this->addAppointmentForServiceJobByServiceJobIdRequest($body, $service_job_id); + return $this->sendRequestAsync($request, SetAppointmentResponse::class); } /** - * Create request for operation 'addAppointmentForServiceJobByServiceJobId' + * Create request for operation 'addAppointmentForServiceJobByServiceJobId'. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\AddAppointmentRequest $body Add appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function addAppointmentForServiceJobByServiceJobIdRequest($body, $service_job_id) { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling addAppointmentForServiceJobByServiceJobId' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling addAppointmentForServiceJobByServiceJobId'); } // verify the required parameter 'service_job_id' is set - if ($service_job_id === null || (is_array($service_job_id) && count($service_job_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $service_job_id when calling addAppointmentForServiceJobByServiceJobId' - ); + if (null === $service_job_id || (is_array($service_job_id) && 0 === count($service_job_id))) { + throw new \InvalidArgumentException('Missing the required parameter $service_job_id when calling addAppointmentForServiceJobByServiceJobId'); } $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/appointments'; @@ -191,59 +167,62 @@ protected function addAppointmentForServiceJobByServiceJobIdRequest($body, $serv $httpBody = $body; $multipart = false; - // path params - if ($service_job_id !== null) { + if (null !== $service_job_id) { $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', + '{'.'serviceJobId'.'}', ObjectSerializer::toPathValue($service_job_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } /** - * Operation cancelServiceJobByServiceJobId + * Operation cancelServiceJobByServiceJobId. * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\CancelServiceJobByServiceJobIdResponse */ public function cancelServiceJobByServiceJobId($service_job_id, $cancellation_reason_code) { list($response) = $this->cancelServiceJobByServiceJobIdWithHttpInfo($service_job_id, $cancellation_reason_code); + return $response; } /** - * Operation cancelServiceJobByServiceJobIdWithHttpInfo + * Operation cancelServiceJobByServiceJobIdWithHttpInfo. * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Services\CancelServiceJobByServiceJobIdResponse, HTTP status code, HTTP response headers (array of strings) */ public function cancelServiceJobByServiceJobIdWithHttpInfo($service_job_id, $cancellation_reason_code) { $request = $this->cancelServiceJobByServiceJobIdRequest($service_job_id, $cancellation_reason_code); + return $this->sendRequest($request, CancelServiceJobByServiceJobIdResponse::class); } /** - * Operation cancelServiceJobByServiceJobIdAsync + * Operation cancelServiceJobByServiceJobIdAsync. * - * - * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function cancelServiceJobByServiceJobIdAsync($service_job_id, $cancellation_reason_code) @@ -257,44 +236,41 @@ function ($response) { } /** - * Operation cancelServiceJobByServiceJobIdAsyncWithHttpInfo - * - * + * Operation cancelServiceJobByServiceJobIdAsyncWithHttpInfo. * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function cancelServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id, $cancellation_reason_code) { $request = $this->cancelServiceJobByServiceJobIdRequest($service_job_id, $cancellation_reason_code); + return $this->sendRequestAsync($request, CancelServiceJobByServiceJobIdResponse::class); } /** - * Create request for operation 'cancelServiceJobByServiceJobId' + * Create request for operation 'cancelServiceJobByServiceJobId'. * - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $cancellation_reason_code A cancel reason code that specifies the reason for cancelling a service job. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function cancelServiceJobByServiceJobIdRequest($service_job_id, $cancellation_reason_code) { // verify the required parameter 'service_job_id' is set - if ($service_job_id === null || (is_array($service_job_id) && count($service_job_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $service_job_id when calling cancelServiceJobByServiceJobId' - ); + if (null === $service_job_id || (is_array($service_job_id) && 0 === count($service_job_id))) { + throw new \InvalidArgumentException('Missing the required parameter $service_job_id when calling cancelServiceJobByServiceJobId'); } // verify the required parameter 'cancellation_reason_code' is set - if ($cancellation_reason_code === null || (is_array($cancellation_reason_code) && count($cancellation_reason_code) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $cancellation_reason_code when calling cancelServiceJobByServiceJobId' - ); + if (null === $cancellation_reason_code || (is_array($cancellation_reason_code) && 0 === count($cancellation_reason_code))) { + throw new \InvalidArgumentException('Missing the required parameter $cancellation_reason_code when calling cancelServiceJobByServiceJobId'); } $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/cancellations'; @@ -305,59 +281,63 @@ protected function cancelServiceJobByServiceJobIdRequest($service_job_id, $cance $multipart = false; // query params - if ($cancellation_reason_code !== null) { + if (null !== $cancellation_reason_code) { $queryParams['cancellationReasonCode'] = ObjectSerializer::toQueryValue($cancellation_reason_code); } // path params - if ($service_job_id !== null) { + if (null !== $service_job_id) { $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', + '{'.'serviceJobId'.'}', ObjectSerializer::toPathValue($service_job_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'PUT', $httpBody); } /** - * Operation completeServiceJobByServiceJobId + * Operation completeServiceJobByServiceJobId. * - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\CompleteServiceJobByServiceJobIdResponse */ public function completeServiceJobByServiceJobId($service_job_id) { list($response) = $this->completeServiceJobByServiceJobIdWithHttpInfo($service_job_id); + return $response; } /** - * Operation completeServiceJobByServiceJobIdWithHttpInfo + * Operation completeServiceJobByServiceJobIdWithHttpInfo. * - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Services\CompleteServiceJobByServiceJobIdResponse, HTTP status code, HTTP response headers (array of strings) */ public function completeServiceJobByServiceJobIdWithHttpInfo($service_job_id) { $request = $this->completeServiceJobByServiceJobIdRequest($service_job_id); + return $this->sendRequest($request, CompleteServiceJobByServiceJobIdResponse::class); } /** - * Operation completeServiceJobByServiceJobIdAsync - * - * + * Operation completeServiceJobByServiceJobIdAsync. * - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function completeServiceJobByServiceJobIdAsync($service_job_id) @@ -371,36 +351,35 @@ function ($response) { } /** - * Operation completeServiceJobByServiceJobIdAsyncWithHttpInfo - * - * + * Operation completeServiceJobByServiceJobIdAsyncWithHttpInfo. * - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function completeServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id) { $request = $this->completeServiceJobByServiceJobIdRequest($service_job_id); + return $this->sendRequestAsync($request, CompleteServiceJobByServiceJobIdResponse::class); } /** - * Create request for operation 'completeServiceJobByServiceJobId' + * Create request for operation 'completeServiceJobByServiceJobId'. * - * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function completeServiceJobByServiceJobIdRequest($service_job_id) { // verify the required parameter 'service_job_id' is set - if ($service_job_id === null || (is_array($service_job_id) && count($service_job_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $service_job_id when calling completeServiceJobByServiceJobId' - ); + if (null === $service_job_id || (is_array($service_job_id) && 0 === count($service_job_id))) { + throw new \InvalidArgumentException('Missing the required parameter $service_job_id when calling completeServiceJobByServiceJobId'); } $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/completions'; @@ -414,43 +393,46 @@ protected function completeServiceJobByServiceJobIdRequest($service_job_id) } /** - * Operation getServiceJobByServiceJobId + * Operation getServiceJobByServiceJobId. * - * @param string $service_job_id A service job identifier. (required) + * @param string $service_job_id A service job identifier. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\GetServiceJobByServiceJobIdResponse */ public function getServiceJobByServiceJobId($service_job_id) { list($response) = $this->getServiceJobByServiceJobIdWithHttpInfo($service_job_id); + return $response; } /** - * Operation getServiceJobByServiceJobIdWithHttpInfo + * Operation getServiceJobByServiceJobIdWithHttpInfo. * - * @param string $service_job_id A service job identifier. (required) + * @param string $service_job_id A service job identifier. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Services\GetServiceJobByServiceJobIdResponse, HTTP status code, HTTP response headers (array of strings) */ public function getServiceJobByServiceJobIdWithHttpInfo($service_job_id) { $request = $this->getServiceJobByServiceJobIdRequest($service_job_id); + return $this->sendRequest($request, GetServiceJobByServiceJobIdResponse::class); } /** - * Operation getServiceJobByServiceJobIdAsync - * - * + * Operation getServiceJobByServiceJobIdAsync. * - * @param string $service_job_id A service job identifier. (required) + * @param string $service_job_id A service job identifier. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getServiceJobByServiceJobIdAsync($service_job_id) @@ -464,37 +446,36 @@ function ($response) { } /** - * Operation getServiceJobByServiceJobIdAsyncWithHttpInfo - * - * + * Operation getServiceJobByServiceJobIdAsyncWithHttpInfo. * - * @param string $service_job_id A service job identifier. (required) + * @param string $service_job_id A service job identifier. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getServiceJobByServiceJobIdAsyncWithHttpInfo($service_job_id) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Services\GetServiceJobByServiceJobIdResponse'; $request = $this->getServiceJobByServiceJobIdRequest($service_job_id); + return $this->sendRequestAsync($request, GetServiceJobByServiceJobIdResponse::class); } /** - * Create request for operation 'getServiceJobByServiceJobId' + * Create request for operation 'getServiceJobByServiceJobId'. * - * @param string $service_job_id A service job identifier. (required) + * @param string $service_job_id A service job identifier. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getServiceJobByServiceJobIdRequest($service_job_id) { // verify the required parameter 'service_job_id' is set - if ($service_job_id === null || (is_array($service_job_id) && count($service_job_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $service_job_id when calling getServiceJobByServiceJobId' - ); + if (null === $service_job_id || (is_array($service_job_id) && 0 === count($service_job_id))) { + throw new \InvalidArgumentException('Missing the required parameter $service_job_id when calling getServiceJobByServiceJobId'); } $resourcePath = '/service/v1/serviceJobs/{serviceJobId}'; @@ -504,92 +485,95 @@ protected function getServiceJobByServiceJobIdRequest($service_job_id) $httpBody = ''; $multipart = false; - // path params - if ($service_job_id !== null) { + if (null !== $service_job_id) { $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', + '{'.'serviceJobId'.'}', ObjectSerializer::toPathValue($service_job_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getServiceJobs + * Operation getServiceJobs. * - * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) - * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) - * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) - * @param string $page_token String returned in the response of your previous request. (optional) - * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) - * @param string $sort_field Sort fields on which you want to sort the output. (optional) - * @param string $sort_order Sort order for the query you want to perform. (optional) - * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) - * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) + * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) + * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) + * @param string $page_token String returned in the response of your previous request. (optional) + * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) + * @param string $sort_field Sort fields on which you want to sort the output. (optional) + * @param string $sort_order Sort order for the query you want to perform. (optional) + * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\GetServiceJobsResponse */ public function getServiceJobs($marketplace_ids, $service_order_ids = null, $service_job_status = null, $page_token = null, $page_size = '20', $sort_field = null, $sort_order = null, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $schedule_start_date = null, $schedule_end_date = null) { list($response) = $this->getServiceJobsWithHttpInfo($marketplace_ids, $service_order_ids, $service_job_status, $page_token, $page_size, $sort_field, $sort_order, $created_after, $created_before, $last_updated_after, $last_updated_before, $schedule_start_date, $schedule_end_date); + return $response; } /** - * Operation getServiceJobsWithHttpInfo + * Operation getServiceJobsWithHttpInfo. * - * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) - * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) - * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) - * @param string $page_token String returned in the response of your previous request. (optional) - * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) - * @param string $sort_field Sort fields on which you want to sort the output. (optional) - * @param string $sort_order Sort order for the query you want to perform. (optional) - * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) - * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) + * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) + * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) + * @param string $page_token String returned in the response of your previous request. (optional) + * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) + * @param string $sort_field Sort fields on which you want to sort the output. (optional) + * @param string $sort_order Sort order for the query you want to perform. (optional) + * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Services\GetServiceJobsResponse, HTTP status code, HTTP response headers (array of strings) */ public function getServiceJobsWithHttpInfo($marketplace_ids, $service_order_ids = null, $service_job_status = null, $page_token = null, $page_size = '20', $sort_field = null, $sort_order = null, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $schedule_start_date = null, $schedule_end_date = null) { $request = $this->getServiceJobsRequest($marketplace_ids, $service_order_ids, $service_job_status, $page_token, $page_size, $sort_field, $sort_order, $created_after, $created_before, $last_updated_after, $last_updated_before, $schedule_start_date, $schedule_end_date); + return $this->sendRequest($request, GetServiceJobsResponse::class); } /** - * Operation getServiceJobsAsync - * - * + * Operation getServiceJobsAsync. * - * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) - * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) - * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) - * @param string $page_token String returned in the response of your previous request. (optional) - * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) - * @param string $sort_field Sort fields on which you want to sort the output. (optional) - * @param string $sort_order Sort order for the query you want to perform. (optional) - * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) - * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) + * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) + * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) + * @param string $page_token String returned in the response of your previous request. (optional) + * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) + * @param string $sort_field Sort fields on which you want to sort the output. (optional) + * @param string $sort_order Sort order for the query you want to perform. (optional) + * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getServiceJobsAsync($marketplace_ids, $service_order_ids = null, $service_job_status = null, $page_token = null, $page_size = '20', $sort_field = null, $sort_order = null, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $schedule_start_date = null, $schedule_end_date = null) @@ -603,60 +587,59 @@ function ($response) { } /** - * Operation getServiceJobsAsyncWithHttpInfo - * - * + * Operation getServiceJobsAsyncWithHttpInfo. * - * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) - * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) - * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) - * @param string $page_token String returned in the response of your previous request. (optional) - * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) - * @param string $sort_field Sort fields on which you want to sort the output. (optional) - * @param string $sort_order Sort order for the query you want to perform. (optional) - * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) - * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) + * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) + * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) + * @param string $page_token String returned in the response of your previous request. (optional) + * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) + * @param string $sort_field Sort fields on which you want to sort the output. (optional) + * @param string $sort_order Sort order for the query you want to perform. (optional) + * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getServiceJobsAsyncWithHttpInfo($marketplace_ids, $service_order_ids = null, $service_job_status = null, $page_token = null, $page_size = '20', $sort_field = null, $sort_order = null, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $schedule_start_date = null, $schedule_end_date = null) { $request = $this->getServiceJobsRequest($marketplace_ids, $service_order_ids, $service_job_status, $page_token, $page_size, $sort_field, $sort_order, $created_after, $created_before, $last_updated_after, $last_updated_before, $schedule_start_date, $schedule_end_date); + return $this->sendRequestAsync($request, GetServiceJobsResponse::class); } /** - * Create request for operation 'getServiceJobs' + * Create request for operation 'getServiceJobs'. * - * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) - * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) - * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) - * @param string $page_token String returned in the response of your previous request. (optional) - * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) - * @param string $sort_field Sort fields on which you want to sort the output. (optional) - * @param string $sort_order Sort order for the query you want to perform. (optional) - * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) - * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) - * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) - * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string[] $marketplace_ids Used to select jobs that were placed in the specified marketplaces. (required) + * @param string[] $service_order_ids List of service order ids for the query you want to perform.Max values supported 20. (optional) + * @param string[] $service_job_status A list of one or more job status by which to filter the list of jobs. (optional) + * @param string $page_token String returned in the response of your previous request. (optional) + * @param int $page_size A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20. (optional, default to 20) + * @param string $sort_field Sort fields on which you want to sort the output. (optional) + * @param string $sort_order Sort order for the query you want to perform. (optional) + * @param string $created_after A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $created_before A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $last_updated_after A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error. (optional) + * @param string $last_updated_before A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format. (optional) + * @param string $schedule_start_date A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) + * @param string $schedule_end_date A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date. (optional) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getServiceJobsRequest($marketplace_ids, $service_order_ids = null, $service_job_status = null, $page_token = null, $page_size = '20', $sort_field = null, $sort_order = null, $created_after = null, $created_before = null, $last_updated_after = null, $last_updated_before = null, $schedule_start_date = null, $schedule_end_date = null) { // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling getServiceJobs' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling getServiceJobs'); } $resourcePath = '/service/v1/serviceJobs'; @@ -670,110 +653,114 @@ protected function getServiceJobsRequest($marketplace_ids, $service_order_ids = if (is_array($service_order_ids)) { $service_order_ids = ObjectSerializer::serializeCollection($service_order_ids, 'csv', true); } - if ($service_order_ids !== null) { + if (null !== $service_order_ids) { $queryParams['serviceOrderIds'] = ObjectSerializer::toQueryValue($service_order_ids); } // query params if (is_array($service_job_status)) { $service_job_status = ObjectSerializer::serializeCollection($service_job_status, 'csv', true); } - if ($service_job_status !== null) { + if (null !== $service_job_status) { $queryParams['serviceJobStatus'] = ObjectSerializer::toQueryValue($service_job_status); } // query params - if ($page_token !== null) { + if (null !== $page_token) { $queryParams['pageToken'] = ObjectSerializer::toQueryValue($page_token); } // query params - if ($page_size !== null) { + if (null !== $page_size) { $queryParams['pageSize'] = ObjectSerializer::toQueryValue($page_size); } // query params - if ($sort_field !== null) { + if (null !== $sort_field) { $queryParams['sortField'] = ObjectSerializer::toQueryValue($sort_field); } // query params - if ($sort_order !== null) { + if (null !== $sort_order) { $queryParams['sortOrder'] = ObjectSerializer::toQueryValue($sort_order); } // query params - if ($created_after !== null) { + if (null !== $created_after) { $queryParams['createdAfter'] = ObjectSerializer::toQueryValue($created_after); } // query params - if ($created_before !== null) { + if (null !== $created_before) { $queryParams['createdBefore'] = ObjectSerializer::toQueryValue($created_before); } // query params - if ($last_updated_after !== null) { + if (null !== $last_updated_after) { $queryParams['lastUpdatedAfter'] = ObjectSerializer::toQueryValue($last_updated_after); } // query params - if ($last_updated_before !== null) { + if (null !== $last_updated_before) { $queryParams['lastUpdatedBefore'] = ObjectSerializer::toQueryValue($last_updated_before); } // query params - if ($schedule_start_date !== null) { + if (null !== $schedule_start_date) { $queryParams['scheduleStartDate'] = ObjectSerializer::toQueryValue($schedule_start_date); } // query params - if ($schedule_end_date !== null) { + if (null !== $schedule_end_date) { $queryParams['scheduleEndDate'] = ObjectSerializer::toQueryValue($schedule_end_date); } // query params if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation rescheduleAppointmentForServiceJobByServiceJobId + * Operation rescheduleAppointmentForServiceJobByServiceJobId. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $appointment_id An existing appointment identifier for the Service Job. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $appointment_id An existing appointment identifier for the Service Job. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Services\SetAppointmentResponse */ public function rescheduleAppointmentForServiceJobByServiceJobId($body, $service_job_id, $appointment_id) { list($response) = $this->rescheduleAppointmentForServiceJobByServiceJobIdWithHttpInfo($body, $service_job_id, $appointment_id); + return $response; } /** - * Operation rescheduleAppointmentForServiceJobByServiceJobIdWithHttpInfo + * Operation rescheduleAppointmentForServiceJobByServiceJobIdWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $appointment_id An existing appointment identifier for the Service Job. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $appointment_id An existing appointment identifier for the Service Job. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Services\SetAppointmentResponse, HTTP status code, HTTP response headers (array of strings) */ public function rescheduleAppointmentForServiceJobByServiceJobIdWithHttpInfo($body, $service_job_id, $appointment_id) { $request = $this->rescheduleAppointmentForServiceJobByServiceJobIdRequest($body, $service_job_id, $appointment_id); + return $this->sendRequest($request, SetAppointmentResponse::class); } /** - * Operation rescheduleAppointmentForServiceJobByServiceJobIdAsync + * Operation rescheduleAppointmentForServiceJobByServiceJobIdAsync. * - * - * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $appointment_id An existing appointment identifier for the Service Job. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $appointment_id An existing appointment identifier for the Service Job. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function rescheduleAppointmentForServiceJobByServiceJobIdAsync($body, $service_job_id, $appointment_id) @@ -787,52 +774,47 @@ function ($response) { } /** - * Operation rescheduleAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo - * - * + * Operation rescheduleAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $appointment_id An existing appointment identifier for the Service Job. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $appointment_id An existing appointment identifier for the Service Job. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function rescheduleAppointmentForServiceJobByServiceJobIdAsyncWithHttpInfo($body, $service_job_id, $appointment_id) { $request = $this->rescheduleAppointmentForServiceJobByServiceJobIdRequest($body, $service_job_id, $appointment_id); + return $this->sendRequestAsync($request, SetAppointmentResponse::class); } /** - * Create request for operation 'rescheduleAppointmentForServiceJobByServiceJobId' + * Create request for operation 'rescheduleAppointmentForServiceJobByServiceJobId'. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) - * @param string $service_job_id An Amazon defined service job identifier. (required) - * @param string $appointment_id An existing appointment identifier for the Service Job. (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Services\RescheduleAppointmentRequest $body Reschedule appointment operation input details. (required) + * @param string $service_job_id An Amazon defined service job identifier. (required) + * @param string $appointment_id An existing appointment identifier for the Service Job. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function rescheduleAppointmentForServiceJobByServiceJobIdRequest($body, $service_job_id, $appointment_id) { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling rescheduleAppointmentForServiceJobByServiceJobId' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling rescheduleAppointmentForServiceJobByServiceJobId'); } // verify the required parameter 'service_job_id' is set - if ($service_job_id === null || (is_array($service_job_id) && count($service_job_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $service_job_id when calling rescheduleAppointmentForServiceJobByServiceJobId' - ); + if (null === $service_job_id || (is_array($service_job_id) && 0 === count($service_job_id))) { + throw new \InvalidArgumentException('Missing the required parameter $service_job_id when calling rescheduleAppointmentForServiceJobByServiceJobId'); } // verify the required parameter 'appointment_id' is set - if ($appointment_id === null || (is_array($appointment_id) && count($appointment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $appointment_id when calling rescheduleAppointmentForServiceJobByServiceJobId' - ); + if (null === $appointment_id || (is_array($appointment_id) && 0 === count($appointment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $appointment_id when calling rescheduleAppointmentForServiceJobByServiceJobId'); } $resourcePath = '/service/v1/serviceJobs/{serviceJobId}/appointments/{appointmentId}'; @@ -842,23 +824,23 @@ protected function rescheduleAppointmentForServiceJobByServiceJobIdRequest($body $httpBody = $body; $multipart = false; - // path params - if ($service_job_id !== null) { + if (null !== $service_job_id) { $resourcePath = str_replace( - '{' . 'serviceJobId' . '}', + '{'.'serviceJobId'.'}', ObjectSerializer::toPathValue($service_job_id), $resourcePath ); } // path params - if ($appointment_id !== null) { + if (null !== $appointment_id) { $resourcePath = str_replace( - '{' . 'appointmentId' . '}', + '{'.'appointmentId'.'}', ObjectSerializer::toPathValue($appointment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } } diff --git a/lib/Api/ShippingApi.php b/lib/Api/ShippingApi.php index 571b6e43..cc2476ec 100644 --- a/lib/Api/ShippingApi.php +++ b/lib/Api/ShippingApi.php @@ -1,43 +1,24 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(Configuration $config) + { + $this->client = new Client(); + $this->config = $config; + $this->headerSelector = new HeaderSelector(); } /** * @return Configuration */ - public function getConfig() { + public function getConfig() + { return $this->config; } /** - * Operation cancelShipment + * Operation cancelShipment. * * @param string $shipment_id shipment_id (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CancelShipmentResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CancelShipmentResponse */ - public function cancelShipment($shipment_id) { + public function cancelShipment($shipment_id) + { list($response) = $this->cancelShipmentWithHttpInfo($shipment_id); + return $response; } /** - * Operation cancelShipmentWithHttpInfo + * Operation cancelShipmentWithHttpInfo. * * @param string $shipment_id (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CancelShipmentResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CancelShipmentResponse, HTTP status code, HTTP response headers (array of strings) */ - public function cancelShipmentWithHttpInfo($shipment_id) { + public function cancelShipmentWithHttpInfo($shipment_id) + { $request = $this->cancelShipmentRequest($shipment_id); + return $this->sendRequest($request, CancelShipmentResponse::class); } /** - * Operation cancelShipmentAsync - * - * + * Operation cancelShipmentAsync. * * @param string $shipment_id (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function cancelShipmentAsync($shipment_id) { + public function cancelShipmentAsync($shipment_id) + { return $this->cancelShipmentAsyncWithHttpInfo($shipment_id) ->then( function ($response) { @@ -144,34 +125,35 @@ function ($response) { } /** - * Operation cancelShipmentAsyncWithHttpInfo - * - * + * Operation cancelShipmentAsyncWithHttpInfo. * * @param string $shipment_id (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function cancelShipmentAsyncWithHttpInfo($shipment_id) { + public function cancelShipmentAsyncWithHttpInfo($shipment_id) + { $request = $this->cancelShipmentRequest($shipment_id); + return $this->sendRequestAsync($request, CancelShipmentResponse::class); } /** - * Create request for operation 'cancelShipment' + * Create request for operation 'cancelShipment'. * * @param string $shipment_id (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function cancelShipmentRequest($shipment_id) { + protected function cancelShipmentRequest($shipment_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling cancelShipment' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling cancelShipment'); } $resourcePath = '/shipping/v1/shipments/{shipmentId}/cancel'; @@ -181,57 +163,63 @@ protected function cancelShipmentRequest($shipment_id) { $httpBody = ''; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } /** - * Operation createShipment + * Operation createShipment. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CreateShipmentRequest $body body (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CreateShipmentResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CreateShipmentResponse */ - public function createShipment($body) { + public function createShipment($body) + { list($response) = $this->createShipmentWithHttpInfo($body); + return $response; } /** - * Operation createShipmentWithHttpInfo + * Operation createShipmentWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CreateShipmentRequest $body (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CreateShipmentResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CreateShipmentResponse, HTTP status code, HTTP response headers (array of strings) */ - public function createShipmentWithHttpInfo($body) { + public function createShipmentWithHttpInfo($body) + { $request = $this->createShipmentRequest($body); + return $this->sendRequest($request, CreateShipmentResponse::class); } /** - * Operation createShipmentAsync - * - * + * Operation createShipmentAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CreateShipmentRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createShipmentAsync($body) { + public function createShipmentAsync($body) + { return $this->createShipmentAsyncWithHttpInfo($body) ->then( function ($response) { @@ -241,34 +229,35 @@ function ($response) { } /** - * Operation createShipmentAsyncWithHttpInfo - * - * + * Operation createShipmentAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CreateShipmentRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createShipmentAsyncWithHttpInfo($body) { + public function createShipmentAsyncWithHttpInfo($body) + { $request = $this->createShipmentRequest($body); + return $this->sendRequestAsync($request, CreateShipmentResponse::class); } /** - * Create request for operation 'createShipment' + * Create request for operation 'createShipment'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\CreateShipmentRequest $body (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function createShipmentRequest($body) { + protected function createShipmentRequest($body) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling createShipment' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling createShipment'); } $resourcePath = '/shipping/v1/shipments'; @@ -278,46 +267,48 @@ protected function createShipmentRequest($body) { $httpBody = $body; $multipart = false; - return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } /** - * Operation getAccount + * Operation getAccount. * - * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetAccountResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetAccountResponse */ - public function getAccount() { + public function getAccount() + { list($response) = $this->getAccountWithHttpInfo(); + return $response; } /** - * Operation getAccountWithHttpInfo - * + * Operation getAccountWithHttpInfo. * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetAccountResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetAccountResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getAccountWithHttpInfo() { + public function getAccountWithHttpInfo() + { $request = $this->getAccountRequest(); + return $this->sendRequest($request, GetAccountResponse::class); } /** - * Operation getAccountAsync - * - * + * Operation getAccountAsync. * + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getAccountAsync() { + public function getAccountAsync() + { return $this->getAccountAsyncWithHttpInfo() ->then( function ($response) { @@ -327,28 +318,28 @@ function ($response) { } /** - * Operation getAccountAsyncWithHttpInfo - * - * + * Operation getAccountAsyncWithHttpInfo. * + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function getAccountAsyncWithHttpInfo() { + public function getAccountAsyncWithHttpInfo() + { $request = $this->getAccountRequest(); + return $this->sendRequestAsync($request, GetAccountResponse::class); } /** - * Create request for operation 'getAccount' + * Create request for operation 'getAccount'. * + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Psr7\Request - * @throws \InvalidArgumentException */ - protected function getAccountRequest() { - + protected function getAccountRequest() + { $resourcePath = '/shipping/v1/account'; $formParams = []; $queryParams = []; @@ -360,44 +351,50 @@ protected function getAccountRequest() { } /** - * Operation getRates + * Operation getRates. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesRequest $body body (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesResponse */ - public function getRates($body) { + public function getRates($body) + { list($response) = $this->getRatesWithHttpInfo($body); + return $response; } /** - * Operation getRatesWithHttpInfo + * Operation getRatesWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesRequest $body (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getRatesWithHttpInfo($body) { + public function getRatesWithHttpInfo($body) + { $request = $this->getRatesRequest($body); + return $this->sendRequest($request, GetRatesResponse::class); } /** - * Operation getRatesAsync - * - * + * Operation getRatesAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRatesAsync($body) { + public function getRatesAsync($body) + { return $this->getRatesAsyncWithHttpInfo($body) ->then( function ($response) { @@ -407,34 +404,35 @@ function ($response) { } /** - * Operation getRatesAsyncWithHttpInfo - * - * + * Operation getRatesAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getRatesAsyncWithHttpInfo($body) { + public function getRatesAsyncWithHttpInfo($body) + { $request = $this->getRatesRequest($body); + return $this->sendRequestAsync($request, GetRatesResponse::class); } /** - * Create request for operation 'getRates' + * Create request for operation 'getRates'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetRatesRequest $body (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getRatesRequest($body) { + protected function getRatesRequest($body) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling getRates' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling getRates'); } $resourcePath = '/shipping/v1/rates'; @@ -448,44 +446,50 @@ protected function getRatesRequest($body) { } /** - * Operation getShipment + * Operation getShipment. * * @param string $shipment_id shipment_id (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetShipmentResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetShipmentResponse */ - public function getShipment($shipment_id) { + public function getShipment($shipment_id) + { list($response) = $this->getShipmentWithHttpInfo($shipment_id); + return $response; } /** - * Operation getShipmentWithHttpInfo + * Operation getShipmentWithHttpInfo. * * @param string $shipment_id (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetShipmentResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetShipmentResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getShipmentWithHttpInfo($shipment_id) { + public function getShipmentWithHttpInfo($shipment_id) + { $request = $this->getShipmentRequest($shipment_id); + return $this->sendRequest($request, GetShipmentsResponse::class); } /** - * Operation getShipmentAsync - * - * + * Operation getShipmentAsync. * * @param string $shipment_id (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getShipmentAsync($shipment_id) { + public function getShipmentAsync($shipment_id) + { return $this->getShipmentAsyncWithHttpInfo($shipment_id) ->then( function ($response) { @@ -495,34 +499,35 @@ function ($response) { } /** - * Operation getShipmentAsyncWithHttpInfo - * - * + * Operation getShipmentAsyncWithHttpInfo. * * @param string $shipment_id (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getShipmentAsyncWithHttpInfo($shipment_id) { + public function getShipmentAsyncWithHttpInfo($shipment_id) + { $request = $this->getShipmentRequest($shipment_id); + return $this->sendRequestAsync($request, GetShipmentsResponse::class); } /** - * Create request for operation 'getShipment' + * Create request for operation 'getShipment'. * * @param string $shipment_id (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getShipmentRequest($shipment_id) { + protected function getShipmentRequest($shipment_id) + { // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling getShipment' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling getShipment'); } $resourcePath = '/shipping/v1/shipments/{shipmentId}'; @@ -532,57 +537,63 @@ protected function getShipmentRequest($shipment_id) { $httpBody = ''; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getTrackingInformation + * Operation getTrackingInformation. * * @param string $tracking_id tracking_id (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetTrackingInformationResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetTrackingInformationResponse */ - public function getTrackingInformation($tracking_id) { + public function getTrackingInformation($tracking_id) + { list($response) = $this->getTrackingInformationWithHttpInfo($tracking_id); + return $response; } /** - * Operation getTrackingInformationWithHttpInfo + * Operation getTrackingInformationWithHttpInfo. * * @param string $tracking_id (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetTrackingInformationResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\GetTrackingInformationResponse, HTTP status code, HTTP response headers (array of strings) */ - public function getTrackingInformationWithHttpInfo($tracking_id) { + public function getTrackingInformationWithHttpInfo($tracking_id) + { $request = $this->getTrackingInformationRequest($tracking_id); + return $this->sendRequest($request, GetTrackingInformationResponse::class); } /** - * Operation getTrackingInformationAsync - * - * + * Operation getTrackingInformationAsync. * * @param string $tracking_id (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTrackingInformationAsync($tracking_id) { + public function getTrackingInformationAsync($tracking_id) + { return $this->getTrackingInformationAsyncWithHttpInfo($tracking_id) ->then( function ($response) { @@ -592,34 +603,35 @@ function ($response) { } /** - * Operation getTrackingInformationAsyncWithHttpInfo - * - * + * Operation getTrackingInformationAsyncWithHttpInfo. * * @param string $tracking_id (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getTrackingInformationAsyncWithHttpInfo($tracking_id) { + public function getTrackingInformationAsyncWithHttpInfo($tracking_id) + { $request = $this->getTrackingInformationRequest($tracking_id); + return $this->sendRequestAsync($request, GetTrackingInformationResponse::class); } /** - * Create request for operation 'getTrackingInformation' + * Create request for operation 'getTrackingInformation'. * * @param string $tracking_id (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getTrackingInformationRequest($tracking_id) { + protected function getTrackingInformationRequest($tracking_id) + { // verify the required parameter 'tracking_id' is set - if ($tracking_id === null || (is_array($tracking_id) && count($tracking_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $tracking_id when calling getTrackingInformation' - ); + if (null === $tracking_id || (is_array($tracking_id) && 0 === count($tracking_id))) { + throw new \InvalidArgumentException('Missing the required parameter $tracking_id when calling getTrackingInformation'); } $resourcePath = '/shipping/v1/tracking/{trackingId}'; @@ -629,60 +641,66 @@ protected function getTrackingInformationRequest($tracking_id) { $httpBody = ''; $multipart = false; - // path params - if ($tracking_id !== null) { + if (null !== $tracking_id) { $resourcePath = str_replace( - '{' . 'trackingId' . '}', + '{'.'trackingId'.'}', ObjectSerializer::toPathValue($tracking_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation purchaseLabels + * Operation purchaseLabels. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body body (required) - * @param string $shipment_id shipment_id (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body body (required) + * @param string $shipment_id shipment_id (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsResponse */ - public function purchaseLabels($body, $shipment_id) { + public function purchaseLabels($body, $shipment_id) + { list($response) = $this->purchaseLabelsWithHttpInfo($body, $shipment_id); + return $response; } /** - * Operation purchaseLabelsWithHttpInfo + * Operation purchaseLabelsWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body (required) - * @param string $shipment_id (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body (required) + * @param string $shipment_id (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsResponse, HTTP status code, HTTP response headers (array of strings) */ - public function purchaseLabelsWithHttpInfo($body, $shipment_id) { + public function purchaseLabelsWithHttpInfo($body, $shipment_id) + { $request = $this->purchaseLabelsRequest($body, $shipment_id); + return $this->sendRequest($request, PurchaseLabelsResponse::class); } /** - * Operation purchaseLabelsAsync + * Operation purchaseLabelsAsync. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body (required) + * @param string $shipment_id (required) * - * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body (required) - * @param string $shipment_id (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function purchaseLabelsAsync($body, $shipment_id) { + public function purchaseLabelsAsync($body, $shipment_id) + { return $this->purchaseLabelsAsyncWithHttpInfo($body, $shipment_id) ->then( function ($response) { @@ -692,42 +710,41 @@ function ($response) { } /** - * Operation purchaseLabelsAsyncWithHttpInfo + * Operation purchaseLabelsAsyncWithHttpInfo. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body (required) + * @param string $shipment_id (required) * - * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body (required) - * @param string $shipment_id (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function purchaseLabelsAsyncWithHttpInfo($body, $shipment_id) { + public function purchaseLabelsAsyncWithHttpInfo($body, $shipment_id) + { $request = $this->purchaseLabelsRequest($body, $shipment_id); + return $this->sendRequestAsync($request, PurchaseLabelsResponse::class); } /** - * Create request for operation 'purchaseLabels' + * Create request for operation 'purchaseLabels'. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body (required) - * @param string $shipment_id (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseLabelsRequest $body (required) + * @param string $shipment_id (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function purchaseLabelsRequest($body, $shipment_id) { + protected function purchaseLabelsRequest($body, $shipment_id) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling purchaseLabels' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling purchaseLabels'); } // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling purchaseLabels' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling purchaseLabels'); } $resourcePath = '/shipping/v1/shipments/{shipmentId}/purchaseLabels'; @@ -737,57 +754,63 @@ protected function purchaseLabelsRequest($body, $shipment_id) { $httpBody = $body; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } /** - * Operation purchaseShipment + * Operation purchaseShipment. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseShipmentRequest $body body (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseShipmentResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseShipmentResponse */ - public function purchaseShipment($body) { + public function purchaseShipment($body) + { list($response) = $this->purchaseShipmentWithHttpInfo($body); + return $response; } /** - * Operation purchaseShipmentWithHttpInfo + * Operation purchaseShipmentWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseShipmentRequest $body (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseShipmentResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseShipmentResponse, HTTP status code, HTTP response headers (array of strings) */ - public function purchaseShipmentWithHttpInfo($body) { + public function purchaseShipmentWithHttpInfo($body) + { $request = $this->purchaseShipmentRequest($body); + return $this->sendRequest($request, PurchaseShipmentResponse::class); } /** - * Operation purchaseShipmentAsync - * - * + * Operation purchaseShipmentAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseShipmentRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function purchaseShipmentAsync($body) { + public function purchaseShipmentAsync($body) + { return $this->purchaseShipmentAsyncWithHttpInfo($body) ->then( function ($response) { @@ -797,34 +820,35 @@ function ($response) { } /** - * Operation purchaseShipmentAsyncWithHttpInfo - * - * + * Operation purchaseShipmentAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseShipmentRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function purchaseShipmentAsyncWithHttpInfo($body) { + public function purchaseShipmentAsyncWithHttpInfo($body) + { $request = $this->purchaseShipmentRequest($body); + return $this->sendRequestAsync($request, PurchaseShipmentResponse::class); } /** - * Create request for operation 'purchaseShipment' + * Create request for operation 'purchaseShipment'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\PurchaseShipmentRequest $body (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function purchaseShipmentRequest($body) { + protected function purchaseShipmentRequest($body) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling purchaseShipment' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling purchaseShipment'); } $resourcePath = '/shipping/v1/purchaseShipment'; @@ -838,50 +862,56 @@ protected function purchaseShipmentRequest($body) { } /** - * Operation retrieveShippingLabel + * Operation retrieveShippingLabel. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body body (required) - * @param string $shipment_id shipment_id (required) - * @param string $tracking_id tracking_id (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body body (required) + * @param string $shipment_id shipment_id (required) + * @param string $tracking_id tracking_id (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelResponse * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelResponse */ - public function retrieveShippingLabel($body, $shipment_id, $tracking_id) { + public function retrieveShippingLabel($body, $shipment_id, $tracking_id) + { list($response) = $this->retrieveShippingLabelWithHttpInfo($body, $shipment_id, $tracking_id); + return $response; } /** - * Operation retrieveShippingLabelWithHttpInfo + * Operation retrieveShippingLabelWithHttpInfo. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body (required) - * @param string $shipment_id (required) - * @param string $tracking_id (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body (required) + * @param string $shipment_id (required) + * @param string $tracking_id (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelResponse, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelResponse, HTTP status code, HTTP response headers (array of strings) */ - public function retrieveShippingLabelWithHttpInfo($body, $shipment_id, $tracking_id) { + public function retrieveShippingLabelWithHttpInfo($body, $shipment_id, $tracking_id) + { $request = $this->retrieveShippingLabelRequest($body, $shipment_id, $tracking_id); + return $this->sendRequest($request, RetrieveShippingLabelResponse::class); } /** - * Operation retrieveShippingLabelAsync - * + * Operation retrieveShippingLabelAsync. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body (required) + * @param string $shipment_id (required) + * @param string $tracking_id (required) * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body (required) - * @param string $shipment_id (required) - * @param string $tracking_id (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function retrieveShippingLabelAsync($body, $shipment_id, $tracking_id) { + public function retrieveShippingLabelAsync($body, $shipment_id, $tracking_id) + { return $this->retrieveShippingLabelAsyncWithHttpInfo($body, $shipment_id, $tracking_id) ->then( function ($response) { @@ -891,50 +921,47 @@ function ($response) { } /** - * Operation retrieveShippingLabelAsyncWithHttpInfo + * Operation retrieveShippingLabelAsyncWithHttpInfo. * + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body (required) + * @param string $shipment_id (required) + * @param string $tracking_id (required) * - * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body (required) - * @param string $shipment_id (required) - * @param string $tracking_id (required) + * @throws \InvalidArgumentException * * @return \GuzzleHttp\Promise\PromiseInterface - * @throws \InvalidArgumentException */ - public function retrieveShippingLabelAsyncWithHttpInfo($body, $shipment_id, $tracking_id) { + public function retrieveShippingLabelAsyncWithHttpInfo($body, $shipment_id, $tracking_id) + { $request = $this->retrieveShippingLabelRequest($body, $shipment_id, $tracking_id); + return $this->sendRequestAsync($request, RetrieveShippingLabelResponse::class); } /** - * Create request for operation 'retrieveShippingLabel' + * Create request for operation 'retrieveShippingLabel'. * - * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body (required) - * @param string $shipment_id (required) - * @param string $tracking_id (required) + * @param \ClouSale\AmazonSellingPartnerAPI\Models\Shipping\RetrieveShippingLabelRequest $body (required) + * @param string $shipment_id (required) + * @param string $tracking_id (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function retrieveShippingLabelRequest($body, $shipment_id, $tracking_id) { + protected function retrieveShippingLabelRequest($body, $shipment_id, $tracking_id) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling retrieveShippingLabel' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling retrieveShippingLabel'); } // verify the required parameter 'shipment_id' is set - if ($shipment_id === null || (is_array($shipment_id) && count($shipment_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $shipment_id when calling retrieveShippingLabel' - ); + if (null === $shipment_id || (is_array($shipment_id) && 0 === count($shipment_id))) { + throw new \InvalidArgumentException('Missing the required parameter $shipment_id when calling retrieveShippingLabel'); } // verify the required parameter 'tracking_id' is set - if ($tracking_id === null || (is_array($tracking_id) && count($tracking_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $tracking_id when calling retrieveShippingLabel' - ); + if (null === $tracking_id || (is_array($tracking_id) && 0 === count($tracking_id))) { + throw new \InvalidArgumentException('Missing the required parameter $tracking_id when calling retrieveShippingLabel'); } $resourcePath = '/shipping/v1/shipments/{shipmentId}/containers/{trackingId}/label'; @@ -944,24 +971,23 @@ protected function retrieveShippingLabelRequest($body, $shipment_id, $tracking_i $httpBody = $body; $multipart = false; - // path params - if ($shipment_id !== null) { + if (null !== $shipment_id) { $resourcePath = str_replace( - '{' . 'shipmentId' . '}', + '{'.'shipmentId'.'}', ObjectSerializer::toPathValue($shipment_id), $resourcePath ); } // path params - if ($tracking_id !== null) { + if (null !== $tracking_id) { $resourcePath = str_replace( - '{' . 'trackingId' . '}', + '{'.'trackingId'.'}', ObjectSerializer::toPathValue($tracking_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } - } diff --git a/lib/Api/SmallAndLightApi.php b/lib/Api/SmallAndLightApi.php index 4fb5e3a5..192a2d51 100644 --- a/lib/Api/SmallAndLightApi.php +++ b/lib/Api/SmallAndLightApi.php @@ -1,36 +1,20 @@ client = $client ?: new Client(); - $this->config = $config ?: new Configuration(); - $this->headerSelector = $selector ?: new HeaderSelector(); + public function __construct(Configuration $config) + { + $this->client = new Client(); + $this->config = $config; + $this->headerSelector = new HeaderSelector(); } /** * @return Configuration */ - public function getConfig() { + public function getConfig() + { return $this->config; } /** - * Operation deleteSmallAndLightEnrollmentBySellerSKU + * Operation deleteSmallAndLightEnrollmentBySellerSKU. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. (required) * - * @return void * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return void */ - public function deleteSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids) { + public function deleteSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids) + { $this->deleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids); } /** - * Operation deleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo + * Operation deleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. (required) * - * @return array of null, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of null, HTTP status code, HTTP response headers (array of strings) */ - public function deleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) { + public function deleteSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) + { $returnType = ''; $request = $this->deleteSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); + return $this->sendRequest($request, SmallAndLightEnrollment::class); } /** - * Operation deleteSmallAndLightEnrollmentBySellerSKUAsync - * + * Operation deleteSmallAndLightEnrollmentBySellerSKUAsync. * - * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteSmallAndLightEnrollmentBySellerSKUAsync($seller_sku, $marketplace_ids) { + public function deleteSmallAndLightEnrollmentBySellerSKUAsync($seller_sku, $marketplace_ids) + { return $this->deleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) ->then( function ($response) { @@ -138,42 +120,41 @@ function ($response) { } /** - * Operation deleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo + * Operation deleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo. * - * - * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function deleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) { + public function deleteSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) + { $request = $this->deleteSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); + return $this->sendRequestAsync($request, SmallAndLightEnrollment::class); } /** - * Create request for operation 'deleteSmallAndLightEnrollmentBySellerSKU' + * Create request for operation 'deleteSmallAndLightEnrollmentBySellerSKU'. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to remove the item from the Small and Light program. Note: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function deleteSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids) { + protected function deleteSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids) + { // verify the required parameter 'seller_sku' is set - if ($seller_sku === null || (is_array($seller_sku) && count($seller_sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_sku when calling deleteSmallAndLightEnrollmentBySellerSKU' - ); + if (null === $seller_sku || (is_array($seller_sku) && 0 === count($seller_sku))) { + throw new \InvalidArgumentException('Missing the required parameter $seller_sku when calling deleteSmallAndLightEnrollmentBySellerSKU'); } // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling deleteSmallAndLightEnrollmentBySellerSKU' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling deleteSmallAndLightEnrollmentBySellerSKU'); } $resourcePath = '/fba/smallAndLight/v1/enrollments/{sellerSKU}'; @@ -187,63 +168,70 @@ protected function deleteSmallAndLightEnrollmentBySellerSKURequest($seller_sku, if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } // path params - if ($seller_sku !== null) { + if (null !== $seller_sku) { $resourcePath = str_replace( - '{' . 'sellerSKU' . '}', + '{'.'sellerSKU'.'}', ObjectSerializer::toPathValue($seller_sku), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'DELETE', $httpBody); } /** - * Operation getSmallAndLightEligibilityBySellerSKU + * Operation getSmallAndLightEligibilityBySellerSKU. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEligibility * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEligibility */ - public function getSmallAndLightEligibilityBySellerSKU($seller_sku, $marketplace_ids) { + public function getSmallAndLightEligibilityBySellerSKU($seller_sku, $marketplace_ids) + { list($response) = $this->getSmallAndLightEligibilityBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids); + return $response; } /** - * Operation getSmallAndLightEligibilityBySellerSKUWithHttpInfo + * Operation getSmallAndLightEligibilityBySellerSKUWithHttpInfo. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEligibility, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEligibility, HTTP status code, HTTP response headers (array of strings) */ - public function getSmallAndLightEligibilityBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) { + public function getSmallAndLightEligibilityBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) + { $request = $this->getSmallAndLightEligibilityBySellerSKURequest($seller_sku, $marketplace_ids); + return $this->sendRequest($request, SmallAndLightEligibility::class); } /** - * Operation getSmallAndLightEligibilityBySellerSKUAsync - * + * Operation getSmallAndLightEligibilityBySellerSKUAsync. * - * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSmallAndLightEligibilityBySellerSKUAsync($seller_sku, $marketplace_ids) { + public function getSmallAndLightEligibilityBySellerSKUAsync($seller_sku, $marketplace_ids) + { return $this->getSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) ->then( function ($response) { @@ -253,42 +241,41 @@ function ($response) { } /** - * Operation getSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo + * Operation getSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo. * - * - * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) { + public function getSmallAndLightEligibilityBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) + { $request = $this->getSmallAndLightEligibilityBySellerSKURequest($seller_sku, $marketplace_ids); + return $this->sendRequestAsync($request, SmallAndLightEligibility::class); } /** - * Create request for operation 'getSmallAndLightEligibilityBySellerSKU' + * Create request for operation 'getSmallAndLightEligibilityBySellerSKU'. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the eligibility status is retrieved. NOTE: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getSmallAndLightEligibilityBySellerSKURequest($seller_sku, $marketplace_ids) { + protected function getSmallAndLightEligibilityBySellerSKURequest($seller_sku, $marketplace_ids) + { // verify the required parameter 'seller_sku' is set - if ($seller_sku === null || (is_array($seller_sku) && count($seller_sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_sku when calling getSmallAndLightEligibilityBySellerSKU' - ); + if (null === $seller_sku || (is_array($seller_sku) && 0 === count($seller_sku))) { + throw new \InvalidArgumentException('Missing the required parameter $seller_sku when calling getSmallAndLightEligibilityBySellerSKU'); } // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling getSmallAndLightEligibilityBySellerSKU' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling getSmallAndLightEligibilityBySellerSKU'); } $resourcePath = '/fba/smallAndLight/v1/eligibilities/{sellerSKU}'; @@ -302,63 +289,70 @@ protected function getSmallAndLightEligibilityBySellerSKURequest($seller_sku, $m if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } // path params - if ($seller_sku !== null) { + if (null !== $seller_sku) { $resourcePath = str_replace( - '{' . 'sellerSKU' . '}', + '{'.'sellerSKU'.'}', ObjectSerializer::toPathValue($seller_sku), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getSmallAndLightEnrollmentBySellerSKU + * Operation getSmallAndLightEnrollmentBySellerSKU. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollment * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollment */ - public function getSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids) { + public function getSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids) + { list($response) = $this->getSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids); + return $response; } /** - * Operation getSmallAndLightEnrollmentBySellerSKUWithHttpInfo + * Operation getSmallAndLightEnrollmentBySellerSKUWithHttpInfo. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollment, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollment, HTTP status code, HTTP response headers (array of strings) */ - public function getSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) { + public function getSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) + { $request = $this->getSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); + return $this->sendRequest($request, SmallAndLightEnrollment::class); } /** - * Operation getSmallAndLightEnrollmentBySellerSKUAsync + * Operation getSmallAndLightEnrollmentBySellerSKUAsync. * - * - * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSmallAndLightEnrollmentBySellerSKUAsync($seller_sku, $marketplace_ids) { + public function getSmallAndLightEnrollmentBySellerSKUAsync($seller_sku, $marketplace_ids) + { return $this->getSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) ->then( function ($response) { @@ -368,43 +362,42 @@ function ($response) { } /** - * Operation getSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo + * Operation getSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo. * - * - * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) { + public function getSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) + { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollment'; $request = $this->getSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); + return $this->sendRequestAsync($request, SmallAndLightEnrollment::class); } /** - * Create request for operation 'getSmallAndLightEnrollmentBySellerSKU' + * Create request for operation 'getSmallAndLightEnrollmentBySellerSKU'. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace for which the enrollment status is retrieved. Note: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids) { + protected function getSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids) + { // verify the required parameter 'seller_sku' is set - if ($seller_sku === null || (is_array($seller_sku) && count($seller_sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_sku when calling getSmallAndLightEnrollmentBySellerSKU' - ); + if (null === $seller_sku || (is_array($seller_sku) && 0 === count($seller_sku))) { + throw new \InvalidArgumentException('Missing the required parameter $seller_sku when calling getSmallAndLightEnrollmentBySellerSKU'); } // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling getSmallAndLightEnrollmentBySellerSKU' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling getSmallAndLightEnrollmentBySellerSKU'); } $resourcePath = '/fba/smallAndLight/v1/enrollments/{sellerSKU}'; @@ -418,60 +411,67 @@ protected function getSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $ma if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } // path params - if ($seller_sku !== null) { + if (null !== $seller_sku) { $resourcePath = str_replace( - '{' . 'sellerSKU' . '}', + '{'.'sellerSKU'.'}', ObjectSerializer::toPathValue($seller_sku), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } /** - * Operation getSmallAndLightFeePreview + * Operation getSmallAndLightFeePreview. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviewRequest $body body (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviews * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviews */ - public function getSmallAndLightFeePreview($body) { + public function getSmallAndLightFeePreview($body) + { list($response) = $this->getSmallAndLightFeePreviewWithHttpInfo($body); + return $response; } /** - * Operation getSmallAndLightFeePreviewWithHttpInfo + * Operation getSmallAndLightFeePreviewWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviewRequest $body (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviews, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviews, HTTP status code, HTTP response headers (array of strings) */ - public function getSmallAndLightFeePreviewWithHttpInfo($body) { + public function getSmallAndLightFeePreviewWithHttpInfo($body) + { $request = $this->getSmallAndLightFeePreviewRequest($body); + return $this->sendRequest($request, SmallAndLightFeePreviews::class); } /** - * Operation getSmallAndLightFeePreviewAsync - * - * + * Operation getSmallAndLightFeePreviewAsync. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviewRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSmallAndLightFeePreviewAsync($body) { + public function getSmallAndLightFeePreviewAsync($body) + { return $this->getSmallAndLightFeePreviewAsyncWithHttpInfo($body) ->then( function ($response) { @@ -481,34 +481,35 @@ function ($response) { } /** - * Operation getSmallAndLightFeePreviewAsyncWithHttpInfo - * - * + * Operation getSmallAndLightFeePreviewAsyncWithHttpInfo. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviewRequest $body (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function getSmallAndLightFeePreviewAsyncWithHttpInfo($body) { + public function getSmallAndLightFeePreviewAsyncWithHttpInfo($body) + { $request = $this->getSmallAndLightFeePreviewRequest($body); + return $this->sendRequestAsync($request, SmallAndLightFeePreviews::class); } /** - * Create request for operation 'getSmallAndLightFeePreview' + * Create request for operation 'getSmallAndLightFeePreview'. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviewRequest $body (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function getSmallAndLightFeePreviewRequest($body) { + protected function getSmallAndLightFeePreviewRequest($body) + { // verify the required parameter 'body' is set - if ($body === null || (is_array($body) && count($body) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $body when calling getSmallAndLightFeePreview' - ); + if (null === $body || (is_array($body) && 0 === count($body))) { + throw new \InvalidArgumentException('Missing the required parameter $body when calling getSmallAndLightFeePreview'); } $resourcePath = '/fba/smallAndLight/v1/feePreviews'; @@ -522,47 +523,53 @@ protected function getSmallAndLightFeePreviewRequest($body) { } /** - * Operation putSmallAndLightEnrollmentBySellerSKU + * Operation putSmallAndLightEnrollmentBySellerSKU. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to enroll the item. Note: Accepts a single marketplace only. (required) * - * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollment * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollment */ - public function putSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids) { + public function putSmallAndLightEnrollmentBySellerSKU($seller_sku, $marketplace_ids) + { list($response) = $this->putSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids); + return $response; } /** - * Operation putSmallAndLightEnrollmentBySellerSKUWithHttpInfo + * Operation putSmallAndLightEnrollmentBySellerSKUWithHttpInfo. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to enroll the item. Note: Accepts a single marketplace only. (required) * - * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollment, HTTP status code, HTTP response headers (array of strings) * @throws \InvalidArgumentException * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response + * + * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightEnrollment, HTTP status code, HTTP response headers (array of strings) */ - public function putSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) { + public function putSmallAndLightEnrollmentBySellerSKUWithHttpInfo($seller_sku, $marketplace_ids) + { $request = $this->putSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); + return $this->sendRequest($request, SmallAndLightEnrollment::class); } /** - * Operation putSmallAndLightEnrollmentBySellerSKUAsync - * + * Operation putSmallAndLightEnrollmentBySellerSKUAsync. * - * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to enroll the item. Note: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSmallAndLightEnrollmentBySellerSKUAsync($seller_sku, $marketplace_ids) { + public function putSmallAndLightEnrollmentBySellerSKUAsync($seller_sku, $marketplace_ids) + { return $this->putSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) ->then( function ($response) { @@ -572,42 +579,41 @@ function ($response) { } /** - * Operation putSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo + * Operation putSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo. * - * - * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to enroll the item. Note: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Promise\PromiseInterface * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Promise\PromiseInterface */ - public function putSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) { + public function putSmallAndLightEnrollmentBySellerSKUAsyncWithHttpInfo($seller_sku, $marketplace_ids) + { $request = $this->putSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids); + return $this->sendRequestAsync($request, SmallAndLightEnrollment::class); } /** - * Create request for operation 'putSmallAndLightEnrollmentBySellerSKU' + * Create request for operation 'putSmallAndLightEnrollmentBySellerSKU'. * - * @param string $seller_sku The seller SKU that identifies the item. (required) + * @param string $seller_sku The seller SKU that identifies the item. (required) * @param string[] $marketplace_ids The marketplace in which to enroll the item. Note: Accepts a single marketplace only. (required) * - * @return \GuzzleHttp\Psr7\Request * @throws \InvalidArgumentException + * + * @return \GuzzleHttp\Psr7\Request */ - protected function putSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids) { + protected function putSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marketplace_ids) + { // verify the required parameter 'seller_sku' is set - if ($seller_sku === null || (is_array($seller_sku) && count($seller_sku) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $seller_sku when calling putSmallAndLightEnrollmentBySellerSKU' - ); + if (null === $seller_sku || (is_array($seller_sku) && 0 === count($seller_sku))) { + throw new \InvalidArgumentException('Missing the required parameter $seller_sku when calling putSmallAndLightEnrollmentBySellerSKU'); } // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling putSmallAndLightEnrollmentBySellerSKU' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling putSmallAndLightEnrollmentBySellerSKU'); } $resourcePath = '/fba/smallAndLight/v1/enrollments/{sellerSKU}'; @@ -621,18 +627,19 @@ protected function putSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $ma if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } // path params - if ($seller_sku !== null) { + if (null !== $seller_sku) { $resourcePath = str_replace( - '{' . 'sellerSKU' . '}', + '{'.'sellerSKU'.'}', ObjectSerializer::toPathValue($seller_sku), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'PUT', $httpBody); } } diff --git a/lib/Api/SolicitationsApi.php b/lib/Api/SolicitationsApi.php index f4784e5c..14a8e26d 100644 --- a/lib/Api/SolicitationsApi.php +++ b/lib/Api/SolicitationsApi.php @@ -1,54 +1,34 @@ JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Api; -use GuzzleHttp\Client; -use GuzzleHttp\ClientInterface; -use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\MultipartStream; -use GuzzleHttp\Psr7\Request; -use GuzzleHttp\RequestOptions; -use ClouSale\AmazonSellingPartnerAPI\ApiException; use ClouSale\AmazonSellingPartnerAPI\Configuration; use ClouSale\AmazonSellingPartnerAPI\HeaderSelector; use ClouSale\AmazonSellingPartnerAPI\Helpers\SellingPartnerApiRequest; -use ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight\SmallAndLightFeePreviews; use ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\CreateProductReviewAndSellerFeedbackSolicitationResponse; use ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponse; use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; +use GuzzleHttp\Client; +use GuzzleHttp\ClientInterface; +use GuzzleHttp\Psr7\Request; /** - * SolicitationsApi Class Doc Comment + * SolicitationsApi Class Doc Comment. * - * @category Class - * @package ClouSale\AmazonSellingPartnerAPI - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SolicitationsApi { @@ -68,12 +48,8 @@ class SolicitationsApi */ protected $headerSelector; - /** - * @param ClientInterface $client - * @param Configuration $config - * @param HeaderSelector $selector - */ - public function __construct(Configuration $config) { + public function __construct(Configuration $config) + { $this->client = new Client(); $this->config = $config; $this->headerSelector = new HeaderSelector(); @@ -88,46 +64,49 @@ public function getConfig() } /** - * Operation createProductReviewAndSellerFeedbackSolicitation + * Operation createProductReviewAndSellerFeedbackSolicitation. * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\CreateProductReviewAndSellerFeedbackSolicitationResponse */ public function createProductReviewAndSellerFeedbackSolicitation($amazon_order_id, $marketplace_ids) { list($response) = $this->createProductReviewAndSellerFeedbackSolicitationWithHttpInfo($amazon_order_id, $marketplace_ids); + return $response; } /** - * Operation createProductReviewAndSellerFeedbackSolicitationWithHttpInfo + * Operation createProductReviewAndSellerFeedbackSolicitationWithHttpInfo. * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\CreateProductReviewAndSellerFeedbackSolicitationResponse, HTTP status code, HTTP response headers (array of strings) */ public function createProductReviewAndSellerFeedbackSolicitationWithHttpInfo($amazon_order_id, $marketplace_ids) { $request = $this->createProductReviewAndSellerFeedbackSolicitationRequest($amazon_order_id, $marketplace_ids); + return $this->sendRequest($request, CreateProductReviewAndSellerFeedbackSolicitationResponse::class); } /** - * Operation createProductReviewAndSellerFeedbackSolicitationAsync + * Operation createProductReviewAndSellerFeedbackSolicitationAsync. * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function createProductReviewAndSellerFeedbackSolicitationAsync($amazon_order_id, $marketplace_ids) @@ -141,45 +120,42 @@ function ($response) { } /** - * Operation createProductReviewAndSellerFeedbackSolicitationAsyncWithHttpInfo + * Operation createProductReviewAndSellerFeedbackSolicitationAsyncWithHttpInfo. * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function createProductReviewAndSellerFeedbackSolicitationAsyncWithHttpInfo($amazon_order_id, $marketplace_ids) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\CreateProductReviewAndSellerFeedbackSolicitationResponse'; $request = $this->createProductReviewAndSellerFeedbackSolicitationRequest($amazon_order_id, $marketplace_ids); + return $this->sendRequestAsync($request, CreateProductReviewAndSellerFeedbackSolicitationResponse::class); } /** - * Create request for operation 'createProductReviewAndSellerFeedbackSolicitation' + * Create request for operation 'createProductReviewAndSellerFeedbackSolicitation'. * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which a solicitation is sent. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function createProductReviewAndSellerFeedbackSolicitationRequest($amazon_order_id, $marketplace_ids) { // verify the required parameter 'amazon_order_id' is set - if ($amazon_order_id === null || (is_array($amazon_order_id) && count($amazon_order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $amazon_order_id when calling createProductReviewAndSellerFeedbackSolicitation' - ); + if (null === $amazon_order_id || (is_array($amazon_order_id) && 0 === count($amazon_order_id))) { + throw new \InvalidArgumentException('Missing the required parameter $amazon_order_id when calling createProductReviewAndSellerFeedbackSolicitation'); } // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling createProductReviewAndSellerFeedbackSolicitation' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling createProductReviewAndSellerFeedbackSolicitation'); } $resourcePath = '/solicitations/v1/orders/{amazonOrderId}/solicitations/productReviewAndSellerFeedback'; @@ -193,62 +169,66 @@ protected function createProductReviewAndSellerFeedbackSolicitationRequest($amaz if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } // path params - if ($amazon_order_id !== null) { + if (null !== $amazon_order_id) { $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', + '{'.'amazonOrderId'.'}', ObjectSerializer::toPathValue($amazon_order_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'POST', $httpBody); } /** - * Operation getSolicitationActionsForOrder + * Operation getSolicitationActionsForOrder. * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponse */ public function getSolicitationActionsForOrder($amazon_order_id, $marketplace_ids) { list($response) = $this->getSolicitationActionsForOrderWithHttpInfo($amazon_order_id, $marketplace_ids); + return $response; } /** - * Operation getSolicitationActionsForOrderWithHttpInfo + * Operation getSolicitationActionsForOrderWithHttpInfo. * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \ClouSale\AmazonSellingPartnerAPI\ApiException on non-2xx response * @throws \InvalidArgumentException + * * @return array of \ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponse, HTTP status code, HTTP response headers (array of strings) */ public function getSolicitationActionsForOrderWithHttpInfo($amazon_order_id, $marketplace_ids) { $request = $this->getSolicitationActionsForOrderRequest($amazon_order_id, $marketplace_ids); + return $this->sendRequest($request, GetSolicitationActionsForOrderResponse::class); } /** - * Operation getSolicitationActionsForOrderAsync + * Operation getSolicitationActionsForOrderAsync. * - * - * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getSolicitationActionsForOrderAsync($amazon_order_id, $marketplace_ids) @@ -262,45 +242,42 @@ function ($response) { } /** - * Operation getSolicitationActionsForOrderAsyncWithHttpInfo - * - * + * Operation getSolicitationActionsForOrderAsyncWithHttpInfo. * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Promise\PromiseInterface */ public function getSolicitationActionsForOrderAsyncWithHttpInfo($amazon_order_id, $marketplace_ids) { $returnType = '\ClouSale\AmazonSellingPartnerAPI\Models\Solicitations\GetSolicitationActionsForOrderResponse'; $request = $this->getSolicitationActionsForOrderRequest($amazon_order_id, $marketplace_ids); + return $this->sendRequestAsync($request, GetSolicitationActionsForOrderResponse::class); } /** - * Create request for operation 'getSolicitationActionsForOrder' + * Create request for operation 'getSolicitationActionsForOrder'. * - * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) - * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) + * @param string $amazon_order_id An Amazon order identifier. This specifies the order for which you want a list of available solicitation types. (required) + * @param string[] $marketplace_ids A marketplace identifier. This specifies the marketplace in which the order was placed. Only one marketplace can be specified. (required) * * @throws \InvalidArgumentException + * * @return \GuzzleHttp\Psr7\Request */ protected function getSolicitationActionsForOrderRequest($amazon_order_id, $marketplace_ids) { // verify the required parameter 'amazon_order_id' is set - if ($amazon_order_id === null || (is_array($amazon_order_id) && count($amazon_order_id) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $amazon_order_id when calling getSolicitationActionsForOrder' - ); + if (null === $amazon_order_id || (is_array($amazon_order_id) && 0 === count($amazon_order_id))) { + throw new \InvalidArgumentException('Missing the required parameter $amazon_order_id when calling getSolicitationActionsForOrder'); } // verify the required parameter 'marketplace_ids' is set - if ($marketplace_ids === null || (is_array($marketplace_ids) && count($marketplace_ids) === 0)) { - throw new \InvalidArgumentException( - 'Missing the required parameter $marketplace_ids when calling getSolicitationActionsForOrder' - ); + if (null === $marketplace_ids || (is_array($marketplace_ids) && 0 === count($marketplace_ids))) { + throw new \InvalidArgumentException('Missing the required parameter $marketplace_ids when calling getSolicitationActionsForOrder'); } $resourcePath = '/solicitations/v1/orders/{amazonOrderId}'; @@ -314,18 +291,19 @@ protected function getSolicitationActionsForOrderRequest($amazon_order_id, $mark if (is_array($marketplace_ids)) { $marketplace_ids = ObjectSerializer::serializeCollection($marketplace_ids, 'csv', true); } - if ($marketplace_ids !== null) { + if (null !== $marketplace_ids) { $queryParams['marketplaceIds'] = ObjectSerializer::toQueryValue($marketplace_ids); } // path params - if ($amazon_order_id !== null) { + if (null !== $amazon_order_id) { $resourcePath = str_replace( - '{' . 'amazonOrderId' . '}', + '{'.'amazonOrderId'.'}', ObjectSerializer::toPathValue($amazon_order_id), $resourcePath ); } + return $this->generateRequest($multipart, $formParams, $queryParams, $resourcePath, $headerParams, 'GET', $httpBody); } } diff --git a/lib/ApiException.php b/lib/ApiException.php index af3c234a..9fb420cc 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -1,13 +1,8 @@ JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI; @@ -33,11 +20,7 @@ /** * ApiException Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ApiException extends Exception { diff --git a/lib/AssumeRole.php b/lib/AssumeRole.php index 501576aa..658acbee 100644 --- a/lib/AssumeRole.php +++ b/lib/AssumeRole.php @@ -2,76 +2,127 @@ namespace ClouSale\AmazonSellingPartnerAPI; -use Aws\Credentials\Credentials; +use GuzzleHttp\Client; +use GuzzleHttp\Psr7\Query; class AssumeRole { + /** @var string */ private $accessKeyId; + /** @var string */ private $secretAccessKey; + /** @var string */ private $sessionToken; /** * AssumeRole constructor. - * - * @param $accessKeyId - * @param $secretAccessKey - * @param $sessionToken */ - public function __construct($accessKeyId, $secretAccessKey, $sessionToken) + public function __construct(string $accessKeyId, string $secretAccessKey, string $sessionToken) { $this->accessKeyId = $accessKeyId; $this->secretAccessKey = $secretAccessKey; $this->sessionToken = $sessionToken; } - /** - * @return mixed - */ - public function getAccessKeyId() + public function getAccessKeyId(): string { return $this->accessKeyId; } - /** - * @return mixed - */ - public function getSecretAccessKey() + public function getSecretAccessKey(): string { return $this->secretAccessKey; } - /** - * @return mixed - */ - public function getSessionToken() + public function getSessionToken(): string { return $this->sessionToken; } /** - * @param $region - * @param $accessKey - * @param $secretKey - * @param $roleArn + * @throws \GuzzleHttp\Exception\GuzzleException + * + * @author crazyfactory https://github.com/crazyfactory + * + * Special thanks go to github user crazyfactory / z3niths who made a better implementation of the signature method + * + * Thanks to */ - public static function assume($region, $accessKey, $secretKey, $roleArn): AssumeRole + public static function assume(string $region, string $accessKey, string $secretKey, string $roleArn, int $durationSeconds = 3600): AssumeRole { - $stsClient = new \Aws\Sts\StsClient([ - 'region' => $region, - 'version' => '2011-06-15', - 'credentials' => new Credentials($accessKey, $secretKey), - ]); - $stsResult = $stsClient->assumeRole([ - 'RoleArn' => $roleArn, - 'RoleSessionName' => 'amazon-sp-api-php', - 'region' => $region, + $requestOptions = [ + 'headers' => [ + 'accept' => 'application/json', + ], + 'form_params' => [ + 'Action' => 'AssumeRole', + 'DurationSeconds' => $durationSeconds, + 'RoleArn' => $roleArn, + 'RoleSessionName' => 'amazon-sp-api-php', + 'Version' => '2011-06-15', + ], + ]; + + $host = 'sts.amazonaws.com'; + $uri = '/'; + $signedHeader = []; +// [ +// 'service' => 'sts', +// 'accessKey' => $this->config->getApiKey('access_key'), +// 'secretKey' => $this->config->getApiKey('secret_key'), +// 'region' => 'us-east-1', // Global STS region +// 'host' => $host, +// 'uri' => $uri, +// 'payload' => \GuzzleHttp\Psr7\build_query($requestOptions['form_params']), +// 'method' => 'POST', +// ] + try { + $signedHeader = Signature::calculateSignatureForService( + $host, + 'POST', + $uri, + '', + Query::build($requestOptions['form_params']), + 'sts', + $accessKey, + $secretKey, + 'us-east-1', + null, + null, + 'cs-php-sp-api-client/2.1' + ); + } catch (\Exception $e) { + echo "Error (Signing process) : {$e->getMessage()}"; + throw $e; + } + + $client = new Client([ + 'base_uri' => 'https://'.$host, ]); - $credentialsRes = $stsResult->get('Credentials'); - return new AssumeRole( - $credentialsRes['AccessKeyId'], - $credentialsRes['SecretAccessKey'], - $credentialsRes['SessionToken'] - ); + $requestOptions['headers'] = array_merge($requestOptions['headers'], $signedHeader); + + try { + $response = $client->post($uri, $requestOptions); + + $json = json_decode($response->getBody(), true); + $credentials = $json['AssumeRoleResponse']['AssumeRoleResult']['Credentials'] ?? null; +// $tokens = [ +// 'access_key' => $credentials['AccessKeyId'], +// 'secret_key' => $credentials['SecretAccessKey'], +// 'session_token' => $credentials['SessionToken'] +// ]; + + return new AssumeRole( + $credentials['AccessKeyId'], + $credentials['SecretAccessKey'], + $credentials['SessionToken'] + ); + +// return $tokens; + } catch (\Exception $e) { + echo "Error (Signing process) : {$e->getMessage()}"; + throw $e; + } } } diff --git a/lib/Configuration.php b/lib/Configuration.php index 51b85370..7f8c2d0f 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -1,13 +1,8 @@ JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI; /** - * Configuration Class Doc Comment - * PHP version 5. - * - * @category Class - * - * @author Swagger Codegen team + * Configuration Class Doc Comment. * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Configuration { @@ -79,7 +61,7 @@ class Configuration * * @var string */ - protected $userAgent = 'cs-php-sp-api-client/1.3'; + protected $userAgent = 'cs-php-sp-api-client/2.1'; /** * Debug switch (default set to false). diff --git a/lib/ExceptionThrower.php b/lib/ExceptionThrower.php index 0c59e8f9..fb395309 100644 --- a/lib/ExceptionThrower.php +++ b/lib/ExceptionThrower.php @@ -1,9 +1,13 @@ JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI; @@ -31,11 +18,7 @@ /** * ApiException Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class HeaderSelector { diff --git a/lib/Helpers/SellingPartnerApiRequest.php b/lib/Helpers/SellingPartnerApiRequest.php index 52747670..74359a9b 100644 --- a/lib/Helpers/SellingPartnerApiRequest.php +++ b/lib/Helpers/SellingPartnerApiRequest.php @@ -2,13 +2,15 @@ namespace ClouSale\AmazonSellingPartnerAPI\Helpers; +use ClouSale\AmazonSellingPartnerAPI\ApiException; +use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; +use ClouSale\AmazonSellingPartnerAPI\Signature; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Psr7\MultipartStream; use GuzzleHttp\Psr7\Query; use GuzzleHttp\Psr7\Request; use GuzzleHttp\RequestOptions; -use ClouSale\AmazonSellingPartnerAPI\ApiException; -use ClouSale\AmazonSellingPartnerAPI\ObjectSerializer; +use GuzzleHttp\Utils; /** * Trait SellingPartnerApiRequest. @@ -27,7 +29,7 @@ private function generateRequest( $httpBody ): Request { // body params - $_tempBody = null; + $_tempBody = $httpBody; if ($multipart) { $headers = $this->headerSelector->selectHeadersForMultipart( ['application/json'] @@ -44,7 +46,9 @@ private function generateRequest( $httpBody = $_tempBody; // \stdClass has no __toString(), so we should encode it manually if ($httpBody instanceof \stdClass && 'application/json' === $headers['Content-Type']) { - $httpBody = \GuzzleHttp\json_encode($httpBody); + $httpBody = Utils::jsonEncode($httpBody); +// } else if (method_exists($httpBody, '__toString')) { +// $httpBody = $httpBody->__toString(); } } elseif (count($formParams) > 0) { if ($multipart) { @@ -58,23 +62,26 @@ private function generateRequest( // for HTTP post (form) $httpBody = new MultipartStream($multipartContents); } elseif ('application/json' === $headers['Content-Type']) { - $httpBody = \GuzzleHttp\json_encode($formParams); + $httpBody = Utils::jsonEncode($formParams); } else { // for HTTP post (form) $httpBody = Query::build($formParams); } } + ksort($queryParams); $query = Query::build($queryParams); - $headersX = $this->calculateSignature( + $amazonHeader = Signature::calculateSignature( + $this->config, str_replace('https://', '', $this->config->getHost()), $method, $resourcePath, - $query + $query, + (string) $httpBody, ); $headers = array_merge( $headerParams, $headers, - $headersX + $amazonHeader ); return new Request( @@ -85,93 +92,6 @@ private function generateRequest( ); } - /** - * @param $host - * @param $method - * @param string $uri - * @param string $queryString - * @param array $data - */ - private function calculateSignature( - $host, - $method, - $uri = '', - $queryString = '', - $data = [] - ): array { - $service = 'execute-api'; - $terminationString = 'aws4_request'; - $algorithm = 'AWS4-HMAC-SHA256'; - $amzdate = gmdate('Ymd\THis\Z'); - $date = substr($amzdate, 0, 8); - - $param = json_encode($data); - if ('[]' == $param) { - $requestPayload = ''; - } else { - $requestPayload = strtolower($param); - } - $hashedPayload = hash('sha256', $requestPayload); - $canonicalHeadersArray = [ - 'host:'.$host, - 'user-agent:'.$this->config->getUserAgent(), - 'x-amz-access-token:'.$this->config->getAccessToken(), - 'x-amz-date:'.$amzdate, - ]; - $signedHeadersArray = [ - 'host', - 'user-agent', - 'x-amz-access-token', - 'x-amz-date', - ]; - if (null != $this->config->getSecurityToken()) { - $canonicalHeadersArray[] = 'x-amz-security-token:'.$this->config->getSecurityToken(); - $signedHeadersArray[] = 'x-amz-security-token'; - } - $canonicalHeaders = implode("\n", $canonicalHeadersArray)."\n"; - $credentialScope = $date.'/'.$this->config->getRegion().'/'.$service.'/'.$terminationString; - $signedHeaders = implode(';', $signedHeadersArray); - - $canonicalRequestArray = [ - $method, - $uri, - $queryString, - $canonicalHeaders, - $signedHeaders, - $hashedPayload, - ]; - $canonicalRequest = implode("\n", $canonicalRequestArray); - $signArray = [ - $algorithm, - $amzdate, - $credentialScope, - hash('sha256', $canonicalRequest), - ]; - $stringToSign = implode("\n", $signArray); - - $kSecret = 'AWS4'.$this->config->getSecretKey(); - $kDate = hash_hmac('sha256', $date, $kSecret, true); - $kRegion = hash_hmac('sha256', $this->config->getRegion(), $kDate, true); - $kService = hash_hmac('sha256', $service, $kRegion, true); - $kSigning = hash_hmac('sha256', $terminationString, $kService, true); - - $signature = trim(hash_hmac('sha256', $stringToSign, $kSigning)); - - $authorizationHeader = $algorithm." Credential={$this->config->getAccessKey()}/{$credentialScope}, SignedHeaders={$signedHeaders}, Signature={$signature}"; - $headers = [ - 'host' => $host, - 'Authorization' => $authorizationHeader, - 'user-agent' => $this->config->getUserAgent(), - 'x-amz-access-token' => $this->config->getAccessToken(), - 'x-amz-date' => $amzdate, - ]; - if (null != $this->config->getSecurityToken()) { - $headers['x-amz-security-token'] = $this->config->getSecurityToken(); - } - - return $headers; - } - /** * @throws ApiException */ @@ -199,6 +119,8 @@ private function sendRequest(Request $request, string $returnType): array $content = json_decode($content); } } +// var_dump($content); +// exit(); return [ ObjectSerializer::deserialize($content, $returnType, []), @@ -206,7 +128,6 @@ private function sendRequest(Request $request, string $returnType): array $response->getHeaders(), ]; } catch (ApiException $e) { - var_dump($e); switch ($e->getCode()) { case 503: case 500: diff --git a/lib/Models/Authorization/AuthorizationCode.php b/lib/Models/Authorization/AuthorizationCode.php index 2dd24efb..12261ab9 100644 --- a/lib/Models/Authorization/AuthorizationCode.php +++ b/lib/Models/Authorization/AuthorizationCode.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization; @@ -36,12 +24,10 @@ /** * AuthorizationCode Class Doc Comment. * - * @category Class + * @description A Login with Amazon (LWA) authorization code. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AuthorizationCode implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Authorization/Error.php b/lib/Models/Authorization/Error.php index e20aa261..4d14aa68 100644 --- a/lib/Models/Authorization/Error.php +++ b/lib/Models/Authorization/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Authorization/ErrorList.php b/lib/Models/Authorization/ErrorList.php index 85ba42e8..2646f345 100644 --- a/lib/Models/Authorization/ErrorList.php +++ b/lib/Models/Authorization/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Authorization/GetAuthorizationCodeResponse.php b/lib/Models/Authorization/GetAuthorizationCodeResponse.php index d5446c5d..54499f18 100644 --- a/lib/Models/Authorization/GetAuthorizationCodeResponse.php +++ b/lib/Models/Authorization/GetAuthorizationCodeResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Authorization; @@ -36,12 +24,10 @@ /** * GetAuthorizationCodeResponse Class Doc Comment. * - * @category Class + * @description The response schema for the GetAuthorizationCode operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetAuthorizationCodeResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/ASINIdentifier.php b/lib/Models/Catalog/ASINIdentifier.php index 7bf3b22a..746fd69d 100644 --- a/lib/Models/Catalog/ASINIdentifier.php +++ b/lib/Models/Catalog/ASINIdentifier.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * ASINIdentifier Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ASINIdentifier extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/AttributeSetList.php b/lib/Models/Catalog/AttributeSetList.php index 29feb67a..f343594b 100644 --- a/lib/Models/Catalog/AttributeSetList.php +++ b/lib/Models/Catalog/AttributeSetList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -37,12 +25,10 @@ /** * AttributeSetList Class Doc Comment. * - * @category Class + * @description A list of attributes for the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AttributeSetList extends Categories implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Catalog/AttributeSetListType.php b/lib/Models/Catalog/AttributeSetListType.php index 88a8f409..1e265ed9 100644 --- a/lib/Models/Catalog/AttributeSetListType.php +++ b/lib/Models/Catalog/AttributeSetListType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * AttributeSetListType Class Doc Comment. * - * @category Class + * @description The attributes of the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AttributeSetListType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/Categories.php b/lib/Models/Catalog/Categories.php index 53dc76ef..f773f514 100644 --- a/lib/Models/Catalog/Categories.php +++ b/lib/Models/Catalog/Categories.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * Categories Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/CreatorType.php b/lib/Models/Catalog/CreatorType.php index 5e54c79c..5283ee59 100644 --- a/lib/Models/Catalog/CreatorType.php +++ b/lib/Models/Catalog/CreatorType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * CreatorType Class Doc Comment. * - * @category Class + * @description The creator type attribute of an item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreatorType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/DecimalWithUnits.php b/lib/Models/Catalog/DecimalWithUnits.php index abf45590..46756742 100644 --- a/lib/Models/Catalog/DecimalWithUnits.php +++ b/lib/Models/Catalog/DecimalWithUnits.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * DecimalWithUnits Class Doc Comment. * - * @category Class + * @description The decimal value and unit. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DecimalWithUnits extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/DimensionType.php b/lib/Models/Catalog/DimensionType.php index 0cde28d7..001346f5 100644 --- a/lib/Models/Catalog/DimensionType.php +++ b/lib/Models/Catalog/DimensionType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * DimensionType Class Doc Comment. * - * @category Class + * @description The dimension type attribute of an item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DimensionType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/Error.php b/lib/Models/Catalog/Error.php index dbdfc69f..025c5c42 100644 --- a/lib/Models/Catalog/Error.php +++ b/lib/Models/Catalog/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/ErrorList.php b/lib/Models/Catalog/ErrorList.php index 79bd0c4e..50f55f46 100644 --- a/lib/Models/Catalog/ErrorList.php +++ b/lib/Models/Catalog/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList extends Categories implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Catalog/GetCatalogItemResponse.php b/lib/Models/Catalog/GetCatalogItemResponse.php index 215a4f0e..dd4d4f4e 100644 --- a/lib/Models/Catalog/GetCatalogItemResponse.php +++ b/lib/Models/Catalog/GetCatalogItemResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * GetCatalogItemResponse Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetCatalogItemResponse extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/IdentifierType.php b/lib/Models/Catalog/IdentifierType.php index ea9a8407..ce1a966d 100644 --- a/lib/Models/Catalog/IdentifierType.php +++ b/lib/Models/Catalog/IdentifierType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * IdentifierType Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class IdentifierType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/Image.php b/lib/Models/Catalog/Image.php index 4afcb377..339ad75e 100644 --- a/lib/Models/Catalog/Image.php +++ b/lib/Models/Catalog/Image.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * Image Class Doc Comment. * - * @category Class + * @description The image attribute of the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Image extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/Item.php b/lib/Models/Catalog/Item.php index fedace9e..db5e1980 100644 --- a/lib/Models/Catalog/Item.php +++ b/lib/Models/Catalog/Item.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * Item Class Doc Comment. * - * @category Class + * @description An item in the Amazon catalog. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Item extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/ItemList.php b/lib/Models/Catalog/ItemList.php index a2d4a9e9..ab06c491 100644 --- a/lib/Models/Catalog/ItemList.php +++ b/lib/Models/Catalog/ItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * ItemList Class Doc Comment. * - * @category Class + * @description A list of items. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ItemList extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/LanguageType.php b/lib/Models/Catalog/LanguageType.php index a61eafde..ff2afabb 100644 --- a/lib/Models/Catalog/LanguageType.php +++ b/lib/Models/Catalog/LanguageType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * LanguageType Class Doc Comment. * - * @category Class + * @description The language type attribute of an item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LanguageType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/ListCatalogCategoriesResponse.php b/lib/Models/Catalog/ListCatalogCategoriesResponse.php index 8fdf19ae..30cc05fb 100644 --- a/lib/Models/Catalog/ListCatalogCategoriesResponse.php +++ b/lib/Models/Catalog/ListCatalogCategoriesResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * ListCatalogCategoriesResponse Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListCatalogCategoriesResponse extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/ListCatalogItemsResponse.php b/lib/Models/Catalog/ListCatalogItemsResponse.php index a1510457..a083bfab 100644 --- a/lib/Models/Catalog/ListCatalogItemsResponse.php +++ b/lib/Models/Catalog/ListCatalogItemsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * ListCatalogItemsResponse Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListCatalogItemsResponse extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/ListMatchingItemsResponse.php b/lib/Models/Catalog/ListMatchingItemsResponse.php index 7b7de526..f937d576 100644 --- a/lib/Models/Catalog/ListMatchingItemsResponse.php +++ b/lib/Models/Catalog/ListMatchingItemsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * ListMatchingItemsResponse Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListMatchingItemsResponse extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/ListOfCategories.php b/lib/Models/Catalog/ListOfCategories.php index 9e939fba..4cbbc552 100644 --- a/lib/Models/Catalog/ListOfCategories.php +++ b/lib/Models/Catalog/ListOfCategories.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * ListOfCategories Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListOfCategories extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/NumberOfOfferListingsList.php b/lib/Models/Catalog/NumberOfOfferListingsList.php index 7ad27788..366d7cf5 100644 --- a/lib/Models/Catalog/NumberOfOfferListingsList.php +++ b/lib/Models/Catalog/NumberOfOfferListingsList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -37,12 +25,10 @@ /** * NumberOfOfferListingsList Class Doc Comment. * - * @category Class + * @description The number of active offer listings for the item that was submitted. The listing count is returned by condition, one for each listing condition value that is returned. Possible listing condition values are: Any, New, Used, Collectible, Refurbished, or Club. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NumberOfOfferListingsList extends Categories implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Catalog/OfferListingCountType.php b/lib/Models/Catalog/OfferListingCountType.php index f4bc40d0..3913c993 100644 --- a/lib/Models/Catalog/OfferListingCountType.php +++ b/lib/Models/Catalog/OfferListingCountType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * OfferListingCountType Class Doc Comment. * - * @category Class + * @description The number of offer listings with the specified condition. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class OfferListingCountType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/Price.php b/lib/Models/Catalog/Price.php index 5da2c2f1..d97d803f 100644 --- a/lib/Models/Catalog/Price.php +++ b/lib/Models/Catalog/Price.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * Price Class Doc Comment. * - * @category Class + * @description The price attribute of the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Price extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/QualifiersType.php b/lib/Models/Catalog/QualifiersType.php index 3aa653de..b24b0a7b 100644 --- a/lib/Models/Catalog/QualifiersType.php +++ b/lib/Models/Catalog/QualifiersType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * QualifiersType Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class QualifiersType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/RelationshipList.php b/lib/Models/Catalog/RelationshipList.php index 58947b98..3e6cde74 100644 --- a/lib/Models/Catalog/RelationshipList.php +++ b/lib/Models/Catalog/RelationshipList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -37,12 +25,10 @@ /** * RelationshipList Class Doc Comment. * - * @category Class + * @description A list of variation relationship information, if applicable for the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RelationshipList extends Categories implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Catalog/RelationshipType.php b/lib/Models/Catalog/RelationshipType.php index 5f03b524..a4154c8c 100644 --- a/lib/Models/Catalog/RelationshipType.php +++ b/lib/Models/Catalog/RelationshipType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,12 +24,10 @@ /** * RelationshipType Class Doc Comment. * - * @category Class + * @description Specific variations of the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RelationshipType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/SalesRankList.php b/lib/Models/Catalog/SalesRankList.php index a0527dae..26197fe3 100644 --- a/lib/Models/Catalog/SalesRankList.php +++ b/lib/Models/Catalog/SalesRankList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -37,12 +25,10 @@ /** * SalesRankList Class Doc Comment. * - * @category Class + * @description A list of sales rank information for the item by category. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SalesRankList extends Categories implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Catalog/SalesRankType.php b/lib/Models/Catalog/SalesRankType.php index c9813a5c..ec7dac20 100644 --- a/lib/Models/Catalog/SalesRankType.php +++ b/lib/Models/Catalog/SalesRankType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * SalesRankType Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SalesRankType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/SellerSKUIdentifier.php b/lib/Models/Catalog/SellerSKUIdentifier.php index 534a921a..87dae175 100644 --- a/lib/Models/Catalog/SellerSKUIdentifier.php +++ b/lib/Models/Catalog/SellerSKUIdentifier.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * SellerSKUIdentifier Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SellerSKUIdentifier extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Catalog/ShippingTimeType.php b/lib/Models/Catalog/ShippingTimeType.php index 0800654c..4cdb570b 100644 --- a/lib/Models/Catalog/ShippingTimeType.php +++ b/lib/Models/Catalog/ShippingTimeType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Catalog; @@ -36,11 +24,7 @@ /** * ShippingTimeType Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShippingTimeType extends Categories implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInboundEligibility/Error.php b/lib/Models/FbaInboundEligibility/Error.php index fe5d3e91..298149f3 100644 --- a/lib/Models/FbaInboundEligibility/Error.php +++ b/lib/Models/FbaInboundEligibility/Error.php @@ -1,79 +1,67 @@ 'string', 'message' => 'string', -'details' => 'string' ]; +'details' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'code' => null, 'message' => null, -'details' => null ]; +'details' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'code' => 'code', 'message' => 'message', -'details' => 'details' ]; +'details' => 'details', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'code' => 'setCode', 'message' => 'setMessage', -'details' => 'setDetails' ]; +'details' => 'setDetails', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'code' => 'getCode', 'message' => 'getMessage', -'details' => 'getDetails' ]; +'details' => 'getDetails', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -195,26 +181,26 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -224,9 +210,9 @@ public function getCode() } /** - * Sets code + * Sets code. * - * @param string $code An error code that identifies the type of error that occurred. + * @param string $code an error code that identifies the type of error that occurred * * @return $this */ @@ -238,7 +224,7 @@ public function setCode($code) } /** - * Gets message + * Gets message. * * @return string */ @@ -248,9 +234,9 @@ public function getMessage() } /** - * Sets message + * 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 in a human-readable form * * @return $this */ @@ -262,7 +248,7 @@ public function setMessage($message) } /** - * Gets details + * Gets details. * * @return string */ @@ -272,9 +258,9 @@ public function getDetails() } /** - * Sets details + * Sets details. * - * @param string $details Additional information that can help the caller understand or fix the issue. + * @param string $details additional information that can help the caller understand or fix the issue * * @return $this */ @@ -284,12 +270,13 @@ public function setDetails($details) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -299,7 +286,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -311,8 +298,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -328,7 +315,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -338,7 +325,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/FbaInboundEligibility/ErrorList.php b/lib/Models/FbaInboundEligibility/ErrorList.php index fabd1bb0..470da6d0 100644 --- a/lib/Models/FbaInboundEligibility/ErrorList.php +++ b/lib/Models/FbaInboundEligibility/ErrorList.php @@ -1,29 +1,18 @@ listInvalidProperties()) === 0; + public function valid() + { + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ - public function offsetExists($offset) { + public function offsetExists($offset) + { return isset($this->container[$offset]); } /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ - public function offsetGet($offset) { + public function offsetGet($offset) + { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ - public function offsetSet($offset, $value) { + public function offsetSet($offset, $value) + { if (is_null($offset)) { $this->container[] = $value; } else { @@ -227,20 +227,22 @@ public function offsetSet($offset, $value) { /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ - public function offsetUnset($offset) { + public function offsetUnset($offset) + { unset($this->container[$offset]); } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ - public function __toString() { + public function __toString() + { if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print return json_encode( ObjectSerializer::sanitizeForSerialization($this), @@ -251,7 +253,8 @@ public function __toString() { return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return Error::class; } } diff --git a/lib/Models/FbaInboundEligibility/GetItemEligibilityPreviewResponse.php b/lib/Models/FbaInboundEligibility/GetItemEligibilityPreviewResponse.php index e16c3320..21467e45 100644 --- a/lib/Models/FbaInboundEligibility/GetItemEligibilityPreviewResponse.php +++ b/lib/Models/FbaInboundEligibility/GetItemEligibilityPreviewResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ItemEligibilityPreview', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ItemEligibilityPreview */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ItemEligibilityPreview $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\FbaInboundEligibility\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/FbaInboundEligibility/ItemEligibilityPreview.php b/lib/Models/FbaInboundEligibility/ItemEligibilityPreview.php index b6314baa..2ab43c7d 100644 --- a/lib/Models/FbaInboundEligibility/ItemEligibilityPreview.php +++ b/lib/Models/FbaInboundEligibility/ItemEligibilityPreview.php @@ -1,83 +1,71 @@ 'string', 'marketplace_id' => 'string', 'program' => 'string', 'is_eligible_for_program' => 'bool', -'ineligibility_reason_list' => 'string[]' ]; +'ineligibility_reason_list' => 'string[]', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'asin' => null, 'marketplace_id' => null, 'program' => null, 'is_eligible_for_program' => null, -'ineligibility_reason_list' => null ]; +'ineligibility_reason_list' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -87,7 +75,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -98,7 +86,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -107,10 +95,10 @@ public static function swaggerFormats() 'marketplace_id' => 'marketplaceId', 'program' => 'program', 'is_eligible_for_program' => 'isEligibleForProgram', -'ineligibility_reason_list' => 'ineligibilityReasonList' ]; +'ineligibility_reason_list' => 'ineligibilityReasonList', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -119,10 +107,10 @@ public static function swaggerFormats() 'marketplace_id' => 'setMarketplaceId', 'program' => 'setProgram', 'is_eligible_for_program' => 'setIsEligibleForProgram', -'ineligibility_reason_list' => 'setIneligibilityReasonList' ]; +'ineligibility_reason_list' => 'setIneligibilityReasonList', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -131,11 +119,11 @@ public static function swaggerFormats() 'marketplace_id' => 'getMarketplaceId', 'program' => 'getProgram', 'is_eligible_for_program' => 'getIsEligibleForProgram', -'ineligibility_reason_list' => 'getIneligibilityReasonList' ]; +'ineligibility_reason_list' => 'getIneligibilityReasonList', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -145,7 +133,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -155,7 +143,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -175,48 +163,48 @@ public function getModelName() } const PROGRAM_INBOUND = 'INBOUND'; -const PROGRAM_COMMINGLING = 'COMMINGLING'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0004 = 'FBA_INB_0004'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0006 = 'FBA_INB_0006'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0007 = 'FBA_INB_0007'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0008 = 'FBA_INB_0008'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0009 = 'FBA_INB_0009'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0010 = 'FBA_INB_0010'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0011 = 'FBA_INB_0011'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0012 = 'FBA_INB_0012'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0013 = 'FBA_INB_0013'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0014 = 'FBA_INB_0014'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0015 = 'FBA_INB_0015'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0016 = 'FBA_INB_0016'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0017 = 'FBA_INB_0017'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0018 = 'FBA_INB_0018'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0019 = 'FBA_INB_0019'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0034 = 'FBA_INB_0034'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0035 = 'FBA_INB_0035'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0036 = 'FBA_INB_0036'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0037 = 'FBA_INB_0037'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0038 = 'FBA_INB_0038'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0050 = 'FBA_INB_0050'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0051 = 'FBA_INB_0051'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0053 = 'FBA_INB_0053'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0055 = 'FBA_INB_0055'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0056 = 'FBA_INB_0056'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0059 = 'FBA_INB_0059'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0065 = 'FBA_INB_0065'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0066 = 'FBA_INB_0066'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0067 = 'FBA_INB_0067'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0068 = 'FBA_INB_0068'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0095 = 'FBA_INB_0095'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0097 = 'FBA_INB_0097'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0098 = 'FBA_INB_0098'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0099 = 'FBA_INB_0099'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0100 = 'FBA_INB_0100'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0103 = 'FBA_INB_0103'; -const INELIGIBILITY_REASON_LIST_FBA_INB_0104 = 'FBA_INB_0104'; -const INELIGIBILITY_REASON_LIST_UNKNOWN_INB_ERROR_CODE = 'UNKNOWN_INB_ERROR_CODE'; - - /** - * Gets allowable values of the enum + const PROGRAM_COMMINGLING = 'COMMINGLING'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0004 = 'FBA_INB_0004'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0006 = 'FBA_INB_0006'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0007 = 'FBA_INB_0007'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0008 = 'FBA_INB_0008'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0009 = 'FBA_INB_0009'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0010 = 'FBA_INB_0010'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0011 = 'FBA_INB_0011'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0012 = 'FBA_INB_0012'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0013 = 'FBA_INB_0013'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0014 = 'FBA_INB_0014'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0015 = 'FBA_INB_0015'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0016 = 'FBA_INB_0016'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0017 = 'FBA_INB_0017'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0018 = 'FBA_INB_0018'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0019 = 'FBA_INB_0019'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0034 = 'FBA_INB_0034'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0035 = 'FBA_INB_0035'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0036 = 'FBA_INB_0036'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0037 = 'FBA_INB_0037'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0038 = 'FBA_INB_0038'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0050 = 'FBA_INB_0050'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0051 = 'FBA_INB_0051'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0053 = 'FBA_INB_0053'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0055 = 'FBA_INB_0055'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0056 = 'FBA_INB_0056'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0059 = 'FBA_INB_0059'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0065 = 'FBA_INB_0065'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0066 = 'FBA_INB_0066'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0067 = 'FBA_INB_0067'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0068 = 'FBA_INB_0068'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0095 = 'FBA_INB_0095'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0097 = 'FBA_INB_0097'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0098 = 'FBA_INB_0098'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0099 = 'FBA_INB_0099'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0100 = 'FBA_INB_0100'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0103 = 'FBA_INB_0103'; + const INELIGIBILITY_REASON_LIST_FBA_INB_0104 = 'FBA_INB_0104'; + const INELIGIBILITY_REASON_LIST_UNKNOWN_INB_ERROR_CODE = 'UNKNOWN_INB_ERROR_CODE'; + + /** + * Gets allowable values of the enum. * * @return string[] */ @@ -226,8 +214,9 @@ public function getProgramAllowableValues() self::PROGRAM_INBOUND, self::PROGRAM_COMMINGLING, ]; } + /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -275,14 +264,14 @@ public function getIneligibilityReasonListAllowableValues() } /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -305,10 +294,10 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['asin'] === null) { + if (null === $this->container['asin']) { $invalidProperties[] = "'asin' can't be null"; } - if ($this->container['program'] === null) { + if (null === $this->container['program']) { $invalidProperties[] = "'program' can't be null"; } $allowedValues = $this->getProgramAllowableValues(); @@ -319,26 +308,26 @@ public function listInvalidProperties() ); } - if ($this->container['is_eligible_for_program'] === null) { + if (null === $this->container['is_eligible_for_program']) { $invalidProperties[] = "'is_eligible_for_program' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets asin + * Gets asin. * * @return string */ @@ -348,9 +337,9 @@ public function getAsin() } /** - * Sets asin + * Sets asin. * - * @param string $asin The ASIN for which eligibility was determined. + * @param string $asin the ASIN for which eligibility was determined * * @return $this */ @@ -362,7 +351,7 @@ public function setAsin($asin) } /** - * Gets marketplace_id + * Gets marketplace_id. * * @return string */ @@ -372,9 +361,9 @@ public function getMarketplaceId() } /** - * Sets marketplace_id + * Sets marketplace_id. * - * @param string $marketplace_id The marketplace for which eligibility was determined. + * @param string $marketplace_id the marketplace for which eligibility was determined * * @return $this */ @@ -386,7 +375,7 @@ public function setMarketplaceId($marketplace_id) } /** - * Gets program + * Gets program. * * @return string */ @@ -396,9 +385,9 @@ public function getProgram() } /** - * Sets program + * Sets program. * - * @param string $program The program for which eligibility was determined. + * @param string $program the program for which eligibility was determined * * @return $this */ @@ -406,12 +395,7 @@ public function setProgram($program) { $allowedValues = $this->getProgramAllowableValues(); if (!in_array($program, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'program', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + throw new \InvalidArgumentException(sprintf("Invalid value for 'program', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['program'] = $program; @@ -419,7 +403,7 @@ public function setProgram($program) } /** - * Gets is_eligible_for_program + * Gets is_eligible_for_program. * * @return bool */ @@ -429,9 +413,9 @@ public function getIsEligibleForProgram() } /** - * Sets is_eligible_for_program + * Sets is_eligible_for_program. * - * @param bool $is_eligible_for_program Indicates if the item is eligible for the program. + * @param bool $is_eligible_for_program indicates if the item is eligible for the program * * @return $this */ @@ -443,7 +427,7 @@ public function setIsEligibleForProgram($is_eligible_for_program) } /** - * Gets ineligibility_reason_list + * Gets ineligibility_reason_list. * * @return string[] */ @@ -453,9 +437,9 @@ public function getIneligibilityReasonList() } /** - * Sets ineligibility_reason_list + * Sets ineligibility_reason_list. * - * @param string[] $ineligibility_reason_list Potential Ineligibility Reason Codes. + * @param string[] $ineligibility_reason_list potential Ineligibility Reason Codes * * @return $this */ @@ -463,23 +447,19 @@ public function setIneligibilityReasonList($ineligibility_reason_list) { $allowedValues = $this->getIneligibilityReasonListAllowableValues(); if (!is_null($ineligibility_reason_list) && array_diff($ineligibility_reason_list, $allowedValues)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'ineligibility_reason_list', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + throw new \InvalidArgumentException(sprintf("Invalid value for 'ineligibility_reason_list', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['ineligibility_reason_list'] = $ineligibility_reason_list; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -489,7 +469,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -501,8 +481,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -518,7 +498,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -528,7 +508,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/FbaInventory/Error.php b/lib/Models/FbaInventory/Error.php index ddf0f63c..4d01879a 100644 --- a/lib/Models/FbaInventory/Error.php +++ b/lib/Models/FbaInventory/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description An error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/ErrorList.php b/lib/Models/FbaInventory/ErrorList.php index df6050ce..0ecc962f 100644 --- a/lib/Models/FbaInventory/ErrorList.php +++ b/lib/Models/FbaInventory/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FbaInventory/GetInventorySummariesResponse.php b/lib/Models/FbaInventory/GetInventorySummariesResponse.php index 233f1273..ae46c0a8 100644 --- a/lib/Models/FbaInventory/GetInventorySummariesResponse.php +++ b/lib/Models/FbaInventory/GetInventorySummariesResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * GetInventorySummariesResponse Class Doc Comment. * - * @category Class + * @description The Response schema. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetInventorySummariesResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/GetInventorySummariesResult.php b/lib/Models/FbaInventory/GetInventorySummariesResult.php index 7660fc04..ff9ec0e0 100644 --- a/lib/Models/FbaInventory/GetInventorySummariesResult.php +++ b/lib/Models/FbaInventory/GetInventorySummariesResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * GetInventorySummariesResult Class Doc Comment. * - * @category Class + * @description The payload schema for the getInventorySummaries operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetInventorySummariesResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/Granularity.php b/lib/Models/FbaInventory/Granularity.php index 70e920ca..f3952906 100644 --- a/lib/Models/FbaInventory/Granularity.php +++ b/lib/Models/FbaInventory/Granularity.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * Granularity Class Doc Comment. * - * @category Class + * @description Describes a granularity at which inventory data can be aggregated. For example, if you use Marketplace granularity, the fulfillable quantity will reflect inventory that could be fulfilled in the given marketplace. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Granularity implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/InventoryDetails.php b/lib/Models/FbaInventory/InventoryDetails.php index 6c4f42ff..27f7dbba 100644 --- a/lib/Models/FbaInventory/InventoryDetails.php +++ b/lib/Models/FbaInventory/InventoryDetails.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * InventoryDetails Class Doc Comment. * - * @category Class + * @description Summarized inventory details. This object will not appear if the details parameter in the request is false. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InventoryDetails implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/InventorySummaries.php b/lib/Models/FbaInventory/InventorySummaries.php index d44ff5a9..6705bb7a 100644 --- a/lib/Models/FbaInventory/InventorySummaries.php +++ b/lib/Models/FbaInventory/InventorySummaries.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * InventorySummaries Class Doc Comment. * - * @category Class + * @description A list of inventory summaries. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InventorySummaries implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/InventorySummary.php b/lib/Models/FbaInventory/InventorySummary.php index ea1dd5d5..10eaac95 100644 --- a/lib/Models/FbaInventory/InventorySummary.php +++ b/lib/Models/FbaInventory/InventorySummary.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * InventorySummary Class Doc Comment. * - * @category Class + * @description Inventory summary for a specific item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InventorySummary implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/Pagination.php b/lib/Models/FbaInventory/Pagination.php index deb6da88..bdcfa704 100644 --- a/lib/Models/FbaInventory/Pagination.php +++ b/lib/Models/FbaInventory/Pagination.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * Pagination Class Doc Comment. * - * @category Class + * @description The process of returning the results to a request in batches of a defined size called pages. This is done to exercise some control over result size and overall throughput. It's a form of traffic management. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Pagination implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/ResearchingQuantity.php b/lib/Models/FbaInventory/ResearchingQuantity.php index 820ebf01..16a99486 100644 --- a/lib/Models/FbaInventory/ResearchingQuantity.php +++ b/lib/Models/FbaInventory/ResearchingQuantity.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * ResearchingQuantity Class Doc Comment. * - * @category Class + * @description The number of misplaced or warehouse damaged units that are actively being confirmed at our fulfillment centers. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ResearchingQuantity implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/ResearchingQuantityEntry.php b/lib/Models/FbaInventory/ResearchingQuantityEntry.php index 514a54f4..4fca21ef 100644 --- a/lib/Models/FbaInventory/ResearchingQuantityEntry.php +++ b/lib/Models/FbaInventory/ResearchingQuantityEntry.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * ResearchingQuantityEntry Class Doc Comment. * - * @category Class + * @description The misplaced or warehouse damaged inventory that is actively being confirmed at our fulfillment centers. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ResearchingQuantityEntry implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/ReservedQuantity.php b/lib/Models/FbaInventory/ReservedQuantity.php index fb6b28d6..d2906edb 100644 --- a/lib/Models/FbaInventory/ReservedQuantity.php +++ b/lib/Models/FbaInventory/ReservedQuantity.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * ReservedQuantity Class Doc Comment. * - * @category Class + * @description The quantity of reserved inventory. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ReservedQuantity implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaInventory/UnfulfillableQuantity.php b/lib/Models/FbaInventory/UnfulfillableQuantity.php index d0d32b0e..b573f03d 100644 --- a/lib/Models/FbaInventory/UnfulfillableQuantity.php +++ b/lib/Models/FbaInventory/UnfulfillableQuantity.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Inventory lets you programmatically retrieve information about inventory in Amazon's fulfillment network. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaInventory; @@ -36,12 +24,10 @@ /** * UnfulfillableQuantity Class Doc Comment. * - * @category Class + * @description The quantity of unfulfillable inventory. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UnfulfillableQuantity implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/Error.php b/lib/Models/FbaSmallAndLight/Error.php index 9a8993b6..1a70f3cc 100644 --- a/lib/Models/FbaSmallAndLight/Error.php +++ b/lib/Models/FbaSmallAndLight/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/ErrorList.php b/lib/Models/FbaSmallAndLight/ErrorList.php index 73b56469..71204158 100644 --- a/lib/Models/FbaSmallAndLight/ErrorList.php +++ b/lib/Models/FbaSmallAndLight/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FbaSmallAndLight/FeeLineItem.php b/lib/Models/FbaSmallAndLight/FeeLineItem.php index 76f46351..62576cec 100644 --- a/lib/Models/FbaSmallAndLight/FeeLineItem.php +++ b/lib/Models/FbaSmallAndLight/FeeLineItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,12 +24,10 @@ /** * FeeLineItem Class Doc Comment. * - * @category Class + * @description Fee details for a specific fee. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FeeLineItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/FeePreview.php b/lib/Models/FbaSmallAndLight/FeePreview.php index 440d47c6..bdbb6823 100644 --- a/lib/Models/FbaSmallAndLight/FeePreview.php +++ b/lib/Models/FbaSmallAndLight/FeePreview.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,12 +24,10 @@ /** * FeePreview Class Doc Comment. * - * @category Class + * @description The fee estimate for a specific item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FeePreview implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/Item.php b/lib/Models/FbaSmallAndLight/Item.php index ec6de362..e0e681d8 100644 --- a/lib/Models/FbaSmallAndLight/Item.php +++ b/lib/Models/FbaSmallAndLight/Item.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,12 +24,10 @@ /** * Item Class Doc Comment. * - * @category Class + * @description An item to be sold. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Item implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/MarketplaceId.php b/lib/Models/FbaSmallAndLight/MarketplaceId.php index f3a22e01..bb0a40a8 100644 --- a/lib/Models/FbaSmallAndLight/MarketplaceId.php +++ b/lib/Models/FbaSmallAndLight/MarketplaceId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,12 +24,10 @@ /** * MarketplaceId Class Doc Comment. * - * @category Class + * @description A marketplace identifier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class MarketplaceId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/MoneyType.php b/lib/Models/FbaSmallAndLight/MoneyType.php index 7cb745e2..a492dbbd 100644 --- a/lib/Models/FbaSmallAndLight/MoneyType.php +++ b/lib/Models/FbaSmallAndLight/MoneyType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,11 +24,7 @@ /** * MoneyType Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class MoneyType implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/SellerSKU.php b/lib/Models/FbaSmallAndLight/SellerSKU.php index a3d6d11c..28bd0ea9 100644 --- a/lib/Models/FbaSmallAndLight/SellerSKU.php +++ b/lib/Models/FbaSmallAndLight/SellerSKU.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,12 +24,10 @@ /** * SellerSKU Class Doc Comment. * - * @category Class + * @description Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SellerSKU implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/SmallAndLightEligibility.php b/lib/Models/FbaSmallAndLight/SmallAndLightEligibility.php index 93b957d9..4e8bd7b7 100644 --- a/lib/Models/FbaSmallAndLight/SmallAndLightEligibility.php +++ b/lib/Models/FbaSmallAndLight/SmallAndLightEligibility.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,12 +24,10 @@ /** * SmallAndLightEligibility Class Doc Comment. * - * @category Class + * @description The Small and Light eligibility status of the item indicated by the specified seller SKU. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SmallAndLightEligibility implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/SmallAndLightEligibilityStatus.php b/lib/Models/FbaSmallAndLight/SmallAndLightEligibilityStatus.php index 4d08434e..bb0e191b 100644 --- a/lib/Models/FbaSmallAndLight/SmallAndLightEligibilityStatus.php +++ b/lib/Models/FbaSmallAndLight/SmallAndLightEligibilityStatus.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -32,12 +20,10 @@ /** * SmallAndLightEligibilityStatus Class Doc Comment. * - * @category Class + * @description The Small and Light eligibility status of the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SmallAndLightEligibilityStatus { diff --git a/lib/Models/FbaSmallAndLight/SmallAndLightEnrollment.php b/lib/Models/FbaSmallAndLight/SmallAndLightEnrollment.php index 7f65bde7..7b8f3e98 100644 --- a/lib/Models/FbaSmallAndLight/SmallAndLightEnrollment.php +++ b/lib/Models/FbaSmallAndLight/SmallAndLightEnrollment.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,12 +24,10 @@ /** * SmallAndLightEnrollment Class Doc Comment. * - * @category Class + * @description The Small and Light enrollment status of the item indicated by the specified seller SKU. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SmallAndLightEnrollment implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/SmallAndLightEnrollmentStatus.php b/lib/Models/FbaSmallAndLight/SmallAndLightEnrollmentStatus.php index 1a32aa80..ee3b90cd 100644 --- a/lib/Models/FbaSmallAndLight/SmallAndLightEnrollmentStatus.php +++ b/lib/Models/FbaSmallAndLight/SmallAndLightEnrollmentStatus.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -32,12 +20,10 @@ /** * SmallAndLightEnrollmentStatus Class Doc Comment. * - * @category Class + * @description The Small and Light enrollment status of the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SmallAndLightEnrollmentStatus { diff --git a/lib/Models/FbaSmallAndLight/SmallAndLightFeePreviewRequest.php b/lib/Models/FbaSmallAndLight/SmallAndLightFeePreviewRequest.php index 7ae277a1..da173de4 100644 --- a/lib/Models/FbaSmallAndLight/SmallAndLightFeePreviewRequest.php +++ b/lib/Models/FbaSmallAndLight/SmallAndLightFeePreviewRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,12 +24,10 @@ /** * SmallAndLightFeePreviewRequest Class Doc Comment. * - * @category Class + * @description Request schema for submitting items for which to retrieve fee estimates. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SmallAndLightFeePreviewRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FbaSmallAndLight/SmallAndLightFeePreviews.php b/lib/Models/FbaSmallAndLight/SmallAndLightFeePreviews.php index 86311289..9cdea0ec 100644 --- a/lib/Models/FbaSmallAndLight/SmallAndLightFeePreviews.php +++ b/lib/Models/FbaSmallAndLight/SmallAndLightFeePreviews.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for FBA Small and Light lets you help sellers manage their listings in the Small and Light program. The program reduces the cost of fulfilling orders for small and lightweight FBA inventory. You can enroll or remove items from the program and check item eligibility and enrollment status. You can also preview the estimated program fees charged to a seller for items sold while enrolled in the program. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FbaSmallAndLight; @@ -36,11 +24,7 @@ /** * SmallAndLightFeePreviews Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SmallAndLightFeePreviews implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Feeds/CancelFeedResponse.php b/lib/Models/Feeds/CancelFeedResponse.php index 811d6c9e..ec5e8375 100644 --- a/lib/Models/Feeds/CancelFeedResponse.php +++ b/lib/Models/Feeds/CancelFeedResponse.php @@ -1,75 +1,63 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList' ]; + 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ - 'errors' => null ]; + 'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -79,7 +67,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -90,32 +78,32 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ - 'errors' => 'errors' ]; + 'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ - 'errors' => 'setErrors' ]; + 'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ - 'errors' => 'getErrors' ]; + 'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -125,7 +113,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -135,7 +123,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -154,17 +142,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -188,18 +174,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList */ @@ -209,7 +194,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList $errors errors * @@ -221,12 +206,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -236,7 +222,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -248,8 +234,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -265,7 +251,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -275,7 +261,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Feeds/CreateFeedDocumentResponse.php b/lib/Models/Feeds/CreateFeedDocumentResponse.php index c0482114..157fe654 100644 --- a/lib/Models/Feeds/CreateFeedDocumentResponse.php +++ b/lib/Models/Feeds/CreateFeedDocumentResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentResult', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentResult */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedDocumentResult $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Feeds/CreateFeedDocumentResult.php b/lib/Models/Feeds/CreateFeedDocumentResult.php index 8d6728e5..723de657 100644 --- a/lib/Models/Feeds/CreateFeedDocumentResult.php +++ b/lib/Models/Feeds/CreateFeedDocumentResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. * * OpenAPI spec version: 2020-09-04 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Feeds; @@ -36,12 +24,10 @@ /** * CreateFeedDocumentResult Class Doc Comment. * - * @category Class + * @description Information required to encrypt and upload a feed document's contents. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFeedDocumentResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Feeds/CreateFeedDocumentSpecification.php b/lib/Models/Feeds/CreateFeedDocumentSpecification.php index 064a2f14..d2c3342b 100644 --- a/lib/Models/Feeds/CreateFeedDocumentSpecification.php +++ b/lib/Models/Feeds/CreateFeedDocumentSpecification.php @@ -1,74 +1,60 @@ 'string' ]; + 'content_type' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ - 'content_type' => null ]; + 'content_type' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -78,7 +64,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -89,32 +75,32 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ - 'content_type' => 'contentType' ]; + 'content_type' => 'contentType', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ - 'content_type' => 'setContentType' ]; + 'content_type' => 'setContentType', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ - 'content_type' => 'getContentType' ]; + 'content_type' => 'getContentType', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -124,7 +110,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -134,7 +120,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -153,17 +139,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -182,26 +166,26 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['content_type'] === null) { + if (null === $this->container['content_type']) { $invalidProperties[] = "'content_type' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets content_type + * Gets content_type. * * @return string */ @@ -211,9 +195,9 @@ public function getContentType() } /** - * Sets content_type + * Sets content_type. * - * @param string $content_type The content type of the feed. + * @param string $content_type the content type of the feed * * @return $this */ @@ -223,12 +207,13 @@ public function setContentType($content_type) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -238,7 +223,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -250,8 +235,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -267,7 +252,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -277,7 +262,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Feeds/CreateFeedResponse.php b/lib/Models/Feeds/CreateFeedResponse.php index 8ee15733..033e9712 100644 --- a/lib/Models/Feeds/CreateFeedResponse.php +++ b/lib/Models/Feeds/CreateFeedResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedResult', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedResult */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\CreateFeedResult $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Feeds/CreateFeedResult.php b/lib/Models/Feeds/CreateFeedResult.php index 5554ca8c..e4fe1b02 100644 --- a/lib/Models/Feeds/CreateFeedResult.php +++ b/lib/Models/Feeds/CreateFeedResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. * * OpenAPI spec version: 2020-09-04 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Feeds; @@ -36,11 +24,7 @@ /** * CreateFeedResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFeedResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Feeds/CreateFeedSpecification.php b/lib/Models/Feeds/CreateFeedSpecification.php index 09cd87be..f4b589cf 100644 --- a/lib/Models/Feeds/CreateFeedSpecification.php +++ b/lib/Models/Feeds/CreateFeedSpecification.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. * * OpenAPI spec version: 2020-09-04 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Feeds; @@ -36,11 +24,7 @@ /** * CreateFeedSpecification Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFeedSpecification implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Feeds/Error.php b/lib/Models/Feeds/Error.php index e36c22e1..4b6f102b 100644 --- a/lib/Models/Feeds/Error.php +++ b/lib/Models/Feeds/Error.php @@ -1,79 +1,67 @@ 'string', 'message' => 'string', -'details' => 'string' ]; +'details' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'code' => null, 'message' => null, -'details' => null ]; +'details' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'code' => 'code', 'message' => 'message', -'details' => 'details' ]; +'details' => 'details', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'code' => 'setCode', 'message' => 'setMessage', -'details' => 'setDetails' ]; +'details' => 'setDetails', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'code' => 'getCode', 'message' => 'getMessage', -'details' => 'getDetails' ]; +'details' => 'getDetails', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -195,29 +181,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -227,9 +213,9 @@ public function getCode() } /** - * Sets code + * Sets code. * - * @param string $code An error code that identifies the type of error that occurred. + * @param string $code an error code that identifies the type of error that occurred * * @return $this */ @@ -241,7 +227,7 @@ public function setCode($code) } /** - * Gets message + * Gets message. * * @return string */ @@ -251,9 +237,9 @@ public function getMessage() } /** - * Sets message + * 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 in a human-readable form * * @return $this */ @@ -265,7 +251,7 @@ public function setMessage($message) } /** - * Gets details + * Gets details. * * @return string */ @@ -275,9 +261,9 @@ public function getDetails() } /** - * Sets details + * Sets details. * - * @param string $details Additional details that can help the caller understand or fix the issue. + * @param string $details additional details that can help the caller understand or fix the issue * * @return $this */ @@ -287,12 +273,13 @@ public function setDetails($details) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -302,7 +289,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -314,8 +301,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -331,7 +318,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -341,7 +328,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Feeds/ErrorList.php b/lib/Models/Feeds/ErrorList.php index 44eb2134..5cc89859 100644 --- a/lib/Models/Feeds/ErrorList.php +++ b/lib/Models/Feeds/ErrorList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,9 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return Error::class; } - - } diff --git a/lib/Models/Feeds/Feed.php b/lib/Models/Feeds/Feed.php index a3e46218..9fb18842 100644 --- a/lib/Models/Feeds/Feed.php +++ b/lib/Models/Feeds/Feed.php @@ -1,61 +1,47 @@ 'string', 'feed_type' => 'string', @@ -64,13 +50,13 @@ class Feed implements ModelInterface, ArrayAccess 'processing_status' => 'string', 'processing_start_time' => '\DateTime', 'processing_end_time' => '\DateTime', -'result_feed_document_id' => 'string' ]; +'result_feed_document_id' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'feed_id' => null, 'feed_type' => null, @@ -79,10 +65,10 @@ class Feed implements ModelInterface, ArrayAccess 'processing_status' => null, 'processing_start_time' => 'date-time', 'processing_end_time' => 'date-time', -'result_feed_document_id' => null ]; +'result_feed_document_id' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -92,7 +78,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -103,7 +89,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -115,10 +101,10 @@ public static function swaggerFormats() 'processing_status' => 'processingStatus', 'processing_start_time' => 'processingStartTime', 'processing_end_time' => 'processingEndTime', -'result_feed_document_id' => 'resultFeedDocumentId' ]; +'result_feed_document_id' => 'resultFeedDocumentId', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -130,10 +116,10 @@ public static function swaggerFormats() 'processing_status' => 'setProcessingStatus', 'processing_start_time' => 'setProcessingStartTime', 'processing_end_time' => 'setProcessingEndTime', -'result_feed_document_id' => 'setResultFeedDocumentId' ]; +'result_feed_document_id' => 'setResultFeedDocumentId', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -145,11 +131,11 @@ public static function swaggerFormats() 'processing_status' => 'getProcessingStatus', 'processing_start_time' => 'getProcessingStartTime', 'processing_end_time' => 'getProcessingEndTime', -'result_feed_document_id' => 'getResultFeedDocumentId' ]; +'result_feed_document_id' => 'getResultFeedDocumentId', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -159,7 +145,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -169,7 +155,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -189,13 +175,13 @@ public function getModelName() } const PROCESSING_STATUS_CANCELLED = 'CANCELLED'; -const PROCESSING_STATUS_DONE = 'DONE'; -const PROCESSING_STATUS_FATAL = 'FATAL'; -const PROCESSING_STATUS_IN_PROGRESS = 'IN_PROGRESS'; -const PROCESSING_STATUS_IN_QUEUE = 'IN_QUEUE'; + const PROCESSING_STATUS_DONE = 'DONE'; + const PROCESSING_STATUS_FATAL = 'FATAL'; + const PROCESSING_STATUS_IN_PROGRESS = 'IN_PROGRESS'; + const PROCESSING_STATUS_IN_QUEUE = 'IN_QUEUE'; /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -210,14 +196,14 @@ public function getProcessingStatusAllowableValues() } /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -243,16 +229,16 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['feed_id'] === null) { + if (null === $this->container['feed_id']) { $invalidProperties[] = "'feed_id' can't be null"; } - if ($this->container['feed_type'] === null) { + if (null === $this->container['feed_type']) { $invalidProperties[] = "'feed_type' can't be null"; } - if ($this->container['created_time'] === null) { + if (null === $this->container['created_time']) { $invalidProperties[] = "'created_time' can't be null"; } - if ($this->container['processing_status'] === null) { + if (null === $this->container['processing_status']) { $invalidProperties[] = "'processing_status' can't be null"; } $allowedValues = $this->getProcessingStatusAllowableValues(); @@ -268,18 +254,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets feed_id + * Gets feed_id. * * @return string */ @@ -289,7 +274,7 @@ public function getFeedId() } /** - * Sets feed_id + * Sets feed_id. * * @param string $feed_id The identifier for the feed. This identifier is unique only in combination with a seller ID. * @@ -303,7 +288,7 @@ public function setFeedId($feed_id) } /** - * Gets feed_type + * Gets feed_type. * * @return string */ @@ -313,9 +298,9 @@ public function getFeedType() } /** - * Sets feed_type + * Sets feed_type. * - * @param string $feed_type The feed type. + * @param string $feed_type the feed type * * @return $this */ @@ -327,7 +312,7 @@ public function setFeedType($feed_type) } /** - * Gets marketplace_ids + * Gets marketplace_ids. * * @return string[] */ @@ -337,9 +322,9 @@ public function getMarketplaceIds() } /** - * Sets marketplace_ids + * Sets marketplace_ids. * - * @param string[] $marketplace_ids A list of identifiers for the marketplaces that the feed is applied to. + * @param string[] $marketplace_ids a list of identifiers for the marketplaces that the feed is applied to * * @return $this */ @@ -351,7 +336,7 @@ public function setMarketplaceIds($marketplace_ids) } /** - * Gets created_time + * Gets created_time. * * @return \DateTime */ @@ -361,9 +346,9 @@ public function getCreatedTime() } /** - * Sets created_time + * Sets created_time. * - * @param \DateTime $created_time The date and time when the feed was created, in ISO 8601 date time format. + * @param \DateTime $created_time the date and time when the feed was created, in ISO 8601 date time format * * @return $this */ @@ -375,7 +360,7 @@ public function setCreatedTime($created_time) } /** - * Gets processing_status + * Gets processing_status. * * @return string */ @@ -385,9 +370,9 @@ public function getProcessingStatus() } /** - * Sets processing_status + * Sets processing_status. * - * @param string $processing_status The processing status of the feed. + * @param string $processing_status the processing status of the feed * * @return $this */ @@ -395,12 +380,7 @@ public function setProcessingStatus($processing_status) { $allowedValues = $this->getProcessingStatusAllowableValues(); if (!in_array($processing_status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'processing_status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + throw new \InvalidArgumentException(sprintf("Invalid value for 'processing_status', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['processing_status'] = $processing_status; @@ -408,7 +388,7 @@ public function setProcessingStatus($processing_status) } /** - * Gets processing_start_time + * Gets processing_start_time. * * @return \DateTime */ @@ -418,9 +398,9 @@ public function getProcessingStartTime() } /** - * Sets processing_start_time + * Sets processing_start_time. * - * @param \DateTime $processing_start_time The date and time when feed processing started, in ISO 8601 date time format. + * @param \DateTime $processing_start_time the date and time when feed processing started, in ISO 8601 date time format * * @return $this */ @@ -432,7 +412,7 @@ public function setProcessingStartTime($processing_start_time) } /** - * Gets processing_end_time + * Gets processing_end_time. * * @return \DateTime */ @@ -442,9 +422,9 @@ public function getProcessingEndTime() } /** - * Sets processing_end_time + * Sets processing_end_time. * - * @param \DateTime $processing_end_time The date and time when feed processing completed, in ISO 8601 date time format. + * @param \DateTime $processing_end_time the date and time when feed processing completed, in ISO 8601 date time format * * @return $this */ @@ -456,7 +436,7 @@ public function setProcessingEndTime($processing_end_time) } /** - * Gets result_feed_document_id + * Gets result_feed_document_id. * * @return string */ @@ -466,7 +446,7 @@ public function getResultFeedDocumentId() } /** - * Sets result_feed_document_id + * Sets result_feed_document_id. * * @param string $result_feed_document_id The identifier for the feed document. This identifier is unique only in combination with a seller ID. * @@ -478,12 +458,13 @@ public function setResultFeedDocumentId($result_feed_document_id) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -493,7 +474,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -505,8 +486,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -522,7 +503,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -532,7 +513,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Feeds/FeedDocument.php b/lib/Models/Feeds/FeedDocument.php index 88c0d1bd..a72471f0 100644 --- a/lib/Models/Feeds/FeedDocument.php +++ b/lib/Models/Feeds/FeedDocument.php @@ -1,80 +1,66 @@ 'string', 'url' => 'string', 'encryption_details' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\FeedDocumentEncryptionDetails', -'compression_algorithm' => 'string' ]; +'compression_algorithm' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'feed_document_id' => null, 'url' => null, 'encryption_details' => null, -'compression_algorithm' => null ]; +'compression_algorithm' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -84,7 +70,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -95,7 +81,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -103,10 +89,10 @@ public static function swaggerFormats() 'feed_document_id' => 'feedDocumentId', 'url' => 'url', 'encryption_details' => 'encryptionDetails', -'compression_algorithm' => 'compressionAlgorithm' ]; +'compression_algorithm' => 'compressionAlgorithm', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -114,10 +100,10 @@ public static function swaggerFormats() 'feed_document_id' => 'setFeedDocumentId', 'url' => 'setUrl', 'encryption_details' => 'setEncryptionDetails', -'compression_algorithm' => 'setCompressionAlgorithm' ]; +'compression_algorithm' => 'setCompressionAlgorithm', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -125,11 +111,11 @@ public static function swaggerFormats() 'feed_document_id' => 'getFeedDocumentId', 'url' => 'getUrl', 'encryption_details' => 'getEncryptionDetails', -'compression_algorithm' => 'getCompressionAlgorithm' ]; +'compression_algorithm' => 'getCompressionAlgorithm', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -139,7 +125,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -149,7 +135,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -171,7 +157,7 @@ public function getModelName() const COMPRESSION_ALGORITHM_GZIP = 'GZIP'; /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -182,14 +168,14 @@ public function getCompressionAlgorithmAllowableValues() } /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -211,13 +197,13 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['feed_document_id'] === null) { + if (null === $this->container['feed_document_id']) { $invalidProperties[] = "'feed_document_id' can't be null"; } - if ($this->container['url'] === null) { + if (null === $this->container['url']) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['encryption_details'] === null) { + if (null === $this->container['encryption_details']) { $invalidProperties[] = "'encryption_details' can't be null"; } $allowedValues = $this->getCompressionAlgorithmAllowableValues(); @@ -233,18 +219,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets feed_document_id + * Gets feed_document_id. * * @return string */ @@ -254,7 +239,7 @@ public function getFeedDocumentId() } /** - * Sets feed_document_id + * Sets feed_document_id. * * @param string $feed_document_id The identifier for the feed document. This identifier is unique only in combination with a seller ID. * @@ -268,7 +253,7 @@ public function setFeedDocumentId($feed_document_id) } /** - * Gets url + * Gets url. * * @return string */ @@ -278,7 +263,7 @@ public function getUrl() } /** - * Sets url + * Sets url. * * @param string $url A presigned URL for the feed document. This URL expires after 5 minutes. * @@ -292,7 +277,7 @@ public function setUrl($url) } /** - * Gets encryption_details + * Gets encryption_details. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\FeedDocumentEncryptionDetails */ @@ -302,7 +287,7 @@ public function getEncryptionDetails() } /** - * Sets encryption_details + * Sets encryption_details. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\FeedDocumentEncryptionDetails $encryption_details encryption_details * @@ -316,7 +301,7 @@ public function setEncryptionDetails($encryption_details) } /** - * Gets compression_algorithm + * Gets compression_algorithm. * * @return string */ @@ -326,9 +311,9 @@ public function getCompressionAlgorithm() } /** - * Sets compression_algorithm + * Sets compression_algorithm. * - * @param string $compression_algorithm If present, the feed document contents are compressed using the indicated algorithm. + * @param string $compression_algorithm if present, the feed document contents are compressed using the indicated algorithm * * @return $this */ @@ -336,23 +321,19 @@ public function setCompressionAlgorithm($compression_algorithm) { $allowedValues = $this->getCompressionAlgorithmAllowableValues(); if (!is_null($compression_algorithm) && !in_array($compression_algorithm, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'compression_algorithm', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + throw new \InvalidArgumentException(sprintf("Invalid value for 'compression_algorithm', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['compression_algorithm'] = $compression_algorithm; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -362,7 +343,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -374,8 +355,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -391,7 +372,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -401,7 +382,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Feeds/FeedDocumentEncryptionDetails.php b/lib/Models/Feeds/FeedDocumentEncryptionDetails.php index 36b6b49b..20507f49 100644 --- a/lib/Models/Feeds/FeedDocumentEncryptionDetails.php +++ b/lib/Models/Feeds/FeedDocumentEncryptionDetails.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. * * OpenAPI spec version: 2020-09-04 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Feeds; @@ -36,12 +24,10 @@ /** * FeedDocumentEncryptionDetails Class Doc Comment. * - * @category Class + * @description Encryption details for required client-side encryption and decryption of document contents. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FeedDocumentEncryptionDetails implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Feeds/FeedList.php b/lib/Models/Feeds/FeedList.php index 9b18a8a6..5764a763 100644 --- a/lib/Models/Feeds/FeedList.php +++ b/lib/Models/Feeds/FeedList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. * * OpenAPI spec version: 2020-09-04 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Feeds; @@ -37,11 +25,7 @@ /** * FeedList Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FeedList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Feeds/FeedOptions.php b/lib/Models/Feeds/FeedOptions.php index 60c7cbb4..f49ff676 100644 --- a/lib/Models/Feeds/FeedOptions.php +++ b/lib/Models/Feeds/FeedOptions.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Feeds/GetFeedDocumentResponse.php b/lib/Models/Feeds/GetFeedDocumentResponse.php index 77786267..b15df9e5 100644 --- a/lib/Models/Feeds/GetFeedDocumentResponse.php +++ b/lib/Models/Feeds/GetFeedDocumentResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Feeds lets you upload data to Amazon on behalf of a selling partner. * * OpenAPI spec version: 2020-09-04 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Feeds; @@ -36,12 +24,10 @@ /** * GetFeedDocumentResponse Class Doc Comment. * - * @category Class + * @description Response schema. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFeedDocumentResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Feeds/GetFeedResponse.php b/lib/Models/Feeds/GetFeedResponse.php index 5be4db93..3ab74316 100644 --- a/lib/Models/Feeds/GetFeedResponse.php +++ b/lib/Models/Feeds/GetFeedResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\Feed', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\Feed */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\Feed $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Feeds/GetFeedsResponse.php b/lib/Models/Feeds/GetFeedsResponse.php index d3bf4af1..14320927 100644 --- a/lib/Models/Feeds/GetFeedsResponse.php +++ b/lib/Models/Feeds/GetFeedsResponse.php @@ -1,79 +1,67 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\FeedList', 'next_token' => 'string', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, 'next_token' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', 'next_token' => 'nextToken', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', 'next_token' => 'setNextToken', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', 'next_token' => 'getNextToken', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -200,18 +186,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\FeedList */ @@ -221,7 +206,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\FeedList $payload payload * @@ -235,7 +220,7 @@ public function setPayload($payload) } /** - * Gets next_token + * Gets next_token. * * @return string */ @@ -245,7 +230,7 @@ public function getNextToken() } /** - * Sets next_token + * Sets next_token. * * @param string $next_token Returned when the number of results exceeds pageSize. To get the next page of results, call the getFeeds operation with this token as the only parameter. * @@ -259,7 +244,7 @@ public function setNextToken($next_token) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList */ @@ -269,7 +254,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Feeds\ErrorList $errors errors * @@ -281,12 +266,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -296,7 +282,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -308,8 +294,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -325,7 +311,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -335,7 +321,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Finances/AdjustmentEvent.php b/lib/Models/Finances/AdjustmentEvent.php index 323cd83b..c00906e5 100644 --- a/lib/Models/Finances/AdjustmentEvent.php +++ b/lib/Models/Finances/AdjustmentEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * AdjustmentEvent Class Doc Comment. * - * @category Class + * @description An adjustment to the seller's account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AdjustmentEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/AdjustmentEventList.php b/lib/Models/Finances/AdjustmentEventList.php index 75d59769..8b6d3283 100644 --- a/lib/Models/Finances/AdjustmentEventList.php +++ b/lib/Models/Finances/AdjustmentEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * AdjustmentEventList Class Doc Comment. * - * @category Class + * @description A list of adjustment event information for the seller's account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AdjustmentEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/AdjustmentItem.php b/lib/Models/Finances/AdjustmentItem.php index 2821627f..72060665 100644 --- a/lib/Models/Finances/AdjustmentItem.php +++ b/lib/Models/Finances/AdjustmentItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * AdjustmentItem Class Doc Comment. * - * @category Class + * @description An item in an adjustment to the seller's account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AdjustmentItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/AdjustmentItemList.php b/lib/Models/Finances/AdjustmentItemList.php index 12f8419d..0b8f679d 100644 --- a/lib/Models/Finances/AdjustmentItemList.php +++ b/lib/Models/Finances/AdjustmentItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * AdjustmentItemList Class Doc Comment. * - * @category Class + * @description A list of information about items in an adjustment to the seller's account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AdjustmentItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/AffordabilityExpenseEvent.php b/lib/Models/Finances/AffordabilityExpenseEvent.php index ed025e15..94b6fcb0 100644 --- a/lib/Models/Finances/AffordabilityExpenseEvent.php +++ b/lib/Models/Finances/AffordabilityExpenseEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * AffordabilityExpenseEvent Class Doc Comment. * - * @category Class + * @description An expense related to an affordability promotion. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AffordabilityExpenseEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/AffordabilityExpenseEventList.php b/lib/Models/Finances/AffordabilityExpenseEventList.php index 7f36048a..241d9123 100644 --- a/lib/Models/Finances/AffordabilityExpenseEventList.php +++ b/lib/Models/Finances/AffordabilityExpenseEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * AffordabilityExpenseEventList Class Doc Comment. * - * @category Class + * @description A list of expense information related to an affordability promotion. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AffordabilityExpenseEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/BigDecimal.php b/lib/Models/Finances/BigDecimal.php index 5e9070fd..40416498 100644 --- a/lib/Models/Finances/BigDecimal.php +++ b/lib/Models/Finances/BigDecimal.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,11 +24,7 @@ /** * BigDecimal Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class BigDecimal implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ChargeComponent.php b/lib/Models/Finances/ChargeComponent.php index 50bf6a1b..bccd9394 100644 --- a/lib/Models/Finances/ChargeComponent.php +++ b/lib/Models/Finances/ChargeComponent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ChargeComponent Class Doc Comment. * - * @category Class + * @description A charge on the seller's account. Possible values: * Principal - The selling price of the order item, equal to the selling price of the item multiplied by the quantity ordered. * Tax - The tax collected by the seller on the Principal. * MarketplaceFacilitatorTax-Principal - The tax withheld on the Principal. * MarketplaceFacilitatorTax-Shipping - The tax withheld on the ShippingCharge. * MarketplaceFacilitatorTax-Giftwrap - The tax withheld on the Giftwrap charge. * MarketplaceFacilitatorTax-Other - The tax withheld on other miscellaneous charges. * Discount - The promotional discount for an order item. * TaxDiscount - The tax amount deducted for promotional rebates. * CODItemCharge - The COD charge for an order item. * CODItemTaxCharge - The tax collected by the seller on a CODItemCharge. * CODOrderCharge - The COD charge for an order. * CODOrderTaxCharge - The tax collected by the seller on a CODOrderCharge. * CODShippingCharge - Shipping charges for a COD order. * CODShippingTaxCharge - The tax collected by the seller on a CODShippingCharge. * ShippingCharge - The shipping charge. * ShippingTax - The tax collected by the seller on a ShippingCharge. * Goodwill - The amount given to a buyer as a gesture of goodwill or to compensate for pain and suffering in the buying experience. * Giftwrap - The gift wrap charge. * GiftwrapTax - The tax collected by the seller on a Giftwrap charge. * RestockingFee - The charge applied to the buyer when returning a product in certain categories. * ReturnShipping - The amount given to the buyer to compensate for shipping the item back in the event we are at fault. * PointsFee - The value of Amazon Points deducted from the refund if the buyer does not have enough Amazon Points to cover the deduction. * GenericDeduction - A generic bad debt deduction. * FreeReplacementReturnShipping - The compensation for return shipping when a buyer receives the wrong item, requests a free replacement, and returns the incorrect item. * PaymentMethodFee - The fee collected for certain payment methods in certain marketplaces. * ExportCharge - The export duty that is charged when an item is shipped to an international destination as part of the Amazon Global program. * SAFE-TReimbursement - The SAFE-T claim amount for the item. * TCS-CGST - Tax Collected at Source (TCS) for Central Goods and Services Tax (CGST). * TCS-SGST - Tax Collected at Source for State Goods and Services Tax (SGST). * TCS-IGST - Tax Collected at Source for Integrated Goods and Services Tax (IGST). * TCS-UTGST - Tax Collected at Source for Union Territories Goods and Services Tax (UTGST). * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ChargeComponent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ChargeComponentList.php b/lib/Models/Finances/ChargeComponentList.php index ae52244b..34e9846f 100644 --- a/lib/Models/Finances/ChargeComponentList.php +++ b/lib/Models/Finances/ChargeComponentList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * ChargeComponentList Class Doc Comment. * - * @category Class + * @description A list of charge information on the seller's account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ChargeComponentList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/ChargeInstrument.php b/lib/Models/Finances/ChargeInstrument.php index 275067af..729ea3e1 100644 --- a/lib/Models/Finances/ChargeInstrument.php +++ b/lib/Models/Finances/ChargeInstrument.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ChargeInstrument Class Doc Comment. * - * @category Class + * @description A payment instrument. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ChargeInstrument implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ChargeInstrumentList.php b/lib/Models/Finances/ChargeInstrumentList.php index d27ca695..7dcec122 100644 --- a/lib/Models/Finances/ChargeInstrumentList.php +++ b/lib/Models/Finances/ChargeInstrumentList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * ChargeInstrumentList Class Doc Comment. * - * @category Class + * @description A list of payment instruments. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ChargeInstrumentList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/CouponPaymentEvent.php b/lib/Models/Finances/CouponPaymentEvent.php index 1ffeff75..8f1da7b0 100644 --- a/lib/Models/Finances/CouponPaymentEvent.php +++ b/lib/Models/Finances/CouponPaymentEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * CouponPaymentEvent Class Doc Comment. * - * @category Class + * @description An event related to coupon payments. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CouponPaymentEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/CouponPaymentEventList.php b/lib/Models/Finances/CouponPaymentEventList.php index c621a36e..020359b0 100644 --- a/lib/Models/Finances/CouponPaymentEventList.php +++ b/lib/Models/Finances/CouponPaymentEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * CouponPaymentEventList Class Doc Comment. * - * @category Class + * @description A list of coupon payment event information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CouponPaymentEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/Currency.php b/lib/Models/Finances/Currency.php index c0c56135..3a79d5c5 100644 --- a/lib/Models/Finances/Currency.php +++ b/lib/Models/Finances/Currency.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * Currency Class Doc Comment. * - * @category Class + * @description A currency type and amount. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Currency implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/Date.php b/lib/Models/Finances/Date.php index 8739259a..60654e81 100644 --- a/lib/Models/Finances/Date.php +++ b/lib/Models/Finances/Date.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,11 +24,7 @@ /** * Date Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Date implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/DebtRecoveryEvent.php b/lib/Models/Finances/DebtRecoveryEvent.php index 4e50b598..428cbcbd 100644 --- a/lib/Models/Finances/DebtRecoveryEvent.php +++ b/lib/Models/Finances/DebtRecoveryEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * DebtRecoveryEvent Class Doc Comment. * - * @category Class + * @description A debt payment or debt adjustment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DebtRecoveryEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/DebtRecoveryEventList.php b/lib/Models/Finances/DebtRecoveryEventList.php index 4d56cd8f..d96bd6dd 100644 --- a/lib/Models/Finances/DebtRecoveryEventList.php +++ b/lib/Models/Finances/DebtRecoveryEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * DebtRecoveryEventList Class Doc Comment. * - * @category Class + * @description A list of debt recovery event information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DebtRecoveryEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/DebtRecoveryItem.php b/lib/Models/Finances/DebtRecoveryItem.php index 45fc949e..f5035b59 100644 --- a/lib/Models/Finances/DebtRecoveryItem.php +++ b/lib/Models/Finances/DebtRecoveryItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * DebtRecoveryItem Class Doc Comment. * - * @category Class + * @description An item of a debt payment or debt adjustment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DebtRecoveryItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/DebtRecoveryItemList.php b/lib/Models/Finances/DebtRecoveryItemList.php index 9f23c4cb..cdfdd141 100644 --- a/lib/Models/Finances/DebtRecoveryItemList.php +++ b/lib/Models/Finances/DebtRecoveryItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * DebtRecoveryItemList Class Doc Comment. * - * @category Class + * @description A list of debt recovery item information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DebtRecoveryItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/DirectPayment.php b/lib/Models/Finances/DirectPayment.php index d3333903..a09fc8f3 100644 --- a/lib/Models/Finances/DirectPayment.php +++ b/lib/Models/Finances/DirectPayment.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * DirectPayment Class Doc Comment. * - * @category Class + * @description A payment made directly to a seller. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DirectPayment implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/DirectPaymentList.php b/lib/Models/Finances/DirectPaymentList.php index cfde9f34..d817d9ac 100644 --- a/lib/Models/Finances/DirectPaymentList.php +++ b/lib/Models/Finances/DirectPaymentList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * DirectPaymentList Class Doc Comment. * - * @category Class + * @description A list of direct payment information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DirectPaymentList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/Error.php b/lib/Models/Finances/Error.php index 2ca4d599..f421c450 100644 --- a/lib/Models/Finances/Error.php +++ b/lib/Models/Finances/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ErrorList.php b/lib/Models/Finances/ErrorList.php index 7c933356..3520f4e9 100644 --- a/lib/Models/Finances/ErrorList.php +++ b/lib/Models/Finances/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/FBALiquidationEvent.php b/lib/Models/Finances/FBALiquidationEvent.php index 50eb5177..73b75877 100644 --- a/lib/Models/Finances/FBALiquidationEvent.php +++ b/lib/Models/Finances/FBALiquidationEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * FBALiquidationEvent Class Doc Comment. * - * @category Class + * @description A payment event for Fulfillment by Amazon (FBA) inventory liquidation. This event is used only in the US marketplace. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FBALiquidationEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/FBALiquidationEventList.php b/lib/Models/Finances/FBALiquidationEventList.php index ee1bacf7..d1041c5c 100644 --- a/lib/Models/Finances/FBALiquidationEventList.php +++ b/lib/Models/Finances/FBALiquidationEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * FBALiquidationEventList Class Doc Comment. * - * @category Class + * @description A list of FBA inventory liquidation payment events. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FBALiquidationEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/FeeComponent.php b/lib/Models/Finances/FeeComponent.php index 16f04745..afa2b1f8 100644 --- a/lib/Models/Finances/FeeComponent.php +++ b/lib/Models/Finances/FeeComponent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * FeeComponent Class Doc Comment. * - * @category Class + * @description A fee associated with the event. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FeeComponent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/FeeComponentList.php b/lib/Models/Finances/FeeComponentList.php index 8f91d6e4..74b622ab 100644 --- a/lib/Models/Finances/FeeComponentList.php +++ b/lib/Models/Finances/FeeComponentList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * FeeComponentList Class Doc Comment. * - * @category Class + * @description A list of fee component information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FeeComponentList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/FinancialEventGroup.php b/lib/Models/Finances/FinancialEventGroup.php index 80dde2b0..4a204d67 100644 --- a/lib/Models/Finances/FinancialEventGroup.php +++ b/lib/Models/Finances/FinancialEventGroup.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * FinancialEventGroup Class Doc Comment. * - * @category Class + * @description Information related to a financial event group. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FinancialEventGroup implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/FinancialEventGroupList.php b/lib/Models/Finances/FinancialEventGroupList.php index f6988f10..596d84b2 100644 --- a/lib/Models/Finances/FinancialEventGroupList.php +++ b/lib/Models/Finances/FinancialEventGroupList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * FinancialEventGroupList Class Doc Comment. * - * @category Class + * @description A list of financial event group information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FinancialEventGroupList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/FinancialEvents.php b/lib/Models/Finances/FinancialEvents.php index 1ae71527..e56b75bc 100644 --- a/lib/Models/Finances/FinancialEvents.php +++ b/lib/Models/Finances/FinancialEvents.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * FinancialEvents Class Doc Comment. * - * @category Class + * @description Contains all information related to a financial event. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FinancialEvents implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ImagingServicesFeeEvent.php b/lib/Models/Finances/ImagingServicesFeeEvent.php index 1b09adc2..d38dae80 100644 --- a/lib/Models/Finances/ImagingServicesFeeEvent.php +++ b/lib/Models/Finances/ImagingServicesFeeEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ImagingServicesFeeEvent Class Doc Comment. * - * @category Class + * @description A fee event related to Amazon Imaging services. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ImagingServicesFeeEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ImagingServicesFeeEventList.php b/lib/Models/Finances/ImagingServicesFeeEventList.php index e15306ea..67f7049e 100644 --- a/lib/Models/Finances/ImagingServicesFeeEventList.php +++ b/lib/Models/Finances/ImagingServicesFeeEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * ImagingServicesFeeEventList Class Doc Comment. * - * @category Class + * @description A list of fee events related to Amazon Imaging services. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ImagingServicesFeeEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/ListFinancialEventGroupsPayload.php b/lib/Models/Finances/ListFinancialEventGroupsPayload.php index 51790971..a7f51c36 100644 --- a/lib/Models/Finances/ListFinancialEventGroupsPayload.php +++ b/lib/Models/Finances/ListFinancialEventGroupsPayload.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ListFinancialEventGroupsPayload Class Doc Comment. * - * @category Class + * @description The payload for the listFinancialEventGroups operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListFinancialEventGroupsPayload implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ListFinancialEventGroupsResponse.php b/lib/Models/Finances/ListFinancialEventGroupsResponse.php index f3b664f1..85bd9658 100644 --- a/lib/Models/Finances/ListFinancialEventGroupsResponse.php +++ b/lib/Models/Finances/ListFinancialEventGroupsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ListFinancialEventGroupsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the listFinancialEventGroups operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListFinancialEventGroupsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ListFinancialEventsPayload.php b/lib/Models/Finances/ListFinancialEventsPayload.php index 4ac40780..3e8d53ca 100644 --- a/lib/Models/Finances/ListFinancialEventsPayload.php +++ b/lib/Models/Finances/ListFinancialEventsPayload.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ListFinancialEventsPayload Class Doc Comment. * - * @category Class + * @description The payload for the listFinancialEvents operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListFinancialEventsPayload implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ListFinancialEventsResponse.php b/lib/Models/Finances/ListFinancialEventsResponse.php index ac7e2db1..6efcffc5 100644 --- a/lib/Models/Finances/ListFinancialEventsResponse.php +++ b/lib/Models/Finances/ListFinancialEventsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ListFinancialEventsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the listFinancialEvents operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListFinancialEventsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/LoanServicingEvent.php b/lib/Models/Finances/LoanServicingEvent.php index e3a53e56..32a26ef5 100644 --- a/lib/Models/Finances/LoanServicingEvent.php +++ b/lib/Models/Finances/LoanServicingEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * LoanServicingEvent Class Doc Comment. * - * @category Class + * @description A loan advance, loan payment, or loan refund. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LoanServicingEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/LoanServicingEventList.php b/lib/Models/Finances/LoanServicingEventList.php index 003ae99c..cca3ea80 100644 --- a/lib/Models/Finances/LoanServicingEventList.php +++ b/lib/Models/Finances/LoanServicingEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * LoanServicingEventList Class Doc Comment. * - * @category Class + * @description A list of loan servicing events. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LoanServicingEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/NetworkComminglingTransactionEvent.php b/lib/Models/Finances/NetworkComminglingTransactionEvent.php index 43c54e00..266f344f 100644 --- a/lib/Models/Finances/NetworkComminglingTransactionEvent.php +++ b/lib/Models/Finances/NetworkComminglingTransactionEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * NetworkComminglingTransactionEvent Class Doc Comment. * - * @category Class + * @description A network commingling transaction event. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NetworkComminglingTransactionEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/NetworkComminglingTransactionEventList.php b/lib/Models/Finances/NetworkComminglingTransactionEventList.php index fee41bc9..6b72aef3 100644 --- a/lib/Models/Finances/NetworkComminglingTransactionEventList.php +++ b/lib/Models/Finances/NetworkComminglingTransactionEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * NetworkComminglingTransactionEventList Class Doc Comment. * - * @category Class + * @description A list of network commingling transaction events. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NetworkComminglingTransactionEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/PayWithAmazonEvent.php b/lib/Models/Finances/PayWithAmazonEvent.php index e219d933..798858a1 100644 --- a/lib/Models/Finances/PayWithAmazonEvent.php +++ b/lib/Models/Finances/PayWithAmazonEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * PayWithAmazonEvent Class Doc Comment. * - * @category Class + * @description An event related to the seller's Pay with Amazon account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PayWithAmazonEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/PayWithAmazonEventList.php b/lib/Models/Finances/PayWithAmazonEventList.php index 3a4cc853..9377f9ff 100644 --- a/lib/Models/Finances/PayWithAmazonEventList.php +++ b/lib/Models/Finances/PayWithAmazonEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * PayWithAmazonEventList Class Doc Comment. * - * @category Class + * @description A list of events related to the seller's Pay with Amazon account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PayWithAmazonEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/ProductAdsPaymentEvent.php b/lib/Models/Finances/ProductAdsPaymentEvent.php index d1c9d71c..80ce7c07 100644 --- a/lib/Models/Finances/ProductAdsPaymentEvent.php +++ b/lib/Models/Finances/ProductAdsPaymentEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ProductAdsPaymentEvent Class Doc Comment. * - * @category Class + * @description A Sponsored Products payment event. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ProductAdsPaymentEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ProductAdsPaymentEventList.php b/lib/Models/Finances/ProductAdsPaymentEventList.php index 83027f78..daaf1ed2 100644 --- a/lib/Models/Finances/ProductAdsPaymentEventList.php +++ b/lib/Models/Finances/ProductAdsPaymentEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * ProductAdsPaymentEventList Class Doc Comment. * - * @category Class + * @description A list of sponsored products payment events. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ProductAdsPaymentEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/Promotion.php b/lib/Models/Finances/Promotion.php index bedb0c9e..8808acd2 100644 --- a/lib/Models/Finances/Promotion.php +++ b/lib/Models/Finances/Promotion.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * Promotion Class Doc Comment. * - * @category Class + * @description A promotion applied to an item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Promotion implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/PromotionList.php b/lib/Models/Finances/PromotionList.php index b70607fb..8ff7c283 100644 --- a/lib/Models/Finances/PromotionList.php +++ b/lib/Models/Finances/PromotionList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * PromotionList Class Doc Comment. * - * @category Class + * @description A list of promotions. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PromotionList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/RemovalShipmentEvent.php b/lib/Models/Finances/RemovalShipmentEvent.php index 4820f633..cc060862 100644 --- a/lib/Models/Finances/RemovalShipmentEvent.php +++ b/lib/Models/Finances/RemovalShipmentEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * RemovalShipmentEvent Class Doc Comment. * - * @category Class + * @description A removal shipment event for a removal order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RemovalShipmentEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/RemovalShipmentEventList.php b/lib/Models/Finances/RemovalShipmentEventList.php index 55fc4f3e..931b0685 100644 --- a/lib/Models/Finances/RemovalShipmentEventList.php +++ b/lib/Models/Finances/RemovalShipmentEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * RemovalShipmentEventList Class Doc Comment. * - * @category Class + * @description A list of removal shipment event information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RemovalShipmentEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/RemovalShipmentItem.php b/lib/Models/Finances/RemovalShipmentItem.php index cd520693..fcaa55d5 100644 --- a/lib/Models/Finances/RemovalShipmentItem.php +++ b/lib/Models/Finances/RemovalShipmentItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * RemovalShipmentItem Class Doc Comment. * - * @category Class + * @description Item-level information for a removal shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RemovalShipmentItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/RemovalShipmentItemList.php b/lib/Models/Finances/RemovalShipmentItemList.php index 177d05b2..39e65487 100644 --- a/lib/Models/Finances/RemovalShipmentItemList.php +++ b/lib/Models/Finances/RemovalShipmentItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * RemovalShipmentItemList Class Doc Comment. * - * @category Class + * @description A list of information about removal shipment items. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RemovalShipmentItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/RentalTransactionEvent.php b/lib/Models/Finances/RentalTransactionEvent.php index cc77b7c7..e827cb66 100644 --- a/lib/Models/Finances/RentalTransactionEvent.php +++ b/lib/Models/Finances/RentalTransactionEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * RentalTransactionEvent Class Doc Comment. * - * @category Class + * @description An event related to a rental transaction. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RentalTransactionEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/RentalTransactionEventList.php b/lib/Models/Finances/RentalTransactionEventList.php index fab87405..65eb4634 100644 --- a/lib/Models/Finances/RentalTransactionEventList.php +++ b/lib/Models/Finances/RentalTransactionEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * RentalTransactionEventList Class Doc Comment. * - * @category Class + * @description A list of rental transaction event information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RentalTransactionEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/RetrochargeEvent.php b/lib/Models/Finances/RetrochargeEvent.php index 5709f807..0b6aad0a 100644 --- a/lib/Models/Finances/RetrochargeEvent.php +++ b/lib/Models/Finances/RetrochargeEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * RetrochargeEvent Class Doc Comment. * - * @category Class + * @description A retrocharge or retrocharge reversal. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RetrochargeEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/RetrochargeEventList.php b/lib/Models/Finances/RetrochargeEventList.php index d6fbfa1f..a1880e03 100644 --- a/lib/Models/Finances/RetrochargeEventList.php +++ b/lib/Models/Finances/RetrochargeEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * RetrochargeEventList Class Doc Comment. * - * @category Class + * @description A list of information about Retrocharge or RetrochargeReversal events. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RetrochargeEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/SAFETReimbursementEvent.php b/lib/Models/Finances/SAFETReimbursementEvent.php index 2a350f8f..af9e9e58 100644 --- a/lib/Models/Finances/SAFETReimbursementEvent.php +++ b/lib/Models/Finances/SAFETReimbursementEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * SAFETReimbursementEvent Class Doc Comment. * - * @category Class + * @description A SAFE-T claim reimbursement on the seller's account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SAFETReimbursementEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/SAFETReimbursementEventList.php b/lib/Models/Finances/SAFETReimbursementEventList.php index b6d3708c..6d7d6054 100644 --- a/lib/Models/Finances/SAFETReimbursementEventList.php +++ b/lib/Models/Finances/SAFETReimbursementEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * SAFETReimbursementEventList Class Doc Comment. * - * @category Class + * @description A list of SAFETReimbursementEvents. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SAFETReimbursementEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/SAFETReimbursementItem.php b/lib/Models/Finances/SAFETReimbursementItem.php index 84633c18..5b869b49 100644 --- a/lib/Models/Finances/SAFETReimbursementItem.php +++ b/lib/Models/Finances/SAFETReimbursementItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * SAFETReimbursementItem Class Doc Comment. * - * @category Class + * @description An item from a SAFE-T claim reimbursement. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SAFETReimbursementItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/SAFETReimbursementItemList.php b/lib/Models/Finances/SAFETReimbursementItemList.php index cbba6731..8dcf281f 100644 --- a/lib/Models/Finances/SAFETReimbursementItemList.php +++ b/lib/Models/Finances/SAFETReimbursementItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * SAFETReimbursementItemList Class Doc Comment. * - * @category Class + * @description A list of SAFETReimbursementItems. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SAFETReimbursementItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/SellerDealPaymentEvent.php b/lib/Models/Finances/SellerDealPaymentEvent.php index 9e9fc628..68c99e13 100644 --- a/lib/Models/Finances/SellerDealPaymentEvent.php +++ b/lib/Models/Finances/SellerDealPaymentEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * SellerDealPaymentEvent Class Doc Comment. * - * @category Class + * @description An event linked to the payment of a fee related to the specified deal. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SellerDealPaymentEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/SellerDealPaymentEventList.php b/lib/Models/Finances/SellerDealPaymentEventList.php index 65a13e11..c2f965c3 100644 --- a/lib/Models/Finances/SellerDealPaymentEventList.php +++ b/lib/Models/Finances/SellerDealPaymentEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * SellerDealPaymentEventList Class Doc Comment. * - * @category Class + * @description A list of payment events for deal-related fees. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SellerDealPaymentEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/SellerReviewEnrollmentPaymentEvent.php b/lib/Models/Finances/SellerReviewEnrollmentPaymentEvent.php index 3c68ce53..513b0971 100644 --- a/lib/Models/Finances/SellerReviewEnrollmentPaymentEvent.php +++ b/lib/Models/Finances/SellerReviewEnrollmentPaymentEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * SellerReviewEnrollmentPaymentEvent Class Doc Comment. * - * @category Class + * @description A fee payment event for the Early Reviewer Program. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SellerReviewEnrollmentPaymentEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/SellerReviewEnrollmentPaymentEventList.php b/lib/Models/Finances/SellerReviewEnrollmentPaymentEventList.php index 4448eab8..cec1ff18 100644 --- a/lib/Models/Finances/SellerReviewEnrollmentPaymentEventList.php +++ b/lib/Models/Finances/SellerReviewEnrollmentPaymentEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * SellerReviewEnrollmentPaymentEventList Class Doc Comment. * - * @category Class + * @description A list of information about fee events for the Early Reviewer Program. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SellerReviewEnrollmentPaymentEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/ServiceFeeEvent.php b/lib/Models/Finances/ServiceFeeEvent.php index 8881745c..ca652870 100644 --- a/lib/Models/Finances/ServiceFeeEvent.php +++ b/lib/Models/Finances/ServiceFeeEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ServiceFeeEvent Class Doc Comment. * - * @category Class + * @description A service fee on the seller's account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceFeeEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ServiceFeeEventList.php b/lib/Models/Finances/ServiceFeeEventList.php index 65caeb05..ef832448 100644 --- a/lib/Models/Finances/ServiceFeeEventList.php +++ b/lib/Models/Finances/ServiceFeeEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * ServiceFeeEventList Class Doc Comment. * - * @category Class + * @description A list of information about service fee events. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceFeeEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/ShipmentEvent.php b/lib/Models/Finances/ShipmentEvent.php index 5ee0f278..3bc91966 100644 --- a/lib/Models/Finances/ShipmentEvent.php +++ b/lib/Models/Finances/ShipmentEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ShipmentEvent Class Doc Comment. * - * @category Class + * @description A shipment, refund, guarantee claim, or chargeback. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShipmentEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ShipmentEventList.php b/lib/Models/Finances/ShipmentEventList.php index 4ec5e11c..9134144c 100644 --- a/lib/Models/Finances/ShipmentEventList.php +++ b/lib/Models/Finances/ShipmentEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * ShipmentEventList Class Doc Comment. * - * @category Class + * @description A list of shipment event information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShipmentEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/ShipmentItem.php b/lib/Models/Finances/ShipmentItem.php index b1ae55cb..27690dd9 100644 --- a/lib/Models/Finances/ShipmentItem.php +++ b/lib/Models/Finances/ShipmentItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * ShipmentItem Class Doc Comment. * - * @category Class + * @description An item of a shipment, refund, guarantee claim, or chargeback. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShipmentItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/ShipmentItemList.php b/lib/Models/Finances/ShipmentItemList.php index c710da2d..6df57812 100644 --- a/lib/Models/Finances/ShipmentItemList.php +++ b/lib/Models/Finances/ShipmentItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * ShipmentItemList Class Doc Comment. * - * @category Class + * @description A list of shipment items. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShipmentItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/SolutionProviderCreditEvent.php b/lib/Models/Finances/SolutionProviderCreditEvent.php index 07ceb2fe..f858b66f 100644 --- a/lib/Models/Finances/SolutionProviderCreditEvent.php +++ b/lib/Models/Finances/SolutionProviderCreditEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * SolutionProviderCreditEvent Class Doc Comment. * - * @category Class + * @description A credit given to a solution provider. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SolutionProviderCreditEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/SolutionProviderCreditEventList.php b/lib/Models/Finances/SolutionProviderCreditEventList.php index 55f7b0b2..49f13590 100644 --- a/lib/Models/Finances/SolutionProviderCreditEventList.php +++ b/lib/Models/Finances/SolutionProviderCreditEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * SolutionProviderCreditEventList Class Doc Comment. * - * @category Class + * @description A list of information about solution provider credits. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SolutionProviderCreditEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/TDSReimbursementEvent.php b/lib/Models/Finances/TDSReimbursementEvent.php index fbb6e668..9a9750e4 100644 --- a/lib/Models/Finances/TDSReimbursementEvent.php +++ b/lib/Models/Finances/TDSReimbursementEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * TDSReimbursementEvent Class Doc Comment. * - * @category Class + * @description A tax deduction at source (TDS) claim reimbursement event on the seller's account. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TDSReimbursementEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/TDSReimbursementEventList.php b/lib/Models/Finances/TDSReimbursementEventList.php index 03746422..f5e9ec2b 100644 --- a/lib/Models/Finances/TDSReimbursementEventList.php +++ b/lib/Models/Finances/TDSReimbursementEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * TDSReimbursementEventList Class Doc Comment. * - * @category Class + * @description A list of information about tax deduction at source (TDS) claim reimbursement events. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TDSReimbursementEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/TaxWithheldComponent.php b/lib/Models/Finances/TaxWithheldComponent.php index ddc136f2..dd5f7b31 100644 --- a/lib/Models/Finances/TaxWithheldComponent.php +++ b/lib/Models/Finances/TaxWithheldComponent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * TaxWithheldComponent Class Doc Comment. * - * @category Class + * @description Information about the taxes withheld. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TaxWithheldComponent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/TaxWithheldComponentList.php b/lib/Models/Finances/TaxWithheldComponentList.php index 91acb04f..ec553d95 100644 --- a/lib/Models/Finances/TaxWithheldComponentList.php +++ b/lib/Models/Finances/TaxWithheldComponentList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * TaxWithheldComponentList Class Doc Comment. * - * @category Class + * @description A list of information about taxes withheld. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TaxWithheldComponentList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Finances/TrialShipmentEvent.php b/lib/Models/Finances/TrialShipmentEvent.php index 6572f0f9..a1fa15f2 100644 --- a/lib/Models/Finances/TrialShipmentEvent.php +++ b/lib/Models/Finances/TrialShipmentEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -36,12 +24,10 @@ /** * TrialShipmentEvent Class Doc Comment. * - * @category Class + * @description An event related to a trial shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TrialShipmentEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Finances/TrialShipmentEventList.php b/lib/Models/Finances/TrialShipmentEventList.php index 912b87b4..aa73ed2d 100644 --- a/lib/Models/Finances/TrialShipmentEventList.php +++ b/lib/Models/Finances/TrialShipmentEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Finances; @@ -37,12 +25,10 @@ /** * TrialShipmentEventList Class Doc Comment. * - * @category Class + * @description A list of information about trial shipment financial events. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TrialShipmentEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/ASINInboundGuidance.php b/lib/Models/FulfillmentInbound/ASINInboundGuidance.php index 402ed069..c47186d4 100644 --- a/lib/Models/FulfillmentInbound/ASINInboundGuidance.php +++ b/lib/Models/FulfillmentInbound/ASINInboundGuidance.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * ASINInboundGuidance Class Doc Comment. * - * @category Class + * @description Reasons why a given ASIN is not recommended for shipment to Amazon's fulfillment network. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ASINInboundGuidance implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/ASINInboundGuidanceList.php b/lib/Models/FulfillmentInbound/ASINInboundGuidanceList.php index fe485394..c4f1cc02 100644 --- a/lib/Models/FulfillmentInbound/ASINInboundGuidanceList.php +++ b/lib/Models/FulfillmentInbound/ASINInboundGuidanceList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * ASINInboundGuidanceList Class Doc Comment. * - * @category Class + * @description A list of ASINs and their associated inbound guidance. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ASINInboundGuidanceList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/ASINPrepInstructions.php b/lib/Models/FulfillmentInbound/ASINPrepInstructions.php index 17b905ec..9c027a7f 100644 --- a/lib/Models/FulfillmentInbound/ASINPrepInstructions.php +++ b/lib/Models/FulfillmentInbound/ASINPrepInstructions.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * ASINPrepInstructions Class Doc Comment. * - * @category Class + * @description Item preparation instructions to help with item sourcing decisions. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ASINPrepInstructions implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/ASINPrepInstructionsList.php b/lib/Models/FulfillmentInbound/ASINPrepInstructionsList.php index 628e4bfc..1bd90b56 100644 --- a/lib/Models/FulfillmentInbound/ASINPrepInstructionsList.php +++ b/lib/Models/FulfillmentInbound/ASINPrepInstructionsList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * ASINPrepInstructionsList Class Doc Comment. * - * @category Class + * @description A list of item preparation instructions. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ASINPrepInstructionsList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/Address.php b/lib/Models/FulfillmentInbound/Address.php index 1d7b7a1d..e5698749 100644 --- a/lib/Models/FulfillmentInbound/Address.php +++ b/lib/Models/FulfillmentInbound/Address.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * Address Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Address implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/AmazonPrepFeesDetails.php b/lib/Models/FulfillmentInbound/AmazonPrepFeesDetails.php index c8f917c6..3725c152 100644 --- a/lib/Models/FulfillmentInbound/AmazonPrepFeesDetails.php +++ b/lib/Models/FulfillmentInbound/AmazonPrepFeesDetails.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * AmazonPrepFeesDetails Class Doc Comment. * - * @category Class + * @description The fees for Amazon to prep goods for shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AmazonPrepFeesDetails implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/AmazonPrepFeesDetailsList.php b/lib/Models/FulfillmentInbound/AmazonPrepFeesDetailsList.php index fa0e342e..dd832642 100644 --- a/lib/Models/FulfillmentInbound/AmazonPrepFeesDetailsList.php +++ b/lib/Models/FulfillmentInbound/AmazonPrepFeesDetailsList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * AmazonPrepFeesDetailsList Class Doc Comment. * - * @category Class + * @description A list of preparation instructions and fees for Amazon to prep goods for shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AmazonPrepFeesDetailsList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/Amount.php b/lib/Models/FulfillmentInbound/Amount.php index 6bf9c84c..66aa304a 100644 --- a/lib/Models/FulfillmentInbound/Amount.php +++ b/lib/Models/FulfillmentInbound/Amount.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * Amount Class Doc Comment. * - * @category Class + * @description The monetary value. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Amount implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/BarcodeInstruction.php b/lib/Models/FulfillmentInbound/BarcodeInstruction.php index c781c84e..381db7f5 100644 --- a/lib/Models/FulfillmentInbound/BarcodeInstruction.php +++ b/lib/Models/FulfillmentInbound/BarcodeInstruction.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * BarcodeInstruction Class Doc Comment. * - * @category Class + * @description Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class BarcodeInstruction { diff --git a/lib/Models/FulfillmentInbound/BigDecimalType.php b/lib/Models/FulfillmentInbound/BigDecimalType.php index fce7b7b4..2221c037 100644 --- a/lib/Models/FulfillmentInbound/BigDecimalType.php +++ b/lib/Models/FulfillmentInbound/BigDecimalType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * BigDecimalType Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class BigDecimalType implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/BillOfLadingDownloadURL.php b/lib/Models/FulfillmentInbound/BillOfLadingDownloadURL.php index 6e57ada9..1fe0c16c 100644 --- a/lib/Models/FulfillmentInbound/BillOfLadingDownloadURL.php +++ b/lib/Models/FulfillmentInbound/BillOfLadingDownloadURL.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * BillOfLadingDownloadURL Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class BillOfLadingDownloadURL implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/BoxContentsFeeDetails.php b/lib/Models/FulfillmentInbound/BoxContentsFeeDetails.php index 22b7d858..868cd6bb 100644 --- a/lib/Models/FulfillmentInbound/BoxContentsFeeDetails.php +++ b/lib/Models/FulfillmentInbound/BoxContentsFeeDetails.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * BoxContentsFeeDetails Class Doc Comment. * - * @category Class + * @description The manual processing fee per unit and total fee for a shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class BoxContentsFeeDetails implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/BoxContentsSource.php b/lib/Models/FulfillmentInbound/BoxContentsSource.php index a62cb02d..b0bd5b18 100644 --- a/lib/Models/FulfillmentInbound/BoxContentsSource.php +++ b/lib/Models/FulfillmentInbound/BoxContentsSource.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * BoxContentsSource Class Doc Comment. * - * @category Class + * @description Where the seller provided box contents information for a shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class BoxContentsSource { diff --git a/lib/Models/FulfillmentInbound/CommonTransportResult.php b/lib/Models/FulfillmentInbound/CommonTransportResult.php index cfd72483..18cf923f 100644 --- a/lib/Models/FulfillmentInbound/CommonTransportResult.php +++ b/lib/Models/FulfillmentInbound/CommonTransportResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * CommonTransportResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CommonTransportResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/Condition.php b/lib/Models/FulfillmentInbound/Condition.php index 02865a63..894f94af 100644 --- a/lib/Models/FulfillmentInbound/Condition.php +++ b/lib/Models/FulfillmentInbound/Condition.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * Condition Class Doc Comment. * - * @category Class + * @description The condition of the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Condition { diff --git a/lib/Models/FulfillmentInbound/ConfirmPreorderResponse.php b/lib/Models/FulfillmentInbound/ConfirmPreorderResponse.php index fb80e57e..ffc25d64 100644 --- a/lib/Models/FulfillmentInbound/ConfirmPreorderResponse.php +++ b/lib/Models/FulfillmentInbound/ConfirmPreorderResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * ConfirmPreorderResponse Class Doc Comment. * - * @category Class + * @description The response schema for the confirmPreorder operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ConfirmPreorderResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/ConfirmPreorderResult.php b/lib/Models/FulfillmentInbound/ConfirmPreorderResult.php index 1bdf106c..9eb8387e 100644 --- a/lib/Models/FulfillmentInbound/ConfirmPreorderResult.php +++ b/lib/Models/FulfillmentInbound/ConfirmPreorderResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * ConfirmPreorderResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ConfirmPreorderResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/ConfirmTransportResponse.php b/lib/Models/FulfillmentInbound/ConfirmTransportResponse.php index bd9067d2..3f97f85a 100644 --- a/lib/Models/FulfillmentInbound/ConfirmTransportResponse.php +++ b/lib/Models/FulfillmentInbound/ConfirmTransportResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * ConfirmTransportResponse Class Doc Comment. * - * @category Class + * @description The response schema for the confirmTransport operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ConfirmTransportResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/Contact.php b/lib/Models/FulfillmentInbound/Contact.php index c297b6bb..ddf96426 100644 --- a/lib/Models/FulfillmentInbound/Contact.php +++ b/lib/Models/FulfillmentInbound/Contact.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * Contact Class Doc Comment. * - * @category Class + * @description Contact information for the person in the seller's organization who is responsible for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Contact implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanRequest.php b/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanRequest.php index c95c25a9..57f93d20 100644 --- a/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanRequest.php +++ b/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * CreateInboundShipmentPlanRequest Class Doc Comment. * - * @category Class + * @description The request schema for the createInboundShipmentPlan operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateInboundShipmentPlanRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanResponse.php b/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanResponse.php index b5958d20..aa982988 100644 --- a/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanResponse.php +++ b/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * CreateInboundShipmentPlanResponse Class Doc Comment. * - * @category Class + * @description The response schema for the createInboundShipmentPlan operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateInboundShipmentPlanResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanResult.php b/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanResult.php index 7772012e..dfd1f0f8 100644 --- a/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanResult.php +++ b/lib/Models/FulfillmentInbound/CreateInboundShipmentPlanResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * CreateInboundShipmentPlanResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateInboundShipmentPlanResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/CurrencyCode.php b/lib/Models/FulfillmentInbound/CurrencyCode.php index ce860e45..c2007b96 100644 --- a/lib/Models/FulfillmentInbound/CurrencyCode.php +++ b/lib/Models/FulfillmentInbound/CurrencyCode.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * CurrencyCode Class Doc Comment. * - * @category Class + * @description The currency code. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CurrencyCode { diff --git a/lib/Models/FulfillmentInbound/DateStringType.php b/lib/Models/FulfillmentInbound/DateStringType.php index 871f15f6..c7459451 100644 --- a/lib/Models/FulfillmentInbound/DateStringType.php +++ b/lib/Models/FulfillmentInbound/DateStringType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * DateStringType Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DateStringType implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/Dimensions.php b/lib/Models/FulfillmentInbound/Dimensions.php index 287ab86f..32226cf1 100644 --- a/lib/Models/FulfillmentInbound/Dimensions.php +++ b/lib/Models/FulfillmentInbound/Dimensions.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * Dimensions Class Doc Comment. * - * @category Class + * @description The dimension values and unit of measurement. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Dimensions implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/Error.php b/lib/Models/FulfillmentInbound/Error.php index 1030e6b8..d7d09066 100644 --- a/lib/Models/FulfillmentInbound/Error.php +++ b/lib/Models/FulfillmentInbound/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/ErrorList.php b/lib/Models/FulfillmentInbound/ErrorList.php index 30604af3..149df706 100644 --- a/lib/Models/FulfillmentInbound/ErrorList.php +++ b/lib/Models/FulfillmentInbound/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/ErrorReason.php b/lib/Models/FulfillmentInbound/ErrorReason.php index b3308b1d..7fcd40a8 100644 --- a/lib/Models/FulfillmentInbound/ErrorReason.php +++ b/lib/Models/FulfillmentInbound/ErrorReason.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * ErrorReason Class Doc Comment. * - * @category Class + * @description The reason that the ASIN is invalid. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorReason { diff --git a/lib/Models/FulfillmentInbound/EstimateTransportResponse.php b/lib/Models/FulfillmentInbound/EstimateTransportResponse.php index 645669a4..21f16ddb 100644 --- a/lib/Models/FulfillmentInbound/EstimateTransportResponse.php +++ b/lib/Models/FulfillmentInbound/EstimateTransportResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * EstimateTransportResponse Class Doc Comment. * - * @category Class + * @description The response schema for the estimateTransport operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class EstimateTransportResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetBillOfLadingResponse.php b/lib/Models/FulfillmentInbound/GetBillOfLadingResponse.php index c94bbfa3..4c114b31 100644 --- a/lib/Models/FulfillmentInbound/GetBillOfLadingResponse.php +++ b/lib/Models/FulfillmentInbound/GetBillOfLadingResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * GetBillOfLadingResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getBillOfLading operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetBillOfLadingResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetInboundGuidanceResponse.php b/lib/Models/FulfillmentInbound/GetInboundGuidanceResponse.php index db6f45a6..ba663a96 100644 --- a/lib/Models/FulfillmentInbound/GetInboundGuidanceResponse.php +++ b/lib/Models/FulfillmentInbound/GetInboundGuidanceResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * GetInboundGuidanceResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getInboundGuidance operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetInboundGuidanceResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetInboundGuidanceResult.php b/lib/Models/FulfillmentInbound/GetInboundGuidanceResult.php index 989b51af..2e086c07 100644 --- a/lib/Models/FulfillmentInbound/GetInboundGuidanceResult.php +++ b/lib/Models/FulfillmentInbound/GetInboundGuidanceResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * GetInboundGuidanceResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetInboundGuidanceResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetLabelsResponse.php b/lib/Models/FulfillmentInbound/GetLabelsResponse.php index 08b5cc3a..6da7a29b 100644 --- a/lib/Models/FulfillmentInbound/GetLabelsResponse.php +++ b/lib/Models/FulfillmentInbound/GetLabelsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * GetLabelsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getLabels operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetLabelsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetPreorderInfoResponse.php b/lib/Models/FulfillmentInbound/GetPreorderInfoResponse.php index ab4ba717..9b29150a 100644 --- a/lib/Models/FulfillmentInbound/GetPreorderInfoResponse.php +++ b/lib/Models/FulfillmentInbound/GetPreorderInfoResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * GetPreorderInfoResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getPreorderInfo operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetPreorderInfoResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetPreorderInfoResult.php b/lib/Models/FulfillmentInbound/GetPreorderInfoResult.php index 2bf76d60..8f99ee1b 100644 --- a/lib/Models/FulfillmentInbound/GetPreorderInfoResult.php +++ b/lib/Models/FulfillmentInbound/GetPreorderInfoResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * GetPreorderInfoResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetPreorderInfoResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetPrepInstructionsResponse.php b/lib/Models/FulfillmentInbound/GetPrepInstructionsResponse.php index d734d22c..16b8f703 100644 --- a/lib/Models/FulfillmentInbound/GetPrepInstructionsResponse.php +++ b/lib/Models/FulfillmentInbound/GetPrepInstructionsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * GetPrepInstructionsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getPrepInstructions operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetPrepInstructionsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetPrepInstructionsResult.php b/lib/Models/FulfillmentInbound/GetPrepInstructionsResult.php index 64449d9e..525fb172 100644 --- a/lib/Models/FulfillmentInbound/GetPrepInstructionsResult.php +++ b/lib/Models/FulfillmentInbound/GetPrepInstructionsResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * GetPrepInstructionsResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetPrepInstructionsResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetShipmentItemsResponse.php b/lib/Models/FulfillmentInbound/GetShipmentItemsResponse.php index 4d27c4e1..4d14b632 100644 --- a/lib/Models/FulfillmentInbound/GetShipmentItemsResponse.php +++ b/lib/Models/FulfillmentInbound/GetShipmentItemsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * GetShipmentItemsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getShipmentItems operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetShipmentItemsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetShipmentItemsResult.php b/lib/Models/FulfillmentInbound/GetShipmentItemsResult.php index ccf9e835..50372140 100644 --- a/lib/Models/FulfillmentInbound/GetShipmentItemsResult.php +++ b/lib/Models/FulfillmentInbound/GetShipmentItemsResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * GetShipmentItemsResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetShipmentItemsResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetShipmentsResponse.php b/lib/Models/FulfillmentInbound/GetShipmentsResponse.php index 67ddecde..39127299 100644 --- a/lib/Models/FulfillmentInbound/GetShipmentsResponse.php +++ b/lib/Models/FulfillmentInbound/GetShipmentsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * GetShipmentsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getShipments operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetShipmentsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetShipmentsResult.php b/lib/Models/FulfillmentInbound/GetShipmentsResult.php index e6469953..ba69ca8c 100644 --- a/lib/Models/FulfillmentInbound/GetShipmentsResult.php +++ b/lib/Models/FulfillmentInbound/GetShipmentsResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * GetShipmentsResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetShipmentsResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetTransportDetailsResponse.php b/lib/Models/FulfillmentInbound/GetTransportDetailsResponse.php index dc4495f2..a8783578 100644 --- a/lib/Models/FulfillmentInbound/GetTransportDetailsResponse.php +++ b/lib/Models/FulfillmentInbound/GetTransportDetailsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * GetTransportDetailsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getTransportDetails operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetTransportDetailsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GetTransportDetailsResult.php b/lib/Models/FulfillmentInbound/GetTransportDetailsResult.php index 771d6ddb..04cfa535 100644 --- a/lib/Models/FulfillmentInbound/GetTransportDetailsResult.php +++ b/lib/Models/FulfillmentInbound/GetTransportDetailsResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * GetTransportDetailsResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetTransportDetailsResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/GuidanceReason.php b/lib/Models/FulfillmentInbound/GuidanceReason.php index c794a57f..17e042ea 100644 --- a/lib/Models/FulfillmentInbound/GuidanceReason.php +++ b/lib/Models/FulfillmentInbound/GuidanceReason.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * GuidanceReason Class Doc Comment. * - * @category Class + * @description A reason for the current inbound guidance for an item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GuidanceReason { diff --git a/lib/Models/FulfillmentInbound/GuidanceReasonList.php b/lib/Models/FulfillmentInbound/GuidanceReasonList.php index fc94e446..2879ab78 100644 --- a/lib/Models/FulfillmentInbound/GuidanceReasonList.php +++ b/lib/Models/FulfillmentInbound/GuidanceReasonList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * GuidanceReasonList Class Doc Comment. * - * @category Class + * @description A list of inbound guidance reason information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GuidanceReasonList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/InboundGuidance.php b/lib/Models/FulfillmentInbound/InboundGuidance.php index 491f9ab0..ca38b8d0 100644 --- a/lib/Models/FulfillmentInbound/InboundGuidance.php +++ b/lib/Models/FulfillmentInbound/InboundGuidance.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * InboundGuidance Class Doc Comment. * - * @category Class + * @description Specific inbound guidance for an item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundGuidance { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentHeader.php b/lib/Models/FulfillmentInbound/InboundShipmentHeader.php index f651ea0d..12f98fb5 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentHeader.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentHeader.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InboundShipmentHeader Class Doc Comment. * - * @category Class + * @description Inbound shipment information used to create and update inbound shipments. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentHeader implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentInfo.php b/lib/Models/FulfillmentInbound/InboundShipmentInfo.php index f29362bf..a21127c8 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentInfo.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentInfo.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InboundShipmentInfo Class Doc Comment. * - * @category Class + * @description Information about the seller's inbound shipments. Returned by the listInboundShipments operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentInfo implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentItem.php b/lib/Models/FulfillmentInbound/InboundShipmentItem.php index e44bc638..c6825f43 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentItem.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InboundShipmentItem Class Doc Comment. * - * @category Class + * @description Item information for an inbound shipment. Submitted with a call to the createInboundShipment or updateInboundShipment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentItemList.php b/lib/Models/FulfillmentInbound/InboundShipmentItemList.php index f6a769c0..ace2ba4a 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentItemList.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * InboundShipmentItemList Class Doc Comment. * - * @category Class + * @description A list of inbound shipment item information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentList.php b/lib/Models/FulfillmentInbound/InboundShipmentList.php index fdfd2c7d..e1afedca 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentList.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * InboundShipmentList Class Doc Comment. * - * @category Class + * @description A list of inbound shipment information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentPlan.php b/lib/Models/FulfillmentInbound/InboundShipmentPlan.php index 4d2f63d9..5af545c4 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentPlan.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentPlan.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InboundShipmentPlan Class Doc Comment. * - * @category Class + * @description Inbound shipment information used to create an inbound shipment. Returned by the createInboundShipmentPlan operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentPlan implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentPlanItem.php b/lib/Models/FulfillmentInbound/InboundShipmentPlanItem.php index e5d014c8..24e3ffce 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentPlanItem.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentPlanItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InboundShipmentPlanItem Class Doc Comment. * - * @category Class + * @description Item information used to create an inbound shipment. Returned by the createInboundShipmentPlan operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentPlanItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentPlanItemList.php b/lib/Models/FulfillmentInbound/InboundShipmentPlanItemList.php index 20420a18..9530544e 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentPlanItemList.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentPlanItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * InboundShipmentPlanItemList Class Doc Comment. * - * @category Class + * @description A list of inbound shipment plan item information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentPlanItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentPlanList.php b/lib/Models/FulfillmentInbound/InboundShipmentPlanList.php index a500125c..9d1f69b6 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentPlanList.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentPlanList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * InboundShipmentPlanList Class Doc Comment. * - * @category Class + * @description A list of inbound shipment plan information * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentPlanList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItem.php b/lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItem.php index 37e9b371..64efd143 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItem.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InboundShipmentPlanRequestItem Class Doc Comment. * - * @category Class + * @description Item information for creating an inbound shipment plan. Submitted with a call to the createInboundShipmentPlan operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentPlanRequestItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItemList.php b/lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItemList.php index 85df236f..12505e68 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItemList.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentPlanRequestItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,11 +25,7 @@ /** * InboundShipmentPlanRequestItemList Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentPlanRequestItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentRequest.php b/lib/Models/FulfillmentInbound/InboundShipmentRequest.php index c59c7f26..70be8d68 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentRequest.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InboundShipmentRequest Class Doc Comment. * - * @category Class + * @description The request schema for an inbound shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentResponse.php b/lib/Models/FulfillmentInbound/InboundShipmentResponse.php index 77d3140f..44239fa7 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentResponse.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InboundShipmentResponse Class Doc Comment. * - * @category Class + * @description The response schema for this operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InboundShipmentResult.php b/lib/Models/FulfillmentInbound/InboundShipmentResult.php index 55bf8706..b2b136bb 100644 --- a/lib/Models/FulfillmentInbound/InboundShipmentResult.php +++ b/lib/Models/FulfillmentInbound/InboundShipmentResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * InboundShipmentResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InboundShipmentResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/IntendedBoxContentsSource.php b/lib/Models/FulfillmentInbound/IntendedBoxContentsSource.php index 26f8e433..e5fe7925 100644 --- a/lib/Models/FulfillmentInbound/IntendedBoxContentsSource.php +++ b/lib/Models/FulfillmentInbound/IntendedBoxContentsSource.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * IntendedBoxContentsSource Class Doc Comment. * - * @category Class + * @description How the seller intends to provide box contents information for a shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class IntendedBoxContentsSource { diff --git a/lib/Models/FulfillmentInbound/InvalidASIN.php b/lib/Models/FulfillmentInbound/InvalidASIN.php index b779e3ca..94224739 100644 --- a/lib/Models/FulfillmentInbound/InvalidASIN.php +++ b/lib/Models/FulfillmentInbound/InvalidASIN.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * InvalidASIN Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InvalidASIN implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InvalidASINList.php b/lib/Models/FulfillmentInbound/InvalidASINList.php index 77f56f49..84ac3462 100644 --- a/lib/Models/FulfillmentInbound/InvalidASINList.php +++ b/lib/Models/FulfillmentInbound/InvalidASINList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InvalidASINList Class Doc Comment. * - * @category Class + * @description A list of invalid ASIN values and the reasons they are invalid. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InvalidASINList implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InvalidSKU.php b/lib/Models/FulfillmentInbound/InvalidSKU.php index 7c34ad39..5bec90e1 100644 --- a/lib/Models/FulfillmentInbound/InvalidSKU.php +++ b/lib/Models/FulfillmentInbound/InvalidSKU.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * InvalidSKU Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InvalidSKU implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/InvalidSKUList.php b/lib/Models/FulfillmentInbound/InvalidSKUList.php index b6b6bc9f..751cbc2e 100644 --- a/lib/Models/FulfillmentInbound/InvalidSKUList.php +++ b/lib/Models/FulfillmentInbound/InvalidSKUList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * InvalidSKUList Class Doc Comment. * - * @category Class + * @description A list of invalid SKU values and the reason they are invalid. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InvalidSKUList implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/LabelDownloadURL.php b/lib/Models/FulfillmentInbound/LabelDownloadURL.php index f6c6b8e2..b2f0c946 100644 --- a/lib/Models/FulfillmentInbound/LabelDownloadURL.php +++ b/lib/Models/FulfillmentInbound/LabelDownloadURL.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * LabelDownloadURL Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LabelDownloadURL implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/LabelPrepPreference.php b/lib/Models/FulfillmentInbound/LabelPrepPreference.php index bd63a27d..736f05fe 100644 --- a/lib/Models/FulfillmentInbound/LabelPrepPreference.php +++ b/lib/Models/FulfillmentInbound/LabelPrepPreference.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * LabelPrepPreference Class Doc Comment. * - * @category Class + * @description The preference for label preparation for an inbound shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LabelPrepPreference { diff --git a/lib/Models/FulfillmentInbound/LabelPrepType.php b/lib/Models/FulfillmentInbound/LabelPrepType.php index 17368fc1..11f8b1c1 100644 --- a/lib/Models/FulfillmentInbound/LabelPrepType.php +++ b/lib/Models/FulfillmentInbound/LabelPrepType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * LabelPrepType Class Doc Comment. * - * @category Class + * @description The type of label preparation that is required for the inbound shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LabelPrepType { diff --git a/lib/Models/FulfillmentInbound/NonPartneredLtlDataInput.php b/lib/Models/FulfillmentInbound/NonPartneredLtlDataInput.php index 9b5f2ae4..35c449c6 100644 --- a/lib/Models/FulfillmentInbound/NonPartneredLtlDataInput.php +++ b/lib/Models/FulfillmentInbound/NonPartneredLtlDataInput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * NonPartneredLtlDataInput Class Doc Comment. * - * @category Class + * @description Information that you provide to Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment by a carrier that has not partnered with Amazon. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NonPartneredLtlDataInput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/NonPartneredLtlDataOutput.php b/lib/Models/FulfillmentInbound/NonPartneredLtlDataOutput.php index 134093ab..67d69b7f 100644 --- a/lib/Models/FulfillmentInbound/NonPartneredLtlDataOutput.php +++ b/lib/Models/FulfillmentInbound/NonPartneredLtlDataOutput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * NonPartneredLtlDataOutput Class Doc Comment. * - * @category Class + * @description Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment shipped by a carrier that has not partnered with Amazon. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NonPartneredLtlDataOutput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataInput.php b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataInput.php index 29645e7c..55e12d7d 100644 --- a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataInput.php +++ b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataInput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * NonPartneredSmallParcelDataInput Class Doc Comment. * - * @category Class + * @description Information that you provide to Amazon about a Small Parcel shipment shipped by a carrier that has not partnered with Amazon. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NonPartneredSmallParcelDataInput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php index 36b2b2b8..3536c9f2 100644 --- a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php +++ b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelDataOutput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * NonPartneredSmallParcelDataOutput Class Doc Comment. * - * @category Class + * @description Information returned by Amazon about a Small Parcel shipment by a carrier that has not partnered with Amazon. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NonPartneredSmallParcelDataOutput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInput.php b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInput.php index 5f84396d..301d2961 100644 --- a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInput.php +++ b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * NonPartneredSmallParcelPackageInput Class Doc Comment. * - * @category Class + * @description The tracking number of the package, provided by the carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NonPartneredSmallParcelPackageInput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInputList.php b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInputList.php index 6ddb752d..da9b855b 100644 --- a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInputList.php +++ b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageInputList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * NonPartneredSmallParcelPackageInputList Class Doc Comment. * - * @category Class + * @description A list of package tracking information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NonPartneredSmallParcelPackageInputList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php index 324ee5d3..76eb7ba0 100644 --- a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php +++ b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * NonPartneredSmallParcelPackageOutput Class Doc Comment. * - * @category Class + * @description Carrier, tracking number, and status information for the package. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NonPartneredSmallParcelPackageOutput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutputList.php b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutputList.php index a58166ba..25477d82 100644 --- a/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutputList.php +++ b/lib/Models/FulfillmentInbound/NonPartneredSmallParcelPackageOutputList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * NonPartneredSmallParcelPackageOutputList Class Doc Comment. * - * @category Class + * @description A list of packages, including carrier, tracking number, and status information for each package. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NonPartneredSmallParcelPackageOutputList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/PackageStatus.php b/lib/Models/FulfillmentInbound/PackageStatus.php index f55296a7..7ab2081e 100644 --- a/lib/Models/FulfillmentInbound/PackageStatus.php +++ b/lib/Models/FulfillmentInbound/PackageStatus.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * PackageStatus Class Doc Comment. * - * @category Class + * @description The shipment status of the package. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PackageStatus { diff --git a/lib/Models/FulfillmentInbound/Pallet.php b/lib/Models/FulfillmentInbound/Pallet.php index 6962180c..67d5bfc7 100644 --- a/lib/Models/FulfillmentInbound/Pallet.php +++ b/lib/Models/FulfillmentInbound/Pallet.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * Pallet Class Doc Comment. * - * @category Class + * @description Pallet information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Pallet implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PalletList.php b/lib/Models/FulfillmentInbound/PalletList.php index a73d9256..acd25288 100644 --- a/lib/Models/FulfillmentInbound/PalletList.php +++ b/lib/Models/FulfillmentInbound/PalletList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PalletList Class Doc Comment. * - * @category Class + * @description A list of pallet information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PalletList implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PartneredEstimate.php b/lib/Models/FulfillmentInbound/PartneredEstimate.php index 3c060d5a..dccc4a4e 100644 --- a/lib/Models/FulfillmentInbound/PartneredEstimate.php +++ b/lib/Models/FulfillmentInbound/PartneredEstimate.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PartneredEstimate Class Doc Comment. * - * @category Class + * @description The estimated shipping cost for a shipment using an Amazon-partnered carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PartneredEstimate implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PartneredLtlDataInput.php b/lib/Models/FulfillmentInbound/PartneredLtlDataInput.php index 044a41be..820505e5 100644 --- a/lib/Models/FulfillmentInbound/PartneredLtlDataInput.php +++ b/lib/Models/FulfillmentInbound/PartneredLtlDataInput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PartneredLtlDataInput Class Doc Comment. * - * @category Class + * @description Information that is required by an Amazon-partnered carrier to ship a Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PartneredLtlDataInput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PartneredLtlDataOutput.php b/lib/Models/FulfillmentInbound/PartneredLtlDataOutput.php index a5ff35e1..f31e13ff 100644 --- a/lib/Models/FulfillmentInbound/PartneredLtlDataOutput.php +++ b/lib/Models/FulfillmentInbound/PartneredLtlDataOutput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PartneredLtlDataOutput Class Doc Comment. * - * @category Class + * @description Information returned by Amazon about a Less Than Truckload/Full Truckload (LTL/FTL) shipment by an Amazon-partnered carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PartneredLtlDataOutput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PartneredSmallParcelDataInput.php b/lib/Models/FulfillmentInbound/PartneredSmallParcelDataInput.php index b519bfc7..7ef924da 100644 --- a/lib/Models/FulfillmentInbound/PartneredSmallParcelDataInput.php +++ b/lib/Models/FulfillmentInbound/PartneredSmallParcelDataInput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PartneredSmallParcelDataInput Class Doc Comment. * - * @category Class + * @description Information that is required by an Amazon-partnered carrier to ship a Small Parcel inbound shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PartneredSmallParcelDataInput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PartneredSmallParcelDataOutput.php b/lib/Models/FulfillmentInbound/PartneredSmallParcelDataOutput.php index 3b290cb0..95defa04 100644 --- a/lib/Models/FulfillmentInbound/PartneredSmallParcelDataOutput.php +++ b/lib/Models/FulfillmentInbound/PartneredSmallParcelDataOutput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PartneredSmallParcelDataOutput Class Doc Comment. * - * @category Class + * @description Information returned by Amazon about a Small Parcel shipment by an Amazon-partnered carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PartneredSmallParcelDataOutput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageInput.php b/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageInput.php index 26415388..4119d9bd 100644 --- a/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageInput.php +++ b/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageInput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PartneredSmallParcelPackageInput Class Doc Comment. * - * @category Class + * @description Dimension and weight information for the package. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PartneredSmallParcelPackageInput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageInputList.php b/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageInputList.php index 6e021d42..78341043 100644 --- a/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageInputList.php +++ b/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageInputList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * PartneredSmallParcelPackageInputList Class Doc Comment. * - * @category Class + * @description A list of dimensions and weight information for packages. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PartneredSmallParcelPackageInputList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageOutput.php b/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageOutput.php index 0e010ad2..3a94bc62 100644 --- a/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageOutput.php +++ b/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageOutput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PartneredSmallParcelPackageOutput Class Doc Comment. * - * @category Class + * @description Dimension, weight, and shipping information for the package. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PartneredSmallParcelPackageOutput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageOutputList.php b/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageOutputList.php index 26db1dbf..d1c9bac5 100644 --- a/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageOutputList.php +++ b/lib/Models/FulfillmentInbound/PartneredSmallParcelPackageOutputList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * PartneredSmallParcelPackageOutputList Class Doc Comment. * - * @category Class + * @description A list of packages, including shipping information from the Amazon-partnered carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PartneredSmallParcelPackageOutputList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/PrepDetails.php b/lib/Models/FulfillmentInbound/PrepDetails.php index 40c662b1..a02ec731 100644 --- a/lib/Models/FulfillmentInbound/PrepDetails.php +++ b/lib/Models/FulfillmentInbound/PrepDetails.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PrepDetails Class Doc Comment. * - * @category Class + * @description Preparation instructions and who is responsible for the preparation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PrepDetails implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PrepDetailsList.php b/lib/Models/FulfillmentInbound/PrepDetailsList.php index c41a9ce6..edea23b1 100644 --- a/lib/Models/FulfillmentInbound/PrepDetailsList.php +++ b/lib/Models/FulfillmentInbound/PrepDetailsList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * PrepDetailsList Class Doc Comment. * - * @category Class + * @description A list of preparation instructions and who is responsible for that preparation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PrepDetailsList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/PrepGuidance.php b/lib/Models/FulfillmentInbound/PrepGuidance.php index 7d47574c..ea837208 100644 --- a/lib/Models/FulfillmentInbound/PrepGuidance.php +++ b/lib/Models/FulfillmentInbound/PrepGuidance.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * PrepGuidance Class Doc Comment. * - * @category Class + * @description Item preparation instructions. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PrepGuidance { diff --git a/lib/Models/FulfillmentInbound/PrepInstruction.php b/lib/Models/FulfillmentInbound/PrepInstruction.php index cd7675e1..bfd14dd6 100644 --- a/lib/Models/FulfillmentInbound/PrepInstruction.php +++ b/lib/Models/FulfillmentInbound/PrepInstruction.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * PrepInstruction Class Doc Comment. * - * @category Class + * @description Preparation instructions for shipping an item to Amazon's fulfillment network. For more information about preparing items for shipment to Amazon's fulfillment network, see the Seller Central Help for your marketplace. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PrepInstruction { diff --git a/lib/Models/FulfillmentInbound/PrepInstructionList.php b/lib/Models/FulfillmentInbound/PrepInstructionList.php index 3c9a99dd..ca0766a8 100644 --- a/lib/Models/FulfillmentInbound/PrepInstructionList.php +++ b/lib/Models/FulfillmentInbound/PrepInstructionList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * PrepInstructionList Class Doc Comment. * - * @category Class + * @description A list of preparation instructions to help with item sourcing decisions. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PrepInstructionList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/PrepOwner.php b/lib/Models/FulfillmentInbound/PrepOwner.php index 8da08d07..eb976cda 100644 --- a/lib/Models/FulfillmentInbound/PrepOwner.php +++ b/lib/Models/FulfillmentInbound/PrepOwner.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * PrepOwner Class Doc Comment. * - * @category Class + * @description Indicates who will prepare the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PrepOwner { diff --git a/lib/Models/FulfillmentInbound/ProNumber.php b/lib/Models/FulfillmentInbound/ProNumber.php index 1606944a..e55274c7 100644 --- a/lib/Models/FulfillmentInbound/ProNumber.php +++ b/lib/Models/FulfillmentInbound/ProNumber.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * ProNumber Class Doc Comment. * - * @category Class + * @description The PRO number (\"progressive number\" or \"progressive ID\") assigned to the shipment by the carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ProNumber implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PutTransportDetailsRequest.php b/lib/Models/FulfillmentInbound/PutTransportDetailsRequest.php index a876bca8..3bfd10aa 100644 --- a/lib/Models/FulfillmentInbound/PutTransportDetailsRequest.php +++ b/lib/Models/FulfillmentInbound/PutTransportDetailsRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PutTransportDetailsRequest Class Doc Comment. * - * @category Class + * @description The request schema for a putTransportDetails operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PutTransportDetailsRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/PutTransportDetailsResponse.php b/lib/Models/FulfillmentInbound/PutTransportDetailsResponse.php index 650ab719..357b82f7 100644 --- a/lib/Models/FulfillmentInbound/PutTransportDetailsResponse.php +++ b/lib/Models/FulfillmentInbound/PutTransportDetailsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * PutTransportDetailsResponse Class Doc Comment. * - * @category Class + * @description Workflow status for a shipment with an Amazon-partnered carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PutTransportDetailsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/Quantity.php b/lib/Models/FulfillmentInbound/Quantity.php index 8a72633f..bce717cd 100644 --- a/lib/Models/FulfillmentInbound/Quantity.php +++ b/lib/Models/FulfillmentInbound/Quantity.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * Quantity Class Doc Comment. * - * @category Class + * @description The item quantity. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Quantity implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/SKUInboundGuidance.php b/lib/Models/FulfillmentInbound/SKUInboundGuidance.php index 9e3fc4eb..c5028b2f 100644 --- a/lib/Models/FulfillmentInbound/SKUInboundGuidance.php +++ b/lib/Models/FulfillmentInbound/SKUInboundGuidance.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * SKUInboundGuidance Class Doc Comment. * - * @category Class + * @description Reasons why a given seller SKU is not recommended for shipment to Amazon's fulfillment network. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SKUInboundGuidance implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/SKUInboundGuidanceList.php b/lib/Models/FulfillmentInbound/SKUInboundGuidanceList.php index 146dc287..e19bff1d 100644 --- a/lib/Models/FulfillmentInbound/SKUInboundGuidanceList.php +++ b/lib/Models/FulfillmentInbound/SKUInboundGuidanceList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * SKUInboundGuidanceList Class Doc Comment. * - * @category Class + * @description A list of SKU inbound guidance information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SKUInboundGuidanceList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/SKUPrepInstructions.php b/lib/Models/FulfillmentInbound/SKUPrepInstructions.php index f74dd3de..bb05c107 100644 --- a/lib/Models/FulfillmentInbound/SKUPrepInstructions.php +++ b/lib/Models/FulfillmentInbound/SKUPrepInstructions.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * SKUPrepInstructions Class Doc Comment. * - * @category Class + * @description Labeling requirements and item preparation instructions to help you prepare items for shipment to Amazon's fulfillment network. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SKUPrepInstructions implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/SKUPrepInstructionsList.php b/lib/Models/FulfillmentInbound/SKUPrepInstructionsList.php index cbb9d507..f4dfb78f 100644 --- a/lib/Models/FulfillmentInbound/SKUPrepInstructionsList.php +++ b/lib/Models/FulfillmentInbound/SKUPrepInstructionsList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -37,12 +25,10 @@ /** * SKUPrepInstructionsList Class Doc Comment. * - * @category Class + * @description A list of SKU labeling requirements and item preparation instructions. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SKUPrepInstructionsList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentInbound/SellerFreightClass.php b/lib/Models/FulfillmentInbound/SellerFreightClass.php index d5e5e239..f64131fa 100644 --- a/lib/Models/FulfillmentInbound/SellerFreightClass.php +++ b/lib/Models/FulfillmentInbound/SellerFreightClass.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * SellerFreightClass Class Doc Comment. * - * @category Class + * @description The freight class of the shipment. For information about determining the freight class, contact the carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SellerFreightClass { diff --git a/lib/Models/FulfillmentInbound/ShipmentStatus.php b/lib/Models/FulfillmentInbound/ShipmentStatus.php index c76037e0..7f46eeff 100644 --- a/lib/Models/FulfillmentInbound/ShipmentStatus.php +++ b/lib/Models/FulfillmentInbound/ShipmentStatus.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * ShipmentStatus Class Doc Comment. * - * @category Class + * @description Indicates the status of the inbound shipment. When used with the createInboundShipment operation, WORKING is the only valid value. When used with the updateInboundShipment operation, possible values are WORKING, SHIPPED or CANCELLED. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShipmentStatus { diff --git a/lib/Models/FulfillmentInbound/ShipmentType.php b/lib/Models/FulfillmentInbound/ShipmentType.php index 5510a7ee..0279e2c7 100644 --- a/lib/Models/FulfillmentInbound/ShipmentType.php +++ b/lib/Models/FulfillmentInbound/ShipmentType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * ShipmentType Class Doc Comment. * - * @category Class + * @description Specifies the carrier shipment type in a putTransportDetails request. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShipmentType { diff --git a/lib/Models/FulfillmentInbound/TimeStampStringType.php b/lib/Models/FulfillmentInbound/TimeStampStringType.php index 7653b98e..bb7bbd61 100644 --- a/lib/Models/FulfillmentInbound/TimeStampStringType.php +++ b/lib/Models/FulfillmentInbound/TimeStampStringType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * TimeStampStringType Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TimeStampStringType implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/TrackingId.php b/lib/Models/FulfillmentInbound/TrackingId.php index a5fb2003..cd6a16db 100644 --- a/lib/Models/FulfillmentInbound/TrackingId.php +++ b/lib/Models/FulfillmentInbound/TrackingId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * TrackingId Class Doc Comment. * - * @category Class + * @description The tracking number of the package, provided by the carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TrackingId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/TransportContent.php b/lib/Models/FulfillmentInbound/TransportContent.php index a24e1c26..c9422848 100644 --- a/lib/Models/FulfillmentInbound/TransportContent.php +++ b/lib/Models/FulfillmentInbound/TransportContent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * TransportContent Class Doc Comment. * - * @category Class + * @description Inbound shipment information, including carrier details, shipment status, and the workflow status for a request for shipment with an Amazon-partnered carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TransportContent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/TransportDetailInput.php b/lib/Models/FulfillmentInbound/TransportDetailInput.php index a5227dec..7611048f 100644 --- a/lib/Models/FulfillmentInbound/TransportDetailInput.php +++ b/lib/Models/FulfillmentInbound/TransportDetailInput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * TransportDetailInput Class Doc Comment. * - * @category Class + * @description Information required to create an Amazon-partnered carrier shipping estimate, or to alert the Amazon fulfillment center to the arrival of an inbound shipment by a non-Amazon-partnered carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TransportDetailInput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/TransportDetailOutput.php b/lib/Models/FulfillmentInbound/TransportDetailOutput.php index b88345d0..472996c2 100644 --- a/lib/Models/FulfillmentInbound/TransportDetailOutput.php +++ b/lib/Models/FulfillmentInbound/TransportDetailOutput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * TransportDetailOutput Class Doc Comment. * - * @category Class + * @description Inbound shipment information, including carrier details and shipment status. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TransportDetailOutput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/TransportHeader.php b/lib/Models/FulfillmentInbound/TransportHeader.php index 987dc80a..65ee36ed 100644 --- a/lib/Models/FulfillmentInbound/TransportHeader.php +++ b/lib/Models/FulfillmentInbound/TransportHeader.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * TransportHeader Class Doc Comment. * - * @category Class + * @description The shipping identifier, information about whether the shipment is by an Amazon-partnered carrier, and information about whether the shipment is Small Parcel or Less Than Truckload/Full Truckload (LTL/FTL). * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TransportHeader implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/TransportResult.php b/lib/Models/FulfillmentInbound/TransportResult.php index a0d4ba7a..6de2ff51 100644 --- a/lib/Models/FulfillmentInbound/TransportResult.php +++ b/lib/Models/FulfillmentInbound/TransportResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * TransportResult Class Doc Comment. * - * @category Class + * @description The workflow status for a shipment with an Amazon-partnered carrier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TransportResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/TransportStatus.php b/lib/Models/FulfillmentInbound/TransportStatus.php index d9fc1b50..1ea1c354 100644 --- a/lib/Models/FulfillmentInbound/TransportStatus.php +++ b/lib/Models/FulfillmentInbound/TransportStatus.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * TransportStatus Class Doc Comment. * - * @category Class + * @description Indicates the status of the Amazon-partnered carrier shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TransportStatus { diff --git a/lib/Models/FulfillmentInbound/UnitOfMeasurement.php b/lib/Models/FulfillmentInbound/UnitOfMeasurement.php index 06efa6d6..f8d0cbfe 100644 --- a/lib/Models/FulfillmentInbound/UnitOfMeasurement.php +++ b/lib/Models/FulfillmentInbound/UnitOfMeasurement.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * UnitOfMeasurement Class Doc Comment. * - * @category Class + * @description Indicates the unit of measurement. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UnitOfMeasurement { diff --git a/lib/Models/FulfillmentInbound/UnitOfWeight.php b/lib/Models/FulfillmentInbound/UnitOfWeight.php index 85d0e46b..7b21fa53 100644 --- a/lib/Models/FulfillmentInbound/UnitOfWeight.php +++ b/lib/Models/FulfillmentInbound/UnitOfWeight.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -32,12 +20,10 @@ /** * UnitOfWeight Class Doc Comment. * - * @category Class + * @description Indicates the unit of weight. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UnitOfWeight { diff --git a/lib/Models/FulfillmentInbound/UnsignedIntType.php b/lib/Models/FulfillmentInbound/UnsignedIntType.php index e928c160..0a1e0a21 100644 --- a/lib/Models/FulfillmentInbound/UnsignedIntType.php +++ b/lib/Models/FulfillmentInbound/UnsignedIntType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,11 +24,7 @@ /** * UnsignedIntType Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UnsignedIntType implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/VoidTransportResponse.php b/lib/Models/FulfillmentInbound/VoidTransportResponse.php index 1566b9d7..be569e65 100644 --- a/lib/Models/FulfillmentInbound/VoidTransportResponse.php +++ b/lib/Models/FulfillmentInbound/VoidTransportResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * VoidTransportResponse Class Doc Comment. * - * @category Class + * @description The response schema for the voidTransport operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class VoidTransportResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentInbound/Weight.php b/lib/Models/FulfillmentInbound/Weight.php index 280310ca..ab8190df 100644 --- a/lib/Models/FulfillmentInbound/Weight.php +++ b/lib/Models/FulfillmentInbound/Weight.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network. * * OpenAPI spec version: v0 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentInbound; @@ -36,12 +24,10 @@ /** * Weight Class Doc Comment. * - * @category Class + * @description The weight of the package. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Weight implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/AdditionalLocationInfo.php b/lib/Models/FulfillmentOutbound/AdditionalLocationInfo.php index d6528f1a..542b0e02 100644 --- a/lib/Models/FulfillmentOutbound/AdditionalLocationInfo.php +++ b/lib/Models/FulfillmentOutbound/AdditionalLocationInfo.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * AdditionalLocationInfo Class Doc Comment. * - * @category Class + * @description Additional location information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AdditionalLocationInfo { diff --git a/lib/Models/FulfillmentOutbound/Address.php b/lib/Models/FulfillmentOutbound/Address.php index 7c9a93a1..8595a58c 100644 --- a/lib/Models/FulfillmentOutbound/Address.php +++ b/lib/Models/FulfillmentOutbound/Address.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * Address Class Doc Comment. * - * @category Class + * @description A physical address. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Address implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CODSettings.php b/lib/Models/FulfillmentOutbound/CODSettings.php index 49f69996..9f3eaa88 100644 --- a/lib/Models/FulfillmentOutbound/CODSettings.php +++ b/lib/Models/FulfillmentOutbound/CODSettings.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * CODSettings Class Doc Comment. * - * @category Class + * @description The COD (Cash On Delivery) charges that you associate with a COD fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CODSettings implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CancelFulfillmentOrderResponse.php b/lib/Models/FulfillmentOutbound/CancelFulfillmentOrderResponse.php index 58eb3ff5..872e4d98 100644 --- a/lib/Models/FulfillmentOutbound/CancelFulfillmentOrderResponse.php +++ b/lib/Models/FulfillmentOutbound/CancelFulfillmentOrderResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * CancelFulfillmentOrderResponse Class Doc Comment. * - * @category Class + * @description The response schema for the cancelFulfillmentOrder operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CancelFulfillmentOrderResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItem.php b/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItem.php index 83327e5c..d220258c 100644 --- a/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItem.php +++ b/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * CreateFulfillmentOrderItem Class Doc Comment. * - * @category Class + * @description Item information for creating a fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentOrderItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItemList.php b/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItemList.php index 2aa71493..c617798c 100644 --- a/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItemList.php +++ b/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * CreateFulfillmentOrderItemList Class Doc Comment. * - * @category Class + * @description An array of item information for creating a fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentOrderItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderRequest.php b/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderRequest.php index a52acb20..543ed80f 100644 --- a/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderRequest.php +++ b/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * CreateFulfillmentOrderRequest Class Doc Comment. * - * @category Class + * @description The request body schema for the createFulfillmentOrder operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentOrderRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderResponse.php b/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderResponse.php index fea374f5..1a6c3a60 100644 --- a/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderResponse.php +++ b/lib/Models/FulfillmentOutbound/CreateFulfillmentOrderResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * CreateFulfillmentOrderResponse Class Doc Comment. * - * @category Class + * @description The response schema for the createFulfillmentOrder operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentOrderResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnRequest.php b/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnRequest.php index 87430d6b..e2a14c0c 100644 --- a/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnRequest.php +++ b/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * CreateFulfillmentReturnRequest Class Doc Comment. * - * @category Class + * @description The createFulfillmentReturn operation creates a fulfillment return for items that were fulfilled using the createFulfillmentOrder operation. For calls to createFulfillmentReturn, you must include ReturnReasonCode values returned by a previous call to the listReturnReasonCodes operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentReturnRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResponse.php b/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResponse.php index 88847507..5d3e6f9d 100644 --- a/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResponse.php +++ b/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * CreateFulfillmentReturnResponse Class Doc Comment. * - * @category Class + * @description The response schema for the createFulfillmentReturn operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentReturnResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResult.php b/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResult.php index 3e69342f..a6ff1a46 100644 --- a/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResult.php +++ b/lib/Models/FulfillmentOutbound/CreateFulfillmentReturnResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,11 +24,7 @@ /** * CreateFulfillmentReturnResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateFulfillmentReturnResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CreateReturnItem.php b/lib/Models/FulfillmentOutbound/CreateReturnItem.php index 3637fc77..88934d34 100644 --- a/lib/Models/FulfillmentOutbound/CreateReturnItem.php +++ b/lib/Models/FulfillmentOutbound/CreateReturnItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * CreateReturnItem Class Doc Comment. * - * @category Class + * @description An item that Amazon accepted for return. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateReturnItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/CreateReturnItemList.php b/lib/Models/FulfillmentOutbound/CreateReturnItemList.php index 51b87141..392bf6ee 100644 --- a/lib/Models/FulfillmentOutbound/CreateReturnItemList.php +++ b/lib/Models/FulfillmentOutbound/CreateReturnItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * CreateReturnItemList Class Doc Comment. * - * @category Class + * @description An array of items to be returned. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateReturnItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/CurrentStatus.php b/lib/Models/FulfillmentOutbound/CurrentStatus.php index f7e9e030..47ff2267 100644 --- a/lib/Models/FulfillmentOutbound/CurrentStatus.php +++ b/lib/Models/FulfillmentOutbound/CurrentStatus.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * CurrentStatus Class Doc Comment. * - * @category Class + * @description The current delivery status of the package. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CurrentStatus { diff --git a/lib/Models/FulfillmentOutbound/Decimal.php b/lib/Models/FulfillmentOutbound/Decimal.php index 78d6594b..1715493e 100644 --- a/lib/Models/FulfillmentOutbound/Decimal.php +++ b/lib/Models/FulfillmentOutbound/Decimal.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * Decimal Class Doc Comment. * - * @category Class + * @description A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Decimal implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/DeliveryWindow.php b/lib/Models/FulfillmentOutbound/DeliveryWindow.php index 2c05484f..aaa0116f 100644 --- a/lib/Models/FulfillmentOutbound/DeliveryWindow.php +++ b/lib/Models/FulfillmentOutbound/DeliveryWindow.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * DeliveryWindow Class Doc Comment. * - * @category Class + * @description The time range within which a Scheduled Delivery fulfillment order should be delivered. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DeliveryWindow implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/DeliveryWindowList.php b/lib/Models/FulfillmentOutbound/DeliveryWindowList.php index 85c09032..99ba4045 100644 --- a/lib/Models/FulfillmentOutbound/DeliveryWindowList.php +++ b/lib/Models/FulfillmentOutbound/DeliveryWindowList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * DeliveryWindowList Class Doc Comment. * - * @category Class + * @description An array of delivery windows. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class DeliveryWindowList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/Error.php b/lib/Models/FulfillmentOutbound/Error.php index 7e27510b..86aa927e 100644 --- a/lib/Models/FulfillmentOutbound/Error.php +++ b/lib/Models/FulfillmentOutbound/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/ErrorList.php b/lib/Models/FulfillmentOutbound/ErrorList.php index 1139f663..c1d3d815 100644 --- a/lib/Models/FulfillmentOutbound/ErrorList.php +++ b/lib/Models/FulfillmentOutbound/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/EventCode.php b/lib/Models/FulfillmentOutbound/EventCode.php index 22d9edb3..6393b194 100644 --- a/lib/Models/FulfillmentOutbound/EventCode.php +++ b/lib/Models/FulfillmentOutbound/EventCode.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * EventCode Class Doc Comment. * - * @category Class + * @description The event code for the delivery event. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class EventCode { diff --git a/lib/Models/FulfillmentOutbound/Feature.php b/lib/Models/FulfillmentOutbound/Feature.php index 6d5fb635..5ab46887 100644 --- a/lib/Models/FulfillmentOutbound/Feature.php +++ b/lib/Models/FulfillmentOutbound/Feature.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * Feature Class Doc Comment. * - * @category Class + * @description A Multi-Channel Fulfillment feature. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Feature implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FeatureSettings.php b/lib/Models/FulfillmentOutbound/FeatureSettings.php index 446669fc..5866a1c5 100644 --- a/lib/Models/FulfillmentOutbound/FeatureSettings.php +++ b/lib/Models/FulfillmentOutbound/FeatureSettings.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FeatureSettings Class Doc Comment. * - * @category Class + * @description Settings to apply to an order that includes the specified fulfillment feature. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FeatureSettings implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FeatureSku.php b/lib/Models/FulfillmentOutbound/FeatureSku.php index f33a6059..c3527a21 100644 --- a/lib/Models/FulfillmentOutbound/FeatureSku.php +++ b/lib/Models/FulfillmentOutbound/FeatureSku.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FeatureSku Class Doc Comment. * - * @category Class + * @description Information about an SKU, including the count available, identifiers, and a list of overlapping SKUs that share the same inventory pool. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FeatureSku implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/Features.php b/lib/Models/FulfillmentOutbound/Features.php index 088f2fad..214de0d3 100644 --- a/lib/Models/FulfillmentOutbound/Features.php +++ b/lib/Models/FulfillmentOutbound/Features.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * Features Class Doc Comment. * - * @category Class + * @description An array of features. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Features implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/Fee.php b/lib/Models/FulfillmentOutbound/Fee.php index f97bf92a..aa851adf 100644 --- a/lib/Models/FulfillmentOutbound/Fee.php +++ b/lib/Models/FulfillmentOutbound/Fee.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * Fee Class Doc Comment. * - * @category Class + * @description Fee type and cost. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Fee implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FeeList.php b/lib/Models/FulfillmentOutbound/FeeList.php index 14daf9ed..35f94742 100644 --- a/lib/Models/FulfillmentOutbound/FeeList.php +++ b/lib/Models/FulfillmentOutbound/FeeList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FeeList Class Doc Comment. * - * @category Class + * @description An array of fee type and cost pairs. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FeeList implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentAction.php b/lib/Models/FulfillmentOutbound/FulfillmentAction.php index 878cef4f..f58dd6c1 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentAction.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentAction.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * FulfillmentAction Class Doc Comment. * - * @category Class + * @description Specifies whether the fulfillment order should ship now or have an order hold put on it. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentAction { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentOrder.php b/lib/Models/FulfillmentOutbound/FulfillmentOrder.php index 190d3e39..f6b96fef 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentOrder.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentOrder.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FulfillmentOrder Class Doc Comment. * - * @category Class + * @description General information about a fulfillment order, including its status. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentOrder implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentOrderItem.php b/lib/Models/FulfillmentOutbound/FulfillmentOrderItem.php index b316f2a5..30ddba3a 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentOrderItem.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentOrderItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FulfillmentOrderItem Class Doc Comment. * - * @category Class + * @description Item information for a fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentOrderItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentOrderItemList.php b/lib/Models/FulfillmentOutbound/FulfillmentOrderItemList.php index 62865ef7..83db5a07 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentOrderItemList.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentOrderItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * FulfillmentOrderItemList Class Doc Comment. * - * @category Class + * @description An array of fulfillment order item information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentOrderItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentOrderStatus.php b/lib/Models/FulfillmentOutbound/FulfillmentOrderStatus.php index b99e94b1..d41e9af0 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentOrderStatus.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentOrderStatus.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * FulfillmentOrderStatus Class Doc Comment. * - * @category Class + * @description The current status of the fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentOrderStatus { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentPolicy.php b/lib/Models/FulfillmentOutbound/FulfillmentPolicy.php index 64d06c08..feb508de 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentPolicy.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentPolicy.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * FulfillmentPolicy Class Doc Comment. * - * @category Class + * @description The FulfillmentPolicy value specified when you submitted the createFulfillmentOrder operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentPolicy { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentPreview.php b/lib/Models/FulfillmentOutbound/FulfillmentPreview.php index 687a15f3..0774f4e9 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentPreview.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentPreview.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FulfillmentPreview Class Doc Comment. * - * @category Class + * @description Information about a fulfillment order preview, including delivery and fee information based on shipping method. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreview implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentPreviewItem.php b/lib/Models/FulfillmentOutbound/FulfillmentPreviewItem.php index 466929a9..7a0b2274 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentPreviewItem.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentPreviewItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FulfillmentPreviewItem Class Doc Comment. * - * @category Class + * @description Item information for a shipment in a fulfillment order preview. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentPreviewItemList.php b/lib/Models/FulfillmentOutbound/FulfillmentPreviewItemList.php index 46678fe1..783d83d2 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentPreviewItemList.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentPreviewItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * FulfillmentPreviewItemList Class Doc Comment. * - * @category Class + * @description An array of fulfillment preview item information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentPreviewList.php b/lib/Models/FulfillmentOutbound/FulfillmentPreviewList.php index 7c5e65f1..8fc48aa8 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentPreviewList.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentPreviewList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * FulfillmentPreviewList Class Doc Comment. * - * @category Class + * @description An array of fulfillment preview information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipment.php b/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipment.php index 32341a21..4978dfad 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipment.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipment.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FulfillmentPreviewShipment Class Doc Comment. * - * @category Class + * @description Delivery and item information for a shipment in a fulfillment order preview. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewShipment implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipmentList.php b/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipmentList.php index 895279be..93509005 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipmentList.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentPreviewShipmentList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * FulfillmentPreviewShipmentList Class Doc Comment. * - * @category Class + * @description An array of fulfillment preview shipment information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentPreviewShipmentList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentReturnItemStatus.php b/lib/Models/FulfillmentOutbound/FulfillmentReturnItemStatus.php index c729e98d..694f5320 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentReturnItemStatus.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentReturnItemStatus.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * FulfillmentReturnItemStatus Class Doc Comment. * - * @category Class + * @description Indicates if the return item has been processed by a fulfillment center. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentReturnItemStatus { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentShipment.php b/lib/Models/FulfillmentOutbound/FulfillmentShipment.php index e7369159..f8679391 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentShipment.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentShipment.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FulfillmentShipment Class Doc Comment. * - * @category Class + * @description Delivery and item information for a shipment in a fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipment implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentShipmentItem.php b/lib/Models/FulfillmentOutbound/FulfillmentShipmentItem.php index caf0e0a1..a2764c4e 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentShipmentItem.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentShipmentItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FulfillmentShipmentItem Class Doc Comment. * - * @category Class + * @description Item information for a shipment in a fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipmentItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentShipmentItemList.php b/lib/Models/FulfillmentOutbound/FulfillmentShipmentItemList.php index 06f43db6..dd62baca 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentShipmentItemList.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentShipmentItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * FulfillmentShipmentItemList Class Doc Comment. * - * @category Class + * @description An array of fulfillment shipment item information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipmentItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentShipmentList.php b/lib/Models/FulfillmentOutbound/FulfillmentShipmentList.php index 722fb953..2464c684 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentShipmentList.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentShipmentList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * FulfillmentShipmentList Class Doc Comment. * - * @category Class + * @description An array of fulfillment shipment information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipmentList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackage.php b/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackage.php index 5bdfd103..076a34bb 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackage.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackage.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * FulfillmentShipmentPackage Class Doc Comment. * - * @category Class + * @description Package information for a shipment in a fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipmentPackage implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackageList.php b/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackageList.php index ed3ca2d1..75ca8f8a 100644 --- a/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackageList.php +++ b/lib/Models/FulfillmentOutbound/FulfillmentShipmentPackageList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * FulfillmentShipmentPackageList Class Doc Comment. * - * @category Class + * @description An array of fulfillment shipment package information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class FulfillmentShipmentPackageList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/GetFeatureInventoryResponse.php b/lib/Models/FulfillmentOutbound/GetFeatureInventoryResponse.php index 7384e1a4..73eba457 100644 --- a/lib/Models/FulfillmentOutbound/GetFeatureInventoryResponse.php +++ b/lib/Models/FulfillmentOutbound/GetFeatureInventoryResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFeatureInventoryResponse Class Doc Comment. * - * @category Class + * @description The breakdown of eligibility inventory by feature. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFeatureInventoryResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFeatureInventoryResult.php b/lib/Models/FulfillmentOutbound/GetFeatureInventoryResult.php index 09ba54ac..22f8c7b4 100644 --- a/lib/Models/FulfillmentOutbound/GetFeatureInventoryResult.php +++ b/lib/Models/FulfillmentOutbound/GetFeatureInventoryResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFeatureInventoryResult Class Doc Comment. * - * @category Class + * @description The payload for the getEligibileInventory operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFeatureInventoryResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFeatureSkuResponse.php b/lib/Models/FulfillmentOutbound/GetFeatureSkuResponse.php index 3933a62a..6ea1e39a 100644 --- a/lib/Models/FulfillmentOutbound/GetFeatureSkuResponse.php +++ b/lib/Models/FulfillmentOutbound/GetFeatureSkuResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFeatureSkuResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getFeatureSKU operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFeatureSkuResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFeatureSkuResult.php b/lib/Models/FulfillmentOutbound/GetFeatureSkuResult.php index df8f83e1..992f6fea 100644 --- a/lib/Models/FulfillmentOutbound/GetFeatureSkuResult.php +++ b/lib/Models/FulfillmentOutbound/GetFeatureSkuResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFeatureSkuResult Class Doc Comment. * - * @category Class + * @description The payload for the getFeatureSKU operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFeatureSkuResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFeaturesResponse.php b/lib/Models/FulfillmentOutbound/GetFeaturesResponse.php index 073a74e0..bf5fac3b 100644 --- a/lib/Models/FulfillmentOutbound/GetFeaturesResponse.php +++ b/lib/Models/FulfillmentOutbound/GetFeaturesResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFeaturesResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getFeatures operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFeaturesResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFeaturesResult.php b/lib/Models/FulfillmentOutbound/GetFeaturesResult.php index b3b637fa..84d42d7f 100644 --- a/lib/Models/FulfillmentOutbound/GetFeaturesResult.php +++ b/lib/Models/FulfillmentOutbound/GetFeaturesResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFeaturesResult Class Doc Comment. * - * @category Class + * @description The payload for the getFeatures operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFeaturesResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFulfillmentOrderResponse.php b/lib/Models/FulfillmentOutbound/GetFulfillmentOrderResponse.php index 36a5b89e..07b2e434 100644 --- a/lib/Models/FulfillmentOutbound/GetFulfillmentOrderResponse.php +++ b/lib/Models/FulfillmentOutbound/GetFulfillmentOrderResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFulfillmentOrderResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getFulfillmentOrder operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentOrderResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFulfillmentOrderResult.php b/lib/Models/FulfillmentOutbound/GetFulfillmentOrderResult.php index 3eadb22b..020ee633 100644 --- a/lib/Models/FulfillmentOutbound/GetFulfillmentOrderResult.php +++ b/lib/Models/FulfillmentOutbound/GetFulfillmentOrderResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,11 +24,7 @@ /** * GetFulfillmentOrderResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentOrderResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItem.php b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItem.php index 1319918c..d7466c4f 100644 --- a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItem.php +++ b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFulfillmentPreviewItem Class Doc Comment. * - * @category Class + * @description Item information for a fulfillment order preview. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentPreviewItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItemList.php b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItemList.php index 0912e147..e8873b71 100644 --- a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItemList.php +++ b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * GetFulfillmentPreviewItemList Class Doc Comment. * - * @category Class + * @description An array of fulfillment preview item information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentPreviewItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewRequest.php b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewRequest.php index 276cc1d4..813acca1 100644 --- a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewRequest.php +++ b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFulfillmentPreviewRequest Class Doc Comment. * - * @category Class + * @description The request body schema for the getFulfillmentPreview operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentPreviewRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewResponse.php b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewResponse.php index 9eb96581..2b262789 100644 --- a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewResponse.php +++ b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFulfillmentPreviewResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getFulfillmentPreview operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentPreviewResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewResult.php b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewResult.php index fd6290d3..3b84ab0a 100644 --- a/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewResult.php +++ b/lib/Models/FulfillmentOutbound/GetFulfillmentPreviewResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetFulfillmentPreviewResult Class Doc Comment. * - * @category Class + * @description A list of fulfillment order previews, including estimated shipping weights, estimated shipping fees, and estimated ship dates and arrival dates. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetFulfillmentPreviewResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php b/lib/Models/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php index e0af02de..669091bb 100644 --- a/lib/Models/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php +++ b/lib/Models/FulfillmentOutbound/GetPackageTrackingDetailsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * GetPackageTrackingDetailsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getPackageTrackingDetails operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetPackageTrackingDetailsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/InvalidItemReason.php b/lib/Models/FulfillmentOutbound/InvalidItemReason.php index 097865b7..7e43df70 100644 --- a/lib/Models/FulfillmentOutbound/InvalidItemReason.php +++ b/lib/Models/FulfillmentOutbound/InvalidItemReason.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * InvalidItemReason Class Doc Comment. * - * @category Class + * @description The reason that the item is invalid for return. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InvalidItemReason implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/InvalidItemReasonCode.php b/lib/Models/FulfillmentOutbound/InvalidItemReasonCode.php index f498abdf..430af0a2 100644 --- a/lib/Models/FulfillmentOutbound/InvalidItemReasonCode.php +++ b/lib/Models/FulfillmentOutbound/InvalidItemReasonCode.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * InvalidItemReasonCode Class Doc Comment. * - * @category Class + * @description A code for why the item is invalid for return. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InvalidItemReasonCode { diff --git a/lib/Models/FulfillmentOutbound/InvalidReturnItem.php b/lib/Models/FulfillmentOutbound/InvalidReturnItem.php index 5d12c953..9f893173 100644 --- a/lib/Models/FulfillmentOutbound/InvalidReturnItem.php +++ b/lib/Models/FulfillmentOutbound/InvalidReturnItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * InvalidReturnItem Class Doc Comment. * - * @category Class + * @description An item that is invalid for return. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InvalidReturnItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/InvalidReturnItemList.php b/lib/Models/FulfillmentOutbound/InvalidReturnItemList.php index 0eb99d79..c4fc842d 100644 --- a/lib/Models/FulfillmentOutbound/InvalidReturnItemList.php +++ b/lib/Models/FulfillmentOutbound/InvalidReturnItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * InvalidReturnItemList Class Doc Comment. * - * @category Class + * @description An array of invalid return item information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class InvalidReturnItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php b/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php index 7a14c0a0..0c520e0f 100644 --- a/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php +++ b/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * ListAllFulfillmentOrdersResponse Class Doc Comment. * - * @category Class + * @description The response schema for the listAllFulfillmentOrders operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListAllFulfillmentOrdersResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php b/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php index 8fcf5a8a..9d1f939d 100644 --- a/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php +++ b/lib/Models/FulfillmentOutbound/ListAllFulfillmentOrdersResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,11 +24,7 @@ /** * ListAllFulfillmentOrdersResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListAllFulfillmentOrdersResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/ListReturnReasonCodesResponse.php b/lib/Models/FulfillmentOutbound/ListReturnReasonCodesResponse.php index 3b1d5b24..d959f03c 100644 --- a/lib/Models/FulfillmentOutbound/ListReturnReasonCodesResponse.php +++ b/lib/Models/FulfillmentOutbound/ListReturnReasonCodesResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * ListReturnReasonCodesResponse Class Doc Comment. * - * @category Class + * @description The response schema for the listReturnReasonCodes operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListReturnReasonCodesResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/ListReturnReasonCodesResult.php b/lib/Models/FulfillmentOutbound/ListReturnReasonCodesResult.php index f8af6d1f..a5036d64 100644 --- a/lib/Models/FulfillmentOutbound/ListReturnReasonCodesResult.php +++ b/lib/Models/FulfillmentOutbound/ListReturnReasonCodesResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,11 +24,7 @@ /** * ListReturnReasonCodesResult Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ListReturnReasonCodesResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/Money.php b/lib/Models/FulfillmentOutbound/Money.php index 9f4a9247..1fc7f788 100644 --- a/lib/Models/FulfillmentOutbound/Money.php +++ b/lib/Models/FulfillmentOutbound/Money.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * Money Class Doc Comment. * - * @category Class + * @description An amount of money, including units in the form of currency. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Money implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/NotificationEmailList.php b/lib/Models/FulfillmentOutbound/NotificationEmailList.php index 44391e5d..dfe7405f 100644 --- a/lib/Models/FulfillmentOutbound/NotificationEmailList.php +++ b/lib/Models/FulfillmentOutbound/NotificationEmailList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * NotificationEmailList Class Doc Comment. * - * @category Class + * @description A list of email addresses that the seller provides that are used by Amazon to send ship-complete notifications to recipients on behalf of the seller. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class NotificationEmailList implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/PackageTrackingDetails.php b/lib/Models/FulfillmentOutbound/PackageTrackingDetails.php index 7a323c9d..0a899975 100644 --- a/lib/Models/FulfillmentOutbound/PackageTrackingDetails.php +++ b/lib/Models/FulfillmentOutbound/PackageTrackingDetails.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,11 +24,7 @@ /** * PackageTrackingDetails Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PackageTrackingDetails implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/Quantity.php b/lib/Models/FulfillmentOutbound/Quantity.php index c0d78ac9..9e724cd4 100644 --- a/lib/Models/FulfillmentOutbound/Quantity.php +++ b/lib/Models/FulfillmentOutbound/Quantity.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * Quantity Class Doc Comment. * - * @category Class + * @description The item quantity. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Quantity implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/ReasonCodeDetails.php b/lib/Models/FulfillmentOutbound/ReasonCodeDetails.php index 9e1c5cb0..8238fd6d 100644 --- a/lib/Models/FulfillmentOutbound/ReasonCodeDetails.php +++ b/lib/Models/FulfillmentOutbound/ReasonCodeDetails.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * ReasonCodeDetails Class Doc Comment. * - * @category Class + * @description A return reason code, a description, and an optional description translation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ReasonCodeDetails implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/ReasonCodeDetailsList.php b/lib/Models/FulfillmentOutbound/ReasonCodeDetailsList.php index 6c1df951..9e508ae9 100644 --- a/lib/Models/FulfillmentOutbound/ReasonCodeDetailsList.php +++ b/lib/Models/FulfillmentOutbound/ReasonCodeDetailsList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * ReasonCodeDetailsList Class Doc Comment. * - * @category Class + * @description An array of return reason code details. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ReasonCodeDetailsList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/ReturnAuthorization.php b/lib/Models/FulfillmentOutbound/ReturnAuthorization.php index 5ffe456c..49144176 100644 --- a/lib/Models/FulfillmentOutbound/ReturnAuthorization.php +++ b/lib/Models/FulfillmentOutbound/ReturnAuthorization.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * ReturnAuthorization Class Doc Comment. * - * @category Class + * @description Return authorization information for items accepted for return. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ReturnAuthorization implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/ReturnAuthorizationList.php b/lib/Models/FulfillmentOutbound/ReturnAuthorizationList.php index 331dd1fb..d75a78ce 100644 --- a/lib/Models/FulfillmentOutbound/ReturnAuthorizationList.php +++ b/lib/Models/FulfillmentOutbound/ReturnAuthorizationList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * ReturnAuthorizationList Class Doc Comment. * - * @category Class + * @description An array of return authorization information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ReturnAuthorizationList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/ReturnItem.php b/lib/Models/FulfillmentOutbound/ReturnItem.php index 54b519f2..8e51aaa3 100644 --- a/lib/Models/FulfillmentOutbound/ReturnItem.php +++ b/lib/Models/FulfillmentOutbound/ReturnItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * ReturnItem Class Doc Comment. * - * @category Class + * @description An item that Amazon accepted for return. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ReturnItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/ReturnItemDisposition.php b/lib/Models/FulfillmentOutbound/ReturnItemDisposition.php index 91b983fb..9c7237b4 100644 --- a/lib/Models/FulfillmentOutbound/ReturnItemDisposition.php +++ b/lib/Models/FulfillmentOutbound/ReturnItemDisposition.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * ReturnItemDisposition Class Doc Comment. * - * @category Class + * @description The condition of the return item when received by an Amazon fulfillment center. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ReturnItemDisposition { diff --git a/lib/Models/FulfillmentOutbound/ReturnItemList.php b/lib/Models/FulfillmentOutbound/ReturnItemList.php index eeff2e82..cdada968 100644 --- a/lib/Models/FulfillmentOutbound/ReturnItemList.php +++ b/lib/Models/FulfillmentOutbound/ReturnItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * ReturnItemList Class Doc Comment. * - * @category Class + * @description An array of items that Amazon accepted for return. Returns empty if no items were accepted for return. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ReturnItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/ScheduledDeliveryInfo.php b/lib/Models/FulfillmentOutbound/ScheduledDeliveryInfo.php index 464150b3..c85553f6 100644 --- a/lib/Models/FulfillmentOutbound/ScheduledDeliveryInfo.php +++ b/lib/Models/FulfillmentOutbound/ScheduledDeliveryInfo.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * ScheduledDeliveryInfo Class Doc Comment. * - * @category Class + * @description Delivery information for a scheduled delivery. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ScheduledDeliveryInfo implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/ShippingSpeedCategory.php b/lib/Models/FulfillmentOutbound/ShippingSpeedCategory.php index 4d1eb9be..5c1b65bf 100644 --- a/lib/Models/FulfillmentOutbound/ShippingSpeedCategory.php +++ b/lib/Models/FulfillmentOutbound/ShippingSpeedCategory.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -32,12 +20,10 @@ /** * ShippingSpeedCategory Class Doc Comment. * - * @category Class + * @description The shipping method used for the fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShippingSpeedCategory { diff --git a/lib/Models/FulfillmentOutbound/ShippingSpeedCategoryList.php b/lib/Models/FulfillmentOutbound/ShippingSpeedCategoryList.php index 1886fd9f..36e01716 100644 --- a/lib/Models/FulfillmentOutbound/ShippingSpeedCategoryList.php +++ b/lib/Models/FulfillmentOutbound/ShippingSpeedCategoryList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,11 +25,7 @@ /** * ShippingSpeedCategoryList Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShippingSpeedCategoryList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/StringList.php b/lib/Models/FulfillmentOutbound/StringList.php index 8c3f28a1..2fdd764b 100644 --- a/lib/Models/FulfillmentOutbound/StringList.php +++ b/lib/Models/FulfillmentOutbound/StringList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,11 +24,7 @@ /** * StringList Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class StringList implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/Timestamp.php b/lib/Models/FulfillmentOutbound/Timestamp.php index d9816151..91f91ab0 100644 --- a/lib/Models/FulfillmentOutbound/Timestamp.php +++ b/lib/Models/FulfillmentOutbound/Timestamp.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,11 +24,7 @@ /** * Timestamp Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Timestamp implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/TrackingAddress.php b/lib/Models/FulfillmentOutbound/TrackingAddress.php index 3438034d..333cba97 100644 --- a/lib/Models/FulfillmentOutbound/TrackingAddress.php +++ b/lib/Models/FulfillmentOutbound/TrackingAddress.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * TrackingAddress Class Doc Comment. * - * @category Class + * @description Address information for tracking the package. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TrackingAddress implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/TrackingEvent.php b/lib/Models/FulfillmentOutbound/TrackingEvent.php index ad61a92d..735eb84e 100644 --- a/lib/Models/FulfillmentOutbound/TrackingEvent.php +++ b/lib/Models/FulfillmentOutbound/TrackingEvent.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * TrackingEvent Class Doc Comment. * - * @category Class + * @description Information for tracking package deliveries. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TrackingEvent implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/TrackingEventList.php b/lib/Models/FulfillmentOutbound/TrackingEventList.php index 861c84bf..e9f00b39 100644 --- a/lib/Models/FulfillmentOutbound/TrackingEventList.php +++ b/lib/Models/FulfillmentOutbound/TrackingEventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * TrackingEventList Class Doc Comment. * - * @category Class + * @description An array of tracking event information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TrackingEventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/UnfulfillablePreviewItem.php b/lib/Models/FulfillmentOutbound/UnfulfillablePreviewItem.php index fa7c92fc..6fec6135 100644 --- a/lib/Models/FulfillmentOutbound/UnfulfillablePreviewItem.php +++ b/lib/Models/FulfillmentOutbound/UnfulfillablePreviewItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * UnfulfillablePreviewItem Class Doc Comment. * - * @category Class + * @description Information about unfulfillable items in a fulfillment order preview. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UnfulfillablePreviewItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/UnfulfillablePreviewItemList.php b/lib/Models/FulfillmentOutbound/UnfulfillablePreviewItemList.php index d6c634dc..c122effc 100644 --- a/lib/Models/FulfillmentOutbound/UnfulfillablePreviewItemList.php +++ b/lib/Models/FulfillmentOutbound/UnfulfillablePreviewItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * UnfulfillablePreviewItemList Class Doc Comment. * - * @category Class + * @description An array of unfulfillable preview item information. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UnfulfillablePreviewItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderItem.php b/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderItem.php index 32038983..fa808da0 100644 --- a/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderItem.php +++ b/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * UpdateFulfillmentOrderItem Class Doc Comment. * - * @category Class + * @description Item information for updating a fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UpdateFulfillmentOrderItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderItemList.php b/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderItemList.php index dfd8af89..08ce074b 100644 --- a/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderItemList.php +++ b/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderItemList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -37,12 +25,10 @@ /** * UpdateFulfillmentOrderItemList Class Doc Comment. * - * @category Class + * @description An array of fulfillment order item information for updating a fulfillment order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UpdateFulfillmentOrderItemList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php b/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php index 091f2a11..47bcbcb0 100644 --- a/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php +++ b/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,11 +24,7 @@ /** * UpdateFulfillmentOrderRequest Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UpdateFulfillmentOrderRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php b/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php index 7a57fdcf..42cef918 100644 --- a/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php +++ b/lib/Models/FulfillmentOutbound/UpdateFulfillmentOrderResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * UpdateFulfillmentOrderResponse Class Doc Comment. * - * @category Class + * @description The response schema for the updateFulfillmentOrder operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class UpdateFulfillmentOrderResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/FulfillmentOutbound/Weight.php b/lib/Models/FulfillmentOutbound/Weight.php index f09f8ce3..dc6c00e7 100644 --- a/lib/Models/FulfillmentOutbound/Weight.php +++ b/lib/Models/FulfillmentOutbound/Weight.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon's fulfillment network. You can get information on both potential and existing fulfillment orders. * * OpenAPI spec version: 2020-07-01 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\FulfillmentOutbound; @@ -36,12 +24,10 @@ /** * Weight Class Doc Comment. * - * @category Class + * @description The weight. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Weight implements ModelInterface, ArrayAccess { diff --git a/lib/Models/MerchantFulfillment/AdditionalInputs.php b/lib/Models/MerchantFulfillment/AdditionalInputs.php index d67ffb48..85686f54 100644 --- a/lib/Models/MerchantFulfillment/AdditionalInputs.php +++ b/lib/Models/MerchantFulfillment/AdditionalInputs.php @@ -1,77 +1,65 @@ 'string', -'seller_input_definition' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerInputDefinition' ]; +'seller_input_definition' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerInputDefinition', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'additional_input_field_name' => null, -'seller_input_definition' => null ]; +'seller_input_definition' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'additional_input_field_name' => 'AdditionalInputFieldName', -'seller_input_definition' => 'SellerInputDefinition' ]; +'seller_input_definition' => 'SellerInputDefinition', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'additional_input_field_name' => 'setAdditionalInputFieldName', -'seller_input_definition' => 'setSellerInputDefinition' ]; +'seller_input_definition' => 'setSellerInputDefinition', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'additional_input_field_name' => 'getAdditionalInputFieldName', -'seller_input_definition' => 'getSellerInputDefinition' ]; +'seller_input_definition' => 'getSellerInputDefinition', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets additional_input_field_name + * Gets additional_input_field_name. * * @return string */ @@ -215,9 +200,9 @@ public function getAdditionalInputFieldName() } /** - * Sets additional_input_field_name + * Sets additional_input_field_name. * - * @param string $additional_input_field_name The field name. + * @param string $additional_input_field_name the field name * * @return $this */ @@ -229,7 +214,7 @@ public function setAdditionalInputFieldName($additional_input_field_name) } /** - * Gets seller_input_definition + * Gets seller_input_definition. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerInputDefinition */ @@ -239,7 +224,7 @@ public function getSellerInputDefinition() } /** - * Sets seller_input_definition + * Sets seller_input_definition. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerInputDefinition $seller_input_definition seller_input_definition * @@ -251,12 +236,13 @@ public function setSellerInputDefinition($seller_input_definition) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AdditionalInputsList.php b/lib/Models/MerchantFulfillment/AdditionalInputsList.php index 036de1f1..17fe59f8 100644 --- a/lib/Models/MerchantFulfillment/AdditionalInputsList.php +++ b/lib/Models/MerchantFulfillment/AdditionalInputsList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return AdditionalInputs::class; } } diff --git a/lib/Models/MerchantFulfillment/AdditionalSellerInput.php b/lib/Models/MerchantFulfillment/AdditionalSellerInput.php index 2ee7429a..d0cfad96 100644 --- a/lib/Models/MerchantFulfillment/AdditionalSellerInput.php +++ b/lib/Models/MerchantFulfillment/AdditionalSellerInput.php @@ -1,62 +1,50 @@ 'string', 'value_as_string' => 'string', @@ -66,13 +54,13 @@ class AdditionalSellerInput implements ModelInterface, ArrayAccess 'value_as_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address', 'value_as_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight', 'value_as_dimension' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Length', -'value_as_currency' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount' ]; +'value_as_currency' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'data_type' => null, 'value_as_string' => null, @@ -82,10 +70,10 @@ class AdditionalSellerInput implements ModelInterface, ArrayAccess 'value_as_address' => null, 'value_as_weight' => null, 'value_as_dimension' => null, -'value_as_currency' => null ]; +'value_as_currency' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -95,7 +83,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -106,7 +94,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -119,10 +107,10 @@ public static function swaggerFormats() 'value_as_address' => 'ValueAsAddress', 'value_as_weight' => 'ValueAsWeight', 'value_as_dimension' => 'ValueAsDimension', -'value_as_currency' => 'ValueAsCurrency' ]; +'value_as_currency' => 'ValueAsCurrency', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -135,10 +123,10 @@ public static function swaggerFormats() 'value_as_address' => 'setValueAsAddress', 'value_as_weight' => 'setValueAsWeight', 'value_as_dimension' => 'setValueAsDimension', -'value_as_currency' => 'setValueAsCurrency' ]; +'value_as_currency' => 'setValueAsCurrency', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -151,11 +139,11 @@ public static function swaggerFormats() 'value_as_address' => 'getValueAsAddress', 'value_as_weight' => 'getValueAsWeight', 'value_as_dimension' => 'getValueAsDimension', -'value_as_currency' => 'getValueAsCurrency' ]; +'value_as_currency' => 'getValueAsCurrency', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -165,7 +153,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -175,7 +163,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -194,17 +182,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -236,18 +222,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets data_type + * Gets data_type. * * @return string */ @@ -257,9 +242,9 @@ public function getDataType() } /** - * Sets data_type + * Sets data_type. * - * @param string $data_type The data type of the additional information. + * @param string $data_type the data type of the additional information * * @return $this */ @@ -271,7 +256,7 @@ public function setDataType($data_type) } /** - * Gets value_as_string + * Gets value_as_string. * * @return string */ @@ -281,9 +266,9 @@ public function getValueAsString() } /** - * Sets value_as_string + * Sets value_as_string. * - * @param string $value_as_string The value when the data type is string. + * @param string $value_as_string the value when the data type is string * * @return $this */ @@ -295,7 +280,7 @@ public function setValueAsString($value_as_string) } /** - * Gets value_as_boolean + * Gets value_as_boolean. * * @return bool */ @@ -305,9 +290,9 @@ public function getValueAsBoolean() } /** - * Sets value_as_boolean + * Sets value_as_boolean. * - * @param bool $value_as_boolean The value when the data type is boolean. + * @param bool $value_as_boolean the value when the data type is boolean * * @return $this */ @@ -319,7 +304,7 @@ public function setValueAsBoolean($value_as_boolean) } /** - * Gets value_as_integer + * Gets value_as_integer. * * @return int */ @@ -329,9 +314,9 @@ public function getValueAsInteger() } /** - * Sets value_as_integer + * Sets value_as_integer. * - * @param int $value_as_integer The value when the data type is integer. + * @param int $value_as_integer the value when the data type is integer * * @return $this */ @@ -343,7 +328,7 @@ public function setValueAsInteger($value_as_integer) } /** - * Gets value_as_timestamp + * Gets value_as_timestamp. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp */ @@ -353,7 +338,7 @@ public function getValueAsTimestamp() } /** - * Sets value_as_timestamp + * Sets value_as_timestamp. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $value_as_timestamp value_as_timestamp * @@ -367,7 +352,7 @@ public function setValueAsTimestamp($value_as_timestamp) } /** - * Gets value_as_address + * Gets value_as_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address */ @@ -377,7 +362,7 @@ public function getValueAsAddress() } /** - * Sets value_as_address + * Sets value_as_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $value_as_address value_as_address * @@ -391,7 +376,7 @@ public function setValueAsAddress($value_as_address) } /** - * Gets value_as_weight + * Gets value_as_weight. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight */ @@ -401,7 +386,7 @@ public function getValueAsWeight() } /** - * Sets value_as_weight + * Sets value_as_weight. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight $value_as_weight value_as_weight * @@ -415,7 +400,7 @@ public function setValueAsWeight($value_as_weight) } /** - * Gets value_as_dimension + * Gets value_as_dimension. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Length */ @@ -425,7 +410,7 @@ public function getValueAsDimension() } /** - * Sets value_as_dimension + * Sets value_as_dimension. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Length $value_as_dimension value_as_dimension * @@ -439,7 +424,7 @@ public function setValueAsDimension($value_as_dimension) } /** - * Gets value_as_currency + * Gets value_as_currency. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount */ @@ -449,7 +434,7 @@ public function getValueAsCurrency() } /** - * Sets value_as_currency + * Sets value_as_currency. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $value_as_currency value_as_currency * @@ -461,12 +446,13 @@ public function setValueAsCurrency($value_as_currency) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -476,7 +462,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -488,8 +474,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -505,7 +491,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -515,7 +501,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AdditionalSellerInputs.php b/lib/Models/MerchantFulfillment/AdditionalSellerInputs.php index eb22f9e0..ca3f85c4 100644 --- a/lib/Models/MerchantFulfillment/AdditionalSellerInputs.php +++ b/lib/Models/MerchantFulfillment/AdditionalSellerInputs.php @@ -1,77 +1,65 @@ 'string', -'additional_seller_input' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput' ]; +'additional_seller_input' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'additional_input_field_name' => null, -'additional_seller_input' => null ]; +'additional_seller_input' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'additional_input_field_name' => 'AdditionalInputFieldName', -'additional_seller_input' => 'AdditionalSellerInput' ]; +'additional_seller_input' => 'AdditionalSellerInput', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'additional_input_field_name' => 'setAdditionalInputFieldName', -'additional_seller_input' => 'setAdditionalSellerInput' ]; +'additional_seller_input' => 'setAdditionalSellerInput', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'additional_input_field_name' => 'getAdditionalInputFieldName', -'additional_seller_input' => 'getAdditionalSellerInput' ]; +'additional_seller_input' => 'getAdditionalSellerInput', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -189,29 +175,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['additional_input_field_name'] === null) { + if (null === $this->container['additional_input_field_name']) { $invalidProperties[] = "'additional_input_field_name' can't be null"; } - if ($this->container['additional_seller_input'] === null) { + if (null === $this->container['additional_seller_input']) { $invalidProperties[] = "'additional_seller_input' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets additional_input_field_name + * Gets additional_input_field_name. * * @return string */ @@ -221,9 +207,9 @@ public function getAdditionalInputFieldName() } /** - * Sets additional_input_field_name + * Sets additional_input_field_name. * - * @param string $additional_input_field_name The name of the additional input field. + * @param string $additional_input_field_name the name of the additional input field * * @return $this */ @@ -235,7 +221,7 @@ public function setAdditionalInputFieldName($additional_input_field_name) } /** - * Gets additional_seller_input + * Gets additional_seller_input. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput */ @@ -245,7 +231,7 @@ public function getAdditionalSellerInput() } /** - * Sets additional_seller_input + * Sets additional_seller_input. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput $additional_seller_input additional_seller_input * @@ -257,12 +243,13 @@ public function setAdditionalSellerInput($additional_seller_input) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -272,7 +259,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -284,8 +271,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -301,7 +288,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -311,7 +298,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AdditionalSellerInputsList.php b/lib/Models/MerchantFulfillment/AdditionalSellerInputsList.php index 05ee3231..138f6845 100644 --- a/lib/Models/MerchantFulfillment/AdditionalSellerInputsList.php +++ b/lib/Models/MerchantFulfillment/AdditionalSellerInputsList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return AdditionalSellerInputs::class; } } diff --git a/lib/Models/MerchantFulfillment/Address.php b/lib/Models/MerchantFulfillment/Address.php index f8560a9f..a615b535 100644 --- a/lib/Models/MerchantFulfillment/Address.php +++ b/lib/Models/MerchantFulfillment/Address.php @@ -1,62 +1,50 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressName', 'address_line1' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine1', @@ -68,13 +56,13 @@ class Address implements ModelInterface, ArrayAccess 'state_or_province_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StateOrProvinceCode', 'postal_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PostalCode', 'country_code' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CountryCode', -'phone' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PhoneNumber' ]; +'phone' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PhoneNumber', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'name' => null, 'address_line1' => null, @@ -86,10 +74,10 @@ class Address implements ModelInterface, ArrayAccess 'state_or_province_code' => null, 'postal_code' => null, 'country_code' => null, -'phone' => null ]; +'phone' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -99,7 +87,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -110,7 +98,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -125,10 +113,10 @@ public static function swaggerFormats() 'state_or_province_code' => 'StateOrProvinceCode', 'postal_code' => 'PostalCode', 'country_code' => 'CountryCode', -'phone' => 'Phone' ]; +'phone' => 'Phone', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -143,10 +131,10 @@ public static function swaggerFormats() 'state_or_province_code' => 'setStateOrProvinceCode', 'postal_code' => 'setPostalCode', 'country_code' => 'setCountryCode', -'phone' => 'setPhone' ]; +'phone' => 'setPhone', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -161,11 +149,11 @@ public static function swaggerFormats() 'state_or_province_code' => 'getStateOrProvinceCode', 'postal_code' => 'getPostalCode', 'country_code' => 'getCountryCode', -'phone' => 'getPhone' ]; +'phone' => 'getPhone', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -175,7 +163,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -185,7 +173,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -204,17 +192,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -243,44 +229,44 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['name'] === null) { + if (null === $this->container['name']) { $invalidProperties[] = "'name' can't be null"; } - if ($this->container['address_line1'] === null) { + if (null === $this->container['address_line1']) { $invalidProperties[] = "'address_line1' can't be null"; } - if ($this->container['email'] === null) { + if (null === $this->container['email']) { $invalidProperties[] = "'email' can't be null"; } - if ($this->container['city'] === null) { + if (null === $this->container['city']) { $invalidProperties[] = "'city' can't be null"; } - if ($this->container['postal_code'] === null) { + if (null === $this->container['postal_code']) { $invalidProperties[] = "'postal_code' can't be null"; } - if ($this->container['country_code'] === null) { + if (null === $this->container['country_code']) { $invalidProperties[] = "'country_code' can't be null"; } - if ($this->container['phone'] === null) { + if (null === $this->container['phone']) { $invalidProperties[] = "'phone' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets name + * Gets name. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressName */ @@ -290,7 +276,7 @@ public function getName() } /** - * Sets name + * Sets name. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressName $name name * @@ -304,7 +290,7 @@ public function setName($name) } /** - * Gets address_line1 + * Gets address_line1. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine1 */ @@ -314,7 +300,7 @@ public function getAddressLine1() } /** - * Sets address_line1 + * Sets address_line1. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine1 $address_line1 address_line1 * @@ -328,7 +314,7 @@ public function setAddressLine1($address_line1) } /** - * Gets address_line2 + * Gets address_line2. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine2 */ @@ -338,7 +324,7 @@ public function getAddressLine2() } /** - * Sets address_line2 + * Sets address_line2. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine2 $address_line2 address_line2 * @@ -352,7 +338,7 @@ public function setAddressLine2($address_line2) } /** - * Gets address_line3 + * Gets address_line3. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine3 */ @@ -362,7 +348,7 @@ public function getAddressLine3() } /** - * Sets address_line3 + * Sets address_line3. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AddressLine3 $address_line3 address_line3 * @@ -376,7 +362,7 @@ public function setAddressLine3($address_line3) } /** - * Gets district_or_county + * Gets district_or_county. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DistrictOrCounty */ @@ -386,7 +372,7 @@ public function getDistrictOrCounty() } /** - * Sets district_or_county + * Sets district_or_county. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DistrictOrCounty $district_or_county district_or_county * @@ -400,7 +386,7 @@ public function setDistrictOrCounty($district_or_county) } /** - * Gets email + * Gets email. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\EmailAddress */ @@ -410,7 +396,7 @@ public function getEmail() } /** - * Sets email + * Sets email. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\EmailAddress $email email * @@ -424,7 +410,7 @@ public function setEmail($email) } /** - * Gets city + * Gets city. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\City */ @@ -434,7 +420,7 @@ public function getCity() } /** - * Sets city + * Sets city. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\City $city city * @@ -448,7 +434,7 @@ public function setCity($city) } /** - * Gets state_or_province_code + * Gets state_or_province_code. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StateOrProvinceCode */ @@ -458,7 +444,7 @@ public function getStateOrProvinceCode() } /** - * Sets state_or_province_code + * Sets state_or_province_code. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StateOrProvinceCode $state_or_province_code state_or_province_code * @@ -472,7 +458,7 @@ public function setStateOrProvinceCode($state_or_province_code) } /** - * Gets postal_code + * Gets postal_code. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PostalCode */ @@ -482,7 +468,7 @@ public function getPostalCode() } /** - * Sets postal_code + * Sets postal_code. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PostalCode $postal_code postal_code * @@ -496,7 +482,7 @@ public function setPostalCode($postal_code) } /** - * Gets country_code + * Gets country_code. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CountryCode */ @@ -506,7 +492,7 @@ public function getCountryCode() } /** - * Sets country_code + * Sets country_code. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CountryCode $country_code country_code * @@ -520,7 +506,7 @@ public function setCountryCode($country_code) } /** - * Gets phone + * Gets phone. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PhoneNumber */ @@ -530,7 +516,7 @@ public function getPhone() } /** - * Sets phone + * Sets phone. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PhoneNumber $phone phone * @@ -542,12 +528,13 @@ public function setPhone($phone) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -557,7 +544,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -569,8 +556,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -586,7 +573,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -596,7 +583,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AddressLine1.php b/lib/Models/MerchantFulfillment/AddressLine1.php index 18dc9bde..41f5d4c8 100644 --- a/lib/Models/MerchantFulfillment/AddressLine1.php +++ b/lib/Models/MerchantFulfillment/AddressLine1.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AddressLine2.php b/lib/Models/MerchantFulfillment/AddressLine2.php index 337d6d08..62c6450f 100644 --- a/lib/Models/MerchantFulfillment/AddressLine2.php +++ b/lib/Models/MerchantFulfillment/AddressLine2.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AddressLine3.php b/lib/Models/MerchantFulfillment/AddressLine3.php index e24317c6..7cef045b 100644 --- a/lib/Models/MerchantFulfillment/AddressLine3.php +++ b/lib/Models/MerchantFulfillment/AddressLine3.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AddressName.php b/lib/Models/MerchantFulfillment/AddressName.php index 0475ac3d..929ed59b 100644 --- a/lib/Models/MerchantFulfillment/AddressName.php +++ b/lib/Models/MerchantFulfillment/AddressName.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AmazonOrderId.php b/lib/Models/MerchantFulfillment/AmazonOrderId.php index b100b84e..bf7e4aee 100644 --- a/lib/Models/MerchantFulfillment/AmazonOrderId.php +++ b/lib/Models/MerchantFulfillment/AmazonOrderId.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOption.php b/lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOption.php index f07e4ca0..91384efd 100644 --- a/lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOption.php +++ b/lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOption.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption', -'charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount' ]; +'charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'carrier_will_pick_up_option' => null, -'charge' => null ]; +'charge' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'carrier_will_pick_up_option' => 'CarrierWillPickUpOption', -'charge' => 'Charge' ]; +'charge' => 'Charge', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'carrier_will_pick_up_option' => 'setCarrierWillPickUpOption', -'charge' => 'setCharge' ]; +'charge' => 'setCharge', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'carrier_will_pick_up_option' => 'getCarrierWillPickUpOption', -'charge' => 'getCharge' ]; +'charge' => 'getCharge', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -189,29 +175,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['carrier_will_pick_up_option'] === null) { + if (null === $this->container['carrier_will_pick_up_option']) { $invalidProperties[] = "'carrier_will_pick_up_option' can't be null"; } - if ($this->container['charge'] === null) { + if (null === $this->container['charge']) { $invalidProperties[] = "'charge' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets carrier_will_pick_up_option + * Gets carrier_will_pick_up_option. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption */ @@ -221,7 +207,7 @@ public function getCarrierWillPickUpOption() } /** - * Sets carrier_will_pick_up_option + * Sets carrier_will_pick_up_option. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption $carrier_will_pick_up_option carrier_will_pick_up_option * @@ -235,7 +221,7 @@ public function setCarrierWillPickUpOption($carrier_will_pick_up_option) } /** - * Gets charge + * Gets charge. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount */ @@ -245,7 +231,7 @@ public function getCharge() } /** - * Sets charge + * Sets charge. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $charge charge * @@ -257,12 +243,13 @@ public function setCharge($charge) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -272,7 +259,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -284,8 +271,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -301,7 +288,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -311,7 +298,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOptionsList.php b/lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOptionsList.php index ad5f1787..53f8a1ee 100644 --- a/lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOptionsList.php +++ b/lib/Models/MerchantFulfillment/AvailableCarrierWillPickUpOptionsList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return AvailableCarrierWillPickUpOption::class; } } diff --git a/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOption.php b/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOption.php index 34eb4de3..95b8c432 100644 --- a/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOption.php +++ b/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOption.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption', -'charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount' ]; +'charge' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'delivery_experience_option' => null, -'charge' => null ]; +'charge' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'delivery_experience_option' => 'DeliveryExperienceOption', -'charge' => 'Charge' ]; +'charge' => 'Charge', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'delivery_experience_option' => 'setDeliveryExperienceOption', -'charge' => 'setCharge' ]; +'charge' => 'setCharge', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'delivery_experience_option' => 'getDeliveryExperienceOption', -'charge' => 'getCharge' ]; +'charge' => 'getCharge', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -189,29 +175,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['delivery_experience_option'] === null) { + if (null === $this->container['delivery_experience_option']) { $invalidProperties[] = "'delivery_experience_option' can't be null"; } - if ($this->container['charge'] === null) { + if (null === $this->container['charge']) { $invalidProperties[] = "'charge' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets delivery_experience_option + * Gets delivery_experience_option. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption */ @@ -221,7 +207,7 @@ public function getDeliveryExperienceOption() } /** - * Sets delivery_experience_option + * Sets delivery_experience_option. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption $delivery_experience_option delivery_experience_option * @@ -235,7 +221,7 @@ public function setDeliveryExperienceOption($delivery_experience_option) } /** - * Gets charge + * Gets charge. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount */ @@ -245,7 +231,7 @@ public function getCharge() } /** - * Sets charge + * Sets charge. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $charge charge * @@ -257,12 +243,13 @@ public function setCharge($charge) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -272,7 +259,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -284,8 +271,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -301,7 +288,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -311,7 +298,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOptionsList.php b/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOptionsList.php index 9a5921f0..97e0e7dc 100644 --- a/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOptionsList.php +++ b/lib/Models/MerchantFulfillment/AvailableDeliveryExperienceOptionsList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return AvailableDeliveryExperienceOption::class; } } diff --git a/lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabel.php b/lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabel.php index ed955425..cfc8becc 100644 --- a/lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabel.php +++ b/lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabel.php @@ -1,74 +1,60 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -210,7 +194,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -222,8 +206,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -239,7 +223,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -249,7 +233,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabelList.php b/lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabelList.php index 8d8ff791..dcab1f09 100644 --- a/lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabelList.php +++ b/lib/Models/MerchantFulfillment/AvailableFormatOptionsForLabelList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return AvailableFormatOptionsForLabel::class; } } diff --git a/lib/Models/MerchantFulfillment/AvailableShippingServiceOptions.php b/lib/Models/MerchantFulfillment/AvailableShippingServiceOptions.php index f3a8d8d0..1c2f9988 100644 --- a/lib/Models/MerchantFulfillment/AvailableShippingServiceOptions.php +++ b/lib/Models/MerchantFulfillment/AvailableShippingServiceOptions.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableCarrierWillPickUpOptionsList', -'available_delivery_experience_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableDeliveryExperienceOptionsList' ]; +'available_delivery_experience_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableDeliveryExperienceOptionsList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'available_carrier_will_pick_up_options' => null, -'available_delivery_experience_options' => null ]; +'available_delivery_experience_options' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'available_carrier_will_pick_up_options' => 'AvailableCarrierWillPickUpOptions', -'available_delivery_experience_options' => 'AvailableDeliveryExperienceOptions' ]; +'available_delivery_experience_options' => 'AvailableDeliveryExperienceOptions', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'available_carrier_will_pick_up_options' => 'setAvailableCarrierWillPickUpOptions', -'available_delivery_experience_options' => 'setAvailableDeliveryExperienceOptions' ]; +'available_delivery_experience_options' => 'setAvailableDeliveryExperienceOptions', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'available_carrier_will_pick_up_options' => 'getAvailableCarrierWillPickUpOptions', -'available_delivery_experience_options' => 'getAvailableDeliveryExperienceOptions' ]; +'available_delivery_experience_options' => 'getAvailableDeliveryExperienceOptions', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -189,29 +175,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['available_carrier_will_pick_up_options'] === null) { + if (null === $this->container['available_carrier_will_pick_up_options']) { $invalidProperties[] = "'available_carrier_will_pick_up_options' can't be null"; } - if ($this->container['available_delivery_experience_options'] === null) { + if (null === $this->container['available_delivery_experience_options']) { $invalidProperties[] = "'available_delivery_experience_options' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets available_carrier_will_pick_up_options + * Gets available_carrier_will_pick_up_options. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableCarrierWillPickUpOptionsList */ @@ -221,7 +207,7 @@ public function getAvailableCarrierWillPickUpOptions() } /** - * Sets available_carrier_will_pick_up_options + * Sets available_carrier_will_pick_up_options. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableCarrierWillPickUpOptionsList $available_carrier_will_pick_up_options available_carrier_will_pick_up_options * @@ -235,7 +221,7 @@ public function setAvailableCarrierWillPickUpOptions($available_carrier_will_pic } /** - * Gets available_delivery_experience_options + * Gets available_delivery_experience_options. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableDeliveryExperienceOptionsList */ @@ -245,7 +231,7 @@ public function getAvailableDeliveryExperienceOptions() } /** - * Sets available_delivery_experience_options + * Sets available_delivery_experience_options. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableDeliveryExperienceOptionsList $available_delivery_experience_options available_delivery_experience_options * @@ -257,12 +243,13 @@ public function setAvailableDeliveryExperienceOptions($available_delivery_experi return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -272,7 +259,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -284,8 +271,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -301,7 +288,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -311,7 +298,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/CancelShipmentResponse.php b/lib/Models/MerchantFulfillment/CancelShipmentResponse.php index 4446ffe6..b267c48f 100644 --- a/lib/Models/MerchantFulfillment/CancelShipmentResponse.php +++ b/lib/Models/MerchantFulfillment/CancelShipmentResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/CarrierWillPickUpOption.php b/lib/Models/MerchantFulfillment/CarrierWillPickUpOption.php index 52f31fff..3d1ede3e 100644 --- a/lib/Models/MerchantFulfillment/CarrierWillPickUpOption.php +++ b/lib/Models/MerchantFulfillment/CarrierWillPickUpOption.php @@ -1,54 +1,42 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/Constraint.php b/lib/Models/MerchantFulfillment/Constraint.php index bfe95641..8e3585bb 100644 --- a/lib/Models/MerchantFulfillment/Constraint.php +++ b/lib/Models/MerchantFulfillment/Constraint.php @@ -1,77 +1,65 @@ 'string', -'validation_string' => 'string' ]; +'validation_string' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'validation_reg_ex' => null, -'validation_string' => null ]; +'validation_string' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'validation_reg_ex' => 'ValidationRegEx', -'validation_string' => 'ValidationString' ]; +'validation_string' => 'ValidationString', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'validation_reg_ex' => 'setValidationRegEx', -'validation_string' => 'setValidationString' ]; +'validation_string' => 'setValidationString', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'validation_reg_ex' => 'getValidationRegEx', -'validation_string' => 'getValidationString' ]; +'validation_string' => 'getValidationString', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -189,26 +175,26 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['validation_string'] === null) { + if (null === $this->container['validation_string']) { $invalidProperties[] = "'validation_string' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets validation_reg_ex + * Gets validation_reg_ex. * * @return string */ @@ -218,9 +204,9 @@ public function getValidationRegEx() } /** - * Sets validation_reg_ex + * Sets validation_reg_ex. * - * @param string $validation_reg_ex A regular expression. + * @param string $validation_reg_ex a regular expression * * @return $this */ @@ -232,7 +218,7 @@ public function setValidationRegEx($validation_reg_ex) } /** - * Gets validation_string + * Gets validation_string. * * @return string */ @@ -242,9 +228,9 @@ public function getValidationString() } /** - * Sets validation_string + * Sets validation_string. * - * @param string $validation_string A validation string. + * @param string $validation_string a validation string * * @return $this */ @@ -254,12 +240,13 @@ public function setValidationString($validation_string) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -269,7 +256,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -281,8 +268,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -298,7 +285,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -308,7 +295,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/Constraints.php b/lib/Models/MerchantFulfillment/Constraints.php index 23da1a12..0990150b 100644 --- a/lib/Models/MerchantFulfillment/Constraints.php +++ b/lib/Models/MerchantFulfillment/Constraints.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/CountryCode.php b/lib/Models/MerchantFulfillment/CountryCode.php index 1fc166b2..71affa23 100644 --- a/lib/Models/MerchantFulfillment/CountryCode.php +++ b/lib/Models/MerchantFulfillment/CountryCode.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/CreateShipmentRequest.php b/lib/Models/MerchantFulfillment/CreateShipmentRequest.php index 26d17910..016f6183 100644 --- a/lib/Models/MerchantFulfillment/CreateShipmentRequest.php +++ b/lib/Models/MerchantFulfillment/CreateShipmentRequest.php @@ -1,85 +1,73 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails', 'shipping_service_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier', 'shipping_service_offer_id' => 'string', 'hazmat_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\HazmatType', 'label_format_option' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatOptionRequest', -'shipment_level_seller_inputs_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList' ]; +'shipment_level_seller_inputs_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'shipment_request_details' => null, 'shipping_service_id' => null, 'shipping_service_offer_id' => null, 'hazmat_type' => null, 'label_format_option' => null, -'shipment_level_seller_inputs_list' => null ]; +'shipment_level_seller_inputs_list' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -89,7 +77,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -100,7 +88,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -110,10 +98,10 @@ public static function swaggerFormats() 'shipping_service_offer_id' => 'ShippingServiceOfferId', 'hazmat_type' => 'HazmatType', 'label_format_option' => 'LabelFormatOption', -'shipment_level_seller_inputs_list' => 'ShipmentLevelSellerInputsList' ]; +'shipment_level_seller_inputs_list' => 'ShipmentLevelSellerInputsList', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -123,10 +111,10 @@ public static function swaggerFormats() 'shipping_service_offer_id' => 'setShippingServiceOfferId', 'hazmat_type' => 'setHazmatType', 'label_format_option' => 'setLabelFormatOption', -'shipment_level_seller_inputs_list' => 'setShipmentLevelSellerInputsList' ]; +'shipment_level_seller_inputs_list' => 'setShipmentLevelSellerInputsList', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -136,11 +124,11 @@ public static function swaggerFormats() 'shipping_service_offer_id' => 'getShippingServiceOfferId', 'hazmat_type' => 'getHazmatType', 'label_format_option' => 'getLabelFormatOption', -'shipment_level_seller_inputs_list' => 'getShipmentLevelSellerInputsList' ]; +'shipment_level_seller_inputs_list' => 'getShipmentLevelSellerInputsList', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -150,7 +138,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -160,7 +148,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -179,17 +167,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -213,29 +199,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['shipment_request_details'] === null) { + if (null === $this->container['shipment_request_details']) { $invalidProperties[] = "'shipment_request_details' can't be null"; } - if ($this->container['shipping_service_id'] === null) { + if (null === $this->container['shipping_service_id']) { $invalidProperties[] = "'shipping_service_id' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets shipment_request_details + * Gets shipment_request_details. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails */ @@ -245,7 +231,7 @@ public function getShipmentRequestDetails() } /** - * Sets shipment_request_details + * Sets shipment_request_details. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails $shipment_request_details shipment_request_details * @@ -259,7 +245,7 @@ public function setShipmentRequestDetails($shipment_request_details) } /** - * Gets shipping_service_id + * Gets shipping_service_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier */ @@ -269,7 +255,7 @@ public function getShippingServiceId() } /** - * Sets shipping_service_id + * Sets shipping_service_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier $shipping_service_id shipping_service_id * @@ -283,7 +269,7 @@ public function setShippingServiceId($shipping_service_id) } /** - * Gets shipping_service_offer_id + * Gets shipping_service_offer_id. * * @return string */ @@ -293,9 +279,9 @@ public function getShippingServiceOfferId() } /** - * Sets shipping_service_offer_id + * Sets shipping_service_offer_id. * - * @param string $shipping_service_offer_id Identifies a shipping service order made by a carrier. + * @param string $shipping_service_offer_id identifies a shipping service order made by a carrier * * @return $this */ @@ -307,7 +293,7 @@ public function setShippingServiceOfferId($shipping_service_offer_id) } /** - * Gets hazmat_type + * Gets hazmat_type. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\HazmatType */ @@ -317,7 +303,7 @@ public function getHazmatType() } /** - * Sets hazmat_type + * Sets hazmat_type. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\HazmatType $hazmat_type hazmat_type * @@ -331,7 +317,7 @@ public function setHazmatType($hazmat_type) } /** - * Gets label_format_option + * Gets label_format_option. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatOptionRequest */ @@ -341,7 +327,7 @@ public function getLabelFormatOption() } /** - * Sets label_format_option + * Sets label_format_option. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatOptionRequest $label_format_option label_format_option * @@ -355,7 +341,7 @@ public function setLabelFormatOption($label_format_option) } /** - * Gets shipment_level_seller_inputs_list + * Gets shipment_level_seller_inputs_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList */ @@ -365,7 +351,7 @@ public function getShipmentLevelSellerInputsList() } /** - * Sets shipment_level_seller_inputs_list + * Sets shipment_level_seller_inputs_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList $shipment_level_seller_inputs_list shipment_level_seller_inputs_list * @@ -377,12 +363,13 @@ public function setShipmentLevelSellerInputsList($shipment_level_seller_inputs_l return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -392,7 +379,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -404,8 +391,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -421,7 +408,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -431,7 +418,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/CreateShipmentResponse.php b/lib/Models/MerchantFulfillment/CreateShipmentResponse.php index 6c3a14c8..6ee6097c 100644 --- a/lib/Models/MerchantFulfillment/CreateShipmentResponse.php +++ b/lib/Models/MerchantFulfillment/CreateShipmentResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/CurrencyAmount.php b/lib/Models/MerchantFulfillment/CurrencyAmount.php index 18abc690..d069d9b2 100644 --- a/lib/Models/MerchantFulfillment/CurrencyAmount.php +++ b/lib/Models/MerchantFulfillment/CurrencyAmount.php @@ -1,77 +1,65 @@ 'string', -'amount' => 'double' ]; +'amount' => 'double', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'currency_code' => null, -'amount' => 'double' ]; +'amount' => 'double', ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'currency_code' => 'CurrencyCode', -'amount' => 'Amount' ]; +'amount' => 'Amount', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'currency_code' => 'setCurrencyCode', -'amount' => 'setAmount' ]; +'amount' => 'setAmount', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'currency_code' => 'getCurrencyCode', -'amount' => 'getAmount' ]; +'amount' => 'getAmount', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -189,29 +175,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['currency_code'] === null) { + if (null === $this->container['currency_code']) { $invalidProperties[] = "'currency_code' can't be null"; } - if ($this->container['amount'] === null) { + if (null === $this->container['amount']) { $invalidProperties[] = "'amount' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets currency_code + * Gets currency_code. * * @return string */ @@ -221,9 +207,9 @@ public function getCurrencyCode() } /** - * Sets currency_code + * Sets currency_code. * - * @param string $currency_code Three-digit currency code in ISO 4217 format. + * @param string $currency_code three-digit currency code in ISO 4217 format * * @return $this */ @@ -235,9 +221,9 @@ public function setCurrencyCode($currency_code) } /** - * Gets amount + * Gets amount. * - * @return double + * @return float */ public function getAmount() { @@ -245,9 +231,9 @@ public function getAmount() } /** - * Sets amount + * Sets amount. * - * @param double $amount The currency amount. + * @param float $amount the currency amount * * @return $this */ @@ -257,12 +243,13 @@ public function setAmount($amount) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -272,7 +259,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -284,8 +271,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -301,7 +288,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -311,7 +298,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/CustomTextForLabel.php b/lib/Models/MerchantFulfillment/CustomTextForLabel.php index cc31ad4c..b6490e59 100644 --- a/lib/Models/MerchantFulfillment/CustomTextForLabel.php +++ b/lib/Models/MerchantFulfillment/CustomTextForLabel.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/DeliveryExperienceOption.php b/lib/Models/MerchantFulfillment/DeliveryExperienceOption.php index 7d0ffc65..6ec913ed 100644 --- a/lib/Models/MerchantFulfillment/DeliveryExperienceOption.php +++ b/lib/Models/MerchantFulfillment/DeliveryExperienceOption.php @@ -1,56 +1,44 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/EmailAddress.php b/lib/Models/MerchantFulfillment/EmailAddress.php index 9540db2a..2bafb751 100644 --- a/lib/Models/MerchantFulfillment/EmailAddress.php +++ b/lib/Models/MerchantFulfillment/EmailAddress.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/Error.php b/lib/Models/MerchantFulfillment/Error.php index c431cba3..c61db5ba 100644 --- a/lib/Models/MerchantFulfillment/Error.php +++ b/lib/Models/MerchantFulfillment/Error.php @@ -1,79 +1,67 @@ 'string', 'message' => 'string', -'details' => 'string' ]; +'details' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'code' => null, 'message' => null, -'details' => null ]; +'details' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'code' => 'code', 'message' => 'message', -'details' => 'details' ]; +'details' => 'details', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'code' => 'setCode', 'message' => 'setMessage', -'details' => 'setDetails' ]; +'details' => 'setDetails', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'code' => 'getCode', 'message' => 'getMessage', -'details' => 'getDetails' ]; +'details' => 'getDetails', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -195,29 +181,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -227,9 +213,9 @@ public function getCode() } /** - * Sets code + * Sets code. * - * @param string $code An error code that identifies the type of error that occured. + * @param string $code an error code that identifies the type of error that occured * * @return $this */ @@ -241,7 +227,7 @@ public function setCode($code) } /** - * Gets message + * Gets message. * * @return string */ @@ -251,9 +237,9 @@ public function getMessage() } /** - * Sets message + * 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 in a human-readable form * * @return $this */ @@ -265,7 +251,7 @@ public function setMessage($message) } /** - * Gets details + * Gets details. * * @return string */ @@ -275,9 +261,9 @@ public function getDetails() } /** - * Sets details + * Sets details. * - * @param string $details Additional details that can help the caller understand or fix the issue. + * @param string $details additional details that can help the caller understand or fix the issue * * @return $this */ @@ -287,12 +273,13 @@ public function setDetails($details) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -302,7 +289,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -314,8 +301,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -331,7 +318,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -341,7 +328,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ErrorList.php b/lib/Models/MerchantFulfillment/ErrorList.php index 052dfe39..2b8e3e6e 100644 --- a/lib/Models/MerchantFulfillment/ErrorList.php +++ b/lib/Models/MerchantFulfillment/ErrorList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return Error::class; } } diff --git a/lib/Models/MerchantFulfillment/FileContents.php b/lib/Models/MerchantFulfillment/FileContents.php index 75b12ddf..1d25e52a 100644 --- a/lib/Models/MerchantFulfillment/FileContents.php +++ b/lib/Models/MerchantFulfillment/FileContents.php @@ -1,79 +1,67 @@ 'string', 'file_type' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileType', -'checksum' => 'string' ]; +'checksum' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'contents' => null, 'file_type' => null, -'checksum' => null ]; +'checksum' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'contents' => 'Contents', 'file_type' => 'FileType', -'checksum' => 'Checksum' ]; +'checksum' => 'Checksum', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'contents' => 'setContents', 'file_type' => 'setFileType', -'checksum' => 'setChecksum' ]; +'checksum' => 'setChecksum', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'contents' => 'getContents', 'file_type' => 'getFileType', -'checksum' => 'getChecksum' ]; +'checksum' => 'getChecksum', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -195,32 +181,32 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['contents'] === null) { + if (null === $this->container['contents']) { $invalidProperties[] = "'contents' can't be null"; } - if ($this->container['file_type'] === null) { + if (null === $this->container['file_type']) { $invalidProperties[] = "'file_type' can't be null"; } - if ($this->container['checksum'] === null) { + if (null === $this->container['checksum']) { $invalidProperties[] = "'checksum' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets contents + * Gets contents. * * @return string */ @@ -230,9 +216,9 @@ public function getContents() } /** - * Sets contents + * Sets contents. * - * @param string $contents Data for printing labels, in the form of a Base64-encoded, GZip-compressed string. + * @param string $contents data for printing labels, in the form of a Base64-encoded, GZip-compressed string * * @return $this */ @@ -244,7 +230,7 @@ public function setContents($contents) } /** - * Gets file_type + * Gets file_type. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileType */ @@ -254,7 +240,7 @@ public function getFileType() } /** - * Sets file_type + * Sets file_type. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileType $file_type file_type * @@ -268,7 +254,7 @@ public function setFileType($file_type) } /** - * Gets checksum + * Gets checksum. * * @return string */ @@ -278,9 +264,9 @@ public function getChecksum() } /** - * Sets checksum + * Sets checksum. * - * @param string $checksum An MD5 hash to validate the PDF document data, in the form of a Base64-encoded string. + * @param string $checksum an MD5 hash to validate the PDF document data, in the form of a Base64-encoded string * * @return $this */ @@ -290,12 +276,13 @@ public function setChecksum($checksum) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -305,7 +292,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -317,8 +304,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -334,7 +321,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -344,7 +331,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/FileType.php b/lib/Models/MerchantFulfillment/FileType.php index 020fd40f..6ee769df 100644 --- a/lib/Models/MerchantFulfillment/FileType.php +++ b/lib/Models/MerchantFulfillment/FileType.php @@ -1,54 +1,42 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier', 'ship_from_address' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address', -'order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId' ]; +'order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'shipping_service_id' => null, 'ship_from_address' => null, -'order_id' => null ]; +'order_id' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'shipping_service_id' => 'ShippingServiceId', 'ship_from_address' => 'ShipFromAddress', -'order_id' => 'OrderId' ]; +'order_id' => 'OrderId', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'shipping_service_id' => 'setShippingServiceId', 'ship_from_address' => 'setShipFromAddress', -'order_id' => 'setOrderId' ]; +'order_id' => 'setOrderId', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'shipping_service_id' => 'getShippingServiceId', 'ship_from_address' => 'getShipFromAddress', -'order_id' => 'getOrderId' ]; +'order_id' => 'getOrderId', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -195,32 +181,32 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['shipping_service_id'] === null) { + if (null === $this->container['shipping_service_id']) { $invalidProperties[] = "'shipping_service_id' can't be null"; } - if ($this->container['ship_from_address'] === null) { + if (null === $this->container['ship_from_address']) { $invalidProperties[] = "'ship_from_address' can't be null"; } - if ($this->container['order_id'] === null) { + if (null === $this->container['order_id']) { $invalidProperties[] = "'order_id' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets shipping_service_id + * Gets shipping_service_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier */ @@ -230,7 +216,7 @@ public function getShippingServiceId() } /** - * Sets shipping_service_id + * Sets shipping_service_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier $shipping_service_id shipping_service_id * @@ -244,7 +230,7 @@ public function setShippingServiceId($shipping_service_id) } /** - * Gets ship_from_address + * Gets ship_from_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address */ @@ -254,7 +240,7 @@ public function getShipFromAddress() } /** - * Sets ship_from_address + * Sets ship_from_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $ship_from_address ship_from_address * @@ -268,7 +254,7 @@ public function setShipFromAddress($ship_from_address) } /** - * Gets order_id + * Gets order_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId */ @@ -278,7 +264,7 @@ public function getOrderId() } /** - * Sets order_id + * Sets order_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId $order_id order_id * @@ -290,12 +276,13 @@ public function setOrderId($order_id) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -305,7 +292,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -317,8 +304,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -334,7 +321,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -344,7 +331,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResponse.php b/lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResponse.php index 2080809a..015f6487 100644 --- a/lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResponse.php +++ b/lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetAdditionalSellerInputsResult', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetAdditionalSellerInputsResult */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetAdditionalSellerInputsResult $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResult.php b/lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResult.php index c2e5cc6d..f82b822e 100644 --- a/lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResult.php +++ b/lib/Models/MerchantFulfillment/GetAdditionalSellerInputsResult.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList', -'item_level_fields_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemLevelFieldsList' ]; +'item_level_fields_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemLevelFieldsList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'shipment_level_fields' => null, -'item_level_fields_list' => null ]; +'item_level_fields_list' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'shipment_level_fields' => 'ShipmentLevelFields', -'item_level_fields_list' => 'ItemLevelFieldsList' ]; +'item_level_fields_list' => 'ItemLevelFieldsList', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'shipment_level_fields' => 'setShipmentLevelFields', -'item_level_fields_list' => 'setItemLevelFieldsList' ]; +'item_level_fields_list' => 'setItemLevelFieldsList', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'shipment_level_fields' => 'getShipmentLevelFields', -'item_level_fields_list' => 'getItemLevelFieldsList' ]; +'item_level_fields_list' => 'getItemLevelFieldsList', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets shipment_level_fields + * Gets shipment_level_fields. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList */ @@ -215,7 +200,7 @@ public function getShipmentLevelFields() } /** - * Sets shipment_level_fields + * Sets shipment_level_fields. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList $shipment_level_fields shipment_level_fields * @@ -229,7 +214,7 @@ public function setShipmentLevelFields($shipment_level_fields) } /** - * Gets item_level_fields_list + * Gets item_level_fields_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemLevelFieldsList */ @@ -239,7 +224,7 @@ public function getItemLevelFieldsList() } /** - * Sets item_level_fields_list + * Sets item_level_fields_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemLevelFieldsList $item_level_fields_list item_level_fields_list * @@ -251,12 +236,13 @@ public function setItemLevelFieldsList($item_level_fields_list) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesRequest.php b/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesRequest.php index f2391c72..0869643f 100644 --- a/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesRequest.php +++ b/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesRequest.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails', -'shipping_offering_filter' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingOfferingFilter' ]; +'shipping_offering_filter' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingOfferingFilter', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'shipment_request_details' => null, -'shipping_offering_filter' => null ]; +'shipping_offering_filter' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'shipment_request_details' => 'ShipmentRequestDetails', -'shipping_offering_filter' => 'ShippingOfferingFilter' ]; +'shipping_offering_filter' => 'ShippingOfferingFilter', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'shipment_request_details' => 'setShipmentRequestDetails', -'shipping_offering_filter' => 'setShippingOfferingFilter' ]; +'shipping_offering_filter' => 'setShippingOfferingFilter', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'shipment_request_details' => 'getShipmentRequestDetails', -'shipping_offering_filter' => 'getShippingOfferingFilter' ]; +'shipping_offering_filter' => 'getShippingOfferingFilter', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -189,26 +175,26 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['shipment_request_details'] === null) { + if (null === $this->container['shipment_request_details']) { $invalidProperties[] = "'shipment_request_details' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets shipment_request_details + * Gets shipment_request_details. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails */ @@ -218,7 +204,7 @@ public function getShipmentRequestDetails() } /** - * Sets shipment_request_details + * Sets shipment_request_details. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentRequestDetails $shipment_request_details shipment_request_details * @@ -232,7 +218,7 @@ public function setShipmentRequestDetails($shipment_request_details) } /** - * Gets shipping_offering_filter + * Gets shipping_offering_filter. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingOfferingFilter */ @@ -242,7 +228,7 @@ public function getShippingOfferingFilter() } /** - * Sets shipping_offering_filter + * Sets shipping_offering_filter. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingOfferingFilter $shipping_offering_filter shipping_offering_filter * @@ -254,12 +240,13 @@ public function setShippingOfferingFilter($shipping_offering_filter) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -269,7 +256,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -281,8 +268,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -298,7 +285,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -308,7 +295,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResponse.php b/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResponse.php index fa94aa6d..5565a2ed 100644 --- a/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResponse.php +++ b/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetEligibleShipmentServicesResult', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetEligibleShipmentServicesResult */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\GetEligibleShipmentServicesResult $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResult.php b/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResult.php index 1e54efa6..01344d61 100644 --- a/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResult.php +++ b/lib/Models/MerchantFulfillment/GetEligibleShipmentServicesResult.php @@ -1,81 +1,69 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceList', 'rejected_shipping_service_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RejectedShippingServiceList', 'temporarily_unavailable_carrier_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TemporarilyUnavailableCarrierList', -'terms_and_conditions_not_accepted_carrier_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TermsAndConditionsNotAcceptedCarrierList' ]; +'terms_and_conditions_not_accepted_carrier_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TermsAndConditionsNotAcceptedCarrierList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'shipping_service_list' => null, 'rejected_shipping_service_list' => null, 'temporarily_unavailable_carrier_list' => null, -'terms_and_conditions_not_accepted_carrier_list' => null ]; +'terms_and_conditions_not_accepted_carrier_list' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -85,7 +73,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -96,7 +84,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -104,10 +92,10 @@ public static function swaggerFormats() 'shipping_service_list' => 'ShippingServiceList', 'rejected_shipping_service_list' => 'RejectedShippingServiceList', 'temporarily_unavailable_carrier_list' => 'TemporarilyUnavailableCarrierList', -'terms_and_conditions_not_accepted_carrier_list' => 'TermsAndConditionsNotAcceptedCarrierList' ]; +'terms_and_conditions_not_accepted_carrier_list' => 'TermsAndConditionsNotAcceptedCarrierList', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -115,10 +103,10 @@ public static function swaggerFormats() 'shipping_service_list' => 'setShippingServiceList', 'rejected_shipping_service_list' => 'setRejectedShippingServiceList', 'temporarily_unavailable_carrier_list' => 'setTemporarilyUnavailableCarrierList', -'terms_and_conditions_not_accepted_carrier_list' => 'setTermsAndConditionsNotAcceptedCarrierList' ]; +'terms_and_conditions_not_accepted_carrier_list' => 'setTermsAndConditionsNotAcceptedCarrierList', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -126,11 +114,11 @@ public static function swaggerFormats() 'shipping_service_list' => 'getShippingServiceList', 'rejected_shipping_service_list' => 'getRejectedShippingServiceList', 'temporarily_unavailable_carrier_list' => 'getTemporarilyUnavailableCarrierList', -'terms_and_conditions_not_accepted_carrier_list' => 'getTermsAndConditionsNotAcceptedCarrierList' ]; +'terms_and_conditions_not_accepted_carrier_list' => 'getTermsAndConditionsNotAcceptedCarrierList', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -140,7 +128,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -150,7 +138,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -169,17 +157,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -201,26 +187,26 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['shipping_service_list'] === null) { + if (null === $this->container['shipping_service_list']) { $invalidProperties[] = "'shipping_service_list' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets shipping_service_list + * Gets shipping_service_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceList */ @@ -230,7 +216,7 @@ public function getShippingServiceList() } /** - * Sets shipping_service_list + * Sets shipping_service_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceList $shipping_service_list shipping_service_list * @@ -244,7 +230,7 @@ public function setShippingServiceList($shipping_service_list) } /** - * Gets rejected_shipping_service_list + * Gets rejected_shipping_service_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RejectedShippingServiceList */ @@ -254,7 +240,7 @@ public function getRejectedShippingServiceList() } /** - * Sets rejected_shipping_service_list + * Sets rejected_shipping_service_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RejectedShippingServiceList $rejected_shipping_service_list rejected_shipping_service_list * @@ -268,7 +254,7 @@ public function setRejectedShippingServiceList($rejected_shipping_service_list) } /** - * Gets temporarily_unavailable_carrier_list + * Gets temporarily_unavailable_carrier_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TemporarilyUnavailableCarrierList */ @@ -278,7 +264,7 @@ public function getTemporarilyUnavailableCarrierList() } /** - * Sets temporarily_unavailable_carrier_list + * Sets temporarily_unavailable_carrier_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TemporarilyUnavailableCarrierList $temporarily_unavailable_carrier_list temporarily_unavailable_carrier_list * @@ -292,7 +278,7 @@ public function setTemporarilyUnavailableCarrierList($temporarily_unavailable_ca } /** - * Gets terms_and_conditions_not_accepted_carrier_list + * Gets terms_and_conditions_not_accepted_carrier_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TermsAndConditionsNotAcceptedCarrierList */ @@ -302,7 +288,7 @@ public function getTermsAndConditionsNotAcceptedCarrierList() } /** - * Sets terms_and_conditions_not_accepted_carrier_list + * Sets terms_and_conditions_not_accepted_carrier_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TermsAndConditionsNotAcceptedCarrierList $terms_and_conditions_not_accepted_carrier_list terms_and_conditions_not_accepted_carrier_list * @@ -314,12 +300,13 @@ public function setTermsAndConditionsNotAcceptedCarrierList($terms_and_condition return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -329,7 +316,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -341,8 +328,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -358,7 +345,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -368,7 +355,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/GetShipmentResponse.php b/lib/Models/MerchantFulfillment/GetShipmentResponse.php index f4271604..d8451f60 100644 --- a/lib/Models/MerchantFulfillment/GetShipmentResponse.php +++ b/lib/Models/MerchantFulfillment/GetShipmentResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Shipment $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/HazmatType.php b/lib/Models/MerchantFulfillment/HazmatType.php index a16c93ad..2afe1910 100644 --- a/lib/Models/MerchantFulfillment/HazmatType.php +++ b/lib/Models/MerchantFulfillment/HazmatType.php @@ -1,53 +1,41 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\OrderItemId', 'quantity' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemQuantity', 'item_weight' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight', 'item_description' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemDescription', 'transparency_code_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TransparencyCodeList', -'item_level_seller_inputs_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList' ]; +'item_level_seller_inputs_list' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'order_item_id' => null, 'quantity' => null, 'item_weight' => null, 'item_description' => null, 'transparency_code_list' => null, -'item_level_seller_inputs_list' => null ]; +'item_level_seller_inputs_list' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -89,7 +77,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -100,7 +88,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -110,10 +98,10 @@ public static function swaggerFormats() 'item_weight' => 'ItemWeight', 'item_description' => 'ItemDescription', 'transparency_code_list' => 'TransparencyCodeList', -'item_level_seller_inputs_list' => 'ItemLevelSellerInputsList' ]; +'item_level_seller_inputs_list' => 'ItemLevelSellerInputsList', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -123,10 +111,10 @@ public static function swaggerFormats() 'item_weight' => 'setItemWeight', 'item_description' => 'setItemDescription', 'transparency_code_list' => 'setTransparencyCodeList', -'item_level_seller_inputs_list' => 'setItemLevelSellerInputsList' ]; +'item_level_seller_inputs_list' => 'setItemLevelSellerInputsList', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -136,11 +124,11 @@ public static function swaggerFormats() 'item_weight' => 'getItemWeight', 'item_description' => 'getItemDescription', 'transparency_code_list' => 'getTransparencyCodeList', -'item_level_seller_inputs_list' => 'getItemLevelSellerInputsList' ]; +'item_level_seller_inputs_list' => 'getItemLevelSellerInputsList', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -150,7 +138,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -160,7 +148,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -179,17 +167,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -213,29 +199,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['order_item_id'] === null) { + if (null === $this->container['order_item_id']) { $invalidProperties[] = "'order_item_id' can't be null"; } - if ($this->container['quantity'] === null) { + if (null === $this->container['quantity']) { $invalidProperties[] = "'quantity' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets order_item_id + * Gets order_item_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\OrderItemId */ @@ -245,7 +231,7 @@ public function getOrderItemId() } /** - * Sets order_item_id + * Sets order_item_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\OrderItemId $order_item_id order_item_id * @@ -259,7 +245,7 @@ public function setOrderItemId($order_item_id) } /** - * Gets quantity + * Gets quantity. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemQuantity */ @@ -269,7 +255,7 @@ public function getQuantity() } /** - * Sets quantity + * Sets quantity. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemQuantity $quantity quantity * @@ -283,7 +269,7 @@ public function setQuantity($quantity) } /** - * Gets item_weight + * Gets item_weight. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight */ @@ -293,7 +279,7 @@ public function getItemWeight() } /** - * Sets item_weight + * Sets item_weight. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight $item_weight item_weight * @@ -307,7 +293,7 @@ public function setItemWeight($item_weight) } /** - * Gets item_description + * Gets item_description. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemDescription */ @@ -317,7 +303,7 @@ public function getItemDescription() } /** - * Sets item_description + * Sets item_description. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemDescription $item_description item_description * @@ -331,7 +317,7 @@ public function setItemDescription($item_description) } /** - * Gets transparency_code_list + * Gets transparency_code_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TransparencyCodeList */ @@ -341,7 +327,7 @@ public function getTransparencyCodeList() } /** - * Sets transparency_code_list + * Sets transparency_code_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TransparencyCodeList $transparency_code_list transparency_code_list * @@ -355,7 +341,7 @@ public function setTransparencyCodeList($transparency_code_list) } /** - * Gets item_level_seller_inputs_list + * Gets item_level_seller_inputs_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList */ @@ -365,7 +351,7 @@ public function getItemLevelSellerInputsList() } /** - * Sets item_level_seller_inputs_list + * Sets item_level_seller_inputs_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInputsList $item_level_seller_inputs_list item_level_seller_inputs_list * @@ -377,12 +363,13 @@ public function setItemLevelSellerInputsList($item_level_seller_inputs_list) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -392,7 +379,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -404,8 +391,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -421,7 +408,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -431,7 +418,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ItemDescription.php b/lib/Models/MerchantFulfillment/ItemDescription.php index e0f0ceec..65810e50 100644 --- a/lib/Models/MerchantFulfillment/ItemDescription.php +++ b/lib/Models/MerchantFulfillment/ItemDescription.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ItemLevelFields.php b/lib/Models/MerchantFulfillment/ItemLevelFields.php index eb245b61..d8945a53 100644 --- a/lib/Models/MerchantFulfillment/ItemLevelFields.php +++ b/lib/Models/MerchantFulfillment/ItemLevelFields.php @@ -1,76 +1,62 @@ 'string', -'additional_inputs' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList' ]; +'additional_inputs' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'asin' => null, -'additional_inputs' => null ]; +'additional_inputs' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -80,7 +66,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -91,35 +77,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'asin' => 'Asin', -'additional_inputs' => 'AdditionalInputs' ]; +'additional_inputs' => 'AdditionalInputs', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'asin' => 'setAsin', -'additional_inputs' => 'setAdditionalInputs' ]; +'additional_inputs' => 'setAdditionalInputs', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'asin' => 'getAsin', -'additional_inputs' => 'getAdditionalInputs' ]; +'additional_inputs' => 'getAdditionalInputs', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -129,7 +115,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -139,7 +125,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -158,17 +144,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -188,29 +172,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['asin'] === null) { + if (null === $this->container['asin']) { $invalidProperties[] = "'asin' can't be null"; } - if ($this->container['additional_inputs'] === null) { + if (null === $this->container['additional_inputs']) { $invalidProperties[] = "'additional_inputs' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets asin + * Gets asin. * * @return string */ @@ -220,9 +204,9 @@ public function getAsin() } /** - * Sets asin + * Sets asin. * - * @param string $asin The Amazon Standard Identification Number (ASIN) of the item. + * @param string $asin the Amazon Standard Identification Number (ASIN) of the item * * @return $this */ @@ -234,7 +218,7 @@ public function setAsin($asin) } /** - * Gets additional_inputs + * Gets additional_inputs. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList */ @@ -244,7 +228,7 @@ public function getAdditionalInputs() } /** - * Sets additional_inputs + * Sets additional_inputs. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalInputsList $additional_inputs additional_inputs * @@ -256,12 +240,13 @@ public function setAdditionalInputs($additional_inputs) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -271,7 +256,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -283,8 +268,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -300,7 +285,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -310,7 +295,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ItemLevelFieldsList.php b/lib/Models/MerchantFulfillment/ItemLevelFieldsList.php index ef68b953..5d647182 100644 --- a/lib/Models/MerchantFulfillment/ItemLevelFieldsList.php +++ b/lib/Models/MerchantFulfillment/ItemLevelFieldsList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return ItemLevelFields::class; } } diff --git a/lib/Models/MerchantFulfillment/ItemList.php b/lib/Models/MerchantFulfillment/ItemList.php index bf8618ed..7505b0ca 100644 --- a/lib/Models/MerchantFulfillment/ItemList.php +++ b/lib/Models/MerchantFulfillment/ItemList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return Item::class; } } diff --git a/lib/Models/MerchantFulfillment/ItemQuantity.php b/lib/Models/MerchantFulfillment/ItemQuantity.php index b64c4f98..f35d308b 100644 --- a/lib/Models/MerchantFulfillment/ItemQuantity.php +++ b/lib/Models/MerchantFulfillment/ItemQuantity.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/Label.php b/lib/Models/MerchantFulfillment/Label.php index 926dee10..950b3aed 100644 --- a/lib/Models/MerchantFulfillment/Label.php +++ b/lib/Models/MerchantFulfillment/Label.php @@ -1,83 +1,71 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel', 'dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimensions', 'file_contents' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileContents', 'label_format' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat', -'standard_id_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel' ]; +'standard_id_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'custom_text_for_label' => null, 'dimensions' => null, 'file_contents' => null, 'label_format' => null, -'standard_id_for_label' => null ]; +'standard_id_for_label' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -87,7 +75,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -98,7 +86,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -107,10 +95,10 @@ public static function swaggerFormats() 'dimensions' => 'Dimensions', 'file_contents' => 'FileContents', 'label_format' => 'LabelFormat', -'standard_id_for_label' => 'StandardIdForLabel' ]; +'standard_id_for_label' => 'StandardIdForLabel', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -119,10 +107,10 @@ public static function swaggerFormats() 'dimensions' => 'setDimensions', 'file_contents' => 'setFileContents', 'label_format' => 'setLabelFormat', -'standard_id_for_label' => 'setStandardIdForLabel' ]; +'standard_id_for_label' => 'setStandardIdForLabel', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -131,11 +119,11 @@ public static function swaggerFormats() 'dimensions' => 'getDimensions', 'file_contents' => 'getFileContents', 'label_format' => 'getLabelFormat', -'standard_id_for_label' => 'getStandardIdForLabel' ]; +'standard_id_for_label' => 'getStandardIdForLabel', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -145,7 +133,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -155,7 +143,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -174,17 +162,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -207,29 +193,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['dimensions'] === null) { + if (null === $this->container['dimensions']) { $invalidProperties[] = "'dimensions' can't be null"; } - if ($this->container['file_contents'] === null) { + if (null === $this->container['file_contents']) { $invalidProperties[] = "'file_contents' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets custom_text_for_label + * Gets custom_text_for_label. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel */ @@ -239,7 +225,7 @@ public function getCustomTextForLabel() } /** - * Sets custom_text_for_label + * Sets custom_text_for_label. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel $custom_text_for_label custom_text_for_label * @@ -253,7 +239,7 @@ public function setCustomTextForLabel($custom_text_for_label) } /** - * Gets dimensions + * Gets dimensions. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimensions */ @@ -263,7 +249,7 @@ public function getDimensions() } /** - * Sets dimensions + * Sets dimensions. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimensions $dimensions dimensions * @@ -277,7 +263,7 @@ public function setDimensions($dimensions) } /** - * Gets file_contents + * Gets file_contents. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileContents */ @@ -287,7 +273,7 @@ public function getFileContents() } /** - * Sets file_contents + * Sets file_contents. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\FileContents $file_contents file_contents * @@ -301,7 +287,7 @@ public function setFileContents($file_contents) } /** - * Gets label_format + * Gets label_format. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat */ @@ -311,7 +297,7 @@ public function getLabelFormat() } /** - * Sets label_format + * Sets label_format. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat $label_format label_format * @@ -325,7 +311,7 @@ public function setLabelFormat($label_format) } /** - * Gets standard_id_for_label + * Gets standard_id_for_label. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel */ @@ -335,7 +321,7 @@ public function getStandardIdForLabel() } /** - * Sets standard_id_for_label + * Sets standard_id_for_label. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel $standard_id_for_label standard_id_for_label * @@ -347,12 +333,13 @@ public function setStandardIdForLabel($standard_id_for_label) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -362,7 +349,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -374,8 +361,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -391,7 +378,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -401,7 +388,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/LabelCustomization.php b/lib/Models/MerchantFulfillment/LabelCustomization.php index 2f2e9334..a20a743b 100644 --- a/lib/Models/MerchantFulfillment/LabelCustomization.php +++ b/lib/Models/MerchantFulfillment/LabelCustomization.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel', -'standard_id_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel' ]; +'standard_id_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'custom_text_for_label' => null, -'standard_id_for_label' => null ]; +'standard_id_for_label' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'custom_text_for_label' => 'CustomTextForLabel', -'standard_id_for_label' => 'StandardIdForLabel' ]; +'standard_id_for_label' => 'StandardIdForLabel', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'custom_text_for_label' => 'setCustomTextForLabel', -'standard_id_for_label' => 'setStandardIdForLabel' ]; +'standard_id_for_label' => 'setStandardIdForLabel', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'custom_text_for_label' => 'getCustomTextForLabel', -'standard_id_for_label' => 'getStandardIdForLabel' ]; +'standard_id_for_label' => 'getStandardIdForLabel', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets custom_text_for_label + * Gets custom_text_for_label. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel */ @@ -215,7 +200,7 @@ public function getCustomTextForLabel() } /** - * Sets custom_text_for_label + * Sets custom_text_for_label. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CustomTextForLabel $custom_text_for_label custom_text_for_label * @@ -229,7 +214,7 @@ public function setCustomTextForLabel($custom_text_for_label) } /** - * Gets standard_id_for_label + * Gets standard_id_for_label. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel */ @@ -239,7 +224,7 @@ public function getStandardIdForLabel() } /** - * Sets standard_id_for_label + * Sets standard_id_for_label. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\StandardIdForLabel $standard_id_for_label standard_id_for_label * @@ -251,12 +236,13 @@ public function setStandardIdForLabel($standard_id_for_label) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/LabelDimension.php b/lib/Models/MerchantFulfillment/LabelDimension.php index 583edb15..baef1f68 100644 --- a/lib/Models/MerchantFulfillment/LabelDimension.php +++ b/lib/Models/MerchantFulfillment/LabelDimension.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/LabelDimensions.php b/lib/Models/MerchantFulfillment/LabelDimensions.php index e080a535..198cb1e2 100644 --- a/lib/Models/MerchantFulfillment/LabelDimensions.php +++ b/lib/Models/MerchantFulfillment/LabelDimensions.php @@ -1,79 +1,67 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension', 'width' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension', -'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength' ]; +'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'length' => null, 'width' => null, -'unit' => null ]; +'unit' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'length' => 'Length', 'width' => 'Width', -'unit' => 'Unit' ]; +'unit' => 'Unit', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'length' => 'setLength', 'width' => 'setWidth', -'unit' => 'setUnit' ]; +'unit' => 'setUnit', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'length' => 'getLength', 'width' => 'getWidth', -'unit' => 'getUnit' ]; +'unit' => 'getUnit', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -195,32 +181,32 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['length'] === null) { + if (null === $this->container['length']) { $invalidProperties[] = "'length' can't be null"; } - if ($this->container['width'] === null) { + if (null === $this->container['width']) { $invalidProperties[] = "'width' can't be null"; } - if ($this->container['unit'] === null) { + if (null === $this->container['unit']) { $invalidProperties[] = "'unit' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets length + * Gets length. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension */ @@ -230,7 +216,7 @@ public function getLength() } /** - * Sets length + * Sets length. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension $length length * @@ -244,7 +230,7 @@ public function setLength($length) } /** - * Gets width + * Gets width. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension */ @@ -254,7 +240,7 @@ public function getWidth() } /** - * Sets width + * Sets width. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelDimension $width width * @@ -268,7 +254,7 @@ public function setWidth($width) } /** - * Gets unit + * Gets unit. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength */ @@ -278,7 +264,7 @@ public function getUnit() } /** - * Sets unit + * Sets unit. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength $unit unit * @@ -290,12 +276,13 @@ public function setUnit($unit) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -305,7 +292,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -317,8 +304,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -334,7 +321,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -344,7 +331,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/LabelFormat.php b/lib/Models/MerchantFulfillment/LabelFormat.php index db2d7a9c..a29ba6b7 100644 --- a/lib/Models/MerchantFulfillment/LabelFormat.php +++ b/lib/Models/MerchantFulfillment/LabelFormat.php @@ -1,56 +1,44 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return LabelFormat::class; } } diff --git a/lib/Models/MerchantFulfillment/LabelFormatOption.php b/lib/Models/MerchantFulfillment/LabelFormatOption.php index 6881fbf9..932cd7ba 100644 --- a/lib/Models/MerchantFulfillment/LabelFormatOption.php +++ b/lib/Models/MerchantFulfillment/LabelFormatOption.php @@ -1,77 +1,65 @@ 'bool', -'label_format' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat' ]; +'label_format' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'include_packing_slip_with_label' => null, -'label_format' => null ]; +'label_format' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel', -'label_format' => 'LabelFormat' ]; +'label_format' => 'LabelFormat', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel', -'label_format' => 'setLabelFormat' ]; +'label_format' => 'setLabelFormat', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel', -'label_format' => 'getLabelFormat' ]; +'label_format' => 'getLabelFormat', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets include_packing_slip_with_label + * Gets include_packing_slip_with_label. * * @return bool */ @@ -215,9 +200,9 @@ public function getIncludePackingSlipWithLabel() } /** - * Sets include_packing_slip_with_label + * Sets include_packing_slip_with_label. * - * @param bool $include_packing_slip_with_label When true, include a packing slip with the label. + * @param bool $include_packing_slip_with_label when true, include a packing slip with the label * * @return $this */ @@ -229,7 +214,7 @@ public function setIncludePackingSlipWithLabel($include_packing_slip_with_label) } /** - * Gets label_format + * Gets label_format. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat */ @@ -239,7 +224,7 @@ public function getLabelFormat() } /** - * Sets label_format + * Sets label_format. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat $label_format label_format * @@ -251,12 +236,13 @@ public function setLabelFormat($label_format) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/LabelFormatOptionRequest.php b/lib/Models/MerchantFulfillment/LabelFormatOptionRequest.php index 50bcfc26..c82890e9 100644 --- a/lib/Models/MerchantFulfillment/LabelFormatOptionRequest.php +++ b/lib/Models/MerchantFulfillment/LabelFormatOptionRequest.php @@ -1,75 +1,63 @@ 'bool' ]; + 'include_packing_slip_with_label' => 'bool', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ - 'include_packing_slip_with_label' => null ]; + 'include_packing_slip_with_label' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -79,7 +67,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -90,32 +78,32 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ - 'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel' ]; + 'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ - 'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel' ]; + 'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ - 'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel' ]; + 'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -125,7 +113,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -135,7 +123,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -154,17 +142,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -188,18 +174,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets include_packing_slip_with_label + * Gets include_packing_slip_with_label. * * @return bool */ @@ -209,9 +194,9 @@ public function getIncludePackingSlipWithLabel() } /** - * Sets include_packing_slip_with_label + * Sets include_packing_slip_with_label. * - * @param bool $include_packing_slip_with_label When true, include a packing slip with the label. + * @param bool $include_packing_slip_with_label when true, include a packing slip with the label * * @return $this */ @@ -221,12 +206,13 @@ public function setIncludePackingSlipWithLabel($include_packing_slip_with_label) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -236,7 +222,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -248,8 +234,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -265,7 +251,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -275,7 +261,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/Length.php b/lib/Models/MerchantFulfillment/Length.php index 01dd48aa..802a81fd 100644 --- a/lib/Models/MerchantFulfillment/Length.php +++ b/lib/Models/MerchantFulfillment/Length.php @@ -1,77 +1,65 @@ 'float', -'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength' ]; +'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'value' => null, -'unit' => null ]; +'unit' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'value' => 'value', -'unit' => 'unit' ]; +'unit' => 'unit', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'value' => 'setValue', -'unit' => 'setUnit' ]; +'unit' => 'setUnit', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'value' => 'getValue', -'unit' => 'getUnit' ]; +'unit' => 'getUnit', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets value + * Gets value. * * @return float */ @@ -215,9 +200,9 @@ public function getValue() } /** - * Sets value + * Sets value. * - * @param float $value The value in units. + * @param float $value the value in units * * @return $this */ @@ -229,7 +214,7 @@ public function setValue($value) } /** - * Gets unit + * Gets unit. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength */ @@ -239,7 +224,7 @@ public function getUnit() } /** - * Sets unit + * Sets unit. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength $unit unit * @@ -251,12 +236,13 @@ public function setUnit($unit) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/OrderItemId.php b/lib/Models/MerchantFulfillment/OrderItemId.php index ba046e81..c83c231a 100644 --- a/lib/Models/MerchantFulfillment/OrderItemId.php +++ b/lib/Models/MerchantFulfillment/OrderItemId.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/PackageDimension.php b/lib/Models/MerchantFulfillment/PackageDimension.php index 4a879aab..33e786f4 100644 --- a/lib/Models/MerchantFulfillment/PackageDimension.php +++ b/lib/Models/MerchantFulfillment/PackageDimension.php @@ -1,74 +1,60 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -210,7 +194,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -222,8 +206,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -239,7 +223,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -249,7 +233,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/PackageDimensions.php b/lib/Models/MerchantFulfillment/PackageDimensions.php index 963ce29c..edd027d6 100644 --- a/lib/Models/MerchantFulfillment/PackageDimensions.php +++ b/lib/Models/MerchantFulfillment/PackageDimensions.php @@ -1,83 +1,71 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension', 'width' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension', 'height' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension', 'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength', -'predefined_package_dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PredefinedPackageDimensions' ]; +'predefined_package_dimensions' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PredefinedPackageDimensions', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'length' => null, 'width' => null, 'height' => null, 'unit' => null, -'predefined_package_dimensions' => null ]; +'predefined_package_dimensions' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -87,7 +75,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -98,7 +86,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -107,10 +95,10 @@ public static function swaggerFormats() 'width' => 'Width', 'height' => 'Height', 'unit' => 'Unit', -'predefined_package_dimensions' => 'PredefinedPackageDimensions' ]; +'predefined_package_dimensions' => 'PredefinedPackageDimensions', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -119,10 +107,10 @@ public static function swaggerFormats() 'width' => 'setWidth', 'height' => 'setHeight', 'unit' => 'setUnit', -'predefined_package_dimensions' => 'setPredefinedPackageDimensions' ]; +'predefined_package_dimensions' => 'setPredefinedPackageDimensions', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -131,11 +119,11 @@ public static function swaggerFormats() 'width' => 'getWidth', 'height' => 'getHeight', 'unit' => 'getUnit', -'predefined_package_dimensions' => 'getPredefinedPackageDimensions' ]; +'predefined_package_dimensions' => 'getPredefinedPackageDimensions', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -145,7 +133,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -155,7 +143,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -174,17 +162,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -212,18 +198,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets length + * Gets length. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension */ @@ -233,7 +218,7 @@ public function getLength() } /** - * Sets length + * Sets length. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension $length length * @@ -247,7 +232,7 @@ public function setLength($length) } /** - * Gets width + * Gets width. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension */ @@ -257,7 +242,7 @@ public function getWidth() } /** - * Sets width + * Sets width. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension $width width * @@ -271,7 +256,7 @@ public function setWidth($width) } /** - * Gets height + * Gets height. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension */ @@ -281,7 +266,7 @@ public function getHeight() } /** - * Sets height + * Sets height. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimension $height height * @@ -295,7 +280,7 @@ public function setHeight($height) } /** - * Gets unit + * Gets unit. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength */ @@ -305,7 +290,7 @@ public function getUnit() } /** - * Sets unit + * Sets unit. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfLength $unit unit * @@ -319,7 +304,7 @@ public function setUnit($unit) } /** - * Gets predefined_package_dimensions + * Gets predefined_package_dimensions. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PredefinedPackageDimensions */ @@ -329,7 +314,7 @@ public function getPredefinedPackageDimensions() } /** - * Sets predefined_package_dimensions + * Sets predefined_package_dimensions. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PredefinedPackageDimensions $predefined_package_dimensions predefined_package_dimensions * @@ -341,12 +326,13 @@ public function setPredefinedPackageDimensions($predefined_package_dimensions) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -356,7 +342,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -368,8 +354,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -385,7 +371,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -395,7 +381,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/PhoneNumber.php b/lib/Models/MerchantFulfillment/PhoneNumber.php index e43bab93..478dd3ed 100644 --- a/lib/Models/MerchantFulfillment/PhoneNumber.php +++ b/lib/Models/MerchantFulfillment/PhoneNumber.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/PostalCode.php b/lib/Models/MerchantFulfillment/PostalCode.php index b9c88b90..b31e6d20 100644 --- a/lib/Models/MerchantFulfillment/PostalCode.php +++ b/lib/Models/MerchantFulfillment/PostalCode.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/PredefinedPackageDimensions.php b/lib/Models/MerchantFulfillment/PredefinedPackageDimensions.php index 458dde26..e672c241 100644 --- a/lib/Models/MerchantFulfillment/PredefinedPackageDimensions.php +++ b/lib/Models/MerchantFulfillment/PredefinedPackageDimensions.php @@ -1,101 +1,89 @@ 'string', 'shipping_service_name' => 'string', 'shipping_service_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier', 'rejection_reason_code' => 'string', -'rejection_reason_message' => 'string' ]; +'rejection_reason_message' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'carrier_name' => null, 'shipping_service_name' => null, 'shipping_service_id' => null, 'rejection_reason_code' => null, -'rejection_reason_message' => null ]; +'rejection_reason_message' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -87,7 +75,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -98,7 +86,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -107,10 +95,10 @@ public static function swaggerFormats() 'shipping_service_name' => 'ShippingServiceName', 'shipping_service_id' => 'ShippingServiceId', 'rejection_reason_code' => 'RejectionReasonCode', -'rejection_reason_message' => 'RejectionReasonMessage' ]; +'rejection_reason_message' => 'RejectionReasonMessage', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -119,10 +107,10 @@ public static function swaggerFormats() 'shipping_service_name' => 'setShippingServiceName', 'shipping_service_id' => 'setShippingServiceId', 'rejection_reason_code' => 'setRejectionReasonCode', -'rejection_reason_message' => 'setRejectionReasonMessage' ]; +'rejection_reason_message' => 'setRejectionReasonMessage', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -131,11 +119,11 @@ public static function swaggerFormats() 'shipping_service_name' => 'getShippingServiceName', 'shipping_service_id' => 'getShippingServiceId', 'rejection_reason_code' => 'getRejectionReasonCode', -'rejection_reason_message' => 'getRejectionReasonMessage' ]; +'rejection_reason_message' => 'getRejectionReasonMessage', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -145,7 +133,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -155,7 +143,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -174,17 +162,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -207,35 +193,35 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['carrier_name'] === null) { + if (null === $this->container['carrier_name']) { $invalidProperties[] = "'carrier_name' can't be null"; } - if ($this->container['shipping_service_name'] === null) { + if (null === $this->container['shipping_service_name']) { $invalidProperties[] = "'shipping_service_name' can't be null"; } - if ($this->container['shipping_service_id'] === null) { + if (null === $this->container['shipping_service_id']) { $invalidProperties[] = "'shipping_service_id' can't be null"; } - if ($this->container['rejection_reason_code'] === null) { + if (null === $this->container['rejection_reason_code']) { $invalidProperties[] = "'rejection_reason_code' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets carrier_name + * Gets carrier_name. * * @return string */ @@ -245,7 +231,7 @@ public function getCarrierName() } /** - * Sets carrier_name + * Sets carrier_name. * * @param string $carrier_name The rejected shipping carrier name. e.g. USPS * @@ -259,7 +245,7 @@ public function setCarrierName($carrier_name) } /** - * Gets shipping_service_name + * Gets shipping_service_name. * * @return string */ @@ -269,7 +255,7 @@ public function getShippingServiceName() } /** - * Sets shipping_service_name + * Sets shipping_service_name. * * @param string $shipping_service_name The rejected shipping service localized name. e.g. FedEx Standard Overnight * @@ -283,7 +269,7 @@ public function setShippingServiceName($shipping_service_name) } /** - * Gets shipping_service_id + * Gets shipping_service_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier */ @@ -293,7 +279,7 @@ public function getShippingServiceId() } /** - * Sets shipping_service_id + * Sets shipping_service_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier $shipping_service_id shipping_service_id * @@ -307,7 +293,7 @@ public function setShippingServiceId($shipping_service_id) } /** - * Gets rejection_reason_code + * Gets rejection_reason_code. * * @return string */ @@ -317,7 +303,7 @@ public function getRejectionReasonCode() } /** - * Sets rejection_reason_code + * Sets rejection_reason_code. * * @param string $rejection_reason_code A reason code meant to be consumed programatically. e.g. CARRIER_CANNOT_SHIP_TO_POBOX * @@ -331,7 +317,7 @@ public function setRejectionReasonCode($rejection_reason_code) } /** - * Gets rejection_reason_message + * Gets rejection_reason_message. * * @return string */ @@ -341,9 +327,9 @@ public function getRejectionReasonMessage() } /** - * Sets rejection_reason_message + * Sets rejection_reason_message. * - * @param string $rejection_reason_message A localized human readable description of the rejected reason. + * @param string $rejection_reason_message a localized human readable description of the rejected reason * * @return $this */ @@ -353,12 +339,13 @@ public function setRejectionReasonMessage($rejection_reason_message) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -368,7 +355,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -380,8 +367,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -397,7 +384,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -407,7 +394,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/RejectedShippingServiceList.php b/lib/Models/MerchantFulfillment/RejectedShippingServiceList.php index 162fb557..9e71a0dd 100644 --- a/lib/Models/MerchantFulfillment/RejectedShippingServiceList.php +++ b/lib/Models/MerchantFulfillment/RejectedShippingServiceList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return RejectedShippingService::class; } } diff --git a/lib/Models/MerchantFulfillment/RestrictedSetValues.php b/lib/Models/MerchantFulfillment/RestrictedSetValues.php index b8c7edc1..707d5c41 100644 --- a/lib/Models/MerchantFulfillment/RestrictedSetValues.php +++ b/lib/Models/MerchantFulfillment/RestrictedSetValues.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/SellerInputDefinition.php b/lib/Models/MerchantFulfillment/SellerInputDefinition.php index 5e74c452..7a744b7b 100644 --- a/lib/Models/MerchantFulfillment/SellerInputDefinition.php +++ b/lib/Models/MerchantFulfillment/SellerInputDefinition.php @@ -1,62 +1,50 @@ 'bool', 'data_type' => 'string', @@ -64,13 +52,13 @@ class SellerInputDefinition implements ModelInterface, ArrayAccess 'input_display_text' => 'string', 'input_target' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\InputTargetType', 'stored_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput', -'restricted_set_values' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RestrictedSetValues' ]; +'restricted_set_values' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RestrictedSetValues', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'is_required' => null, 'data_type' => null, @@ -78,10 +66,10 @@ class SellerInputDefinition implements ModelInterface, ArrayAccess 'input_display_text' => null, 'input_target' => null, 'stored_value' => null, -'restricted_set_values' => null ]; +'restricted_set_values' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -91,7 +79,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -102,7 +90,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -113,10 +101,10 @@ public static function swaggerFormats() 'input_display_text' => 'InputDisplayText', 'input_target' => 'InputTarget', 'stored_value' => 'StoredValue', -'restricted_set_values' => 'RestrictedSetValues' ]; +'restricted_set_values' => 'RestrictedSetValues', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -127,10 +115,10 @@ public static function swaggerFormats() 'input_display_text' => 'setInputDisplayText', 'input_target' => 'setInputTarget', 'stored_value' => 'setStoredValue', -'restricted_set_values' => 'setRestrictedSetValues' ]; +'restricted_set_values' => 'setRestrictedSetValues', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -141,11 +129,11 @@ public static function swaggerFormats() 'input_display_text' => 'getInputDisplayText', 'input_target' => 'getInputTarget', 'stored_value' => 'getStoredValue', -'restricted_set_values' => 'getRestrictedSetValues' ]; +'restricted_set_values' => 'getRestrictedSetValues', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -155,7 +143,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -165,7 +153,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -184,17 +172,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -219,38 +205,38 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['is_required'] === null) { + if (null === $this->container['is_required']) { $invalidProperties[] = "'is_required' can't be null"; } - if ($this->container['data_type'] === null) { + if (null === $this->container['data_type']) { $invalidProperties[] = "'data_type' can't be null"; } - if ($this->container['constraints'] === null) { + if (null === $this->container['constraints']) { $invalidProperties[] = "'constraints' can't be null"; } - if ($this->container['input_display_text'] === null) { + if (null === $this->container['input_display_text']) { $invalidProperties[] = "'input_display_text' can't be null"; } - if ($this->container['stored_value'] === null) { + if (null === $this->container['stored_value']) { $invalidProperties[] = "'stored_value' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets is_required + * Gets is_required. * * @return bool */ @@ -260,9 +246,9 @@ public function getIsRequired() } /** - * Sets is_required + * Sets is_required. * - * @param bool $is_required When true, the additional input field is required. + * @param bool $is_required when true, the additional input field is required * * @return $this */ @@ -274,7 +260,7 @@ public function setIsRequired($is_required) } /** - * Gets data_type + * Gets data_type. * * @return string */ @@ -284,9 +270,9 @@ public function getDataType() } /** - * Sets data_type + * Sets data_type. * - * @param string $data_type The data type of the additional input field. + * @param string $data_type the data type of the additional input field * * @return $this */ @@ -298,7 +284,7 @@ public function setDataType($data_type) } /** - * Gets constraints + * Gets constraints. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Constraints */ @@ -308,7 +294,7 @@ public function getConstraints() } /** - * Sets constraints + * Sets constraints. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Constraints $constraints constraints * @@ -322,7 +308,7 @@ public function setConstraints($constraints) } /** - * Gets input_display_text + * Gets input_display_text. * * @return string */ @@ -332,9 +318,9 @@ public function getInputDisplayText() } /** - * Sets input_display_text + * Sets input_display_text. * - * @param string $input_display_text The display text for the additional input field. + * @param string $input_display_text the display text for the additional input field * * @return $this */ @@ -346,7 +332,7 @@ public function setInputDisplayText($input_display_text) } /** - * Gets input_target + * Gets input_target. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\InputTargetType */ @@ -356,7 +342,7 @@ public function getInputTarget() } /** - * Sets input_target + * Sets input_target. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\InputTargetType $input_target input_target * @@ -370,7 +356,7 @@ public function setInputTarget($input_target) } /** - * Gets stored_value + * Gets stored_value. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput */ @@ -380,7 +366,7 @@ public function getStoredValue() } /** - * Sets stored_value + * Sets stored_value. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AdditionalSellerInput $stored_value stored_value * @@ -394,7 +380,7 @@ public function setStoredValue($stored_value) } /** - * Gets restricted_set_values + * Gets restricted_set_values. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RestrictedSetValues */ @@ -404,7 +390,7 @@ public function getRestrictedSetValues() } /** - * Sets restricted_set_values + * Sets restricted_set_values. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\RestrictedSetValues $restricted_set_values restricted_set_values * @@ -416,12 +402,13 @@ public function setRestrictedSetValues($restricted_set_values) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -431,7 +418,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -443,8 +430,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -460,7 +447,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -470,7 +457,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/SellerOrderId.php b/lib/Models/MerchantFulfillment/SellerOrderId.php index 841b1e8e..657a9a6a 100644 --- a/lib/Models/MerchantFulfillment/SellerOrderId.php +++ b/lib/Models/MerchantFulfillment/SellerOrderId.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/Shipment.php b/lib/Models/MerchantFulfillment/Shipment.php index 342a0189..0eaec65b 100644 --- a/lib/Models/MerchantFulfillment/Shipment.php +++ b/lib/Models/MerchantFulfillment/Shipment.php @@ -1,62 +1,50 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentId', 'amazon_order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId', @@ -72,13 +60,13 @@ class Shipment implements ModelInterface, ArrayAccess 'status' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentStatus', 'tracking_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TrackingId', 'created_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp', -'last_updated_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp' ]; +'last_updated_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'shipment_id' => null, 'amazon_order_id' => null, @@ -94,10 +82,10 @@ class Shipment implements ModelInterface, ArrayAccess 'status' => null, 'tracking_id' => null, 'created_date' => null, -'last_updated_date' => null ]; +'last_updated_date' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -107,7 +95,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -118,7 +106,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -137,10 +125,10 @@ public static function swaggerFormats() 'status' => 'Status', 'tracking_id' => 'TrackingId', 'created_date' => 'CreatedDate', -'last_updated_date' => 'LastUpdatedDate' ]; +'last_updated_date' => 'LastUpdatedDate', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -159,10 +147,10 @@ public static function swaggerFormats() 'status' => 'setStatus', 'tracking_id' => 'setTrackingId', 'created_date' => 'setCreatedDate', -'last_updated_date' => 'setLastUpdatedDate' ]; +'last_updated_date' => 'setLastUpdatedDate', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -181,11 +169,11 @@ public static function swaggerFormats() 'status' => 'getStatus', 'tracking_id' => 'getTrackingId', 'created_date' => 'getCreatedDate', -'last_updated_date' => 'getLastUpdatedDate' ]; +'last_updated_date' => 'getLastUpdatedDate', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -195,7 +183,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -205,7 +193,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -224,17 +212,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -267,59 +253,59 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['shipment_id'] === null) { + if (null === $this->container['shipment_id']) { $invalidProperties[] = "'shipment_id' can't be null"; } - if ($this->container['amazon_order_id'] === null) { + if (null === $this->container['amazon_order_id']) { $invalidProperties[] = "'amazon_order_id' can't be null"; } - if ($this->container['item_list'] === null) { + if (null === $this->container['item_list']) { $invalidProperties[] = "'item_list' can't be null"; } - if ($this->container['ship_from_address'] === null) { + if (null === $this->container['ship_from_address']) { $invalidProperties[] = "'ship_from_address' can't be null"; } - if ($this->container['ship_to_address'] === null) { + if (null === $this->container['ship_to_address']) { $invalidProperties[] = "'ship_to_address' can't be null"; } - if ($this->container['package_dimensions'] === null) { + if (null === $this->container['package_dimensions']) { $invalidProperties[] = "'package_dimensions' can't be null"; } - if ($this->container['weight'] === null) { + if (null === $this->container['weight']) { $invalidProperties[] = "'weight' can't be null"; } - if ($this->container['insurance'] === null) { + if (null === $this->container['insurance']) { $invalidProperties[] = "'insurance' can't be null"; } - if ($this->container['shipping_service'] === null) { + if (null === $this->container['shipping_service']) { $invalidProperties[] = "'shipping_service' can't be null"; } - if ($this->container['label'] === null) { + if (null === $this->container['label']) { $invalidProperties[] = "'label' can't be null"; } - if ($this->container['status'] === null) { + if (null === $this->container['status']) { $invalidProperties[] = "'status' can't be null"; } - if ($this->container['created_date'] === null) { + if (null === $this->container['created_date']) { $invalidProperties[] = "'created_date' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets shipment_id + * Gets shipment_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentId */ @@ -329,7 +315,7 @@ public function getShipmentId() } /** - * Sets shipment_id + * Sets shipment_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentId $shipment_id shipment_id * @@ -343,7 +329,7 @@ public function setShipmentId($shipment_id) } /** - * Gets amazon_order_id + * Gets amazon_order_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId */ @@ -353,7 +339,7 @@ public function getAmazonOrderId() } /** - * Sets amazon_order_id + * Sets amazon_order_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId $amazon_order_id amazon_order_id * @@ -367,7 +353,7 @@ public function setAmazonOrderId($amazon_order_id) } /** - * Gets seller_order_id + * Gets seller_order_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId */ @@ -377,7 +363,7 @@ public function getSellerOrderId() } /** - * Sets seller_order_id + * Sets seller_order_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId $seller_order_id seller_order_id * @@ -391,7 +377,7 @@ public function setSellerOrderId($seller_order_id) } /** - * Gets item_list + * Gets item_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList */ @@ -401,7 +387,7 @@ public function getItemList() } /** - * Sets item_list + * Sets item_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList $item_list item_list * @@ -415,7 +401,7 @@ public function setItemList($item_list) } /** - * Gets ship_from_address + * Gets ship_from_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address */ @@ -425,7 +411,7 @@ public function getShipFromAddress() } /** - * Sets ship_from_address + * Sets ship_from_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $ship_from_address ship_from_address * @@ -439,7 +425,7 @@ public function setShipFromAddress($ship_from_address) } /** - * Gets ship_to_address + * Gets ship_to_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address */ @@ -449,7 +435,7 @@ public function getShipToAddress() } /** - * Sets ship_to_address + * Sets ship_to_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $ship_to_address ship_to_address * @@ -463,7 +449,7 @@ public function setShipToAddress($ship_to_address) } /** - * Gets package_dimensions + * Gets package_dimensions. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions */ @@ -473,7 +459,7 @@ public function getPackageDimensions() } /** - * Sets package_dimensions + * Sets package_dimensions. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions $package_dimensions package_dimensions * @@ -487,7 +473,7 @@ public function setPackageDimensions($package_dimensions) } /** - * Gets weight + * Gets weight. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight */ @@ -497,7 +483,7 @@ public function getWeight() } /** - * Sets weight + * Sets weight. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight $weight weight * @@ -511,7 +497,7 @@ public function setWeight($weight) } /** - * Gets insurance + * Gets insurance. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount */ @@ -521,7 +507,7 @@ public function getInsurance() } /** - * Sets insurance + * Sets insurance. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $insurance insurance * @@ -535,7 +521,7 @@ public function setInsurance($insurance) } /** - * Gets shipping_service + * Gets shipping_service. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingService */ @@ -545,7 +531,7 @@ public function getShippingService() } /** - * Sets shipping_service + * Sets shipping_service. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingService $shipping_service shipping_service * @@ -559,7 +545,7 @@ public function setShippingService($shipping_service) } /** - * Gets label + * Gets label. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Label */ @@ -569,7 +555,7 @@ public function getLabel() } /** - * Sets label + * Sets label. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Label $label label * @@ -583,7 +569,7 @@ public function setLabel($label) } /** - * Gets status + * Gets status. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentStatus */ @@ -593,7 +579,7 @@ public function getStatus() } /** - * Sets status + * Sets status. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShipmentStatus $status status * @@ -607,7 +593,7 @@ public function setStatus($status) } /** - * Gets tracking_id + * Gets tracking_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TrackingId */ @@ -617,7 +603,7 @@ public function getTrackingId() } /** - * Sets tracking_id + * Sets tracking_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\TrackingId $tracking_id tracking_id * @@ -631,7 +617,7 @@ public function setTrackingId($tracking_id) } /** - * Gets created_date + * Gets created_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp */ @@ -641,7 +627,7 @@ public function getCreatedDate() } /** - * Sets created_date + * Sets created_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $created_date created_date * @@ -655,7 +641,7 @@ public function setCreatedDate($created_date) } /** - * Gets last_updated_date + * Gets last_updated_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp */ @@ -665,7 +651,7 @@ public function getLastUpdatedDate() } /** - * Sets last_updated_date + * Sets last_updated_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $last_updated_date last_updated_date * @@ -677,12 +663,13 @@ public function setLastUpdatedDate($last_updated_date) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -692,7 +679,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -704,8 +691,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -721,7 +708,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -731,7 +718,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ShipmentId.php b/lib/Models/MerchantFulfillment/ShipmentId.php index 79225063..4276f791 100644 --- a/lib/Models/MerchantFulfillment/ShipmentId.php +++ b/lib/Models/MerchantFulfillment/ShipmentId.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ShipmentRequestDetails.php b/lib/Models/MerchantFulfillment/ShipmentRequestDetails.php index fc02c742..9d5b7fb5 100644 --- a/lib/Models/MerchantFulfillment/ShipmentRequestDetails.php +++ b/lib/Models/MerchantFulfillment/ShipmentRequestDetails.php @@ -1,62 +1,50 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId', 'seller_order_id' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId', @@ -67,13 +55,13 @@ class ShipmentRequestDetails implements ModelInterface, ArrayAccess 'must_arrive_by_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp', 'ship_date' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp', 'shipping_service_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions', -'label_customization' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelCustomization' ]; +'label_customization' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelCustomization', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'amazon_order_id' => null, 'seller_order_id' => null, @@ -84,10 +72,10 @@ class ShipmentRequestDetails implements ModelInterface, ArrayAccess 'must_arrive_by_date' => null, 'ship_date' => null, 'shipping_service_options' => null, -'label_customization' => null ]; +'label_customization' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -97,7 +85,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -108,7 +96,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -122,10 +110,10 @@ public static function swaggerFormats() 'must_arrive_by_date' => 'MustArriveByDate', 'ship_date' => 'ShipDate', 'shipping_service_options' => 'ShippingServiceOptions', -'label_customization' => 'LabelCustomization' ]; +'label_customization' => 'LabelCustomization', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -139,10 +127,10 @@ public static function swaggerFormats() 'must_arrive_by_date' => 'setMustArriveByDate', 'ship_date' => 'setShipDate', 'shipping_service_options' => 'setShippingServiceOptions', -'label_customization' => 'setLabelCustomization' ]; +'label_customization' => 'setLabelCustomization', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -156,11 +144,11 @@ public static function swaggerFormats() 'must_arrive_by_date' => 'getMustArriveByDate', 'ship_date' => 'getShipDate', 'shipping_service_options' => 'getShippingServiceOptions', -'label_customization' => 'getLabelCustomization' ]; +'label_customization' => 'getLabelCustomization', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -170,7 +158,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -180,7 +168,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -199,17 +187,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -237,41 +223,41 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['amazon_order_id'] === null) { + if (null === $this->container['amazon_order_id']) { $invalidProperties[] = "'amazon_order_id' can't be null"; } - if ($this->container['item_list'] === null) { + if (null === $this->container['item_list']) { $invalidProperties[] = "'item_list' can't be null"; } - if ($this->container['ship_from_address'] === null) { + if (null === $this->container['ship_from_address']) { $invalidProperties[] = "'ship_from_address' can't be null"; } - if ($this->container['package_dimensions'] === null) { + if (null === $this->container['package_dimensions']) { $invalidProperties[] = "'package_dimensions' can't be null"; } - if ($this->container['weight'] === null) { + if (null === $this->container['weight']) { $invalidProperties[] = "'weight' can't be null"; } - if ($this->container['shipping_service_options'] === null) { + if (null === $this->container['shipping_service_options']) { $invalidProperties[] = "'shipping_service_options' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets amazon_order_id + * Gets amazon_order_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId */ @@ -281,7 +267,7 @@ public function getAmazonOrderId() } /** - * Sets amazon_order_id + * Sets amazon_order_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AmazonOrderId $amazon_order_id amazon_order_id * @@ -295,7 +281,7 @@ public function setAmazonOrderId($amazon_order_id) } /** - * Gets seller_order_id + * Gets seller_order_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId */ @@ -305,7 +291,7 @@ public function getSellerOrderId() } /** - * Sets seller_order_id + * Sets seller_order_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\SellerOrderId $seller_order_id seller_order_id * @@ -319,7 +305,7 @@ public function setSellerOrderId($seller_order_id) } /** - * Gets item_list + * Gets item_list. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList */ @@ -329,7 +315,7 @@ public function getItemList() } /** - * Sets item_list + * Sets item_list. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ItemList $item_list item_list * @@ -343,7 +329,7 @@ public function setItemList($item_list) } /** - * Gets ship_from_address + * Gets ship_from_address. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address */ @@ -353,7 +339,7 @@ public function getShipFromAddress() } /** - * Sets ship_from_address + * Sets ship_from_address. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Address $ship_from_address ship_from_address * @@ -367,7 +353,7 @@ public function setShipFromAddress($ship_from_address) } /** - * Gets package_dimensions + * Gets package_dimensions. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions */ @@ -377,7 +363,7 @@ public function getPackageDimensions() } /** - * Sets package_dimensions + * Sets package_dimensions. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\PackageDimensions $package_dimensions package_dimensions * @@ -391,7 +377,7 @@ public function setPackageDimensions($package_dimensions) } /** - * Gets weight + * Gets weight. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight */ @@ -401,7 +387,7 @@ public function getWeight() } /** - * Sets weight + * Sets weight. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Weight $weight weight * @@ -415,7 +401,7 @@ public function setWeight($weight) } /** - * Gets must_arrive_by_date + * Gets must_arrive_by_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp */ @@ -425,7 +411,7 @@ public function getMustArriveByDate() } /** - * Sets must_arrive_by_date + * Sets must_arrive_by_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $must_arrive_by_date must_arrive_by_date * @@ -439,7 +425,7 @@ public function setMustArriveByDate($must_arrive_by_date) } /** - * Gets ship_date + * Gets ship_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp */ @@ -449,7 +435,7 @@ public function getShipDate() } /** - * Sets ship_date + * Sets ship_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $ship_date ship_date * @@ -463,7 +449,7 @@ public function setShipDate($ship_date) } /** - * Gets shipping_service_options + * Gets shipping_service_options. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions */ @@ -473,7 +459,7 @@ public function getShippingServiceOptions() } /** - * Sets shipping_service_options + * Sets shipping_service_options. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions $shipping_service_options shipping_service_options * @@ -487,7 +473,7 @@ public function setShippingServiceOptions($shipping_service_options) } /** - * Gets label_customization + * Gets label_customization. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelCustomization */ @@ -497,7 +483,7 @@ public function getLabelCustomization() } /** - * Sets label_customization + * Sets label_customization. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelCustomization $label_customization label_customization * @@ -509,12 +495,13 @@ public function setLabelCustomization($label_customization) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -524,7 +511,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -536,8 +523,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -553,7 +540,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -563,7 +550,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ShipmentStatus.php b/lib/Models/MerchantFulfillment/ShipmentStatus.php index 0c4399a9..09441685 100644 --- a/lib/Models/MerchantFulfillment/ShipmentStatus.php +++ b/lib/Models/MerchantFulfillment/ShipmentStatus.php @@ -1,55 +1,43 @@ 'bool', 'include_complex_shipping_options' => 'bool', 'carrier_will_pick_up' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption', -'delivery_experience' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption' ]; +'delivery_experience' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'include_packing_slip_with_label' => null, 'include_complex_shipping_options' => null, 'carrier_will_pick_up' => null, -'delivery_experience' => null ]; +'delivery_experience' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -85,7 +73,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -96,7 +84,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -104,10 +92,10 @@ public static function swaggerFormats() 'include_packing_slip_with_label' => 'IncludePackingSlipWithLabel', 'include_complex_shipping_options' => 'IncludeComplexShippingOptions', 'carrier_will_pick_up' => 'CarrierWillPickUp', -'delivery_experience' => 'DeliveryExperience' ]; +'delivery_experience' => 'DeliveryExperience', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -115,10 +103,10 @@ public static function swaggerFormats() 'include_packing_slip_with_label' => 'setIncludePackingSlipWithLabel', 'include_complex_shipping_options' => 'setIncludeComplexShippingOptions', 'carrier_will_pick_up' => 'setCarrierWillPickUp', -'delivery_experience' => 'setDeliveryExperience' ]; +'delivery_experience' => 'setDeliveryExperience', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -126,11 +114,11 @@ public static function swaggerFormats() 'include_packing_slip_with_label' => 'getIncludePackingSlipWithLabel', 'include_complex_shipping_options' => 'getIncludeComplexShippingOptions', 'carrier_will_pick_up' => 'getCarrierWillPickUp', -'delivery_experience' => 'getDeliveryExperience' ]; +'delivery_experience' => 'getDeliveryExperience', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -140,7 +128,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -150,7 +138,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -169,17 +157,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -206,18 +192,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets include_packing_slip_with_label + * Gets include_packing_slip_with_label. * * @return bool */ @@ -227,9 +212,9 @@ public function getIncludePackingSlipWithLabel() } /** - * Sets include_packing_slip_with_label + * Sets include_packing_slip_with_label. * - * @param bool $include_packing_slip_with_label When true, include a packing slip with the label. + * @param bool $include_packing_slip_with_label when true, include a packing slip with the label * * @return $this */ @@ -241,7 +226,7 @@ public function setIncludePackingSlipWithLabel($include_packing_slip_with_label) } /** - * Gets include_complex_shipping_options + * Gets include_complex_shipping_options. * * @return bool */ @@ -251,9 +236,9 @@ public function getIncludeComplexShippingOptions() } /** - * Sets include_complex_shipping_options + * Sets include_complex_shipping_options. * - * @param bool $include_complex_shipping_options When true, include complex shipping options. + * @param bool $include_complex_shipping_options when true, include complex shipping options * * @return $this */ @@ -265,7 +250,7 @@ public function setIncludeComplexShippingOptions($include_complex_shipping_optio } /** - * Gets carrier_will_pick_up + * Gets carrier_will_pick_up. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption */ @@ -275,7 +260,7 @@ public function getCarrierWillPickUp() } /** - * Sets carrier_will_pick_up + * Sets carrier_will_pick_up. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption $carrier_will_pick_up carrier_will_pick_up * @@ -289,7 +274,7 @@ public function setCarrierWillPickUp($carrier_will_pick_up) } /** - * Gets delivery_experience + * Gets delivery_experience. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption */ @@ -299,7 +284,7 @@ public function getDeliveryExperience() } /** - * Sets delivery_experience + * Sets delivery_experience. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceOption $delivery_experience delivery_experience * @@ -311,12 +296,13 @@ public function setDeliveryExperience($delivery_experience) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -326,7 +312,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -338,8 +324,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -355,7 +341,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -365,7 +351,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ShippingService.php b/lib/Models/MerchantFulfillment/ShippingService.php index 1a8a0535..f25e0664 100644 --- a/lib/Models/MerchantFulfillment/ShippingService.php +++ b/lib/Models/MerchantFulfillment/ShippingService.php @@ -1,62 +1,50 @@ 'string', 'carrier_name' => 'string', @@ -70,13 +58,13 @@ class ShippingService implements ModelInterface, ArrayAccess 'available_shipping_service_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableShippingServiceOptions', 'available_label_formats' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatList', 'available_format_options_for_label' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableFormatOptionsForLabelList', -'requires_additional_seller_inputs' => 'bool' ]; +'requires_additional_seller_inputs' => 'bool', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'shipping_service_name' => null, 'carrier_name' => null, @@ -90,10 +78,10 @@ class ShippingService implements ModelInterface, ArrayAccess 'available_shipping_service_options' => null, 'available_label_formats' => null, 'available_format_options_for_label' => null, -'requires_additional_seller_inputs' => null ]; +'requires_additional_seller_inputs' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -103,7 +91,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -114,7 +102,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -131,10 +119,10 @@ public static function swaggerFormats() 'available_shipping_service_options' => 'AvailableShippingServiceOptions', 'available_label_formats' => 'AvailableLabelFormats', 'available_format_options_for_label' => 'AvailableFormatOptionsForLabel', -'requires_additional_seller_inputs' => 'RequiresAdditionalSellerInputs' ]; +'requires_additional_seller_inputs' => 'RequiresAdditionalSellerInputs', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -151,10 +139,10 @@ public static function swaggerFormats() 'available_shipping_service_options' => 'setAvailableShippingServiceOptions', 'available_label_formats' => 'setAvailableLabelFormats', 'available_format_options_for_label' => 'setAvailableFormatOptionsForLabel', -'requires_additional_seller_inputs' => 'setRequiresAdditionalSellerInputs' ]; +'requires_additional_seller_inputs' => 'setRequiresAdditionalSellerInputs', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -171,11 +159,11 @@ public static function swaggerFormats() 'available_shipping_service_options' => 'getAvailableShippingServiceOptions', 'available_label_formats' => 'getAvailableLabelFormats', 'available_format_options_for_label' => 'getAvailableFormatOptionsForLabel', -'requires_additional_seller_inputs' => 'getRequiresAdditionalSellerInputs' ]; +'requires_additional_seller_inputs' => 'getRequiresAdditionalSellerInputs', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -185,7 +173,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -195,7 +183,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -214,17 +202,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -255,47 +241,47 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['shipping_service_name'] === null) { + if (null === $this->container['shipping_service_name']) { $invalidProperties[] = "'shipping_service_name' can't be null"; } - if ($this->container['carrier_name'] === null) { + if (null === $this->container['carrier_name']) { $invalidProperties[] = "'carrier_name' can't be null"; } - if ($this->container['shipping_service_id'] === null) { + if (null === $this->container['shipping_service_id']) { $invalidProperties[] = "'shipping_service_id' can't be null"; } - if ($this->container['shipping_service_offer_id'] === null) { + if (null === $this->container['shipping_service_offer_id']) { $invalidProperties[] = "'shipping_service_offer_id' can't be null"; } - if ($this->container['ship_date'] === null) { + if (null === $this->container['ship_date']) { $invalidProperties[] = "'ship_date' can't be null"; } - if ($this->container['rate'] === null) { + if (null === $this->container['rate']) { $invalidProperties[] = "'rate' can't be null"; } - if ($this->container['shipping_service_options'] === null) { + if (null === $this->container['shipping_service_options']) { $invalidProperties[] = "'shipping_service_options' can't be null"; } - if ($this->container['requires_additional_seller_inputs'] === null) { + if (null === $this->container['requires_additional_seller_inputs']) { $invalidProperties[] = "'requires_additional_seller_inputs' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets shipping_service_name + * Gets shipping_service_name. * * @return string */ @@ -305,7 +291,7 @@ public function getShippingServiceName() } /** - * Sets shipping_service_name + * Sets shipping_service_name. * * @param string $shipping_service_name A plain text representation of a carrier's shipping service. For example, \"UPS Ground\" or \"FedEx Standard Overnight\". * @@ -319,7 +305,7 @@ public function setShippingServiceName($shipping_service_name) } /** - * Gets carrier_name + * Gets carrier_name. * * @return string */ @@ -329,9 +315,9 @@ public function getCarrierName() } /** - * Sets carrier_name + * Sets carrier_name. * - * @param string $carrier_name The name of the carrier. + * @param string $carrier_name the name of the carrier * * @return $this */ @@ -343,7 +329,7 @@ public function setCarrierName($carrier_name) } /** - * Gets shipping_service_id + * Gets shipping_service_id. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier */ @@ -353,7 +339,7 @@ public function getShippingServiceId() } /** - * Sets shipping_service_id + * Sets shipping_service_id. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceIdentifier $shipping_service_id shipping_service_id * @@ -367,7 +353,7 @@ public function setShippingServiceId($shipping_service_id) } /** - * Gets shipping_service_offer_id + * Gets shipping_service_offer_id. * * @return string */ @@ -377,9 +363,9 @@ public function getShippingServiceOfferId() } /** - * Sets shipping_service_offer_id + * Sets shipping_service_offer_id. * - * @param string $shipping_service_offer_id An Amazon-defined shipping service offer identifier. + * @param string $shipping_service_offer_id an Amazon-defined shipping service offer identifier * * @return $this */ @@ -391,7 +377,7 @@ public function setShippingServiceOfferId($shipping_service_offer_id) } /** - * Gets ship_date + * Gets ship_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp */ @@ -401,7 +387,7 @@ public function getShipDate() } /** - * Sets ship_date + * Sets ship_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $ship_date ship_date * @@ -415,7 +401,7 @@ public function setShipDate($ship_date) } /** - * Gets earliest_estimated_delivery_date + * Gets earliest_estimated_delivery_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp */ @@ -425,7 +411,7 @@ public function getEarliestEstimatedDeliveryDate() } /** - * Sets earliest_estimated_delivery_date + * Sets earliest_estimated_delivery_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $earliest_estimated_delivery_date earliest_estimated_delivery_date * @@ -439,7 +425,7 @@ public function setEarliestEstimatedDeliveryDate($earliest_estimated_delivery_da } /** - * Gets latest_estimated_delivery_date + * Gets latest_estimated_delivery_date. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp */ @@ -449,7 +435,7 @@ public function getLatestEstimatedDeliveryDate() } /** - * Sets latest_estimated_delivery_date + * Sets latest_estimated_delivery_date. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\Timestamp $latest_estimated_delivery_date latest_estimated_delivery_date * @@ -463,7 +449,7 @@ public function setLatestEstimatedDeliveryDate($latest_estimated_delivery_date) } /** - * Gets rate + * Gets rate. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount */ @@ -473,7 +459,7 @@ public function getRate() } /** - * Sets rate + * Sets rate. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $rate rate * @@ -487,7 +473,7 @@ public function setRate($rate) } /** - * Gets shipping_service_options + * Gets shipping_service_options. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions */ @@ -497,7 +483,7 @@ public function getShippingServiceOptions() } /** - * Sets shipping_service_options + * Sets shipping_service_options. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\ShippingServiceOptions $shipping_service_options shipping_service_options * @@ -511,7 +497,7 @@ public function setShippingServiceOptions($shipping_service_options) } /** - * Gets available_shipping_service_options + * Gets available_shipping_service_options. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableShippingServiceOptions */ @@ -521,7 +507,7 @@ public function getAvailableShippingServiceOptions() } /** - * Sets available_shipping_service_options + * Sets available_shipping_service_options. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableShippingServiceOptions $available_shipping_service_options available_shipping_service_options * @@ -535,7 +521,7 @@ public function setAvailableShippingServiceOptions($available_shipping_service_o } /** - * Gets available_label_formats + * Gets available_label_formats. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatList */ @@ -545,7 +531,7 @@ public function getAvailableLabelFormats() } /** - * Sets available_label_formats + * Sets available_label_formats. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormatList $available_label_formats available_label_formats * @@ -559,7 +545,7 @@ public function setAvailableLabelFormats($available_label_formats) } /** - * Gets available_format_options_for_label + * Gets available_format_options_for_label. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableFormatOptionsForLabelList */ @@ -569,7 +555,7 @@ public function getAvailableFormatOptionsForLabel() } /** - * Sets available_format_options_for_label + * Sets available_format_options_for_label. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\AvailableFormatOptionsForLabelList $available_format_options_for_label available_format_options_for_label * @@ -583,7 +569,7 @@ public function setAvailableFormatOptionsForLabel($available_format_options_for_ } /** - * Gets requires_additional_seller_inputs + * Gets requires_additional_seller_inputs. * * @return bool */ @@ -593,9 +579,9 @@ public function getRequiresAdditionalSellerInputs() } /** - * Sets requires_additional_seller_inputs + * Sets requires_additional_seller_inputs. * - * @param bool $requires_additional_seller_inputs When true, additional seller inputs are required. + * @param bool $requires_additional_seller_inputs when true, additional seller inputs are required * * @return $this */ @@ -605,12 +591,13 @@ public function setRequiresAdditionalSellerInputs($requires_additional_seller_in return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -620,7 +607,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -632,8 +619,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -649,7 +636,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -659,7 +646,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ShippingServiceIdentifier.php b/lib/Models/MerchantFulfillment/ShippingServiceIdentifier.php index 1de5ff12..528a0e69 100644 --- a/lib/Models/MerchantFulfillment/ShippingServiceIdentifier.php +++ b/lib/Models/MerchantFulfillment/ShippingServiceIdentifier.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/ShippingServiceList.php b/lib/Models/MerchantFulfillment/ShippingServiceList.php index dbe7765c..80f9aa2a 100644 --- a/lib/Models/MerchantFulfillment/ShippingServiceList.php +++ b/lib/Models/MerchantFulfillment/ShippingServiceList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return ShippingService::class; } } diff --git a/lib/Models/MerchantFulfillment/ShippingServiceOptions.php b/lib/Models/MerchantFulfillment/ShippingServiceOptions.php index 26d898bc..b0c29b71 100644 --- a/lib/Models/MerchantFulfillment/ShippingServiceOptions.php +++ b/lib/Models/MerchantFulfillment/ShippingServiceOptions.php @@ -1,83 +1,71 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceType', 'declared_value' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount', 'carrier_will_pick_up' => 'bool', 'carrier_will_pick_up_option' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption', -'label_format' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat' ]; +'label_format' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'delivery_experience' => null, 'declared_value' => null, 'carrier_will_pick_up' => null, 'carrier_will_pick_up_option' => null, -'label_format' => null ]; +'label_format' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -87,7 +75,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -98,7 +86,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -107,10 +95,10 @@ public static function swaggerFormats() 'declared_value' => 'DeclaredValue', 'carrier_will_pick_up' => 'CarrierWillPickUp', 'carrier_will_pick_up_option' => 'CarrierWillPickUpOption', -'label_format' => 'LabelFormat' ]; +'label_format' => 'LabelFormat', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -119,10 +107,10 @@ public static function swaggerFormats() 'declared_value' => 'setDeclaredValue', 'carrier_will_pick_up' => 'setCarrierWillPickUp', 'carrier_will_pick_up_option' => 'setCarrierWillPickUpOption', -'label_format' => 'setLabelFormat' ]; +'label_format' => 'setLabelFormat', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -131,11 +119,11 @@ public static function swaggerFormats() 'declared_value' => 'getDeclaredValue', 'carrier_will_pick_up' => 'getCarrierWillPickUp', 'carrier_will_pick_up_option' => 'getCarrierWillPickUpOption', -'label_format' => 'getLabelFormat' ]; +'label_format' => 'getLabelFormat', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -145,7 +133,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -155,7 +143,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -174,17 +162,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -207,29 +193,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['delivery_experience'] === null) { + if (null === $this->container['delivery_experience']) { $invalidProperties[] = "'delivery_experience' can't be null"; } - if ($this->container['carrier_will_pick_up'] === null) { + if (null === $this->container['carrier_will_pick_up']) { $invalidProperties[] = "'carrier_will_pick_up' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets delivery_experience + * Gets delivery_experience. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceType */ @@ -239,7 +225,7 @@ public function getDeliveryExperience() } /** - * Sets delivery_experience + * Sets delivery_experience. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\DeliveryExperienceType $delivery_experience delivery_experience * @@ -253,7 +239,7 @@ public function setDeliveryExperience($delivery_experience) } /** - * Gets declared_value + * Gets declared_value. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount */ @@ -263,7 +249,7 @@ public function getDeclaredValue() } /** - * Sets declared_value + * Sets declared_value. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CurrencyAmount $declared_value declared_value * @@ -277,7 +263,7 @@ public function setDeclaredValue($declared_value) } /** - * Gets carrier_will_pick_up + * Gets carrier_will_pick_up. * * @return bool */ @@ -287,7 +273,7 @@ public function getCarrierWillPickUp() } /** - * Sets carrier_will_pick_up + * Sets carrier_will_pick_up. * * @param bool $carrier_will_pick_up When true, the carrier will pick up the package. Note: Scheduled carrier pickup is available only using Dynamex (US), DPD (UK), and Royal Mail (UK). * @@ -301,7 +287,7 @@ public function setCarrierWillPickUp($carrier_will_pick_up) } /** - * Gets carrier_will_pick_up_option + * Gets carrier_will_pick_up_option. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption */ @@ -311,7 +297,7 @@ public function getCarrierWillPickUpOption() } /** - * Sets carrier_will_pick_up_option + * Sets carrier_will_pick_up_option. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\CarrierWillPickUpOption $carrier_will_pick_up_option carrier_will_pick_up_option * @@ -325,7 +311,7 @@ public function setCarrierWillPickUpOption($carrier_will_pick_up_option) } /** - * Gets label_format + * Gets label_format. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat */ @@ -335,7 +321,7 @@ public function getLabelFormat() } /** - * Sets label_format + * Sets label_format. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\LabelFormat $label_format label_format * @@ -347,12 +333,13 @@ public function setLabelFormat($label_format) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -362,7 +349,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -374,8 +361,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -391,7 +378,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -401,7 +388,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/StandardIdForLabel.php b/lib/Models/MerchantFulfillment/StandardIdForLabel.php index 1e6e5485..35739755 100644 --- a/lib/Models/MerchantFulfillment/StandardIdForLabel.php +++ b/lib/Models/MerchantFulfillment/StandardIdForLabel.php @@ -1,52 +1,40 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrier.php b/lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrier.php index 22674160..81c901fc 100644 --- a/lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrier.php +++ b/lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrier.php @@ -1,75 +1,63 @@ 'string' ]; + 'carrier_name' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ - 'carrier_name' => null ]; + 'carrier_name' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -79,7 +67,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -90,32 +78,32 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ - 'carrier_name' => 'CarrierName' ]; + 'carrier_name' => 'CarrierName', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ - 'carrier_name' => 'setCarrierName' ]; + 'carrier_name' => 'setCarrierName', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ - 'carrier_name' => 'getCarrierName' ]; + 'carrier_name' => 'getCarrierName', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -125,7 +113,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -135,7 +123,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -154,17 +142,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -183,26 +169,26 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['carrier_name'] === null) { + if (null === $this->container['carrier_name']) { $invalidProperties[] = "'carrier_name' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets carrier_name + * Gets carrier_name. * * @return string */ @@ -212,9 +198,9 @@ public function getCarrierName() } /** - * Sets carrier_name + * Sets carrier_name. * - * @param string $carrier_name The name of the carrier. + * @param string $carrier_name the name of the carrier * * @return $this */ @@ -224,12 +210,13 @@ public function setCarrierName($carrier_name) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -239,7 +226,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -251,8 +238,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -268,7 +255,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -278,7 +265,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrierList.php b/lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrierList.php index 5a1e25ff..baa8c8bd 100644 --- a/lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrierList.php +++ b/lib/Models/MerchantFulfillment/TemporarilyUnavailableCarrierList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return TemporarilyUnavailableCarrier::class; } } diff --git a/lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php b/lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php index 085b9703..75536437 100644 --- a/lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php +++ b/lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrier.php @@ -1,75 +1,63 @@ 'string' ]; + 'carrier_name' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ - 'carrier_name' => null ]; + 'carrier_name' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -79,7 +67,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -90,32 +78,32 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ - 'carrier_name' => 'CarrierName' ]; + 'carrier_name' => 'CarrierName', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ - 'carrier_name' => 'setCarrierName' ]; + 'carrier_name' => 'setCarrierName', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ - 'carrier_name' => 'getCarrierName' ]; + 'carrier_name' => 'getCarrierName', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -125,7 +113,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -135,7 +123,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -154,17 +142,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -183,26 +169,26 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['carrier_name'] === null) { + if (null === $this->container['carrier_name']) { $invalidProperties[] = "'carrier_name' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets carrier_name + * Gets carrier_name. * * @return string */ @@ -212,9 +198,9 @@ public function getCarrierName() } /** - * Sets carrier_name + * Sets carrier_name. * - * @param string $carrier_name The name of the carrier. + * @param string $carrier_name the name of the carrier * * @return $this */ @@ -224,12 +210,13 @@ public function setCarrierName($carrier_name) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -239,7 +226,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -251,8 +238,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -268,7 +255,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -278,7 +265,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrierList.php b/lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrierList.php index ea9ad5af..bd6e45d9 100644 --- a/lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrierList.php +++ b/lib/Models/MerchantFulfillment/TermsAndConditionsNotAcceptedCarrierList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return TermsAndConditionsNotAcceptedCarrier::class; } } diff --git a/lib/Models/MerchantFulfillment/Timestamp.php b/lib/Models/MerchantFulfillment/Timestamp.php index 7cd9aebe..1bffa2d6 100644 --- a/lib/Models/MerchantFulfillment/Timestamp.php +++ b/lib/Models/MerchantFulfillment/Timestamp.php @@ -1,74 +1,60 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -210,7 +194,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -222,8 +206,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -239,7 +223,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -249,7 +233,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/TrackingId.php b/lib/Models/MerchantFulfillment/TrackingId.php index 08ff5568..44a12fb5 100644 --- a/lib/Models/MerchantFulfillment/TrackingId.php +++ b/lib/Models/MerchantFulfillment/TrackingId.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/TransparencyCode.php b/lib/Models/MerchantFulfillment/TransparencyCode.php index 60587846..f51efb2e 100644 --- a/lib/Models/MerchantFulfillment/TransparencyCode.php +++ b/lib/Models/MerchantFulfillment/TransparencyCode.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/TransparencyCodeList.php b/lib/Models/MerchantFulfillment/TransparencyCodeList.php index 228f17e1..3ccaa4cb 100644 --- a/lib/Models/MerchantFulfillment/TransparencyCodeList.php +++ b/lib/Models/MerchantFulfillment/TransparencyCodeList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return TransparencyCode::class; } } diff --git a/lib/Models/MerchantFulfillment/UnitOfLength.php b/lib/Models/MerchantFulfillment/UnitOfLength.php index f4765cde..8354b49d 100644 --- a/lib/Models/MerchantFulfillment/UnitOfLength.php +++ b/lib/Models/MerchantFulfillment/UnitOfLength.php @@ -1,53 +1,41 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\WeightValue', -'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfWeight' ]; +'unit' => '\ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfWeight', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'value' => null, -'unit' => null ]; +'unit' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'value' => 'Value', -'unit' => 'Unit' ]; +'unit' => 'Unit', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'value' => 'setValue', -'unit' => 'setUnit' ]; +'unit' => 'setUnit', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'value' => 'getValue', -'unit' => 'getUnit' ]; +'unit' => 'getUnit', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -189,29 +175,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['value'] === null) { + if (null === $this->container['value']) { $invalidProperties[] = "'value' can't be null"; } - if ($this->container['unit'] === null) { + if (null === $this->container['unit']) { $invalidProperties[] = "'unit' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets value + * Gets value. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\WeightValue */ @@ -221,7 +207,7 @@ public function getValue() } /** - * Sets value + * Sets value. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\WeightValue $value value * @@ -235,7 +221,7 @@ public function setValue($value) } /** - * Gets unit + * Gets unit. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfWeight */ @@ -245,7 +231,7 @@ public function getUnit() } /** - * Sets unit + * Sets unit. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\MerchantFulfillment\UnitOfWeight $unit unit * @@ -257,12 +243,13 @@ public function setUnit($unit) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -272,7 +259,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -284,8 +271,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -301,7 +288,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -311,7 +298,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/MerchantFulfillment/WeightValue.php b/lib/Models/MerchantFulfillment/WeightValue.php index 7b4440d8..898e71bf 100644 --- a/lib/Models/MerchantFulfillment/WeightValue.php +++ b/lib/Models/MerchantFulfillment/WeightValue.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/ModelInterface.php b/lib/Models/ModelInterface.php index ba6e332a..9e248b0c 100644 --- a/lib/Models/ModelInterface.php +++ b/lib/Models/ModelInterface.php @@ -1,29 +1,18 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList' ]; + 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ - 'errors' => null ]; + 'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -79,7 +67,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -90,32 +78,32 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ - 'errors' => 'errors' ]; + 'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ - 'errors' => 'setErrors' ]; + 'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ - 'errors' => 'getErrors' ]; + 'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -125,7 +113,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -135,7 +123,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -154,17 +142,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -188,18 +174,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList */ @@ -209,7 +194,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors * @@ -221,12 +206,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -236,7 +222,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -248,8 +234,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -265,7 +251,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -275,7 +261,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/CancelReportScheduleResponse.php b/lib/Models/Reports/CancelReportScheduleResponse.php index 7bbe573f..09c59b69 100644 --- a/lib/Models/Reports/CancelReportScheduleResponse.php +++ b/lib/Models/Reports/CancelReportScheduleResponse.php @@ -1,75 +1,63 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList' ]; + 'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ - 'errors' => null ]; + 'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -79,7 +67,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -90,32 +78,32 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ - 'errors' => 'errors' ]; + 'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ - 'errors' => 'setErrors' ]; + 'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ - 'errors' => 'getErrors' ]; + 'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -125,7 +113,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -135,7 +123,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -154,17 +142,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -188,18 +174,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList */ @@ -209,7 +194,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors * @@ -221,12 +206,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -236,7 +222,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -248,8 +234,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -265,7 +251,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -275,7 +261,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/CreateReportResponse.php b/lib/Models/Reports/CreateReportResponse.php index d88a2bc6..213ae240 100644 --- a/lib/Models/Reports/CreateReportResponse.php +++ b/lib/Models/Reports/CreateReportResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportResult', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportResult */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportResult $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/CreateReportResult.php b/lib/Models/Reports/CreateReportResult.php index a46c45bc..eb5ba5e3 100644 --- a/lib/Models/Reports/CreateReportResult.php +++ b/lib/Models/Reports/CreateReportResult.php @@ -1,74 +1,60 @@ 'string' ]; + 'report_id' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ - 'report_id' => null ]; + 'report_id' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -78,7 +64,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -89,32 +75,32 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ - 'report_id' => 'reportId' ]; + 'report_id' => 'reportId', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ - 'report_id' => 'setReportId' ]; + 'report_id' => 'setReportId', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ - 'report_id' => 'getReportId' ]; + 'report_id' => 'getReportId', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -124,7 +110,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -134,7 +120,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -153,17 +139,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -182,26 +166,26 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['report_id'] === null) { + if (null === $this->container['report_id']) { $invalidProperties[] = "'report_id' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets report_id + * Gets report_id. * * @return string */ @@ -211,7 +195,7 @@ public function getReportId() } /** - * Sets report_id + * Sets report_id. * * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. * @@ -223,12 +207,13 @@ public function setReportId($report_id) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -238,7 +223,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -250,8 +235,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -267,7 +252,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -277,7 +262,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/CreateReportScheduleResponse.php b/lib/Models/Reports/CreateReportScheduleResponse.php index 53120228..eadd84df 100644 --- a/lib/Models/Reports/CreateReportScheduleResponse.php +++ b/lib/Models/Reports/CreateReportScheduleResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleResult', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleResult */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\CreateReportScheduleResult $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/CreateReportScheduleResult.php b/lib/Models/Reports/CreateReportScheduleResult.php index 04e02098..176ccb80 100644 --- a/lib/Models/Reports/CreateReportScheduleResult.php +++ b/lib/Models/Reports/CreateReportScheduleResult.php @@ -1,74 +1,60 @@ 'string' ]; + 'report_schedule_id' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ - 'report_schedule_id' => null ]; + 'report_schedule_id' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -78,7 +64,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -89,32 +75,32 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ - 'report_schedule_id' => 'reportScheduleId' ]; + 'report_schedule_id' => 'reportScheduleId', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ - 'report_schedule_id' => 'setReportScheduleId' ]; + 'report_schedule_id' => 'setReportScheduleId', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ - 'report_schedule_id' => 'getReportScheduleId' ]; + 'report_schedule_id' => 'getReportScheduleId', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -124,7 +110,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -134,7 +120,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -153,17 +139,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -182,26 +166,26 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['report_schedule_id'] === null) { + if (null === $this->container['report_schedule_id']) { $invalidProperties[] = "'report_schedule_id' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets report_schedule_id + * Gets report_schedule_id. * * @return string */ @@ -211,7 +195,7 @@ public function getReportScheduleId() } /** - * Sets report_schedule_id + * Sets report_schedule_id. * * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. * @@ -223,12 +207,13 @@ public function setReportScheduleId($report_schedule_id) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -238,7 +223,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -250,8 +235,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -267,7 +252,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -277,7 +262,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/CreateReportScheduleSpecification.php b/lib/Models/Reports/CreateReportScheduleSpecification.php index e2cd76fd..20d5e0b7 100644 --- a/lib/Models/Reports/CreateReportScheduleSpecification.php +++ b/lib/Models/Reports/CreateReportScheduleSpecification.php @@ -1,82 +1,68 @@ 'string', 'marketplace_ids' => 'string[]', 'report_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions', 'period' => 'string', -'next_report_creation_time' => '\DateTime' ]; +'next_report_creation_time' => '\DateTime', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'report_type' => null, 'marketplace_ids' => null, 'report_options' => null, 'period' => null, -'next_report_creation_time' => 'date-time' ]; +'next_report_creation_time' => 'date-time', ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -86,7 +72,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -97,7 +83,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -106,10 +92,10 @@ public static function swaggerFormats() 'marketplace_ids' => 'marketplaceIds', 'report_options' => 'reportOptions', 'period' => 'period', -'next_report_creation_time' => 'nextReportCreationTime' ]; +'next_report_creation_time' => 'nextReportCreationTime', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -118,10 +104,10 @@ public static function swaggerFormats() 'marketplace_ids' => 'setMarketplaceIds', 'report_options' => 'setReportOptions', 'period' => 'setPeriod', -'next_report_creation_time' => 'setNextReportCreationTime' ]; +'next_report_creation_time' => 'setNextReportCreationTime', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -130,11 +116,11 @@ public static function swaggerFormats() 'marketplace_ids' => 'getMarketplaceIds', 'report_options' => 'getReportOptions', 'period' => 'getPeriod', -'next_report_creation_time' => 'getNextReportCreationTime' ]; +'next_report_creation_time' => 'getNextReportCreationTime', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -144,7 +130,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -154,7 +140,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -174,26 +160,26 @@ public function getModelName() } const PERIOD_PT5_M = 'PT5M'; -const PERIOD_PT15_M = 'PT15M'; -const PERIOD_PT30_M = 'PT30M'; -const PERIOD_PT1_H = 'PT1H'; -const PERIOD_PT2_H = 'PT2H'; -const PERIOD_PT4_H = 'PT4H'; -const PERIOD_PT8_H = 'PT8H'; -const PERIOD_PT12_H = 'PT12H'; -const PERIOD_P1_D = 'P1D'; -const PERIOD_P2_D = 'P2D'; -const PERIOD_P3_D = 'P3D'; -const PERIOD_PT84_H = 'PT84H'; -const PERIOD_P7_D = 'P7D'; -const PERIOD_P14_D = 'P14D'; -const PERIOD_P15_D = 'P15D'; -const PERIOD_P18_D = 'P18D'; -const PERIOD_P30_D = 'P30D'; -const PERIOD_P1_M = 'P1M'; - - /** - * Gets allowable values of the enum + const PERIOD_PT15_M = 'PT15M'; + const PERIOD_PT30_M = 'PT30M'; + const PERIOD_PT1_H = 'PT1H'; + const PERIOD_PT2_H = 'PT2H'; + const PERIOD_PT4_H = 'PT4H'; + const PERIOD_PT8_H = 'PT8H'; + const PERIOD_PT12_H = 'PT12H'; + const PERIOD_P1_D = 'P1D'; + const PERIOD_P2_D = 'P2D'; + const PERIOD_P3_D = 'P3D'; + const PERIOD_PT84_H = 'PT84H'; + const PERIOD_P7_D = 'P7D'; + const PERIOD_P14_D = 'P14D'; + const PERIOD_P15_D = 'P15D'; + const PERIOD_P18_D = 'P18D'; + const PERIOD_P30_D = 'P30D'; + const PERIOD_P1_M = 'P1M'; + + /** + * Gets allowable values of the enum. * * @return string[] */ @@ -221,14 +207,14 @@ public function getPeriodAllowableValues() } /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -251,13 +237,13 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['report_type'] === null) { + if (null === $this->container['report_type']) { $invalidProperties[] = "'report_type' can't be null"; } - if ($this->container['marketplace_ids'] === null) { + if (null === $this->container['marketplace_ids']) { $invalidProperties[] = "'marketplace_ids' can't be null"; } - if ($this->container['period'] === null) { + if (null === $this->container['period']) { $invalidProperties[] = "'period' can't be null"; } $allowedValues = $this->getPeriodAllowableValues(); @@ -273,18 +259,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets report_type + * Gets report_type. * * @return string */ @@ -294,9 +279,9 @@ public function getReportType() } /** - * Sets report_type + * Sets report_type. * - * @param string $report_type The report type. + * @param string $report_type the report type * * @return $this */ @@ -308,7 +293,7 @@ public function setReportType($report_type) } /** - * Gets marketplace_ids + * Gets marketplace_ids. * * @return string[] */ @@ -318,9 +303,9 @@ public function getMarketplaceIds() } /** - * Sets marketplace_ids + * Sets marketplace_ids. * - * @param string[] $marketplace_ids A list of marketplace identifiers for the report schedule. + * @param string[] $marketplace_ids a list of marketplace identifiers for the report schedule * * @return $this */ @@ -332,7 +317,7 @@ public function setMarketplaceIds($marketplace_ids) } /** - * Gets report_options + * Gets report_options. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions */ @@ -342,7 +327,7 @@ public function getReportOptions() } /** - * Sets report_options + * Sets report_options. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions $report_options report_options * @@ -356,7 +341,7 @@ public function setReportOptions($report_options) } /** - * Gets period + * Gets period. * * @return string */ @@ -366,9 +351,9 @@ public function getPeriod() } /** - * Sets period + * Sets period. * - * @param string $period One of a set of predefined ISO 8601 periods that specifies how often a report should be created. + * @param string $period one of a set of predefined ISO 8601 periods that specifies how often a report should be created * * @return $this */ @@ -376,12 +361,7 @@ public function setPeriod($period) { $allowedValues = $this->getPeriodAllowableValues(); if (!in_array($period, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'period', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + throw new \InvalidArgumentException(sprintf("Invalid value for 'period', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['period'] = $period; @@ -389,7 +369,7 @@ public function setPeriod($period) } /** - * Gets next_report_creation_time + * Gets next_report_creation_time. * * @return \DateTime */ @@ -399,9 +379,9 @@ public function getNextReportCreationTime() } /** - * Sets next_report_creation_time + * Sets next_report_creation_time. * - * @param \DateTime $next_report_creation_time The date and time when the schedule will create its next report, in ISO 8601 date time format. + * @param \DateTime $next_report_creation_time the date and time when the schedule will create its next report, in ISO 8601 date time format * * @return $this */ @@ -411,12 +391,13 @@ public function setNextReportCreationTime($next_report_creation_time) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -426,7 +407,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -438,8 +419,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -455,7 +436,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -465,7 +446,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/CreateReportSpecification.php b/lib/Models/Reports/CreateReportSpecification.php index af3b40e1..963d3ffd 100644 --- a/lib/Models/Reports/CreateReportSpecification.php +++ b/lib/Models/Reports/CreateReportSpecification.php @@ -1,82 +1,68 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions', 'report_type' => 'string', 'data_start_time' => '\DateTime', 'data_end_time' => '\DateTime', -'marketplace_ids' => 'string[]' ]; +'marketplace_ids' => 'string[]', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'report_options' => null, 'report_type' => null, 'data_start_time' => 'date-time', 'data_end_time' => 'date-time', -'marketplace_ids' => null ]; +'marketplace_ids' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -86,7 +72,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -97,7 +83,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -106,10 +92,10 @@ public static function swaggerFormats() 'report_type' => 'reportType', 'data_start_time' => 'dataStartTime', 'data_end_time' => 'dataEndTime', -'marketplace_ids' => 'marketplaceIds' ]; +'marketplace_ids' => 'marketplaceIds', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -118,10 +104,10 @@ public static function swaggerFormats() 'report_type' => 'setReportType', 'data_start_time' => 'setDataStartTime', 'data_end_time' => 'setDataEndTime', -'marketplace_ids' => 'setMarketplaceIds' ]; +'marketplace_ids' => 'setMarketplaceIds', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -130,11 +116,11 @@ public static function swaggerFormats() 'report_type' => 'getReportType', 'data_start_time' => 'getDataStartTime', 'data_end_time' => 'getDataEndTime', -'marketplace_ids' => 'getMarketplaceIds' ]; +'marketplace_ids' => 'getMarketplaceIds', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -144,7 +130,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -154,7 +140,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -173,17 +159,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -206,29 +190,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['report_type'] === null) { + if (null === $this->container['report_type']) { $invalidProperties[] = "'report_type' can't be null"; } - if ($this->container['marketplace_ids'] === null) { + if (null === $this->container['marketplace_ids']) { $invalidProperties[] = "'marketplace_ids' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets report_options + * Gets report_options. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions */ @@ -238,7 +222,7 @@ public function getReportOptions() } /** - * Sets report_options + * Sets report_options. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions $report_options report_options * @@ -252,7 +236,7 @@ public function setReportOptions($report_options) } /** - * Gets report_type + * Gets report_type. * * @return string */ @@ -262,9 +246,9 @@ public function getReportType() } /** - * Sets report_type + * Sets report_type. * - * @param string $report_type The report type. + * @param string $report_type the report type * * @return $this */ @@ -276,7 +260,7 @@ public function setReportType($report_type) } /** - * Gets data_start_time + * Gets data_start_time. * * @return \DateTime */ @@ -286,7 +270,7 @@ public function getDataStartTime() } /** - * Sets data_start_time + * Sets data_start_time. * * @param \DateTime $data_start_time The start of a date and time range, in ISO 8601 date time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this. * @@ -300,7 +284,7 @@ public function setDataStartTime($data_start_time) } /** - * Gets data_end_time + * Gets data_end_time. * * @return \DateTime */ @@ -310,7 +294,7 @@ public function getDataEndTime() } /** - * Sets data_end_time + * Sets data_end_time. * * @param \DateTime $data_end_time The end of a date and time range, in ISO 8601 date time format, used for selecting the data to report. The default is now. The value must be prior to or equal to the current date and time. Not all report types make use of this. * @@ -324,7 +308,7 @@ public function setDataEndTime($data_end_time) } /** - * Gets marketplace_ids + * Gets marketplace_ids. * * @return string[] */ @@ -334,7 +318,7 @@ public function getMarketplaceIds() } /** - * Sets marketplace_ids + * Sets marketplace_ids. * * @param string[] $marketplace_ids A list of marketplace identifiers. The report document's contents will contain data for all of the specified marketplaces, unless the report type indicates otherwise. * @@ -346,12 +330,13 @@ public function setMarketplaceIds($marketplace_ids) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -361,7 +346,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -373,8 +358,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -390,7 +375,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -400,7 +385,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/Error.php b/lib/Models/Reports/Error.php index e56e45f8..d0483a0b 100644 --- a/lib/Models/Reports/Error.php +++ b/lib/Models/Reports/Error.php @@ -1,79 +1,67 @@ 'string', 'message' => 'string', -'details' => 'string' ]; +'details' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'code' => null, 'message' => null, -'details' => null ]; +'details' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'code' => 'code', 'message' => 'message', -'details' => 'details' ]; +'details' => 'details', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'code' => 'setCode', 'message' => 'setMessage', -'details' => 'setDetails' ]; +'details' => 'setDetails', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'code' => 'getCode', 'message' => 'getMessage', -'details' => 'getDetails' ]; +'details' => 'getDetails', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -195,29 +181,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -227,9 +213,9 @@ public function getCode() } /** - * Sets code + * Sets code. * - * @param string $code An error code that identifies the type of error that occurred. + * @param string $code an error code that identifies the type of error that occurred * * @return $this */ @@ -241,7 +227,7 @@ public function setCode($code) } /** - * Gets message + * Gets message. * * @return string */ @@ -251,9 +237,9 @@ public function getMessage() } /** - * Sets message + * 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 in a human-readable form * * @return $this */ @@ -265,7 +251,7 @@ public function setMessage($message) } /** - * Gets details + * Gets details. * * @return string */ @@ -275,9 +261,9 @@ public function getDetails() } /** - * Sets details + * Sets details. * - * @param string $details Additional details that can help the caller understand or fix the issue. + * @param string $details additional details that can help the caller understand or fix the issue * * @return $this */ @@ -287,12 +273,13 @@ public function setDetails($details) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -302,7 +289,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -314,8 +301,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -331,7 +318,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -341,7 +328,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/ErrorList.php b/lib/Models/Reports/ErrorList.php index a3530b31..8616cc0e 100644 --- a/lib/Models/Reports/ErrorList.php +++ b/lib/Models/Reports/ErrorList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return Error::class; } } diff --git a/lib/Models/Reports/GetReportDocumentResponse.php b/lib/Models/Reports/GetReportDocumentResponse.php index 357e3c53..e828326d 100644 --- a/lib/Models/Reports/GetReportDocumentResponse.php +++ b/lib/Models/Reports/GetReportDocumentResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocument', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocument */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocument $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/GetReportResponse.php b/lib/Models/Reports/GetReportResponse.php index c6ed10e7..e318069c 100644 --- a/lib/Models/Reports/GetReportResponse.php +++ b/lib/Models/Reports/GetReportResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\Report', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\Report */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\Report $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/GetReportScheduleResponse.php b/lib/Models/Reports/GetReportScheduleResponse.php index c1c29f81..87c62a6c 100644 --- a/lib/Models/Reports/GetReportScheduleResponse.php +++ b/lib/Models/Reports/GetReportScheduleResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportSchedule', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportSchedule */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportSchedule $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/GetReportSchedulesResponse.php b/lib/Models/Reports/GetReportSchedulesResponse.php index 054c16cc..d7588393 100644 --- a/lib/Models/Reports/GetReportSchedulesResponse.php +++ b/lib/Models/Reports/GetReportSchedulesResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportScheduleList', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportScheduleList */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportScheduleList $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/GetReportsResponse.php b/lib/Models/Reports/GetReportsResponse.php index 26415063..78b6c96c 100644 --- a/lib/Models/Reports/GetReportsResponse.php +++ b/lib/Models/Reports/GetReportsResponse.php @@ -1,79 +1,67 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportList', 'next_token' => 'string', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, 'next_token' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', 'next_token' => 'nextToken', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', 'next_token' => 'setNextToken', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', 'next_token' => 'getNextToken', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -200,18 +186,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportList */ @@ -221,7 +206,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportList $payload payload * @@ -235,7 +220,7 @@ public function setPayload($payload) } /** - * Gets next_token + * Gets next_token. * * @return string */ @@ -245,7 +230,7 @@ public function getNextToken() } /** - * Sets next_token + * Sets next_token. * * @param string $next_token Returned when the number of results exceeds pageSize. To get the next page of results, call getReports with this token as the only parameter. * @@ -259,7 +244,7 @@ public function setNextToken($next_token) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList */ @@ -269,7 +254,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ErrorList $errors errors * @@ -281,12 +266,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -296,7 +282,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -308,8 +294,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -325,7 +311,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -335,7 +321,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/Report.php b/lib/Models/Reports/Report.php index 00809765..bed4b4a0 100644 --- a/lib/Models/Reports/Report.php +++ b/lib/Models/Reports/Report.php @@ -1,61 +1,47 @@ 'string[]', 'report_id' => 'string', @@ -67,13 +53,13 @@ class Report implements ModelInterface, ArrayAccess 'processing_status' => 'string', 'processing_start_time' => '\DateTime', 'processing_end_time' => '\DateTime', -'report_document_id' => 'string' ]; +'report_document_id' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'marketplace_ids' => null, 'report_id' => null, @@ -85,10 +71,10 @@ class Report implements ModelInterface, ArrayAccess 'processing_status' => null, 'processing_start_time' => 'date-time', 'processing_end_time' => 'date-time', -'report_document_id' => null ]; +'report_document_id' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -98,7 +84,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -109,7 +95,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -124,10 +110,10 @@ public static function swaggerFormats() 'processing_status' => 'processingStatus', 'processing_start_time' => 'processingStartTime', 'processing_end_time' => 'processingEndTime', -'report_document_id' => 'reportDocumentId' ]; +'report_document_id' => 'reportDocumentId', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -142,10 +128,10 @@ public static function swaggerFormats() 'processing_status' => 'setProcessingStatus', 'processing_start_time' => 'setProcessingStartTime', 'processing_end_time' => 'setProcessingEndTime', -'report_document_id' => 'setReportDocumentId' ]; +'report_document_id' => 'setReportDocumentId', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -160,11 +146,11 @@ public static function swaggerFormats() 'processing_status' => 'getProcessingStatus', 'processing_start_time' => 'getProcessingStartTime', 'processing_end_time' => 'getProcessingEndTime', -'report_document_id' => 'getReportDocumentId' ]; +'report_document_id' => 'getReportDocumentId', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -174,7 +160,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -184,7 +170,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -204,13 +190,13 @@ public function getModelName() } const PROCESSING_STATUS_CANCELLED = 'CANCELLED'; -const PROCESSING_STATUS_DONE = 'DONE'; -const PROCESSING_STATUS_FATAL = 'FATAL'; -const PROCESSING_STATUS_IN_PROGRESS = 'IN_PROGRESS'; -const PROCESSING_STATUS_IN_QUEUE = 'IN_QUEUE'; + const PROCESSING_STATUS_DONE = 'DONE'; + const PROCESSING_STATUS_FATAL = 'FATAL'; + const PROCESSING_STATUS_IN_PROGRESS = 'IN_PROGRESS'; + const PROCESSING_STATUS_IN_QUEUE = 'IN_QUEUE'; /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -225,14 +211,14 @@ public function getProcessingStatusAllowableValues() } /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -261,16 +247,16 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['report_id'] === null) { + if (null === $this->container['report_id']) { $invalidProperties[] = "'report_id' can't be null"; } - if ($this->container['report_type'] === null) { + if (null === $this->container['report_type']) { $invalidProperties[] = "'report_type' can't be null"; } - if ($this->container['created_time'] === null) { + if (null === $this->container['created_time']) { $invalidProperties[] = "'created_time' can't be null"; } - if ($this->container['processing_status'] === null) { + if (null === $this->container['processing_status']) { $invalidProperties[] = "'processing_status' can't be null"; } $allowedValues = $this->getProcessingStatusAllowableValues(); @@ -286,18 +272,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets marketplace_ids + * Gets marketplace_ids. * * @return string[] */ @@ -307,9 +292,9 @@ public function getMarketplaceIds() } /** - * Sets marketplace_ids + * Sets marketplace_ids. * - * @param string[] $marketplace_ids A list of marketplace identifiers for the report. + * @param string[] $marketplace_ids a list of marketplace identifiers for the report * * @return $this */ @@ -321,7 +306,7 @@ public function setMarketplaceIds($marketplace_ids) } /** - * Gets report_id + * Gets report_id. * * @return string */ @@ -331,7 +316,7 @@ public function getReportId() } /** - * Sets report_id + * Sets report_id. * * @param string $report_id The identifier for the report. This identifier is unique only in combination with a seller ID. * @@ -345,7 +330,7 @@ public function setReportId($report_id) } /** - * Gets report_type + * Gets report_type. * * @return string */ @@ -355,9 +340,9 @@ public function getReportType() } /** - * Sets report_type + * Sets report_type. * - * @param string $report_type The report type. + * @param string $report_type the report type * * @return $this */ @@ -369,7 +354,7 @@ public function setReportType($report_type) } /** - * Gets data_start_time + * Gets data_start_time. * * @return \DateTime */ @@ -379,9 +364,9 @@ public function getDataStartTime() } /** - * Sets data_start_time + * Sets data_start_time. * - * @param \DateTime $data_start_time The start of a date and time range used for selecting the data to report. + * @param \DateTime $data_start_time the start of a date and time range used for selecting the data to report * * @return $this */ @@ -393,7 +378,7 @@ public function setDataStartTime($data_start_time) } /** - * Gets data_end_time + * Gets data_end_time. * * @return \DateTime */ @@ -403,9 +388,9 @@ public function getDataEndTime() } /** - * Sets data_end_time + * Sets data_end_time. * - * @param \DateTime $data_end_time The end of a date and time range used for selecting the data to report. + * @param \DateTime $data_end_time the end of a date and time range used for selecting the data to report * * @return $this */ @@ -417,7 +402,7 @@ public function setDataEndTime($data_end_time) } /** - * Gets report_schedule_id + * Gets report_schedule_id. * * @return string */ @@ -427,7 +412,7 @@ public function getReportScheduleId() } /** - * Sets report_schedule_id + * Sets report_schedule_id. * * @param string $report_schedule_id The identifier of the report schedule that created this report (if any). This identifier is unique only in combination with a seller ID. * @@ -441,7 +426,7 @@ public function setReportScheduleId($report_schedule_id) } /** - * Gets created_time + * Gets created_time. * * @return \DateTime */ @@ -451,9 +436,9 @@ public function getCreatedTime() } /** - * Sets created_time + * Sets created_time. * - * @param \DateTime $created_time The date and time when the report was created. + * @param \DateTime $created_time the date and time when the report was created * * @return $this */ @@ -465,7 +450,7 @@ public function setCreatedTime($created_time) } /** - * Gets processing_status + * Gets processing_status. * * @return string */ @@ -475,9 +460,9 @@ public function getProcessingStatus() } /** - * Sets processing_status + * Sets processing_status. * - * @param string $processing_status The processing status of the report. + * @param string $processing_status the processing status of the report * * @return $this */ @@ -485,12 +470,7 @@ public function setProcessingStatus($processing_status) { $allowedValues = $this->getProcessingStatusAllowableValues(); if (!in_array($processing_status, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'processing_status', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + throw new \InvalidArgumentException(sprintf("Invalid value for 'processing_status', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['processing_status'] = $processing_status; @@ -498,7 +478,7 @@ public function setProcessingStatus($processing_status) } /** - * Gets processing_start_time + * Gets processing_start_time. * * @return \DateTime */ @@ -508,9 +488,9 @@ public function getProcessingStartTime() } /** - * Sets processing_start_time + * Sets processing_start_time. * - * @param \DateTime $processing_start_time The date and time when the report processing started, in ISO 8601 date time format. + * @param \DateTime $processing_start_time the date and time when the report processing started, in ISO 8601 date time format * * @return $this */ @@ -522,7 +502,7 @@ public function setProcessingStartTime($processing_start_time) } /** - * Gets processing_end_time + * Gets processing_end_time. * * @return \DateTime */ @@ -532,9 +512,9 @@ public function getProcessingEndTime() } /** - * Sets processing_end_time + * Sets processing_end_time. * - * @param \DateTime $processing_end_time The date and time when the report processing completed, in ISO 8601 date time format. + * @param \DateTime $processing_end_time the date and time when the report processing completed, in ISO 8601 date time format * * @return $this */ @@ -546,7 +526,7 @@ public function setProcessingEndTime($processing_end_time) } /** - * Gets report_document_id + * Gets report_document_id. * * @return string */ @@ -556,7 +536,7 @@ public function getReportDocumentId() } /** - * Sets report_document_id + * Sets report_document_id. * * @param string $report_document_id The identifier for the report document. Pass this into the getReportDocument operation to get the information you will need to retrieve and decrypt the report document's contents. * @@ -568,12 +548,13 @@ public function setReportDocumentId($report_document_id) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -583,7 +564,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -595,8 +576,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -612,7 +593,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -622,7 +603,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/ReportDocument.php b/lib/Models/Reports/ReportDocument.php index 1ccfbe11..d6fb463b 100644 --- a/lib/Models/Reports/ReportDocument.php +++ b/lib/Models/Reports/ReportDocument.php @@ -1,80 +1,66 @@ 'string', 'url' => 'string', 'encryption_details' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocumentEncryptionDetails', -'compression_algorithm' => 'string' ]; +'compression_algorithm' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'report_document_id' => null, 'url' => null, 'encryption_details' => null, -'compression_algorithm' => null ]; +'compression_algorithm' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -84,7 +70,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -95,7 +81,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -103,10 +89,10 @@ public static function swaggerFormats() 'report_document_id' => 'reportDocumentId', 'url' => 'url', 'encryption_details' => 'encryptionDetails', -'compression_algorithm' => 'compressionAlgorithm' ]; +'compression_algorithm' => 'compressionAlgorithm', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -114,10 +100,10 @@ public static function swaggerFormats() 'report_document_id' => 'setReportDocumentId', 'url' => 'setUrl', 'encryption_details' => 'setEncryptionDetails', -'compression_algorithm' => 'setCompressionAlgorithm' ]; +'compression_algorithm' => 'setCompressionAlgorithm', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -125,11 +111,11 @@ public static function swaggerFormats() 'report_document_id' => 'getReportDocumentId', 'url' => 'getUrl', 'encryption_details' => 'getEncryptionDetails', -'compression_algorithm' => 'getCompressionAlgorithm' ]; +'compression_algorithm' => 'getCompressionAlgorithm', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -139,7 +125,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -149,7 +135,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -171,7 +157,7 @@ public function getModelName() const COMPRESSION_ALGORITHM_GZIP = 'GZIP'; /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -182,14 +168,14 @@ public function getCompressionAlgorithmAllowableValues() } /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -211,13 +197,13 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['report_document_id'] === null) { + if (null === $this->container['report_document_id']) { $invalidProperties[] = "'report_document_id' can't be null"; } - if ($this->container['url'] === null) { + if (null === $this->container['url']) { $invalidProperties[] = "'url' can't be null"; } - if ($this->container['encryption_details'] === null) { + if (null === $this->container['encryption_details']) { $invalidProperties[] = "'encryption_details' can't be null"; } $allowedValues = $this->getCompressionAlgorithmAllowableValues(); @@ -233,18 +219,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets report_document_id + * Gets report_document_id. * * @return string */ @@ -254,7 +239,7 @@ public function getReportDocumentId() } /** - * Sets report_document_id + * Sets report_document_id. * * @param string $report_document_id The identifier for the report document. This identifier is unique only in combination with a seller ID. * @@ -268,7 +253,7 @@ public function setReportDocumentId($report_document_id) } /** - * Gets url + * Gets url. * * @return string */ @@ -278,7 +263,7 @@ public function getUrl() } /** - * Sets url + * Sets url. * * @param string $url A presigned URL for the report document. This URL expires after 5 minutes. * @@ -292,7 +277,7 @@ public function setUrl($url) } /** - * Gets encryption_details + * Gets encryption_details. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocumentEncryptionDetails */ @@ -302,7 +287,7 @@ public function getEncryptionDetails() } /** - * Sets encryption_details + * Sets encryption_details. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportDocumentEncryptionDetails $encryption_details encryption_details * @@ -316,7 +301,7 @@ public function setEncryptionDetails($encryption_details) } /** - * Gets compression_algorithm + * Gets compression_algorithm. * * @return string */ @@ -326,9 +311,9 @@ public function getCompressionAlgorithm() } /** - * Sets compression_algorithm + * Sets compression_algorithm. * - * @param string $compression_algorithm If present, the report document contents have been compressed with the provided algorithm. + * @param string $compression_algorithm if present, the report document contents have been compressed with the provided algorithm * * @return $this */ @@ -336,23 +321,19 @@ public function setCompressionAlgorithm($compression_algorithm) { $allowedValues = $this->getCompressionAlgorithmAllowableValues(); if (!is_null($compression_algorithm) && !in_array($compression_algorithm, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'compression_algorithm', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + throw new \InvalidArgumentException(sprintf("Invalid value for 'compression_algorithm', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['compression_algorithm'] = $compression_algorithm; return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -362,7 +343,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -374,8 +355,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -391,7 +372,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -401,7 +382,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/ReportDocumentEncryptionDetails.php b/lib/Models/Reports/ReportDocumentEncryptionDetails.php index 2ab00a91..1ac9c7df 100644 --- a/lib/Models/Reports/ReportDocumentEncryptionDetails.php +++ b/lib/Models/Reports/ReportDocumentEncryptionDetails.php @@ -1,79 +1,67 @@ 'string', 'initialization_vector' => 'string', -'key' => 'string' ]; +'key' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'standard' => null, 'initialization_vector' => null, -'key' => null ]; +'key' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'standard' => 'standard', 'initialization_vector' => 'initializationVector', -'key' => 'key' ]; +'key' => 'key', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'standard' => 'setStandard', 'initialization_vector' => 'setInitializationVector', -'key' => 'setKey' ]; +'key' => 'setKey', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'standard' => 'getStandard', 'initialization_vector' => 'getInitializationVector', -'key' => 'getKey' ]; +'key' => 'getKey', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -167,7 +155,7 @@ public function getModelName() const STANDARD_AES = 'AES'; /** - * Gets allowable values of the enum + * Gets allowable values of the enum. * * @return string[] */ @@ -178,14 +166,14 @@ public function getStandardAllowableValues() } /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -206,7 +194,7 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['standard'] === null) { + if (null === $this->container['standard']) { $invalidProperties[] = "'standard' can't be null"; } $allowedValues = $this->getStandardAllowableValues(); @@ -217,29 +205,29 @@ public function listInvalidProperties() ); } - if ($this->container['initialization_vector'] === null) { + if (null === $this->container['initialization_vector']) { $invalidProperties[] = "'initialization_vector' can't be null"; } - if ($this->container['key'] === null) { + if (null === $this->container['key']) { $invalidProperties[] = "'key' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets standard + * Gets standard. * * @return string */ @@ -249,9 +237,9 @@ public function getStandard() } /** - * Sets standard + * Sets standard. * - * @param string $standard The encryption standard required to decrypt the document contents. + * @param string $standard the encryption standard required to decrypt the document contents * * @return $this */ @@ -259,12 +247,7 @@ public function setStandard($standard) { $allowedValues = $this->getStandardAllowableValues(); if (!in_array($standard, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'standard', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); + throw new \InvalidArgumentException(sprintf("Invalid value for 'standard', must be one of '%s'", implode("', '", $allowedValues))); } $this->container['standard'] = $standard; @@ -272,7 +255,7 @@ public function setStandard($standard) } /** - * Gets initialization_vector + * Gets initialization_vector. * * @return string */ @@ -282,9 +265,9 @@ public function getInitializationVector() } /** - * Sets initialization_vector + * Sets initialization_vector. * - * @param string $initialization_vector The vector to decrypt the document contents using Cipher Block Chaining (CBC). + * @param string $initialization_vector the vector to decrypt the document contents using Cipher Block Chaining (CBC) * * @return $this */ @@ -296,7 +279,7 @@ public function setInitializationVector($initialization_vector) } /** - * Gets key + * Gets key. * * @return string */ @@ -306,9 +289,9 @@ public function getKey() } /** - * Sets key + * Sets key. * - * @param string $key The encryption key used to decrypt the document contents. + * @param string $key the encryption key used to decrypt the document contents * * @return $this */ @@ -318,12 +301,13 @@ public function setKey($key) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -333,7 +317,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -345,8 +329,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -362,7 +346,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -372,7 +356,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/ReportList.php b/lib/Models/Reports/ReportList.php index e6aa841e..2820c214 100644 --- a/lib/Models/Reports/ReportList.php +++ b/lib/Models/Reports/ReportList.php @@ -1,75 +1,61 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +195,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +207,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +224,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +234,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -266,7 +250,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return Report::class; } } diff --git a/lib/Models/Reports/ReportOptions.php b/lib/Models/Reports/ReportOptions.php index 34e64644..a8bfbf1f 100644 --- a/lib/Models/Reports/ReportOptions.php +++ b/lib/Models/Reports/ReportOptions.php @@ -1,75 +1,63 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +197,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +209,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +226,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +236,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/ReportSchedule.php b/lib/Models/Reports/ReportSchedule.php index e3e959b8..dc87d782 100644 --- a/lib/Models/Reports/ReportSchedule.php +++ b/lib/Models/Reports/ReportSchedule.php @@ -1,85 +1,73 @@ 'string', 'report_type' => 'string', 'marketplace_ids' => 'string[]', 'report_options' => '\ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions', 'period' => 'string', -'next_report_creation_time' => '\DateTime' ]; +'next_report_creation_time' => '\DateTime', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'report_schedule_id' => null, 'report_type' => null, 'marketplace_ids' => null, 'report_options' => null, 'period' => null, -'next_report_creation_time' => 'date-time' ]; +'next_report_creation_time' => 'date-time', ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -89,7 +77,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -100,7 +88,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -110,10 +98,10 @@ public static function swaggerFormats() 'marketplace_ids' => 'marketplaceIds', 'report_options' => 'reportOptions', 'period' => 'period', -'next_report_creation_time' => 'nextReportCreationTime' ]; +'next_report_creation_time' => 'nextReportCreationTime', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -123,10 +111,10 @@ public static function swaggerFormats() 'marketplace_ids' => 'setMarketplaceIds', 'report_options' => 'setReportOptions', 'period' => 'setPeriod', -'next_report_creation_time' => 'setNextReportCreationTime' ]; +'next_report_creation_time' => 'setNextReportCreationTime', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -136,11 +124,11 @@ public static function swaggerFormats() 'marketplace_ids' => 'getMarketplaceIds', 'report_options' => 'getReportOptions', 'period' => 'getPeriod', -'next_report_creation_time' => 'getNextReportCreationTime' ]; +'next_report_creation_time' => 'getNextReportCreationTime', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -150,7 +138,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -160,7 +148,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -179,17 +167,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -213,32 +199,32 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['report_schedule_id'] === null) { + if (null === $this->container['report_schedule_id']) { $invalidProperties[] = "'report_schedule_id' can't be null"; } - if ($this->container['report_type'] === null) { + if (null === $this->container['report_type']) { $invalidProperties[] = "'report_type' can't be null"; } - if ($this->container['period'] === null) { + if (null === $this->container['period']) { $invalidProperties[] = "'period' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets report_schedule_id + * Gets report_schedule_id. * * @return string */ @@ -248,7 +234,7 @@ public function getReportScheduleId() } /** - * Sets report_schedule_id + * Sets report_schedule_id. * * @param string $report_schedule_id The identifier for the report schedule. This identifier is unique only in combination with a seller ID. * @@ -262,7 +248,7 @@ public function setReportScheduleId($report_schedule_id) } /** - * Gets report_type + * Gets report_type. * * @return string */ @@ -272,9 +258,9 @@ public function getReportType() } /** - * Sets report_type + * Sets report_type. * - * @param string $report_type The report type. + * @param string $report_type the report type * * @return $this */ @@ -286,7 +272,7 @@ public function setReportType($report_type) } /** - * Gets marketplace_ids + * Gets marketplace_ids. * * @return string[] */ @@ -296,7 +282,7 @@ public function getMarketplaceIds() } /** - * Sets marketplace_ids + * Sets marketplace_ids. * * @param string[] $marketplace_ids A list of marketplace identifiers. The report document's contents will contain data for all of the specified marketplaces, unless the report type indicates otherwise. * @@ -310,7 +296,7 @@ public function setMarketplaceIds($marketplace_ids) } /** - * Gets report_options + * Gets report_options. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions */ @@ -320,7 +306,7 @@ public function getReportOptions() } /** - * Sets report_options + * Sets report_options. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Reports\ReportOptions $report_options report_options * @@ -334,7 +320,7 @@ public function setReportOptions($report_options) } /** - * Gets period + * Gets period. * * @return string */ @@ -344,9 +330,9 @@ public function getPeriod() } /** - * Sets period + * Sets period. * - * @param string $period An ISO 8601 period value that indicates how often a report should be created. + * @param string $period an ISO 8601 period value that indicates how often a report should be created * * @return $this */ @@ -358,7 +344,7 @@ public function setPeriod($period) } /** - * Gets next_report_creation_time + * Gets next_report_creation_time. * * @return \DateTime */ @@ -368,9 +354,9 @@ public function getNextReportCreationTime() } /** - * Sets next_report_creation_time + * Sets next_report_creation_time. * - * @param \DateTime $next_report_creation_time The date and time when the schedule will create its next report, in ISO 8601 date time format. + * @param \DateTime $next_report_creation_time the date and time when the schedule will create its next report, in ISO 8601 date time format * * @return $this */ @@ -380,12 +366,13 @@ public function setNextReportCreationTime($next_report_creation_time) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -395,7 +382,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -407,8 +394,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -424,7 +411,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -434,7 +421,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Reports/ReportScheduleList.php b/lib/Models/Reports/ReportScheduleList.php index 18b3ff9f..820c4dc6 100644 --- a/lib/Models/Reports/ReportScheduleList.php +++ b/lib/Models/Reports/ReportScheduleList.php @@ -1,75 +1,61 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -211,7 +195,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -223,8 +207,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -240,7 +224,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -250,7 +234,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -266,7 +250,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return ReportSchedule::class; } } diff --git a/lib/Models/Sales/Decimal.php b/lib/Models/Sales/Decimal.php index cd497e9a..d0c42ecc 100644 --- a/lib/Models/Sales/Decimal.php +++ b/lib/Models/Sales/Decimal.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Sales provides APIs related to sales performance. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Sales; @@ -36,12 +24,10 @@ /** * Decimal Class Doc Comment. * - * @category Class + * @description A decimal number with no loss of precision. Useful when precision loss is unacceptable, as with currencies. Follows RFC7159 for number representation. <br>**Pattern** : `^-?(0|([1-9]\\d*))(\\.\\d+)?([eE][+-]?\\d+)?$`. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Decimal implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Sales/Error.php b/lib/Models/Sales/Error.php index 5e1c708a..a4abce2f 100644 --- a/lib/Models/Sales/Error.php +++ b/lib/Models/Sales/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Sales provides APIs related to sales performance. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Sales; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Sales/ErrorList.php b/lib/Models/Sales/ErrorList.php index c5af8c3a..3eed7e83 100644 --- a/lib/Models/Sales/ErrorList.php +++ b/lib/Models/Sales/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Sales provides APIs related to sales performance. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Sales; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Sales/GetOrderMetricsResponse.php b/lib/Models/Sales/GetOrderMetricsResponse.php index 8864c6a1..e4434076 100644 --- a/lib/Models/Sales/GetOrderMetricsResponse.php +++ b/lib/Models/Sales/GetOrderMetricsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Sales provides APIs related to sales performance. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Sales; @@ -36,12 +24,10 @@ /** * GetOrderMetricsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getOrderMetrics operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetOrderMetricsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Sales/Money.php b/lib/Models/Sales/Money.php index b4b4418e..be7d7245 100644 --- a/lib/Models/Sales/Money.php +++ b/lib/Models/Sales/Money.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Sales provides APIs related to sales performance. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Sales; @@ -36,12 +24,10 @@ /** * Money Class Doc Comment. * - * @category Class + * @description The currency type and the amount. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Money implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Sales/OrderMetricsInterval.php b/lib/Models/Sales/OrderMetricsInterval.php index a2dccd8a..579cf373 100644 --- a/lib/Models/Sales/OrderMetricsInterval.php +++ b/lib/Models/Sales/OrderMetricsInterval.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Sales provides APIs related to sales performance. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Sales; @@ -36,12 +24,10 @@ /** * OrderMetricsInterval Class Doc Comment. * - * @category Class + * @description Contains order metrics. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class OrderMetricsInterval implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Sales/OrderMetricsList.php b/lib/Models/Sales/OrderMetricsList.php index 6a91b2f1..e182c10f 100644 --- a/lib/Models/Sales/OrderMetricsList.php +++ b/lib/Models/Sales/OrderMetricsList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * The Selling Partner API for Sales provides APIs related to sales performance. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Sales; @@ -37,12 +25,10 @@ /** * OrderMetricsList Class Doc Comment. * - * @category Class + * @description A set of order metrics, each scoped to a particular time interval. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class OrderMetricsList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Sellers/Error.php b/lib/Models/Sellers/Error.php index 0b8153a5..4d6e8d9a 100644 --- a/lib/Models/Sellers/Error.php +++ b/lib/Models/Sellers/Error.php @@ -1,79 +1,67 @@ 'string', 'message' => 'string', -'details' => 'string' ]; +'details' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'code' => null, 'message' => null, -'details' => null ]; +'details' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -83,7 +71,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -94,38 +82,38 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'code' => 'code', 'message' => 'message', -'details' => 'details' ]; +'details' => 'details', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'code' => 'setCode', 'message' => 'setMessage', -'details' => 'setDetails' ]; +'details' => 'setDetails', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'code' => 'getCode', 'message' => 'getMessage', -'details' => 'getDetails' ]; +'details' => 'getDetails', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -135,7 +123,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -145,7 +133,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -164,17 +152,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -195,29 +181,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['code'] === null) { + if (null === $this->container['code']) { $invalidProperties[] = "'code' can't be null"; } - if ($this->container['message'] === null) { + if (null === $this->container['message']) { $invalidProperties[] = "'message' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets code + * Gets code. * * @return string */ @@ -227,9 +213,9 @@ public function getCode() } /** - * Sets code + * Sets code. * - * @param string $code An error code that identifies the type of error that occured. + * @param string $code an error code that identifies the type of error that occured * * @return $this */ @@ -241,7 +227,7 @@ public function setCode($code) } /** - * Gets message + * Gets message. * * @return string */ @@ -251,9 +237,9 @@ public function getMessage() } /** - * Sets message + * 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 in a human-readable form * * @return $this */ @@ -265,7 +251,7 @@ public function setMessage($message) } /** - * Gets details + * Gets details. * * @return string */ @@ -275,9 +261,9 @@ public function getDetails() } /** - * Sets details + * Sets details. * - * @param string $details Additional details that can help the caller understand or fix the issue. + * @param string $details additional details that can help the caller understand or fix the issue * * @return $this */ @@ -287,12 +273,13 @@ public function setDetails($details) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -302,7 +289,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -314,8 +301,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -331,7 +318,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -341,7 +328,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Sellers/ErrorList.php b/lib/Models/Sellers/ErrorList.php index 6489b5f8..57059c40 100644 --- a/lib/Models/Sellers/ErrorList.php +++ b/lib/Models/Sellers/ErrorList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return Error::class; } } diff --git a/lib/Models/Sellers/GetMarketplaceParticipationsResponse.php b/lib/Models/Sellers/GetMarketplaceParticipationsResponse.php index 78afdbbe..9e107f30 100644 --- a/lib/Models/Sellers/GetMarketplaceParticipationsResponse.php +++ b/lib/Models/Sellers/GetMarketplaceParticipationsResponse.php @@ -1,77 +1,65 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\MarketplaceParticipationList', -'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\ErrorList' ]; +'errors' => '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\ErrorList', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'payload' => null, -'errors' => null ]; +'errors' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'payload' => 'payload', -'errors' => 'errors' ]; +'errors' => 'errors', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'payload' => 'setPayload', -'errors' => 'setErrors' ]; +'errors' => 'setErrors', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'payload' => 'getPayload', -'errors' => 'getErrors' ]; +'errors' => 'getErrors', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -194,18 +180,17 @@ public function listInvalidProperties() /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets payload + * Gets payload. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\MarketplaceParticipationList */ @@ -215,7 +200,7 @@ public function getPayload() } /** - * Sets payload + * Sets payload. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\MarketplaceParticipationList $payload payload * @@ -229,7 +214,7 @@ public function setPayload($payload) } /** - * Gets errors + * Gets errors. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\ErrorList */ @@ -239,7 +224,7 @@ public function getErrors() } /** - * Sets errors + * Sets errors. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\ErrorList $errors errors * @@ -251,12 +236,13 @@ public function setErrors($errors) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -266,7 +252,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -278,8 +264,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -295,7 +281,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -305,7 +291,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Sellers/Marketplace.php b/lib/Models/Sellers/Marketplace.php index 8849c442..33dec433 100644 --- a/lib/Models/Sellers/Marketplace.php +++ b/lib/Models/Sellers/Marketplace.php @@ -1,85 +1,73 @@ 'string', 'name' => 'string', 'country_code' => 'string', 'default_currency_code' => 'string', 'default_language_code' => 'string', -'domain_name' => 'string' ]; +'domain_name' => 'string', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'id' => null, 'name' => null, 'country_code' => null, 'default_currency_code' => null, 'default_language_code' => null, -'domain_name' => null ]; +'domain_name' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -89,7 +77,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -100,7 +88,7 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ @@ -110,10 +98,10 @@ public static function swaggerFormats() 'country_code' => 'countryCode', 'default_currency_code' => 'defaultCurrencyCode', 'default_language_code' => 'defaultLanguageCode', -'domain_name' => 'domainName' ]; +'domain_name' => 'domainName', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ @@ -123,10 +111,10 @@ public static function swaggerFormats() 'country_code' => 'setCountryCode', 'default_currency_code' => 'setDefaultCurrencyCode', 'default_language_code' => 'setDefaultLanguageCode', -'domain_name' => 'setDomainName' ]; +'domain_name' => 'setDomainName', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ @@ -136,11 +124,11 @@ public static function swaggerFormats() 'country_code' => 'getCountryCode', 'default_currency_code' => 'getDefaultCurrencyCode', 'default_language_code' => 'getDefaultLanguageCode', -'domain_name' => 'getDomainName' ]; +'domain_name' => 'getDomainName', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -150,7 +138,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -160,7 +148,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -179,17 +167,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -213,41 +199,41 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['id'] === null) { + if (null === $this->container['id']) { $invalidProperties[] = "'id' can't be null"; } - if ($this->container['name'] === null) { + if (null === $this->container['name']) { $invalidProperties[] = "'name' can't be null"; } - if ($this->container['country_code'] === null) { + if (null === $this->container['country_code']) { $invalidProperties[] = "'country_code' can't be null"; } - if ($this->container['default_currency_code'] === null) { + if (null === $this->container['default_currency_code']) { $invalidProperties[] = "'default_currency_code' can't be null"; } - if ($this->container['default_language_code'] === null) { + if (null === $this->container['default_language_code']) { $invalidProperties[] = "'default_language_code' can't be null"; } - if ($this->container['domain_name'] === null) { + if (null === $this->container['domain_name']) { $invalidProperties[] = "'domain_name' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets id + * Gets id. * * @return string */ @@ -257,9 +243,9 @@ public function getId() } /** - * Sets id + * Sets id. * - * @param string $id The encrypted marketplace value. + * @param string $id the encrypted marketplace value * * @return $this */ @@ -271,7 +257,7 @@ public function setId($id) } /** - * Gets name + * Gets name. * * @return string */ @@ -281,9 +267,9 @@ public function getName() } /** - * Sets name + * Sets name. * - * @param string $name Marketplace name. + * @param string $name marketplace name * * @return $this */ @@ -295,7 +281,7 @@ public function setName($name) } /** - * Gets country_code + * Gets country_code. * * @return string */ @@ -305,9 +291,9 @@ public function getCountryCode() } /** - * Sets country_code + * Sets country_code. * - * @param string $country_code The ISO 3166-1 alpha-2 format country code of the marketplace. + * @param string $country_code the ISO 3166-1 alpha-2 format country code of the marketplace * * @return $this */ @@ -319,7 +305,7 @@ public function setCountryCode($country_code) } /** - * Gets default_currency_code + * Gets default_currency_code. * * @return string */ @@ -329,9 +315,9 @@ public function getDefaultCurrencyCode() } /** - * Sets default_currency_code + * Sets default_currency_code. * - * @param string $default_currency_code The ISO 4217 format currency code of the marketplace. + * @param string $default_currency_code the ISO 4217 format currency code of the marketplace * * @return $this */ @@ -343,7 +329,7 @@ public function setDefaultCurrencyCode($default_currency_code) } /** - * Gets default_language_code + * Gets default_language_code. * * @return string */ @@ -353,9 +339,9 @@ public function getDefaultLanguageCode() } /** - * Sets default_language_code + * Sets default_language_code. * - * @param string $default_language_code The ISO 639-1 format language code of the marketplace. + * @param string $default_language_code the ISO 639-1 format language code of the marketplace * * @return $this */ @@ -367,7 +353,7 @@ public function setDefaultLanguageCode($default_language_code) } /** - * Gets domain_name + * Gets domain_name. * * @return string */ @@ -377,9 +363,9 @@ public function getDomainName() } /** - * Sets domain_name + * Sets domain_name. * - * @param string $domain_name The domain name of the marketplace. + * @param string $domain_name the domain name of the marketplace * * @return $this */ @@ -389,12 +375,13 @@ public function setDomainName($domain_name) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -404,7 +391,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -416,8 +403,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -433,7 +420,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -443,7 +430,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Sellers/MarketplaceParticipation.php b/lib/Models/Sellers/MarketplaceParticipation.php index d1fd1cc5..e85fab5a 100644 --- a/lib/Models/Sellers/MarketplaceParticipation.php +++ b/lib/Models/Sellers/MarketplaceParticipation.php @@ -1,76 +1,62 @@ '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Marketplace', -'participation' => '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Participation' ]; +'participation' => '\ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Participation', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'marketplace' => null, -'participation' => null ]; +'participation' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -80,7 +66,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -91,35 +77,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'marketplace' => 'marketplace', -'participation' => 'participation' ]; +'participation' => 'participation', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'marketplace' => 'setMarketplace', -'participation' => 'setParticipation' ]; +'participation' => 'setParticipation', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'marketplace' => 'getMarketplace', -'participation' => 'getParticipation' ]; +'participation' => 'getParticipation', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -129,7 +115,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -139,7 +125,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -158,17 +144,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -188,29 +172,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['marketplace'] === null) { + if (null === $this->container['marketplace']) { $invalidProperties[] = "'marketplace' can't be null"; } - if ($this->container['participation'] === null) { + if (null === $this->container['participation']) { $invalidProperties[] = "'participation' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets marketplace + * Gets marketplace. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Marketplace */ @@ -220,7 +204,7 @@ public function getMarketplace() } /** - * Sets marketplace + * Sets marketplace. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Marketplace $marketplace marketplace * @@ -234,7 +218,7 @@ public function setMarketplace($marketplace) } /** - * Gets participation + * Gets participation. * * @return \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Participation */ @@ -244,7 +228,7 @@ public function getParticipation() } /** - * Sets participation + * Sets participation. * * @param \ClouSale\AmazonSellingPartnerAPI\Models\Sellers\Participation $participation participation * @@ -256,12 +240,13 @@ public function setParticipation($participation) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -271,7 +256,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -283,8 +268,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -300,7 +285,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -310,7 +295,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Sellers/MarketplaceParticipationList.php b/lib/Models/Sellers/MarketplaceParticipationList.php index 8fe97d03..2f0cb629 100644 --- a/lib/Models/Sellers/MarketplaceParticipationList.php +++ b/lib/Models/Sellers/MarketplaceParticipationList.php @@ -1,76 +1,64 @@ listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -212,7 +198,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -224,8 +210,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -241,7 +227,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -251,7 +237,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ @@ -267,7 +253,8 @@ public function __toString() return json_encode(ObjectSerializer::sanitizeForSerialization($this)); } - public function getSubClass() { + public function getSubClass() + { return MarketplaceParticipation::class; } } diff --git a/lib/Models/Sellers/Participation.php b/lib/Models/Sellers/Participation.php index 4bc7b2e0..1242c265 100644 --- a/lib/Models/Sellers/Participation.php +++ b/lib/Models/Sellers/Participation.php @@ -1,77 +1,65 @@ 'bool', -'has_suspended_listings' => 'bool' ]; +'has_suspended_listings' => 'bool', ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to format mappings. Used for (de)serialization. + * + * @var string[] + */ protected static $swaggerFormats = [ 'is_participating' => null, -'has_suspended_listings' => null ]; +'has_suspended_listings' => null, ]; /** - * Array of property to type mappings. Used for (de)serialization + * Array of property to type mappings. Used for (de)serialization. * * @return array */ @@ -81,7 +69,7 @@ public static function swaggerTypes() } /** - * Array of property to format mappings. Used for (de)serialization + * Array of property to format mappings. Used for (de)serialization. * * @return array */ @@ -92,35 +80,35 @@ public static function swaggerFormats() /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @var string[] */ protected static $attributeMap = [ 'is_participating' => 'isParticipating', -'has_suspended_listings' => 'hasSuspendedListings' ]; +'has_suspended_listings' => 'hasSuspendedListings', ]; /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @var string[] */ protected static $setters = [ 'is_participating' => 'setIsParticipating', -'has_suspended_listings' => 'setHasSuspendedListings' ]; +'has_suspended_listings' => 'setHasSuspendedListings', ]; /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @var string[] */ protected static $getters = [ 'is_participating' => 'getIsParticipating', -'has_suspended_listings' => 'getHasSuspendedListings' ]; +'has_suspended_listings' => 'getHasSuspendedListings', ]; /** * Array of attributes where the key is the local name, - * and the value is the original name + * and the value is the original name. * * @return array */ @@ -130,7 +118,7 @@ public static function attributeMap() } /** - * Array of attributes to setter functions (for deserialization of responses) + * Array of attributes to setter functions (for deserialization of responses). * * @return array */ @@ -140,7 +128,7 @@ public static function setters() } /** - * Array of attributes to getter functions (for serialization of requests) + * Array of attributes to getter functions (for serialization of requests). * * @return array */ @@ -159,17 +147,15 @@ public function getModelName() return self::$swaggerModelName; } - - /** - * Associative array for storing property values + * Associative array for storing property values. * * @var mixed[] */ protected $container = []; /** - * Constructor + * Constructor. * * @param mixed[] $data Associated array of property values * initializing the model @@ -189,29 +175,29 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['is_participating'] === null) { + if (null === $this->container['is_participating']) { $invalidProperties[] = "'is_participating' can't be null"; } - if ($this->container['has_suspended_listings'] === null) { + if (null === $this->container['has_suspended_listings']) { $invalidProperties[] = "'has_suspended_listings' can't be null"; } + return $invalidProperties; } /** * Validate all the properties in the model - * return true if all passed + * return true if all passed. * * @return bool True if all properties are valid */ public function valid() { - return count($this->listInvalidProperties()) === 0; + return 0 === count($this->listInvalidProperties()); } - /** - * Gets is_participating + * Gets is_participating. * * @return bool */ @@ -221,7 +207,7 @@ public function getIsParticipating() } /** - * Sets is_participating + * Sets is_participating. * * @param bool $is_participating is_participating * @@ -235,7 +221,7 @@ public function setIsParticipating($is_participating) } /** - * Gets has_suspended_listings + * Gets has_suspended_listings. * * @return bool */ @@ -245,7 +231,7 @@ public function getHasSuspendedListings() } /** - * Sets has_suspended_listings + * Sets has_suspended_listings. * * @param bool $has_suspended_listings Specifies if the seller has suspended listings. True if the seller Listing Status is set to Inactive, otherwise False. * @@ -257,12 +243,13 @@ public function setHasSuspendedListings($has_suspended_listings) return $this; } + /** * Returns true if offset exists. False otherwise. * - * @param integer $offset Offset + * @param int $offset Offset * - * @return boolean + * @return bool */ public function offsetExists($offset) { @@ -272,7 +259,7 @@ public function offsetExists($offset) /** * Gets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return mixed */ @@ -284,8 +271,8 @@ public function offsetGet($offset) /** * Sets value based on offset. * - * @param integer $offset Offset - * @param mixed $value Value to be set + * @param int $offset Offset + * @param mixed $value Value to be set * * @return void */ @@ -301,7 +288,7 @@ public function offsetSet($offset, $value) /** * Unsets offset. * - * @param integer $offset Offset + * @param int $offset Offset * * @return void */ @@ -311,7 +298,7 @@ public function offsetUnset($offset) } /** - * Gets the string presentation of the object + * Gets the string presentation of the object. * * @return string */ diff --git a/lib/Models/Services/AddAppointmentRequest.php b/lib/Models/Services/AddAppointmentRequest.php index 4c5d8b97..512212fd 100644 --- a/lib/Models/Services/AddAppointmentRequest.php +++ b/lib/Models/Services/AddAppointmentRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * AddAppointmentRequest Class Doc Comment. * - * @category Class + * @description Input for add appointment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AddAppointmentRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/Address.php b/lib/Models/Services/Address.php index c1ed8af0..0984694d 100644 --- a/lib/Models/Services/Address.php +++ b/lib/Models/Services/Address.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * Address Class Doc Comment. * - * @category Class + * @description The shipping address for the service job. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Address implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/Appointment.php b/lib/Models/Services/Appointment.php index 1dbe74a3..65a7451a 100644 --- a/lib/Models/Services/Appointment.php +++ b/lib/Models/Services/Appointment.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * Appointment Class Doc Comment. * - * @category Class + * @description The details of an appointment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Appointment implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/AppointmentId.php b/lib/Models/Services/AppointmentId.php index c0ea5360..66661f16 100644 --- a/lib/Models/Services/AppointmentId.php +++ b/lib/Models/Services/AppointmentId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * AppointmentId Class Doc Comment. * - * @category Class + * @description The appointment identifier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AppointmentId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/AppointmentTime.php b/lib/Models/Services/AppointmentTime.php index f05caf56..43208f28 100644 --- a/lib/Models/Services/AppointmentTime.php +++ b/lib/Models/Services/AppointmentTime.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * AppointmentTime Class Doc Comment. * - * @category Class + * @description The time of the appointment window. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AppointmentTime implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/AppointmentTimeInput.php b/lib/Models/Services/AppointmentTimeInput.php index 7375384a..cd54aaa7 100644 --- a/lib/Models/Services/AppointmentTimeInput.php +++ b/lib/Models/Services/AppointmentTimeInput.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * AppointmentTimeInput Class Doc Comment. * - * @category Class + * @description The input appointment time details. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AppointmentTimeInput implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/AssociatedItem.php b/lib/Models/Services/AssociatedItem.php index 88453b72..b53c4ea3 100644 --- a/lib/Models/Services/AssociatedItem.php +++ b/lib/Models/Services/AssociatedItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * AssociatedItem Class Doc Comment. * - * @category Class + * @description Information about an item associated with the service job. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AssociatedItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/Buyer.php b/lib/Models/Services/Buyer.php index 1c51c60f..61a70993 100644 --- a/lib/Models/Services/Buyer.php +++ b/lib/Models/Services/Buyer.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * Buyer Class Doc Comment. * - * @category Class + * @description Information about the buyer. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Buyer implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/CancelServiceJobByServiceJobIdResponse.php b/lib/Models/Services/CancelServiceJobByServiceJobIdResponse.php index 33c41ac0..c6d0c994 100644 --- a/lib/Models/Services/CancelServiceJobByServiceJobIdResponse.php +++ b/lib/Models/Services/CancelServiceJobByServiceJobIdResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * CancelServiceJobByServiceJobIdResponse Class Doc Comment. * - * @category Class + * @description Response schema for CancelServiceJobByServiceJobId operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CancelServiceJobByServiceJobIdResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/CompleteServiceJobByServiceJobIdResponse.php b/lib/Models/Services/CompleteServiceJobByServiceJobIdResponse.php index fa4d102b..224ed3a9 100644 --- a/lib/Models/Services/CompleteServiceJobByServiceJobIdResponse.php +++ b/lib/Models/Services/CompleteServiceJobByServiceJobIdResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * CompleteServiceJobByServiceJobIdResponse Class Doc Comment. * - * @category Class + * @description Response schema for CompleteServiceJobByServiceJobId operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CompleteServiceJobByServiceJobIdResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/Error.php b/lib/Models/Services/Error.php index 0239179c..3bfd75e2 100644 --- a/lib/Models/Services/Error.php +++ b/lib/Models/Services/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/ErrorList.php b/lib/Models/Services/ErrorList.php index 5b1457fe..a890f124 100644 --- a/lib/Models/Services/ErrorList.php +++ b/lib/Models/Services/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Services/GetServiceJobByServiceJobIdResponse.php b/lib/Models/Services/GetServiceJobByServiceJobIdResponse.php index f341c80b..37212e26 100644 --- a/lib/Models/Services/GetServiceJobByServiceJobIdResponse.php +++ b/lib/Models/Services/GetServiceJobByServiceJobIdResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * GetServiceJobByServiceJobIdResponse Class Doc Comment. * - * @category Class + * @description The response schema for the GetServiceJobByServiceJobId operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetServiceJobByServiceJobIdResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/GetServiceJobsResponse.php b/lib/Models/Services/GetServiceJobsResponse.php index 8c51bb80..f30c0cca 100644 --- a/lib/Models/Services/GetServiceJobsResponse.php +++ b/lib/Models/Services/GetServiceJobsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * GetServiceJobsResponse Class Doc Comment. * - * @category Class + * @description Response schema for GetJobs operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetServiceJobsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/ItemDelivery.php b/lib/Models/Services/ItemDelivery.php index 0053990d..96fa856c 100644 --- a/lib/Models/Services/ItemDelivery.php +++ b/lib/Models/Services/ItemDelivery.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * ItemDelivery Class Doc Comment. * - * @category Class + * @description Delivery information for the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ItemDelivery implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/ItemDeliveryPromise.php b/lib/Models/Services/ItemDeliveryPromise.php index df3b7a0e..3574d509 100644 --- a/lib/Models/Services/ItemDeliveryPromise.php +++ b/lib/Models/Services/ItemDeliveryPromise.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * ItemDeliveryPromise Class Doc Comment. * - * @category Class + * @description Promised delivery information for the item. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ItemDeliveryPromise implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/JobListing.php b/lib/Models/Services/JobListing.php index 3f8bb130..c1c1b819 100644 --- a/lib/Models/Services/JobListing.php +++ b/lib/Models/Services/JobListing.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * JobListing Class Doc Comment. * - * @category Class + * @description The payload for the GetJobs operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class JobListing implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/OrderId.php b/lib/Models/Services/OrderId.php index f8470c2e..9decc14e 100644 --- a/lib/Models/Services/OrderId.php +++ b/lib/Models/Services/OrderId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * OrderId Class Doc Comment. * - * @category Class + * @description The Amazon-defined identifier for an order placed by the buyer, in 3-7-7 format. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class OrderId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/Poa.php b/lib/Models/Services/Poa.php index b09f5b0d..9de1cce0 100644 --- a/lib/Models/Services/Poa.php +++ b/lib/Models/Services/Poa.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * Poa Class Doc Comment. * - * @category Class + * @description Proof of Appointment (POA) details. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Poa implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/RescheduleAppointmentRequest.php b/lib/Models/Services/RescheduleAppointmentRequest.php index 3a86dca1..326eca9c 100644 --- a/lib/Models/Services/RescheduleAppointmentRequest.php +++ b/lib/Models/Services/RescheduleAppointmentRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * RescheduleAppointmentRequest Class Doc Comment. * - * @category Class + * @description Input for rescheduled appointment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RescheduleAppointmentRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/RescheduleReasonCode.php b/lib/Models/Services/RescheduleReasonCode.php index c5c05c0d..2c4bd924 100644 --- a/lib/Models/Services/RescheduleReasonCode.php +++ b/lib/Models/Services/RescheduleReasonCode.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * RescheduleReasonCode Class Doc Comment. * - * @category Class + * @description Appointment reschedule reason code. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RescheduleReasonCode implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/ScopeOfWork.php b/lib/Models/Services/ScopeOfWork.php index f2da00c4..a5966cc6 100644 --- a/lib/Models/Services/ScopeOfWork.php +++ b/lib/Models/Services/ScopeOfWork.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * ScopeOfWork Class Doc Comment. * - * @category Class + * @description The scope of work for the order. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ScopeOfWork implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/Seller.php b/lib/Models/Services/Seller.php index 2dd80c6a..c2c8b686 100644 --- a/lib/Models/Services/Seller.php +++ b/lib/Models/Services/Seller.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * Seller Class Doc Comment. * - * @category Class + * @description Information about the seller of the service job. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Seller implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/ServiceJob.php b/lib/Models/Services/ServiceJob.php index 50e5fc9a..c89a1339 100644 --- a/lib/Models/Services/ServiceJob.php +++ b/lib/Models/Services/ServiceJob.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * ServiceJob Class Doc Comment. * - * @category Class + * @description The job details of a service. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceJob implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/ServiceJobId.php b/lib/Models/Services/ServiceJobId.php index 4f82e1ce..42258efd 100644 --- a/lib/Models/Services/ServiceJobId.php +++ b/lib/Models/Services/ServiceJobId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * ServiceJobId Class Doc Comment. * - * @category Class + * @description Amazon identifier for the service job. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceJobId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/ServiceJobProvider.php b/lib/Models/Services/ServiceJobProvider.php index 8b05cc21..76f1743e 100644 --- a/lib/Models/Services/ServiceJobProvider.php +++ b/lib/Models/Services/ServiceJobProvider.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * ServiceJobProvider Class Doc Comment. * - * @category Class + * @description Information about the service job provider. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceJobProvider implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/ServiceLocation.php b/lib/Models/Services/ServiceLocation.php index ed87d940..a676fa1e 100644 --- a/lib/Models/Services/ServiceLocation.php +++ b/lib/Models/Services/ServiceLocation.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * ServiceLocation Class Doc Comment. * - * @category Class + * @description Information about the location of the service job. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceLocation implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/SetAppointmentResponse.php b/lib/Models/Services/SetAppointmentResponse.php index d3a3f848..e50652d2 100644 --- a/lib/Models/Services/SetAppointmentResponse.php +++ b/lib/Models/Services/SetAppointmentResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * SetAppointmentResponse Class Doc Comment. * - * @category Class + * @description Response schema for add or reschedule appointment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SetAppointmentResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/Technician.php b/lib/Models/Services/Technician.php index ff294237..cd6e77b8 100644 --- a/lib/Models/Services/Technician.php +++ b/lib/Models/Services/Technician.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * Technician Class Doc Comment. * - * @category Class + * @description A technician who is assigned to perform the service job in part or in full. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Technician implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/Warning.php b/lib/Models/Services/Warning.php index 60d85f0d..5552f300 100644 --- a/lib/Models/Services/Warning.php +++ b/lib/Models/Services/Warning.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -36,12 +24,10 @@ /** * Warning Class Doc Comment. * - * @category Class + * @description Warning returned when the request is successful but execution have some important callouts on basis of which API clients should take defined actions. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Warning implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Services/WarningList.php b/lib/Models/Services/WarningList.php index 2e916e42..6dfd723f 100644 --- a/lib/Models/Services/WarningList.php +++ b/lib/Models/Services/WarningList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Services API, you can build applications that help service providers get and modify their service orders. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Services; @@ -37,12 +25,10 @@ /** * WarningList Class Doc Comment. * - * @category Class + * @description A list of warnings returned in the sucessful execution response of an API request. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class WarningList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Shipping/AcceptedRate.php b/lib/Models/Shipping/AcceptedRate.php index be86ab67..a6e852d0 100644 --- a/lib/Models/Shipping/AcceptedRate.php +++ b/lib/Models/Shipping/AcceptedRate.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * AcceptedRate Class Doc Comment. * - * @category Class + * @description The specific rate purchased for the shipment, or null if unpurchased. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AcceptedRate implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Account.php b/lib/Models/Shipping/Account.php index a58c9511..7166f782 100644 --- a/lib/Models/Shipping/Account.php +++ b/lib/Models/Shipping/Account.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Account Class Doc Comment. * - * @category Class + * @description The account related data. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Account implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/AccountId.php b/lib/Models/Shipping/AccountId.php index 34f1ff9a..3e0f4b61 100644 --- a/lib/Models/Shipping/AccountId.php +++ b/lib/Models/Shipping/AccountId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * AccountId Class Doc Comment. * - * @category Class + * @description This is the Amazon Shipping account id generated during the Amazon Shipping onboarding process. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class AccountId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Address.php b/lib/Models/Shipping/Address.php index ae828c14..014abb8e 100644 --- a/lib/Models/Shipping/Address.php +++ b/lib/Models/Shipping/Address.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Address Class Doc Comment. * - * @category Class + * @description The address. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Address implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/CancelShipmentResponse.php b/lib/Models/Shipping/CancelShipmentResponse.php index f851a1b5..bc8ba7ce 100644 --- a/lib/Models/Shipping/CancelShipmentResponse.php +++ b/lib/Models/Shipping/CancelShipmentResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * CancelShipmentResponse Class Doc Comment. * - * @category Class + * @description The response schema for the cancelShipment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CancelShipmentResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/City.php b/lib/Models/Shipping/City.php index 9d44b440..2cbf4f30 100644 --- a/lib/Models/Shipping/City.php +++ b/lib/Models/Shipping/City.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * City Class Doc Comment. * - * @category Class + * @description The city where the person, business or institution is located. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class City implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ClientReferenceId.php b/lib/Models/Shipping/ClientReferenceId.php index 438e2229..838da109 100644 --- a/lib/Models/Shipping/ClientReferenceId.php +++ b/lib/Models/Shipping/ClientReferenceId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * ClientReferenceId Class Doc Comment. * - * @category Class + * @description Client reference id. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ClientReferenceId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Container.php b/lib/Models/Shipping/Container.php index 34ca271f..00600245 100644 --- a/lib/Models/Shipping/Container.php +++ b/lib/Models/Shipping/Container.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Container Class Doc Comment. * - * @category Class + * @description Container in the shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Container implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ContainerItem.php b/lib/Models/Shipping/ContainerItem.php index 47ff2cbf..96e46c5c 100644 --- a/lib/Models/Shipping/ContainerItem.php +++ b/lib/Models/Shipping/ContainerItem.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * ContainerItem Class Doc Comment. * - * @category Class + * @description Item in the container. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ContainerItem implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ContainerList.php b/lib/Models/Shipping/ContainerList.php index b9912984..e901930f 100644 --- a/lib/Models/Shipping/ContainerList.php +++ b/lib/Models/Shipping/ContainerList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -37,12 +25,10 @@ /** * ContainerList Class Doc Comment. * - * @category Class + * @description A list of container. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ContainerList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Shipping/ContainerReferenceId.php b/lib/Models/Shipping/ContainerReferenceId.php index e64b1191..90342e09 100644 --- a/lib/Models/Shipping/ContainerReferenceId.php +++ b/lib/Models/Shipping/ContainerReferenceId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * ContainerReferenceId Class Doc Comment. * - * @category Class + * @description An identifier for the container. This must be unique within all the containers in the same shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ContainerReferenceId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ContainerSpecification.php b/lib/Models/Shipping/ContainerSpecification.php index fcc09e34..b0ee9126 100644 --- a/lib/Models/Shipping/ContainerSpecification.php +++ b/lib/Models/Shipping/ContainerSpecification.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * ContainerSpecification Class Doc Comment. * - * @category Class + * @description Container specification for checking the service rate. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ContainerSpecification implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ContainerSpecificationList.php b/lib/Models/Shipping/ContainerSpecificationList.php index ef256e4f..c6e7da85 100644 --- a/lib/Models/Shipping/ContainerSpecificationList.php +++ b/lib/Models/Shipping/ContainerSpecificationList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -37,12 +25,10 @@ /** * ContainerSpecificationList Class Doc Comment. * - * @category Class + * @description A list of container specifications. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ContainerSpecificationList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Shipping/CountryCode.php b/lib/Models/Shipping/CountryCode.php index 60d45898..a49a97e9 100644 --- a/lib/Models/Shipping/CountryCode.php +++ b/lib/Models/Shipping/CountryCode.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * CountryCode Class Doc Comment. * - * @category Class + * @description The two digit country code. In ISO 3166-1 alpha-2 format. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CountryCode implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/CreateShipmentRequest.php b/lib/Models/Shipping/CreateShipmentRequest.php index 888e70ed..8e2dcd1e 100644 --- a/lib/Models/Shipping/CreateShipmentRequest.php +++ b/lib/Models/Shipping/CreateShipmentRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * CreateShipmentRequest Class Doc Comment. * - * @category Class + * @description The request schema for the createShipment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateShipmentRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/CreateShipmentResponse.php b/lib/Models/Shipping/CreateShipmentResponse.php index f7f52606..a9990ee5 100644 --- a/lib/Models/Shipping/CreateShipmentResponse.php +++ b/lib/Models/Shipping/CreateShipmentResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * CreateShipmentResponse Class Doc Comment. * - * @category Class + * @description The response schema for the createShipment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateShipmentResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/CreateShipmentResult.php b/lib/Models/Shipping/CreateShipmentResult.php index c8c7d9fd..1fd2a82e 100644 --- a/lib/Models/Shipping/CreateShipmentResult.php +++ b/lib/Models/Shipping/CreateShipmentResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * CreateShipmentResult Class Doc Comment. * - * @category Class + * @description The payload schema for the createShipment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateShipmentResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Currency.php b/lib/Models/Shipping/Currency.php index 9719933b..a42b48cc 100644 --- a/lib/Models/Shipping/Currency.php +++ b/lib/Models/Shipping/Currency.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Currency Class Doc Comment. * - * @category Class + * @description The total value of all items in the container. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Currency implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Dimensions.php b/lib/Models/Shipping/Dimensions.php index 86173b2c..cbe7cfe4 100644 --- a/lib/Models/Shipping/Dimensions.php +++ b/lib/Models/Shipping/Dimensions.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Dimensions Class Doc Comment. * - * @category Class + * @description A set of measurements for a three-dimensional object. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Dimensions implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Error.php b/lib/Models/Shipping/Error.php index a08dc416..3fa2d286 100644 --- a/lib/Models/Shipping/Error.php +++ b/lib/Models/Shipping/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ErrorList.php b/lib/Models/Shipping/ErrorList.php index 18ae967b..394a7887 100644 --- a/lib/Models/Shipping/ErrorList.php +++ b/lib/Models/Shipping/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Shipping/Event.php b/lib/Models/Shipping/Event.php index 0cbc3198..231f3e45 100644 --- a/lib/Models/Shipping/Event.php +++ b/lib/Models/Shipping/Event.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Event Class Doc Comment. * - * @category Class + * @description An event of a shipment * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Event implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/EventCode.php b/lib/Models/Shipping/EventCode.php index d757aa17..0456bcd1 100644 --- a/lib/Models/Shipping/EventCode.php +++ b/lib/Models/Shipping/EventCode.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * EventCode Class Doc Comment. * - * @category Class + * @description The event code of a shipment, such as Departed, Received, and ReadyForReceive. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class EventCode implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/EventList.php b/lib/Models/Shipping/EventList.php index 0f0db269..369b2612 100644 --- a/lib/Models/Shipping/EventList.php +++ b/lib/Models/Shipping/EventList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -37,12 +25,10 @@ /** * EventList Class Doc Comment. * - * @category Class + * @description A list of events of a shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class EventList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Shipping/GetAccountResponse.php b/lib/Models/Shipping/GetAccountResponse.php index 762f0383..1dffdf5c 100644 --- a/lib/Models/Shipping/GetAccountResponse.php +++ b/lib/Models/Shipping/GetAccountResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * GetAccountResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getAccount operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetAccountResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/GetRatesRequest.php b/lib/Models/Shipping/GetRatesRequest.php index 9780fb63..88690b90 100644 --- a/lib/Models/Shipping/GetRatesRequest.php +++ b/lib/Models/Shipping/GetRatesRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * GetRatesRequest Class Doc Comment. * - * @category Class + * @description The payload schema for the getRates operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetRatesRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/GetRatesResponse.php b/lib/Models/Shipping/GetRatesResponse.php index 804bd0de..088820e7 100644 --- a/lib/Models/Shipping/GetRatesResponse.php +++ b/lib/Models/Shipping/GetRatesResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * GetRatesResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getRates operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetRatesResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/GetRatesResult.php b/lib/Models/Shipping/GetRatesResult.php index fd4b9ca9..b4558f9e 100644 --- a/lib/Models/Shipping/GetRatesResult.php +++ b/lib/Models/Shipping/GetRatesResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * GetRatesResult Class Doc Comment. * - * @category Class + * @description The payload schema for the getRates operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetRatesResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/GetShipmentResponse.php b/lib/Models/Shipping/GetShipmentResponse.php index 12a88e9d..7a8f97ed 100644 --- a/lib/Models/Shipping/GetShipmentResponse.php +++ b/lib/Models/Shipping/GetShipmentResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * GetShipmentResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getShipment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetShipmentResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/GetTrackingInformationResponse.php b/lib/Models/Shipping/GetTrackingInformationResponse.php index 6a185aef..6f5718a9 100644 --- a/lib/Models/Shipping/GetTrackingInformationResponse.php +++ b/lib/Models/Shipping/GetTrackingInformationResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * GetTrackingInformationResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getTrackingInformation operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetTrackingInformationResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Label.php b/lib/Models/Shipping/Label.php index e796a50d..1f9a01e3 100644 --- a/lib/Models/Shipping/Label.php +++ b/lib/Models/Shipping/Label.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Label Class Doc Comment. * - * @category Class + * @description The label details of the container. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Label implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/LabelResult.php b/lib/Models/Shipping/LabelResult.php index 0ae0c13c..ea4aa516 100644 --- a/lib/Models/Shipping/LabelResult.php +++ b/lib/Models/Shipping/LabelResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * LabelResult Class Doc Comment. * - * @category Class + * @description Label details including label stream, format, size. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LabelResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/LabelResultList.php b/lib/Models/Shipping/LabelResultList.php index 5157f851..88f662c2 100644 --- a/lib/Models/Shipping/LabelResultList.php +++ b/lib/Models/Shipping/LabelResultList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -37,12 +25,10 @@ /** * LabelResultList Class Doc Comment. * - * @category Class + * @description A list of label results * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LabelResultList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Shipping/LabelSpecification.php b/lib/Models/Shipping/LabelSpecification.php index cbd7f5cf..138b314e 100644 --- a/lib/Models/Shipping/LabelSpecification.php +++ b/lib/Models/Shipping/LabelSpecification.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * LabelSpecification Class Doc Comment. * - * @category Class + * @description The label specification info. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LabelSpecification implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/LabelStream.php b/lib/Models/Shipping/LabelStream.php index 1cf61ee1..a51a554b 100644 --- a/lib/Models/Shipping/LabelStream.php +++ b/lib/Models/Shipping/LabelStream.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * LabelStream Class Doc Comment. * - * @category Class + * @description Contains binary image data encoded as a base-64 string. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LabelStream implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Location.php b/lib/Models/Shipping/Location.php index 7f3b16e9..d36cdfb5 100644 --- a/lib/Models/Shipping/Location.php +++ b/lib/Models/Shipping/Location.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Location Class Doc Comment. * - * @category Class + * @description The location where the person, business or institution is located. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Location implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Party.php b/lib/Models/Shipping/Party.php index abb3b02f..8fae0618 100644 --- a/lib/Models/Shipping/Party.php +++ b/lib/Models/Shipping/Party.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Party Class Doc Comment. * - * @category Class + * @description The account related with the shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Party implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/PostalCode.php b/lib/Models/Shipping/PostalCode.php index 7b577e6c..c5a6225e 100644 --- a/lib/Models/Shipping/PostalCode.php +++ b/lib/Models/Shipping/PostalCode.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * PostalCode Class Doc Comment. * - * @category Class + * @description The postal code of that address. It contains a series of letters or digits or both, sometimes including spaces or punctuation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PostalCode implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/PromisedDeliveryDate.php b/lib/Models/Shipping/PromisedDeliveryDate.php index dac5e87b..af722089 100644 --- a/lib/Models/Shipping/PromisedDeliveryDate.php +++ b/lib/Models/Shipping/PromisedDeliveryDate.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * PromisedDeliveryDate Class Doc Comment. * - * @category Class + * @description The promised delivery date and time of a shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PromisedDeliveryDate implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/PurchaseLabelsRequest.php b/lib/Models/Shipping/PurchaseLabelsRequest.php index 22e968a1..a5a7b9ff 100644 --- a/lib/Models/Shipping/PurchaseLabelsRequest.php +++ b/lib/Models/Shipping/PurchaseLabelsRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * PurchaseLabelsRequest Class Doc Comment. * - * @category Class + * @description The request schema for the purchaseLabels operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PurchaseLabelsRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/PurchaseLabelsResponse.php b/lib/Models/Shipping/PurchaseLabelsResponse.php index b06b383d..ac6adb81 100644 --- a/lib/Models/Shipping/PurchaseLabelsResponse.php +++ b/lib/Models/Shipping/PurchaseLabelsResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * PurchaseLabelsResponse Class Doc Comment. * - * @category Class + * @description The response schema for the purchaseLabels operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PurchaseLabelsResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/PurchaseLabelsResult.php b/lib/Models/Shipping/PurchaseLabelsResult.php index 6f1c4885..5f08445c 100644 --- a/lib/Models/Shipping/PurchaseLabelsResult.php +++ b/lib/Models/Shipping/PurchaseLabelsResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * PurchaseLabelsResult Class Doc Comment. * - * @category Class + * @description The payload schema for the purchaseLabels operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PurchaseLabelsResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/PurchaseShipmentRequest.php b/lib/Models/Shipping/PurchaseShipmentRequest.php index ca0776fe..16ce6961 100644 --- a/lib/Models/Shipping/PurchaseShipmentRequest.php +++ b/lib/Models/Shipping/PurchaseShipmentRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * PurchaseShipmentRequest Class Doc Comment. * - * @category Class + * @description The payload schema for the purchaseShipment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PurchaseShipmentRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/PurchaseShipmentResponse.php b/lib/Models/Shipping/PurchaseShipmentResponse.php index 4ef6fcc2..dadc1133 100644 --- a/lib/Models/Shipping/PurchaseShipmentResponse.php +++ b/lib/Models/Shipping/PurchaseShipmentResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * PurchaseShipmentResponse Class Doc Comment. * - * @category Class + * @description The response schema for the purchaseShipment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PurchaseShipmentResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/PurchaseShipmentResult.php b/lib/Models/Shipping/PurchaseShipmentResult.php index 965c5f99..d829af54 100644 --- a/lib/Models/Shipping/PurchaseShipmentResult.php +++ b/lib/Models/Shipping/PurchaseShipmentResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * PurchaseShipmentResult Class Doc Comment. * - * @category Class + * @description The payload schema for the purchaseShipment operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class PurchaseShipmentResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Rate.php b/lib/Models/Shipping/Rate.php index 69493b2b..f28e5176 100644 --- a/lib/Models/Shipping/Rate.php +++ b/lib/Models/Shipping/Rate.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Rate Class Doc Comment. * - * @category Class + * @description The available rate that can be used to send the shipment * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Rate implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/RateId.php b/lib/Models/Shipping/RateId.php index b32f3b4a..157be301 100644 --- a/lib/Models/Shipping/RateId.php +++ b/lib/Models/Shipping/RateId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * RateId Class Doc Comment. * - * @category Class + * @description An identifier for the rating. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RateId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/RateList.php b/lib/Models/Shipping/RateList.php index c8ae128d..b412e3a4 100644 --- a/lib/Models/Shipping/RateList.php +++ b/lib/Models/Shipping/RateList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -37,12 +25,10 @@ /** * RateList Class Doc Comment. * - * @category Class + * @description A list of all the available rates that can be used to send the shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RateList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Shipping/RetrieveShippingLabelRequest.php b/lib/Models/Shipping/RetrieveShippingLabelRequest.php index 665e4bcc..32ab0f47 100644 --- a/lib/Models/Shipping/RetrieveShippingLabelRequest.php +++ b/lib/Models/Shipping/RetrieveShippingLabelRequest.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * RetrieveShippingLabelRequest Class Doc Comment. * - * @category Class + * @description The request schema for the retrieveShippingLabel operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RetrieveShippingLabelRequest implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/RetrieveShippingLabelResponse.php b/lib/Models/Shipping/RetrieveShippingLabelResponse.php index 86b71f48..27165ceb 100644 --- a/lib/Models/Shipping/RetrieveShippingLabelResponse.php +++ b/lib/Models/Shipping/RetrieveShippingLabelResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * RetrieveShippingLabelResponse Class Doc Comment. * - * @category Class + * @description The response schema for the retrieveShippingLabel operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RetrieveShippingLabelResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/RetrieveShippingLabelResult.php b/lib/Models/Shipping/RetrieveShippingLabelResult.php index 949c8894..a2316128 100644 --- a/lib/Models/Shipping/RetrieveShippingLabelResult.php +++ b/lib/Models/Shipping/RetrieveShippingLabelResult.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * RetrieveShippingLabelResult Class Doc Comment. * - * @category Class + * @description The payload schema for the retrieveShippingLabel operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class RetrieveShippingLabelResult implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ServiceRate.php b/lib/Models/Shipping/ServiceRate.php index 5031eecd..0cb1423f 100644 --- a/lib/Models/Shipping/ServiceRate.php +++ b/lib/Models/Shipping/ServiceRate.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * ServiceRate Class Doc Comment. * - * @category Class + * @description The specific rate for a shipping service, or null if no service available. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceRate implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ServiceRateList.php b/lib/Models/Shipping/ServiceRateList.php index 3ee78279..1c8edbdf 100644 --- a/lib/Models/Shipping/ServiceRateList.php +++ b/lib/Models/Shipping/ServiceRateList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -37,12 +25,10 @@ /** * ServiceRateList Class Doc Comment. * - * @category Class + * @description A list of service rates. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceRateList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Shipping/ServiceType.php b/lib/Models/Shipping/ServiceType.php index 8fefb437..b430e031 100644 --- a/lib/Models/Shipping/ServiceType.php +++ b/lib/Models/Shipping/ServiceType.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -32,12 +20,10 @@ /** * ServiceType Class Doc Comment. * - * @category Class + * @description The type of shipping service that will be used for the service offering. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceType { diff --git a/lib/Models/Shipping/ServiceTypeList.php b/lib/Models/Shipping/ServiceTypeList.php index 0195048b..5b8be9d5 100644 --- a/lib/Models/Shipping/ServiceTypeList.php +++ b/lib/Models/Shipping/ServiceTypeList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -37,12 +25,10 @@ /** * ServiceTypeList Class Doc Comment. * - * @category Class + * @description A list of service types that can be used to send the shipment. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ServiceTypeList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Shipping/Shipment.php b/lib/Models/Shipping/Shipment.php index 2981fded..e6c6a9ca 100644 --- a/lib/Models/Shipping/Shipment.php +++ b/lib/Models/Shipping/Shipment.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Shipment Class Doc Comment. * - * @category Class + * @description The shipment related data. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Shipment implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ShipmentId.php b/lib/Models/Shipping/ShipmentId.php index cbe8f13d..9a138bf2 100644 --- a/lib/Models/Shipping/ShipmentId.php +++ b/lib/Models/Shipping/ShipmentId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * ShipmentId Class Doc Comment. * - * @category Class + * @description The unique shipment identifier. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShipmentId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/ShippingPromiseSet.php b/lib/Models/Shipping/ShippingPromiseSet.php index dfacbeab..32208d7e 100644 --- a/lib/Models/Shipping/ShippingPromiseSet.php +++ b/lib/Models/Shipping/ShippingPromiseSet.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * ShippingPromiseSet Class Doc Comment. * - * @category Class + * @description The promised delivery time and pickup time. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ShippingPromiseSet implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/StateOrRegion.php b/lib/Models/Shipping/StateOrRegion.php index 2c399d83..6b00cfcb 100644 --- a/lib/Models/Shipping/StateOrRegion.php +++ b/lib/Models/Shipping/StateOrRegion.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * StateOrRegion Class Doc Comment. * - * @category Class + * @description The state or region where the person, business or institution is located. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class StateOrRegion implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/TimeRange.php b/lib/Models/Shipping/TimeRange.php index 9a24cb30..346fb357 100644 --- a/lib/Models/Shipping/TimeRange.php +++ b/lib/Models/Shipping/TimeRange.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * TimeRange Class Doc Comment. * - * @category Class + * @description The time range. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TimeRange implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/TrackingId.php b/lib/Models/Shipping/TrackingId.php index 894b0ed9..091c0692 100644 --- a/lib/Models/Shipping/TrackingId.php +++ b/lib/Models/Shipping/TrackingId.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * TrackingId Class Doc Comment. * - * @category Class + * @description The tracking id generated to each shipment. It contains a series of letters or digits or both. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TrackingId implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/TrackingInformation.php b/lib/Models/Shipping/TrackingInformation.php index f55c2bed..8bb67ea7 100644 --- a/lib/Models/Shipping/TrackingInformation.php +++ b/lib/Models/Shipping/TrackingInformation.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * TrackingInformation Class Doc Comment. * - * @category Class + * @description The payload schema for the getTrackingInformation operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TrackingInformation implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/TrackingSummary.php b/lib/Models/Shipping/TrackingSummary.php index bddcfad5..774ea8ef 100644 --- a/lib/Models/Shipping/TrackingSummary.php +++ b/lib/Models/Shipping/TrackingSummary.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * TrackingSummary Class Doc Comment. * - * @category Class + * @description The tracking summary. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class TrackingSummary implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Shipping/Weight.php b/lib/Models/Shipping/Weight.php index 0308bcb0..379d551c 100644 --- a/lib/Models/Shipping/Weight.php +++ b/lib/Models/Shipping/Weight.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * Provides programmatic access to Amazon Shipping APIs. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Shipping; @@ -36,12 +24,10 @@ /** * Weight Class Doc Comment. * - * @category Class + * @description The weight. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Weight implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php b/lib/Models/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php index 0f371b50..f7de18e9 100644 --- a/lib/Models/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php +++ b/lib/Models/Solicitations/CreateProductReviewAndSellerFeedbackSolicitationResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,12 +24,10 @@ /** * CreateProductReviewAndSellerFeedbackSolicitationResponse Class Doc Comment. * - * @category Class + * @description The response schema for the createProductReviewAndSellerFeedbackSolicitation operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class CreateProductReviewAndSellerFeedbackSolicitationResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/Error.php b/lib/Models/Solicitations/Error.php index 567c241f..d88899de 100644 --- a/lib/Models/Solicitations/Error.php +++ b/lib/Models/Solicitations/Error.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,12 +24,10 @@ /** * Error Class Doc Comment. * - * @category Class + * @description Error response returned when the request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Error implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/ErrorList.php b/lib/Models/Solicitations/ErrorList.php index 74d1c1b9..7e74a110 100644 --- a/lib/Models/Solicitations/ErrorList.php +++ b/lib/Models/Solicitations/ErrorList.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -37,12 +25,10 @@ /** * ErrorList Class Doc Comment. * - * @category Class + * @description A list of error responses returned when a request is unsuccessful. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ErrorList implements ModelInterface, ArrayAccess, IterableType { diff --git a/lib/Models/Solicitations/GetSchemaResponse.php b/lib/Models/Solicitations/GetSchemaResponse.php index 17248982..368dc4b7 100644 --- a/lib/Models/Solicitations/GetSchemaResponse.php +++ b/lib/Models/Solicitations/GetSchemaResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,11 +24,7 @@ /** * GetSchemaResponse Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetSchemaResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/GetSchemaResponseLinks.php b/lib/Models/Solicitations/GetSchemaResponseLinks.php index 2451eb21..f0821a3d 100644 --- a/lib/Models/Solicitations/GetSchemaResponseLinks.php +++ b/lib/Models/Solicitations/GetSchemaResponseLinks.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,11 +24,7 @@ /** * GetSchemaResponseLinks Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetSchemaResponseLinks implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/GetSolicitationActionResponse.php b/lib/Models/Solicitations/GetSolicitationActionResponse.php index 6cde8ee0..0d68a834 100644 --- a/lib/Models/Solicitations/GetSolicitationActionResponse.php +++ b/lib/Models/Solicitations/GetSolicitationActionResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,12 +24,10 @@ /** * GetSolicitationActionResponse Class Doc Comment. * - * @category Class + * @description Describes a solicitation action that can be taken for an order. Provides a JSON Hypertext Application Language (HAL) link to the JSON schema document that describes the expected input. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetSolicitationActionResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/GetSolicitationActionResponseEmbedded.php b/lib/Models/Solicitations/GetSolicitationActionResponseEmbedded.php index 22a3a0b7..e99ddc62 100644 --- a/lib/Models/Solicitations/GetSolicitationActionResponseEmbedded.php +++ b/lib/Models/Solicitations/GetSolicitationActionResponseEmbedded.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,11 +24,7 @@ /** * GetSolicitationActionResponseEmbedded Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetSolicitationActionResponseEmbedded implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/GetSolicitationActionResponseLinks.php b/lib/Models/Solicitations/GetSolicitationActionResponseLinks.php index 50c08b8d..8727078f 100644 --- a/lib/Models/Solicitations/GetSolicitationActionResponseLinks.php +++ b/lib/Models/Solicitations/GetSolicitationActionResponseLinks.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,11 +24,7 @@ /** * GetSolicitationActionResponseLinks Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetSolicitationActionResponseLinks implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/GetSolicitationActionsForOrderResponse.php b/lib/Models/Solicitations/GetSolicitationActionsForOrderResponse.php index 9751c0d7..1063d02a 100644 --- a/lib/Models/Solicitations/GetSolicitationActionsForOrderResponse.php +++ b/lib/Models/Solicitations/GetSolicitationActionsForOrderResponse.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,12 +24,10 @@ /** * GetSolicitationActionsForOrderResponse Class Doc Comment. * - * @category Class + * @description The response schema for the getSolicitationActionsForOrder operation. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetSolicitationActionsForOrderResponse implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php b/lib/Models/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php index 9ffc9277..c1cf49f6 100644 --- a/lib/Models/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php +++ b/lib/Models/Solicitations/GetSolicitationActionsForOrderResponseEmbedded.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,11 +24,7 @@ /** * GetSolicitationActionsForOrderResponseEmbedded Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetSolicitationActionsForOrderResponseEmbedded implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/GetSolicitationActionsForOrderResponseLinks.php b/lib/Models/Solicitations/GetSolicitationActionsForOrderResponseLinks.php index 1a78a4cb..3e5ae55f 100644 --- a/lib/Models/Solicitations/GetSolicitationActionsForOrderResponseLinks.php +++ b/lib/Models/Solicitations/GetSolicitationActionsForOrderResponseLinks.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,11 +24,7 @@ /** * GetSolicitationActionsForOrderResponseLinks Class Doc Comment. * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class GetSolicitationActionsForOrderResponseLinks implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/LinkObject.php b/lib/Models/Solicitations/LinkObject.php index df8bbac6..3e676c62 100644 --- a/lib/Models/Solicitations/LinkObject.php +++ b/lib/Models/Solicitations/LinkObject.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,12 +24,10 @@ /** * LinkObject Class Doc Comment. * - * @category Class + * @description A Link object. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class LinkObject implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/Schema.php b/lib/Models/Solicitations/Schema.php index 863bc277..71a3a75b 100644 --- a/lib/Models/Solicitations/Schema.php +++ b/lib/Models/Solicitations/Schema.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,12 +24,10 @@ /** * Schema Class Doc Comment. * - * @category Class + * @description A JSON schema document describing the expected payload of the action. This object can be validated against <a href=http://json-schema.org/draft-04/schema>http://json-schema.org/draft-04/schema</a>. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class Schema implements ModelInterface, ArrayAccess { diff --git a/lib/Models/Solicitations/SolicitationsAction.php b/lib/Models/Solicitations/SolicitationsAction.php index b8f2c57d..06c2301b 100644 --- a/lib/Models/Solicitations/SolicitationsAction.php +++ b/lib/Models/Solicitations/SolicitationsAction.php @@ -4,11 +4,7 @@ * * PHP version 5 * - * @category Class - * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ /** @@ -17,14 +13,6 @@ * With the Solicitations API you can build applications that send non-critical solicitations to buyers. You can get a list of solicitation types that are available for an order that you specify, then call an operation that sends a solicitation to the buyer for that order. Buyers cannot respond to solicitations sent by this API, and these solicitations do not appear in the Messaging section of Seller Central or in the recipient's Message Center. The Solicitations API returns responses that are formed according to the JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI\Models\Solicitations; @@ -36,12 +24,10 @@ /** * SolicitationsAction Class Doc Comment. * - * @category Class + * @description A simple object containing the name of the template. * - * @author Swagger Codegen team - * - * @see https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class SolicitationsAction implements ModelInterface, ArrayAccess { diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 95af5010..4ecb08a8 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -1,47 +1,31 @@ JSON Hypertext Application Language (HAL) standard. * * OpenAPI spec version: v1 - * - * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.20 - */ -/** - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen - * Do not edit the class manually. */ namespace ClouSale\AmazonSellingPartnerAPI; -use ClouSale\AmazonSellingPartnerAPI\Models\IterableType; - /** - * ObjectSerializer Class Doc Comment + * ObjectSerializer Class Doc Comment. * - * @category Class - * @package ClouSale\AmazonSellingPartnerAPI - * @author Swagger Codegen team - * @link https://github.com/swagger-api/swagger-codegen + * @author Stefan Neuhaus / ClouSale */ class ObjectSerializer { /** - * Serialize data + * Serialize data. * * @param mixed $data the data to serialize * @param string $type the SwaggerType of the data @@ -54,11 +38,12 @@ public static function sanitizeForSerialization($data, $type = null, $format = n if (is_scalar($data) || null === $data) { return $data; } elseif ($data instanceof \DateTime) { - return ($format === 'date') ? $data->format('Y-m-d') : $data->format(\DateTime::ATOM); + return ('date' === $format) ? $data->format('Y-m-d') : $data->format(\DateTime::ATOM); } elseif (is_array($data)) { foreach ($data as $property => $value) { $data[$property] = self::sanitizeForSerialization($value); } + return $data; } elseif (is_object($data)) { $values = []; @@ -66,26 +51,27 @@ public static function sanitizeForSerialization($data, $type = null, $format = n foreach ($data::swaggerTypes() as $property => $swaggerType) { $getter = $data::getters()[$property]; $value = $data->$getter(); - if ($value !== null + if (null !== $value && !in_array($swaggerType, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true) && method_exists($swaggerType, 'getAllowableEnumValues') && !in_array($value, $swaggerType::getAllowableEnumValues())) { $imploded = implode("', '", $swaggerType::getAllowableEnumValues()); throw new \InvalidArgumentException("Invalid value for enum '$swaggerType', must be one of: '$imploded'"); } - if ($value !== null) { + if (null !== $value) { $values[$data::attributeMap()[$property]] = self::sanitizeForSerialization($value, $swaggerType, $formats[$property]); } } - return (object)$values; + + return (object) $values; } else { - return (string)$data; + return (string) $data; } } /** * Sanitize filename by removing path. - * e.g. ../../sun.gif becomes sun.gif + * e.g. ../../sun.gif becomes sun.gif. * * @param string $filename filename to be sanitized * @@ -135,7 +121,7 @@ public static function toQueryValue($object) /** * Take value and turn it into a string suitable for inclusion in * the header. If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 + * If it's a datetime object, format it in ISO8601. * * @param string $value a string which will be part of the header * @@ -149,7 +135,7 @@ public static function toHeaderValue($value) /** * Take value and turn it into a string suitable for inclusion in * the http body (form parameter). If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 + * If it's a datetime object, format it in ISO8601. * * @param string|\SplFileObject $value the value of the form parameter * @@ -167,7 +153,7 @@ public static function toFormValue($value) /** * Take value and turn it into a string suitable for inclusion in * the parameter. If it's a string, pass through unchanged - * If it's a datetime object, format it in ISO8601 + * If it's a datetime object, format it in ISO8601. * * @param string|\DateTime $value the value of the parameter * @@ -187,7 +173,7 @@ public static function toString($value) * * @param array $collection collection to serialize to a string * @param string $collectionFormat the format use for serialization (csv, - * ssv, tsv, pipes, multi) + * ssv, tsv, pipes, multi) * @param bool $allowCollectionFormatMulti allow collection format to be a multidimensional array * * @return string @@ -217,7 +203,7 @@ public static function serializeCollection(array $collection, $collectionFormat, } /** - * Deserialize a JSON string into an object + * Deserialize a JSON string into an object. * * @param mixed $data object or primitive to be deserialized * @param string $class class name is passed as a string @@ -230,23 +216,25 @@ public static function deserialize($data, $class, $httpHeaders = null) { if (null === $data) { return null; - } elseif (substr($class, 0, 4) === 'map[') { // for associative array e.g. map[string,int] + } elseif ('map[' === substr($class, 0, 4)) { // for associative array e.g. map[string,int] $inner = substr($class, 4, -1); $deserialized = []; - if (strrpos($inner, ",") !== false) { + if (false !== strrpos($inner, ',')) { $subClass_array = explode(',', $inner, 2); $subClass = $subClass_array[1]; foreach ($data as $key => $value) { $deserialized[$key] = self::deserialize($value, $subClass, null); } } + return $deserialized; - } elseif (strcasecmp(substr($class, -2), '[]') === 0) { + } elseif (0 === strcasecmp(substr($class, -2), '[]')) { $subClass = substr($class, 0, -2); $values = []; foreach ($data as $key => $value) { $values[] = self::deserialize($value, $subClass, null); } + return $values; } elseif (method_exists($class, 'getSubClass')) { $subClass = (new $class())->getSubClass(); @@ -254,11 +242,13 @@ public static function deserialize($data, $class, $httpHeaders = null) foreach ($data as $key => $value) { $values[] = self::deserialize($value, $subClass, null); } + return $values; - } elseif ($class === 'object') { + } elseif ('object' === $class) { settype($data, 'array'); + return $data; - } elseif ($class === '\DateTime') { + } elseif ('\DateTime' === $class) { // Some API's return an invalid, empty string as a // date-time property. DateTime::__construct() will return // the current time for empty input which is probably not @@ -272,14 +262,15 @@ public static function deserialize($data, $class, $httpHeaders = null) } } elseif (in_array($class, ['DateTime', 'bool', 'boolean', 'byte', 'double', 'float', 'int', 'integer', 'mixed', 'number', 'object', 'string', 'void'], true)) { settype($data, $class); + return $data; - } elseif ($class === '\SplFileObject') { - /** @var \Psr\Http\Message\StreamInterface $data */ + } elseif ('\SplFileObject' === $class) { + /* @var \Psr\Http\Message\StreamInterface $data */ // determine file name if (array_key_exists('Content-Disposition', $httpHeaders) && preg_match('/inline; filename=[\'"]?([^\'"\s]+)[\'"]?$/i', $httpHeaders['Content-Disposition'], $match)) { - $filename = Configuration::getDefaultConfiguration()->getTempFolderPath() . DIRECTORY_SEPARATOR . self::sanitizeFilename($match[1]); + $filename = Configuration::getDefaultConfiguration()->getTempFolderPath().DIRECTORY_SEPARATOR.self::sanitizeFilename($match[1]); } else { $filename = tempnam(Configuration::getDefaultConfiguration()->getTempFolderPath(), ''); } @@ -296,12 +287,13 @@ public static function deserialize($data, $class, $httpHeaders = null) $imploded = implode("', '", $class::getAllowableEnumValues()); throw new \InvalidArgumentException("Invalid value for enum '$class', must be one of: '$imploded'"); } + return $data; } else { // If a discriminator is defined and points to a valid subclass, use it. $discriminator = $class::DISCRIMINATOR; if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { - $subclass = '{{invokerPackage}}\Model\\' . $data->{$discriminator}; + $subclass = '{{invokerPackage}}\Model\\'.$data->{$discriminator}; if (is_subclass_of($subclass, $class)) { $class = $subclass; } @@ -319,6 +311,7 @@ public static function deserialize($data, $class, $httpHeaders = null) $instance->$propertySetter(self::deserialize($propertyValue, $type, null)); } } + return $instance; } } diff --git a/lib/Signature.php b/lib/Signature.php new file mode 100644 index 00000000..3b034fac --- /dev/null +++ b/lib/Signature.php @@ -0,0 +1,162 @@ +getAccessKey(), + $config->getSecretKey(), + $config->getRegion(), + $config->getAccessToken(), + $config->getSecurityToken(), + $config->getUserAgent() + ); + } + + public static function calculateSignatureForService( + $host, + $method, + $uri, + $queryString, + $data, + $service, + $accessKey, + $secretKey, + $region, + $accessToken, + $securityToken, + $userAgent + ): array { + if (is_null($service)) { + throw new \Exception('Service is required'); + } + if (is_null($accessKey)) { + throw new \Exception('Access key is required'); + } + if (is_null($secretKey)) { + throw new \Exception('Secret key is required'); + } + if (is_null($region)) { + throw new \Exception('Region key is required'); + } + if (is_null($host)) { + throw new \Exception('Host key is required'); + } + if (is_null($method)) { + throw new \Exception('Method key is required'); + } + + $terminationString = 'aws4_request'; + $algorithm = 'AWS4-HMAC-SHA256'; + $amzdate = gmdate('Ymd\THis\Z'); + $date = substr($amzdate, 0, 8); + + // Prepare payload + if (is_array($data)) { + $param = json_encode($data); + if ('[]' == $param) { + $requestPayload = ''; + } else { + $requestPayload = $param; + } + } else { + $requestPayload = $data; + } + + // Hashed payload + $hashedPayload = hash('sha256', $requestPayload); + + //Compute Canonical Headers + $canonicalHeaders = [ + 'host' => $host, + 'user-agent' => $userAgent, + ]; + + // Check and attach access token to request header. + if (!is_null($accessToken)) { + $canonicalHeaders['x-amz-access-token'] = $accessToken; + } + $canonicalHeaders['x-amz-date'] = $amzdate; + // Check and attach STS token to request header. + if (!is_null($securityToken)) { + $canonicalHeaders['x-amz-security-token'] = $securityToken; + } + + $canonicalHeadersStr = ''; + foreach ($canonicalHeaders as $h => $v) { + $canonicalHeadersStr .= $h.':'.$v."\n"; + } + $signedHeadersStr = join(';', array_keys($canonicalHeaders)); + + //Prepare credentials scope + $credentialScope = $date.'/'.$region.'/'.$service.'/'.$terminationString; + + //prepare canonical request + $canonicalRequest = $method."\n".$uri."\n".$queryString."\n".$canonicalHeadersStr."\n".$signedHeadersStr."\n".$hashedPayload; + + //Prepare the string to sign + $stringToSign = $algorithm."\n".$amzdate."\n".$credentialScope."\n".hash('sha256', $canonicalRequest); + + //Start signing locker process + //Reference : https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html + $kSecret = 'AWS4'.$secretKey; + $kDate = hash_hmac('sha256', $date, $kSecret, true); + $kRegion = hash_hmac('sha256', $region, $kDate, true); + $kService = hash_hmac('sha256', $service, $kRegion, true); + $kSigning = hash_hmac('sha256', $terminationString, $kService, true); + + //Compute the signature + $signature = trim(hash_hmac('sha256', $stringToSign, $kSigning)); + + //Finalize the authorization structure + $authorizationHeader = $algorithm." Credential={$accessKey}/{$credentialScope}, SignedHeaders={$signedHeadersStr}, Signature={$signature}"; + + $amazonHeader = array_merge($canonicalHeaders, [ + 'Authorization' => $authorizationHeader, + ]); + + return $amazonHeader; + } +}